Skip to main content

account_informations

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

Overview

Nameaccount_informations
TypeResource
Idaws.account.account_informations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_created_datestring (date-time)The date and time the account was created.
account_idstringSpecifies 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_namestringThe name of the account. (pattern: <code>[ -;=?-~]+</code>)
account_statestringThe 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:

NameAccessible byRequired ParamsOptional ParamsDescription
get_account_informationselectregionRetrieves 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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
;