Skip to main content

organization_admin_accounts

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

Overview

Nameorganization_admin_accounts
TypeResource
Idaws.guardduty.organization_admin_accounts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
admin_account_idstringThe Amazon Web Services account ID for the account.
admin_statusstringIndicates whether the account is enabled as the delegated administrator. (ENABLED, DISABLE_IN_PROGRESS)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_organization_admin_accountsselectregionmaxResults, nextTokenLists the accounts designated as GuardDuty delegated administrators. Only the organization's management account can run this API operation.

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
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return in the response.
nextTokenstringA token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page.

SELECT examples

Lists the accounts designated as GuardDuty delegated administrators. Only the organization's management account can run this API operation.

SELECT
admin_account_id,
admin_status
FROM aws.guardduty.organization_admin_accounts
WHERE region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;