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.InvalidParameterValueException

  • ComputeOptimizerAutomation.Client.exceptions.ForbiddenException

  • ComputeOptimizerAutomation.Client.exceptions.OptInRequiredException

  • ComputeOptimizerAutomation.Client.exceptions.ThrottlingException

  • ComputeOptimizerAutomation.Client.exceptions.ResourceNotFoundException

  • ComputeOptimizerAutomation.Client.exceptions.IdempotentParameterMismatchException

  • ComputeOptimizerAutomation.Client.exceptions.AccessDeniedException

  • ComputeOptimizerAutomation.Client.exceptions.InternalServerException

  • ComputeOptimizerAutomation.Client.exceptions.ServiceUnavailableException

  • ComputeOptimizerAutomation.Client.exceptions.IdempotencyTokenInUseException