BillingConductor / Client / create_billing_group
create_billing_group¶
- BillingConductor.Client.create_billing_group(**kwargs)¶
Creates a billing group that resembles a consolidated billing family that Amazon Web Services charges, based off of the predefined pricing plan computation.
See also: AWS API Documentation
Request Syntax
response = client.create_billing_group( ClientToken='string', Name='string', AccountGrouping={ 'LinkedAccountIds': [ 'string', ], 'AutoAssociate': True|False }, ComputationPreference={ 'PricingPlanArn': 'string' }, PrimaryAccountId='string', Description='string', Tags={ 'string': 'string' } )
- Parameters:
ClientToken (string) –
A unique, case-sensitive identifier that you specify to ensure idempotency of the request. Idempotency ensures that an API request completes no more than one time. With an idempotent request, if the original request completes successfully, any subsequent retries complete successfully without performing any further actions.
This field is autopopulated if not provided.
Name (string) –
[REQUIRED]
The billing group name. The names must be unique.
AccountGrouping (dict) –
[REQUIRED]
The set of accounts that will be under the billing group. The set of accounts resemble the linked accounts in a consolidated billing family.
LinkedAccountIds (list) – [REQUIRED]
The account IDs that make up the billing group. Account IDs must be a part of the consolidated billing family, and not associated with another billing group.
(string) –
AutoAssociate (boolean) –
Specifies if this billing group will automatically associate newly added Amazon Web Services accounts that join your consolidated billing family.
ComputationPreference (dict) –
[REQUIRED]
The preferences and settings that will be used to compute the Amazon Web Services charges for a billing group.
PricingPlanArn (string) – [REQUIRED]
The Amazon Resource Name (ARN) of the pricing plan that’s used to compute the Amazon Web Services charges for a billing group.
PrimaryAccountId (string) – The account ID that serves as the main account in a billing group.
Description (string) – The description of the billing group.
Tags (dict) –
A map that contains tag keys and tag values that are attached to a billing group. This feature isn’t available during the beta.
(string) –
(string) –
- Return type:
dict
- Returns:
Response Syntax
{ 'Arn': 'string' }
Response Structure
(dict) –
Arn (string) –
The Amazon Resource Name (ARN) of the created billing group.
Exceptions
BillingConductor.Client.exceptions.ConflictException
BillingConductor.Client.exceptions.ThrottlingException
BillingConductor.Client.exceptions.AccessDeniedException
BillingConductor.Client.exceptions.ValidationException
BillingConductor.Client.exceptions.ServiceLimitExceededException
BillingConductor.Client.exceptions.InternalServerException