| 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 |
Amazonka.CostExplorer.GetSavingsPlansPurchaseRecommendation
Description
Retrieves the Savings Plans recommendations for your account. First use
StartSavingsPlansPurchaseRecommendationGeneration to generate a new
set of recommendations, and then use
GetSavingsPlansPurchaseRecommendation to retrieve them.
Synopsis
- data GetSavingsPlansPurchaseRecommendation = GetSavingsPlansPurchaseRecommendation' {}
- newGetSavingsPlansPurchaseRecommendation :: SupportedSavingsPlansType -> TermInYears -> PaymentOption -> LookbackPeriodInDays -> GetSavingsPlansPurchaseRecommendation
- getSavingsPlansPurchaseRecommendation_accountScope :: Lens' GetSavingsPlansPurchaseRecommendation (Maybe AccountScope)
- getSavingsPlansPurchaseRecommendation_filter :: Lens' GetSavingsPlansPurchaseRecommendation (Maybe Expression)
- getSavingsPlansPurchaseRecommendation_nextPageToken :: Lens' GetSavingsPlansPurchaseRecommendation (Maybe Text)
- getSavingsPlansPurchaseRecommendation_pageSize :: Lens' GetSavingsPlansPurchaseRecommendation (Maybe Natural)
- getSavingsPlansPurchaseRecommendation_savingsPlansType :: Lens' GetSavingsPlansPurchaseRecommendation SupportedSavingsPlansType
- getSavingsPlansPurchaseRecommendation_termInYears :: Lens' GetSavingsPlansPurchaseRecommendation TermInYears
- getSavingsPlansPurchaseRecommendation_paymentOption :: Lens' GetSavingsPlansPurchaseRecommendation PaymentOption
- getSavingsPlansPurchaseRecommendation_lookbackPeriodInDays :: Lens' GetSavingsPlansPurchaseRecommendation LookbackPeriodInDays
- data GetSavingsPlansPurchaseRecommendationResponse = GetSavingsPlansPurchaseRecommendationResponse' {}
- newGetSavingsPlansPurchaseRecommendationResponse :: Int -> GetSavingsPlansPurchaseRecommendationResponse
- getSavingsPlansPurchaseRecommendationResponse_metadata :: Lens' GetSavingsPlansPurchaseRecommendationResponse (Maybe SavingsPlansPurchaseRecommendationMetadata)
- getSavingsPlansPurchaseRecommendationResponse_nextPageToken :: Lens' GetSavingsPlansPurchaseRecommendationResponse (Maybe Text)
- getSavingsPlansPurchaseRecommendationResponse_savingsPlansPurchaseRecommendation :: Lens' GetSavingsPlansPurchaseRecommendationResponse (Maybe SavingsPlansPurchaseRecommendation)
- getSavingsPlansPurchaseRecommendationResponse_httpStatus :: Lens' GetSavingsPlansPurchaseRecommendationResponse Int
Creating a Request
data GetSavingsPlansPurchaseRecommendation Source #
See: newGetSavingsPlansPurchaseRecommendation smart constructor.
Constructors
| GetSavingsPlansPurchaseRecommendation' | |
Fields
| |
Instances
newGetSavingsPlansPurchaseRecommendation Source #
Arguments
| :: SupportedSavingsPlansType | |
| -> TermInYears | |
| -> PaymentOption | |
| -> LookbackPeriodInDays | |
| -> GetSavingsPlansPurchaseRecommendation |
Create a value of GetSavingsPlansPurchaseRecommendation 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:
GetSavingsPlansPurchaseRecommendation, getSavingsPlansPurchaseRecommendation_accountScope - The account scope that you want your recommendations for. Amazon Web
Services calculates recommendations including the management account and
member accounts if the value is set to PAYER. If the value is
LINKED, recommendations are calculated for individual member accounts
only.
$sel:filter':GetSavingsPlansPurchaseRecommendation', getSavingsPlansPurchaseRecommendation_filter - You can filter your recommendations by Account ID with the
LINKED_ACCOUNT dimension. To filter your recommendations by Account
ID, specify Key as LINKED_ACCOUNT and Value as the comma-separated
Acount ID(s) that you want to see Savings Plans purchase recommendations
for.
For GetSavingsPlansPurchaseRecommendation, the Filter doesn't include
CostCategories or Tags. It only includes Dimensions. With
Dimensions, Key must be LINKED_ACCOUNT and Value can be a single
Account ID or multiple comma-separated Account IDs that you want to see
Savings Plans Purchase Recommendations for. AND and OR operators are
not supported.
GetSavingsPlansPurchaseRecommendation, getSavingsPlansPurchaseRecommendation_nextPageToken - The token to retrieve the next set of results. Amazon Web Services
provides the token when the response from a previous call has more
results than the maximum page size.
$sel:pageSize:GetSavingsPlansPurchaseRecommendation', getSavingsPlansPurchaseRecommendation_pageSize - The number of recommendations that you want returned in a single
response object.
GetSavingsPlansPurchaseRecommendation, getSavingsPlansPurchaseRecommendation_savingsPlansType - The Savings Plans recommendation type that's requested.
GetSavingsPlansPurchaseRecommendation, getSavingsPlansPurchaseRecommendation_termInYears - The savings plan recommendation term that's used to generate these
recommendations.
GetSavingsPlansPurchaseRecommendation, getSavingsPlansPurchaseRecommendation_paymentOption - The payment option that's used to generate these recommendations.
GetSavingsPlansPurchaseRecommendation, getSavingsPlansPurchaseRecommendation_lookbackPeriodInDays - The lookback period that's used to generate the recommendation.
Request Lenses
getSavingsPlansPurchaseRecommendation_accountScope :: Lens' GetSavingsPlansPurchaseRecommendation (Maybe AccountScope) Source #
The account scope that you want your recommendations for. Amazon Web
Services calculates recommendations including the management account and
member accounts if the value is set to PAYER. If the value is
LINKED, recommendations are calculated for individual member accounts
only.
getSavingsPlansPurchaseRecommendation_filter :: Lens' GetSavingsPlansPurchaseRecommendation (Maybe Expression) Source #
You can filter your recommendations by Account ID with the
LINKED_ACCOUNT dimension. To filter your recommendations by Account
ID, specify Key as LINKED_ACCOUNT and Value as the comma-separated
Acount ID(s) that you want to see Savings Plans purchase recommendations
for.
For GetSavingsPlansPurchaseRecommendation, the Filter doesn't include
CostCategories or Tags. It only includes Dimensions. With
Dimensions, Key must be LINKED_ACCOUNT and Value can be a single
Account ID or multiple comma-separated Account IDs that you want to see
Savings Plans Purchase Recommendations for. AND and OR operators are
not supported.
getSavingsPlansPurchaseRecommendation_nextPageToken :: Lens' GetSavingsPlansPurchaseRecommendation (Maybe Text) Source #
The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.
getSavingsPlansPurchaseRecommendation_pageSize :: Lens' GetSavingsPlansPurchaseRecommendation (Maybe Natural) Source #
The number of recommendations that you want returned in a single response object.
getSavingsPlansPurchaseRecommendation_savingsPlansType :: Lens' GetSavingsPlansPurchaseRecommendation SupportedSavingsPlansType Source #
The Savings Plans recommendation type that's requested.
getSavingsPlansPurchaseRecommendation_termInYears :: Lens' GetSavingsPlansPurchaseRecommendation TermInYears Source #
The savings plan recommendation term that's used to generate these recommendations.
getSavingsPlansPurchaseRecommendation_paymentOption :: Lens' GetSavingsPlansPurchaseRecommendation PaymentOption Source #
The payment option that's used to generate these recommendations.
getSavingsPlansPurchaseRecommendation_lookbackPeriodInDays :: Lens' GetSavingsPlansPurchaseRecommendation LookbackPeriodInDays Source #
The lookback period that's used to generate the recommendation.
Destructuring the Response
data GetSavingsPlansPurchaseRecommendationResponse Source #
See: newGetSavingsPlansPurchaseRecommendationResponse smart constructor.
Constructors
| GetSavingsPlansPurchaseRecommendationResponse' | |
Fields
| |
Instances
newGetSavingsPlansPurchaseRecommendationResponse Source #
Arguments
| :: Int |
|
| -> GetSavingsPlansPurchaseRecommendationResponse |
Create a value of GetSavingsPlansPurchaseRecommendationResponse 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:metadata:GetSavingsPlansPurchaseRecommendationResponse', getSavingsPlansPurchaseRecommendationResponse_metadata - Information that regards this specific recommendation set.
GetSavingsPlansPurchaseRecommendation, getSavingsPlansPurchaseRecommendationResponse_nextPageToken - The token for the next set of retrievable results. Amazon Web Services
provides the token when the response from a previous call has more
results than the maximum page size.
$sel:savingsPlansPurchaseRecommendation:GetSavingsPlansPurchaseRecommendationResponse', getSavingsPlansPurchaseRecommendationResponse_savingsPlansPurchaseRecommendation - Contains your request parameters, Savings Plan Recommendations Summary,
and Details.
$sel:httpStatus:GetSavingsPlansPurchaseRecommendationResponse', getSavingsPlansPurchaseRecommendationResponse_httpStatus - The response's http status code.
Response Lenses
getSavingsPlansPurchaseRecommendationResponse_metadata :: Lens' GetSavingsPlansPurchaseRecommendationResponse (Maybe SavingsPlansPurchaseRecommendationMetadata) Source #
Information that regards this specific recommendation set.
getSavingsPlansPurchaseRecommendationResponse_nextPageToken :: Lens' GetSavingsPlansPurchaseRecommendationResponse (Maybe Text) Source #
The token for the next set of retrievable results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.
getSavingsPlansPurchaseRecommendationResponse_savingsPlansPurchaseRecommendation :: Lens' GetSavingsPlansPurchaseRecommendationResponse (Maybe SavingsPlansPurchaseRecommendation) Source #
Contains your request parameters, Savings Plan Recommendations Summary, and Details.
getSavingsPlansPurchaseRecommendationResponse_httpStatus :: Lens' GetSavingsPlansPurchaseRecommendationResponse Int Source #
The response's http status code.