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.InvalidParameterValueExceptionComputeOptimizerAutomation.Client.exceptions.ForbiddenExceptionComputeOptimizerAutomation.Client.exceptions.OptInRequiredExceptionComputeOptimizerAutomation.Client.exceptions.ResourceNotFoundExceptionComputeOptimizerAutomation.Client.exceptions.ThrottlingExceptionComputeOptimizerAutomation.Client.exceptions.AccessDeniedExceptionComputeOptimizerAutomation.Client.exceptions.InternalServerExceptionComputeOptimizerAutomation.Client.exceptions.ServiceUnavailableException