organization_admin_accounts
Creates, updates, deletes, gets or lists an organization_admin_accounts resource.
Overview
| Name | organization_admin_accounts |
| Type | Resource |
| Id | aws.detective.organization_admin_accounts |
Fields
The following fields are returned by SELECT queries:
- list_organization_admin_accounts
| Name | Datatype | Description |
|---|---|---|
administrators | array | The list of Detective administrator accounts. |
next_token | string | If there are more accounts remaining in the results, then this is the pagination token to use to request the next page of accounts. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_organization_admin_accounts | select | region | Returns information about the Detective administrator account for an organization. Can only be called by the organization management 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- list_organization_admin_accounts
Returns information about the Detective administrator account for an organization. Can only be called by the organization management account.
SELECT
administrators,
next_token
FROM aws.detective.organization_admin_accounts
WHERE region = '{{ region }}' -- required
;