Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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 details on 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_nextPageToken :: Lens' GetRightsizingRecommendation (Maybe Text)
- getRightsizingRecommendation_configuration :: Lens' GetRightsizingRecommendation (Maybe RightsizingRecommendationConfiguration)
- getRightsizingRecommendation_filter :: Lens' GetRightsizingRecommendation (Maybe Expression)
- getRightsizingRecommendation_pageSize :: Lens' GetRightsizingRecommendation (Maybe Natural)
- getRightsizingRecommendation_service :: Lens' GetRightsizingRecommendation Text
- data GetRightsizingRecommendationResponse = GetRightsizingRecommendationResponse' {}
- newGetRightsizingRecommendationResponse :: Int -> GetRightsizingRecommendationResponse
- getRightsizingRecommendationResponse_summary :: Lens' GetRightsizingRecommendationResponse (Maybe RightsizingRecommendationSummary)
- getRightsizingRecommendationResponse_nextPageToken :: Lens' GetRightsizingRecommendationResponse (Maybe Text)
- getRightsizingRecommendationResponse_rightsizingRecommendations :: Lens' GetRightsizingRecommendationResponse (Maybe [RightsizingRecommendation])
- getRightsizingRecommendationResponse_metadata :: Lens' GetRightsizingRecommendationResponse (Maybe RightsizingRecommendationMetadata)
- getRightsizingRecommendationResponse_configuration :: Lens' GetRightsizingRecommendationResponse (Maybe RightsizingRecommendationConfiguration)
- 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:
$sel:nextPageToken:GetRightsizingRecommendation'
, getRightsizingRecommendation_nextPageToken
- The pagination token that indicates the next set of results that you
want to retrieve.
$sel:configuration:GetRightsizingRecommendation'
, getRightsizingRecommendation_configuration
- Enables you 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 associated with recommendations with
consideration of existing Savings Plans or RI benefits, or neither.
$sel:filter':GetRightsizingRecommendation'
, getRightsizingRecommendation_filter
- Undocumented member.
$sel:pageSize:GetRightsizingRecommendation'
, getRightsizingRecommendation_pageSize
- The number of recommendations that you want returned in a single
response object.
$sel:service:GetRightsizingRecommendation'
, getRightsizingRecommendation_service
- The specific service that you want recommendations for. The only valid
value for GetRightsizingRecommendation
is "AmazonEC2
".
Request Lenses
getRightsizingRecommendation_nextPageToken :: Lens' GetRightsizingRecommendation (Maybe Text) Source #
The pagination token that indicates the next set of results that you want to retrieve.
getRightsizingRecommendation_configuration :: Lens' GetRightsizingRecommendation (Maybe RightsizingRecommendationConfiguration) Source #
Enables you 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 associated with recommendations with consideration of existing Savings Plans or RI benefits, or neither.
getRightsizingRecommendation_filter :: Lens' GetRightsizingRecommendation (Maybe Expression) Source #
Undocumented member.
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:
$sel:summary:GetRightsizingRecommendationResponse'
, getRightsizingRecommendationResponse_summary
- Summary of this recommendation set.
$sel:nextPageToken:GetRightsizingRecommendation'
, getRightsizingRecommendationResponse_nextPageToken
- The token to retrieve the next set of results.
$sel:rightsizingRecommendations:GetRightsizingRecommendationResponse'
, getRightsizingRecommendationResponse_rightsizingRecommendations
- Recommendations to rightsize resources.
$sel:metadata:GetRightsizingRecommendationResponse'
, getRightsizingRecommendationResponse_metadata
- Information regarding this specific recommendation set.
$sel:configuration:GetRightsizingRecommendation'
, getRightsizingRecommendationResponse_configuration
- Enables you 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 associated with recommendations with
consideration of existing Savings Plans or RI benefits, or neither.
$sel:httpStatus:GetRightsizingRecommendationResponse'
, getRightsizingRecommendationResponse_httpStatus
- The response's http status code.
Response Lenses
getRightsizingRecommendationResponse_summary :: Lens' GetRightsizingRecommendationResponse (Maybe RightsizingRecommendationSummary) Source #
Summary of this 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_metadata :: Lens' GetRightsizingRecommendationResponse (Maybe RightsizingRecommendationMetadata) Source #
Information regarding this specific recommendation set.
getRightsizingRecommendationResponse_configuration :: Lens' GetRightsizingRecommendationResponse (Maybe RightsizingRecommendationConfiguration) Source #
Enables you 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 associated with recommendations with consideration of existing Savings Plans or RI benefits, or neither.
getRightsizingRecommendationResponse_httpStatus :: Lens' GetRightsizingRecommendationResponse Int Source #
The response's http status code.