accounts
Creates, updates, deletes, gets or lists an accounts resource.
Overview
| Name | accounts |
| Type | Resource |
| Id | aws.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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
associate_accounts | update | region, AccountIds | 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. | |
disassociate_accounts | exec | region, AccountIds | Removes 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
UPDATE examples
- associate_accounts
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
- disassociate_accounts
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 }}"
}'
;