ComputeOptimizerAutomation / Client / get_enrollment_configuration

get_enrollment_configuration

ComputeOptimizerAutomation.Client.get_enrollment_configuration()

Retrieves the current enrollment configuration for Compute Optimizer Automation.

See also: AWS API Documentation

Request Syntax

response = client.get_enrollment_configuration()
Return type:

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

  • ComputeOptimizerAutomation.Client.exceptions.InvalidParameterValueException

  • ComputeOptimizerAutomation.Client.exceptions.ForbiddenException

  • ComputeOptimizerAutomation.Client.exceptions.OptInRequiredException

  • ComputeOptimizerAutomation.Client.exceptions.ResourceNotFoundException

  • ComputeOptimizerAutomation.Client.exceptions.ThrottlingException

  • ComputeOptimizerAutomation.Client.exceptions.AccessDeniedException

  • ComputeOptimizerAutomation.Client.exceptions.InternalServerException

  • ComputeOptimizerAutomation.Client.exceptions.ServiceUnavailableException