accounts
Retrieves a list of accounts
in a region
Overview
Name | accounts |
Type | Resource |
Description | accounts |
Id | awscc.organizations.accounts |
Fields
Name | Datatype | Description |
---|---|---|
account_id | string | If the account was created successfully, the unique identifier (ID) of the new account. |
region | string | AWS region. |
Methods
Currently only SELECT
is supported for this resource resource.
Example
SELECT
region,
account_id
FROM awscc.organizations.accounts
WHERE region = 'us-east-1'
Permissions
To operate on the accounts
resource, the following permissions are required:
Create
organizations:CreateAccount,
organizations:DescribeCreateAccountStatus,
organizations:MoveAccount,
organizations:ListParents,
organizations:TagResource,
organizations:DescribeAccount,
organizations:ListTagsForResource
List
organizations:ListAccounts