Smaws_Client_ComputeOptimizer.GetEffectiveRecommendationPreferencesReturns the recommendation preferences that are in effect for a given resource, such as enhanced infrastructure metrics. Considers all applicable preferences that you might have set at the resource, account, and organization level.
When you create a recommendation preference, you can set its status to Active or Inactive. Use this action to view the recommendation preferences that are in effect, or Active.
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
| `OptInRequiredException of Types.opt_in_required_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ServiceUnavailableException of Types.service_unavailable_exception
| `ThrottlingException of Types.throttling_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.get_effective_recommendation_preferences_request ->
(Types.get_effective_recommendation_preferences_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
| `OptInRequiredException of Types.opt_in_required_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ServiceUnavailableException of Types.service_unavailable_exception
| `ThrottlingException of Types.throttling_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.get_effective_recommendation_preferences_request ->
(Types.get_effective_recommendation_preferences_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
| `OptInRequiredException of Types.opt_in_required_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ServiceUnavailableException of Types.service_unavailable_exception
| `ThrottlingException of Types.throttling_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result