ComputeOptimizerAutomation / Client / rollback_automation_event
rollback_automation_event¶
- ComputeOptimizerAutomation.Client.rollback_automation_event(**kwargs)¶
Initiates a rollback for a completed automation event.
Note
Management accounts and delegated administrators can only initiate a rollback for events belonging to associated member accounts. You can associate a member account using
AssociateAccounts.See also: AWS API Documentation
Request Syntax
response = client.rollback_automation_event( eventId='string', clientToken='string' )
- Parameters:
eventId (string) –
[REQUIRED]
The ID of the automation event to roll back.
clientToken (string) –
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Must be 1-64 characters long and contain only alphanumeric characters, underscores, and hyphens.
This field is autopopulated if not provided.
- Return type:
dict
- Returns:
Response Syntax
{ 'eventId': 'string', 'eventStatus': 'Ready'|'InProgress'|'Complete'|'Failed'|'Cancelled'|'RollbackReady'|'RollbackInProgress'|'RollbackComplete'|'RollbackFailed' }
Response Structure
(dict) –
eventId (string) –
The ID of the automation event being rolled back.
eventStatus (string) –
The current status of the rollback operation.
Exceptions
ComputeOptimizerAutomation.Client.exceptions.InvalidParameterValueExceptionComputeOptimizerAutomation.Client.exceptions.ForbiddenExceptionComputeOptimizerAutomation.Client.exceptions.OptInRequiredExceptionComputeOptimizerAutomation.Client.exceptions.ThrottlingExceptionComputeOptimizerAutomation.Client.exceptions.ResourceNotFoundExceptionComputeOptimizerAutomation.Client.exceptions.IdempotentParameterMismatchExceptionComputeOptimizerAutomation.Client.exceptions.AccessDeniedExceptionComputeOptimizerAutomation.Client.exceptions.InternalServerExceptionComputeOptimizerAutomation.Client.exceptions.ServiceUnavailableExceptionComputeOptimizerAutomation.Client.exceptions.IdempotencyTokenInUseException