account_informations
Creates, updates, deletes, gets or lists an account_informations resource.
Overview
| Name | account_informations |
| Type | Resource |
| Id | aws.account.account_informations |
Fields
The following fields are returned by SELECT queries:
- get_account_information
| Name | Datatype | Description |
|---|---|---|
account_created_date | string (date-time) | The date and time the account was created. |
account_id | string | Specifies the 12-digit account ID number of the Amazon Web Services account that you want to access or modify with this operation. To use this parameter, the caller must be an identity in the organization's management account or a delegated administrator account. The specified account ID must be a member account in the same organization. The organization must have all features enabled, and the organization must have trusted access enabled for the Account Management service, and optionally a delegated admin account assigned. This operation can only be called from the management account or the delegated administrator account of an organization for a member account. The management account can't specify its own AccountId. (pattern: <code>\d{12}</code>) |
account_name | string | The name of the account. (pattern: <code>[ -;=?-~]+</code>) |
account_state | string | The state of the account. Each account state represents a specific phase in the account lifecycle. Use this information to manage account access, automate workflows, or trigger actions based on account state changes. Valid values: PENDING_ACTIVATION | ACTIVE | SUSPENDED | CLOSED (PENDING_ACTIVATION, ACTIVE, SUSPENDED, CLOSED) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_account_information | select | region | Retrieves information about the specified account including its account name, account ID, account creation date and time, and account state. To use this API, an IAM user or role must have the account:GetAccountInformation IAM permission. |
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
- get_account_information
Retrieves information about the specified account including its account name, account ID, account creation date and time, and account state. To use this API, an IAM user or role must have the account:GetAccountInformation IAM permission.
SELECT
account_created_date,
account_id,
account_name,
account_state
FROM aws.account.account_informations
WHERE region = '{{ region }}' -- required
;