Smaws_Client_CostExplorer.GetRightsizingRecommendationCreates recommendations that help you save cost by identifying idle and underutilized Amazon EC2 instances.
Recommendations are generated to either downsize or terminate instances, along with providing savings detail and metrics. For more information about calculation and function, see Optimizing Your Cost with Rightsizing Recommendations in the Billing and Cost Management User Guide.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InvalidNextTokenException of Types.invalid_next_token_exception
| `LimitExceededException of Types.limit_exceeded_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.get_rightsizing_recommendation_request ->
(Types.get_rightsizing_recommendation_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidNextTokenException of Types.invalid_next_token_exception
| `LimitExceededException of Types.limit_exceeded_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.get_rightsizing_recommendation_request ->
(Types.get_rightsizing_recommendation_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidNextTokenException of Types.invalid_next_token_exception
| `LimitExceededException of Types.limit_exceeded_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result