Skip to main content

accounts

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

Overview​

Nameaccounts
TypeResource
Idaws.billingconductor.accounts

Fields​

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
associate_accountsupdateregion, AccountIdsConnects an array of account IDs in a consolidated billing family to a predefined billing group. The account IDs must be a part of the consolidated billing family during the current month, and not already associated with another billing group. The maximum number of accounts that can be associated in one call is 30.
disassociate_accountsexecregion, AccountIdsRemoves the specified list of account IDs from the given billing group.

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)

UPDATE examples​

Connects an array of account IDs in a consolidated billing family to a predefined billing group. The account IDs must be a part of the consolidated billing family during the current month, and not already associated with another billing group. The maximum number of accounts that can be associated in one call is 30.

UPDATE aws.billingconductor.accounts
SET
Arn = '{{ Arn }}',
AccountIds = '{{ AccountIds }}'
WHERE
region = '{{ region }}' --required
AND AccountIds = '{{ AccountIds }}' --required
RETURNING
arn;

Lifecycle Methods​

Removes the specified list of account IDs from the given billing group.

EXEC aws.billingconductor.accounts.disassociate_accounts
@region='{{ region }}' --required
@@json=
'{
"Arn": "{{ Arn }}",
"AccountIds": "{{ AccountIds }}"
}'
;