Skip to content

Guardduty  >  Operations  >  delete_members

delete_members

Operation

delete_members async

delete_members(input: DeleteMembersInput, plugins: list[Plugin] | None = None) -> DeleteMembersOutput

Deletes GuardDuty member accounts (to the current GuardDuty administrator account) specified by the account IDs.

With autoEnableOrganizationMembers configuration for your organization set to ALL, you'll receive an error if you attempt to disable GuardDuty for a member account in your organization.

Parameters:

Name Type Description Default
input DeleteMembersInput

An instance of DeleteMembersInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
DeleteMembersOutput

An instance of DeleteMembersOutput.

Input

DeleteMembersInput dataclass

Dataclass for DeleteMembersInput structure.

Attributes

account_ids class-attribute instance-attribute
account_ids: list[str] | None = None

A list of account IDs of the GuardDuty member accounts that you want to delete.

detector_id class-attribute instance-attribute
detector_id: str | None = None

The unique ID of the detector of the GuardDuty account whose members you want to delete.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

Output

DeleteMembersOutput dataclass

Dataclass for DeleteMembersOutput structure.

Attributes

unprocessed_accounts class-attribute instance-attribute
unprocessed_accounts: list[UnprocessedAccount] | None = None

The accounts that could not be processed.