Skip to main content

member_accounts

Creates, updates, deletes, gets or lists a member_accounts resource.

Overview

Namemember_accounts
TypeResource
Idaws.notifications.member_accounts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_idstringThe AWS account ID of the member account. (pattern: <code>\d{12}</code>)
notification_configuration_arnstringThe Amazon Resource Name (ARN) of the notification configuration associated with the member account. (pattern: <code>arn:aws:notifications::[0-9]{12}:configuration/[a-z0-9]{27}</code>)
organizational_unit_idstringThe unique identifier of the organizational unit containing the member account. (pattern: <code>(Root|r-[0-9a-z]{4,32}|ou-[0-9a-z]{4,32}-[a-z0-9]{8,32})</code>)
statusstringThe current status of the member account. (ACTIVE, PENDING, INACTIVE, CREATING, DELETING)
status_reasonstringThe reason for the current status of the member account.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_member_accountsselectnotificationConfigurationArn, regionmaxResults, nextToken, memberAccount, status, organizationalUnitIdReturns a list of member accounts associated with a notification configuration.

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
notificationConfigurationArnstringThe Amazon Resource Name (ARN) of the notification configuration used to filter the member accounts.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return in a single call. Valid values are 1-100.
memberAccountstringThe member account identifier used to filter the results.
nextTokenstringThe token for the next page of results. Use the value returned in the previous response.
organizationalUnitIdstringThe organizational unit ID used to filter the member accounts.
statusstringThe status used to filter the member accounts.

SELECT examples

Returns a list of member accounts associated with a notification configuration.

SELECT
account_id,
notification_configuration_arn,
organizational_unit_id,
status,
status_reason
FROM aws.notifications.member_accounts
WHERE notificationConfigurationArn = '{{ notificationConfigurationArn }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
AND memberAccount = '{{ memberAccount }}'
AND status = '{{ status }}'
AND organizationalUnitId = '{{ organizationalUnitId }}'
;