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.

associate_accounts

associate_accounts(**kwargs)

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.

See also: AWS API Documentation

Request Syntax

response = client.associate_accounts(
    Arn='string',
    AccountIds=[
        'string',
    ]
)
Parameters
  • Arn (string) --

    [REQUIRED]

    The Amazon Resource Name (ARN) of the billing group that associates the array of account IDs.

  • AccountIds (list) --

    [REQUIRED]

    The associating array of account IDs.

    • (string) --
Return type

dict

Returns

Response Syntax

{
    'Arn': 'string'
}

Response Structure

  • (dict) --

    • Arn (string) --

      The Amazon Resource Name (ARN) of the billing group that associates the array of account IDs.

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
  • BillingConductor.Client.exceptions.ResourceNotFoundException