account_associations
Creates, updates, deletes, gets or lists an account_associations resource.
Overview
| Name | account_associations |
| Type | Resource |
| Id | aws.billingconductor.account_associations |
Fields
The following fields are returned by SELECT queries:
- list_account_associations
| Name | Datatype | Description |
|---|---|---|
account_email | string | The Amazon Web Services account email. |
account_id | string | The associating array of account IDs. (pattern: <code>[0-9]{12}</code>) |
account_name | string | The Amazon Web Services account name. |
billing_group_arn | string | The Billing Group Arn that the linked account is associated to. (pattern: <code>(arn:aws(-cn)?:billingconductor::[0-9]{12}:billinggroup/)?[a-zA-Z0-9]{10,12}</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_account_associations | select | region | This is a paginated call to list linked accounts that are linked to the payer account for the specified time period. If no information is provided, the current billing period is used. The response will optionally include the billing group that's associated with the linked 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_account_associations
This is a paginated call to list linked accounts that are linked to the payer account for the specified time period. If no information is provided, the current billing period is used. The response will optionally include the billing group that's associated with the linked account.
SELECT
account_email,
account_id,
account_name,
billing_group_arn
FROM aws.billingconductor.account_associations
WHERE region = '{{ region }}' -- required
;