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

****************************
get_enrollment_configuration
****************************



.. py:method:: ComputeOptimizerAutomation.Client.get_enrollment_configuration()

  

  Retrieves the current enrollment configuration for Compute Optimizer Automation.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-automation-2025-09-22/GetEnrollmentConfiguration>`_  


  **Request Syntax**
  ::

    response = client.get_enrollment_configuration()
    
    
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'status': 'Active'|'Inactive'|'Pending'|'Failed',
          'statusReason': 'string',
          'organizationRuleMode': 'AnyAllowed'|'NoneAllowed',
          'lastUpdatedTimestamp': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **status** *(string) --* 

        The current enrollment status.

        
      

      - **statusReason** *(string) --* 

        The reason for the current enrollment status.

        
      

      - **organizationRuleMode** *(string) --* 

        Specifies whether the management account can create Automation rules that implement optimization actions for this account.

        
      

      - **lastUpdatedTimestamp** *(datetime) --* 

        The timestamp of the last update to the enrollment configuration.

        
  
  **Exceptions**
  
  *   :py:class:`ComputeOptimizerAutomation.Client.exceptions.InvalidParameterValueException`

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

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

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

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

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

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

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

  