GuardDutyClient.create_members
rboto-guardduty==0.4.0 · Service index · Types
Model summary (excerpt): Creates member accounts of the current Amazon Web Services account by specifying a list of Amazon Web Services account IDs. This step is a prerequisite for managing the associated member accounts either by invitation or through an organization. As a delegated administrator, using CreateMembers will enable GuardDuty in the added member accounts, with the exception of the organization delegated...
Install and imports
from rboto import GuardDutyClient
from collections.abc import Sequence as _Sequence
from rboto_guardduty.types import (
AccountDetail,
CreateMembersOutput,
)
Signature
async def create_members(
*,
detector_id: str,
account_details: _Sequence[AccountDetail],
) -> CreateMembersOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
detector_id |
Yes | The unique ID of the detector of the GuardDuty account for which you want to associate member accounts. To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API. |
account_details |
Yes | A list of account ID and email address pairs of the accounts that you want to associate with the GuardDuty administrator account. |
Output
CreateMembersOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
unprocessed_accounts |
list[UnprocessedAccountOutput] | None |
Always present | UnprocessedAccountOutput |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
AccountDetail, CreateMembersOutput
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_guardduty.exceptions:
BadRequestError, InternalServerError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.