Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

create_billing_group

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',
        ]
    },
    ComputationPreference={
        'PricingPlanArn': 'string'
    },
    PrimaryAccountId='string',
    Description='string',
    Tags={
        'string': 'string'
    }
)
Parameters
  • ClientToken (string) --

    The token that is needed to support idempotency. Idempotency isn't currently supported, but will be implemented in a future update.

    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 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) --
  • 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.ThrottlingException
  • BillingConductor.Client.exceptions.ConflictException
  • BillingConductor.Client.exceptions.AccessDeniedException
  • BillingConductor.Client.exceptions.ValidationException
  • BillingConductor.Client.exceptions.ServiceLimitExceededException
  • BillingConductor.Client.exceptions.InternalServerException