Smaws_Client_ComputeOptimizer.GetEnrollmentStatusReturns the enrollment (opt in) status of an account to the Compute Optimizer service.
If the account is the management account of an organization, this action also confirms the enrollment status of member accounts of the organization. Use the GetEnrollmentStatusesForOrganization action to get detailed information about the enrollment status of member accounts of an organization.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `InternalServerException of Types.internal_server_exception
| `InvalidParameterValueException of Types.invalid_parameter_value_exception
| `MissingAuthenticationToken of Types.missing_authentication_token
| `ServiceUnavailableException of Types.service_unavailable_exception
| `ThrottlingException of Types.throttling_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.get_enrollment_status_request ->
(Types.get_enrollment_status_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `InternalServerException of Types.internal_server_exception
| `InvalidParameterValueException of
Types.invalid_parameter_value_exception
| `MissingAuthenticationToken of Types.missing_authentication_token
| `ServiceUnavailableException of Types.service_unavailable_exception
| `ThrottlingException of Types.throttling_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.get_enrollment_status_request ->
(Types.get_enrollment_status_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `InternalServerException of Types.internal_server_exception
| `InvalidParameterValueException of
Types.invalid_parameter_value_exception
| `MissingAuthenticationToken of Types.missing_authentication_token
| `ServiceUnavailableException of Types.service_unavailable_exception
| `ThrottlingException of Types.throttling_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result