Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creates 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.
Synopsis
- data GetRightsizingRecommendation = GetRightsizingRecommendation' {}
- newGetRightsizingRecommendation :: Text -> GetRightsizingRecommendation
- getRightsizingRecommendation_configuration :: Lens' GetRightsizingRecommendation (Maybe RightsizingRecommendationConfiguration)
- getRightsizingRecommendation_filter :: Lens' GetRightsizingRecommendation (Maybe Expression)
- getRightsizingRecommendation_nextPageToken :: Lens' GetRightsizingRecommendation (Maybe Text)
- getRightsizingRecommendation_pageSize :: Lens' GetRightsizingRecommendation (Maybe Natural)
- getRightsizingRecommendation_service :: Lens' GetRightsizingRecommendation Text
- data GetRightsizingRecommendationResponse = GetRightsizingRecommendationResponse' {}
- newGetRightsizingRecommendationResponse :: Int -> GetRightsizingRecommendationResponse
- getRightsizingRecommendationResponse_configuration :: Lens' GetRightsizingRecommendationResponse (Maybe RightsizingRecommendationConfiguration)
- getRightsizingRecommendationResponse_metadata :: Lens' GetRightsizingRecommendationResponse (Maybe RightsizingRecommendationMetadata)
- getRightsizingRecommendationResponse_nextPageToken :: Lens' GetRightsizingRecommendationResponse (Maybe Text)
- getRightsizingRecommendationResponse_rightsizingRecommendations :: Lens' GetRightsizingRecommendationResponse (Maybe [RightsizingRecommendation])
- getRightsizingRecommendationResponse_summary :: Lens' GetRightsizingRecommendationResponse (Maybe RightsizingRecommendationSummary)
- getRightsizingRecommendationResponse_httpStatus :: Lens' GetRightsizingRecommendationResponse Int
Creating a Request
data GetRightsizingRecommendation Source #
See: newGetRightsizingRecommendation
smart constructor.
GetRightsizingRecommendation' | |
|
Instances
newGetRightsizingRecommendation Source #
Create a value of GetRightsizingRecommendation
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
GetRightsizingRecommendation
, getRightsizingRecommendation_configuration
- You can use Configuration to customize recommendations across two
attributes. You can choose to view recommendations for instances within
the same instance families or across different instance families. You
can also choose to view your estimated savings that are associated with
recommendations with consideration of existing Savings Plans or RI
benefits, or neither.
$sel:filter':GetRightsizingRecommendation'
, getRightsizingRecommendation_filter
- Undocumented member.
GetRightsizingRecommendation
, getRightsizingRecommendation_nextPageToken
- The pagination token that indicates the next set of results that you
want to retrieve.
$sel:pageSize:GetRightsizingRecommendation'
, getRightsizingRecommendation_pageSize
- The number of recommendations that you want returned in a single
response object.
GetRightsizingRecommendation
, getRightsizingRecommendation_service
- The specific service that you want recommendations for. The only valid
value for GetRightsizingRecommendation
is "AmazonEC2
".
Request Lenses
getRightsizingRecommendation_configuration :: Lens' GetRightsizingRecommendation (Maybe RightsizingRecommendationConfiguration) Source #
You can use Configuration to customize recommendations across two attributes. You can choose to view recommendations for instances within the same instance families or across different instance families. You can also choose to view your estimated savings that are associated with recommendations with consideration of existing Savings Plans or RI benefits, or neither.
getRightsizingRecommendation_filter :: Lens' GetRightsizingRecommendation (Maybe Expression) Source #
Undocumented member.
getRightsizingRecommendation_nextPageToken :: Lens' GetRightsizingRecommendation (Maybe Text) Source #
The pagination token that indicates the next set of results that you want to retrieve.
getRightsizingRecommendation_pageSize :: Lens' GetRightsizingRecommendation (Maybe Natural) Source #
The number of recommendations that you want returned in a single response object.
getRightsizingRecommendation_service :: Lens' GetRightsizingRecommendation Text Source #
The specific service that you want recommendations for. The only valid
value for GetRightsizingRecommendation
is "AmazonEC2
".
Destructuring the Response
data GetRightsizingRecommendationResponse Source #
See: newGetRightsizingRecommendationResponse
smart constructor.
GetRightsizingRecommendationResponse' | |
|
Instances
newGetRightsizingRecommendationResponse Source #
Create a value of GetRightsizingRecommendationResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
GetRightsizingRecommendation
, getRightsizingRecommendationResponse_configuration
- You can use Configuration to customize recommendations across two
attributes. You can choose to view recommendations for instances within
the same instance families or across different instance families. You
can also choose to view your estimated savings that are associated with
recommendations with consideration of existing Savings Plans or RI
benefits, or neither.
$sel:metadata:GetRightsizingRecommendationResponse'
, getRightsizingRecommendationResponse_metadata
- Information regarding this specific recommendation set.
GetRightsizingRecommendation
, getRightsizingRecommendationResponse_nextPageToken
- The token to retrieve the next set of results.
$sel:rightsizingRecommendations:GetRightsizingRecommendationResponse'
, getRightsizingRecommendationResponse_rightsizingRecommendations
- Recommendations to rightsize resources.
$sel:summary:GetRightsizingRecommendationResponse'
, getRightsizingRecommendationResponse_summary
- Summary of this recommendation set.
$sel:httpStatus:GetRightsizingRecommendationResponse'
, getRightsizingRecommendationResponse_httpStatus
- The response's http status code.
Response Lenses
getRightsizingRecommendationResponse_configuration :: Lens' GetRightsizingRecommendationResponse (Maybe RightsizingRecommendationConfiguration) Source #
You can use Configuration to customize recommendations across two attributes. You can choose to view recommendations for instances within the same instance families or across different instance families. You can also choose to view your estimated savings that are associated with recommendations with consideration of existing Savings Plans or RI benefits, or neither.
getRightsizingRecommendationResponse_metadata :: Lens' GetRightsizingRecommendationResponse (Maybe RightsizingRecommendationMetadata) Source #
Information regarding this specific recommendation set.
getRightsizingRecommendationResponse_nextPageToken :: Lens' GetRightsizingRecommendationResponse (Maybe Text) Source #
The token to retrieve the next set of results.
getRightsizingRecommendationResponse_rightsizingRecommendations :: Lens' GetRightsizingRecommendationResponse (Maybe [RightsizingRecommendation]) Source #
Recommendations to rightsize resources.
getRightsizingRecommendationResponse_summary :: Lens' GetRightsizingRecommendationResponse (Maybe RightsizingRecommendationSummary) Source #
Summary of this recommendation set.
getRightsizingRecommendationResponse_httpStatus :: Lens' GetRightsizingRecommendationResponse Int Source #
The response's http status code.