:doc:`ComputeOptimizerAutomation <../../compute-optimizer-automation>` / Client / rollback_automation_event

*************************
rollback_automation_event
*************************



.. py:method:: 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 <https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/RollbackAutomationEvent>`_  


  **Request Syntax**
  ::

    response = client.rollback_automation_event(
        eventId='string',
        clientToken='string'
    )
    
  :type eventId: string
  :param eventId: **[REQUIRED]** 

    The ID of the automation event to roll back.

    

  
  :type clientToken: string
  :param clientToken: 

    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.

  
  
  :rtype: 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**
  
  *   :py:class:`ComputeOptimizerAutomation.Client.exceptions.InvalidParameterValueException`

  
  *   :py:class:`ComputeOptimizerAutomation.Client.exceptions.ForbiddenException`

  
  *   :py:class:`ComputeOptimizerAutomation.Client.exceptions.OptInRequiredException`

  
  *   :py:class:`ComputeOptimizerAutomation.Client.exceptions.ThrottlingException`

  
  *   :py:class:`ComputeOptimizerAutomation.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`ComputeOptimizerAutomation.Client.exceptions.IdempotentParameterMismatchException`

  
  *   :py:class:`ComputeOptimizerAutomation.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`ComputeOptimizerAutomation.Client.exceptions.InternalServerException`

  
  *   :py:class:`ComputeOptimizerAutomation.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`ComputeOptimizerAutomation.Client.exceptions.IdempotencyTokenInUseException`

  