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.InvalidParameterValueExceptionComputeOptimizerAutomation.Client.exceptions.ForbiddenExceptionComputeOptimizerAutomation.Client.exceptions.OptInRequiredExceptionComputeOptimizerAutomation.Client.exceptions.IdempotentParameterMismatchExceptionComputeOptimizerAutomation.Client.exceptions.ThrottlingExceptionComputeOptimizerAutomation.Client.exceptions.AccessDeniedExceptionComputeOptimizerAutomation.Client.exceptions.InternalServerExceptionComputeOptimizerAutomation.Client.exceptions.NotManagementAccountExceptionComputeOptimizerAutomation.Client.exceptions.ServiceUnavailableExceptionComputeOptimizerAutomation.Client.exceptions.IdempotencyTokenInUseException