Skip to main content

administrator_accounts

Creates, updates, deletes, gets or lists an administrator_accounts resource.

Overview

Nameadministrator_accounts
TypeResource
Idaws.guardduty.administrator_accounts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_idstringThe ID of the account used as the administrator account.
invitation_idstringThe value that is used to validate the administrator account to the member account.
invited_atstringThe timestamp when the invitation was sent.
relationship_statusstringThe status of the relationship between the administrator and member accounts.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_administrator_accountselectdetector_id, regionProvides the details of the GuardDuty administrator account associated with the current GuardDuty member account. Based on the type of account that runs this API, the following list shows how the API behavior varies: When the GuardDuty administrator account runs this API, it will return success (HTTP 200) but no content. When a member account runs this API, it will return the details of the GuardDuty administrator account that is associated with this calling member account. When an individual account (not associated with an organization) runs this API, it will return success (HTTP 200) but no content.
disassociate_from_administrator_accountupdatedetector_id, regionDisassociates the current GuardDuty member account from its administrator account. When you disassociate an invited member from a GuardDuty delegated administrator, the member account details obtained from the CreateMembers API, including the associated email addresses, are retained. This is done so that the delegated administrator can invoke the InviteMembers API without the need to invoke the CreateMembers API again. To remove the details associated with a member account, the delegated administrator must invoke the DeleteMembers API. With autoEnableOrganizationMembers configuration for your organization set to ALL, you'll receive an error if you attempt to disable GuardDuty in a member account.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
detector_idstringThe unique ID of the detector of the GuardDuty member account.
regionstringAWS region (default: us-east-1)

SELECT examples

Provides the details of the GuardDuty administrator account associated with the current GuardDuty member account. Based on the type of account that runs this API, the following list shows how the API behavior varies: When the GuardDuty administrator account runs this API, it will return success (HTTP 200) but no content. When a member account runs this API, it will return the details of the GuardDuty administrator account that is associated with this calling member account. When an individual account (not associated with an organization) runs this API, it will return success (HTTP 200) but no content.

SELECT
account_id,
invitation_id,
invited_at,
relationship_status
FROM aws.guardduty.administrator_accounts
WHERE detector_id = '{{ detector_id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Disassociates the current GuardDuty member account from its administrator account. When you disassociate an invited member from a GuardDuty delegated administrator, the member account details obtained from the CreateMembers API, including the associated email addresses, are retained. This is done so that the delegated administrator can invoke the InviteMembers API without the need to invoke the CreateMembers API again. To remove the details associated with a member account, the delegated administrator must invoke the DeleteMembers API. With autoEnableOrganizationMembers configuration for your organization set to ALL, you'll receive an error if you attempt to disable GuardDuty in a member account.

UPDATE aws.guardduty.administrator_accounts
SET
-- No updatable properties
WHERE
detector_id = '{{ detector_id }}' --required
AND region = '{{ region }}' --required;