ComputeOptimizerAutomation / Client / disassociate_accounts

disassociate_accounts

ComputeOptimizerAutomation.Client.disassociate_accounts(**kwargs)

Disassociates member accounts from your organization’s management account, removing centralized automation capabilities. Once disassociated, organization rules no longer apply to the member account, and the management account (or delegated administrator) cannot create Automation rules for that account.

Note

Only the management account or a delegated administrator can perform this action.

See also: AWS API Documentation

Request Syntax

response = client.disassociate_accounts(
    accountIds=[
        'string',
    ],
    clientToken='string'
)
Parameters:
  • accountIds (list) –

    [REQUIRED]

    The IDs of the member accounts to disassociate.

    • (string) –

  • clientToken (string) –

    A unique identifier to ensure idempotency of the request.

    This field is autopopulated if not provided.

Return type:

dict

Returns:

Response Syntax

{
    'accountIds': [
        'string',
    ],
    'errors': [
        'string',
    ]
}

Response Structure

  • (dict) –

    • accountIds (list) –

      The IDs of the member accounts that were successfully disassociated.

      • (string) –

    • errors (list) –

      Any errors that occurred during the disassociation process.

      • (string) –

Exceptions

  • ComputeOptimizerAutomation.Client.exceptions.InvalidParameterValueException

  • ComputeOptimizerAutomation.Client.exceptions.ForbiddenException

  • ComputeOptimizerAutomation.Client.exceptions.OptInRequiredException

  • ComputeOptimizerAutomation.Client.exceptions.IdempotentParameterMismatchException

  • ComputeOptimizerAutomation.Client.exceptions.ThrottlingException

  • ComputeOptimizerAutomation.Client.exceptions.AccessDeniedException

  • ComputeOptimizerAutomation.Client.exceptions.InternalServerException

  • ComputeOptimizerAutomation.Client.exceptions.NotManagementAccountException

  • ComputeOptimizerAutomation.Client.exceptions.ServiceUnavailableException

  • ComputeOptimizerAutomation.Client.exceptions.IdempotencyTokenInUseException