libZSservicesZSamazonka-cost-explorerZSamazonka-cost-explorer
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CostExplorer.GetSavingsPlansPurchaseRecommendation

Description

Retrieves your request parameters, Savings Plan Recommendations Summary and Details.

Synopsis

Creating a Request

data GetSavingsPlansPurchaseRecommendation Source #

Constructors

GetSavingsPlansPurchaseRecommendation' 

Fields

  • nextPageToken :: Maybe Text

    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.

  • accountScope :: Maybe 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.

  • filter' :: Maybe Expression

    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) for which you want to see Savings Plans purchase recommendations.

    For GetSavingsPlansPurchaseRecommendation, the Filter does not 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 for which you want to see Savings Plans Purchase Recommendations. AND and OR operators are not supported.

  • pageSize :: Maybe Natural

    The number of recommendations that you want returned in a single response object.

  • savingsPlansType :: SupportedSavingsPlansType

    The Savings Plans recommendation type requested.

  • termInYears :: TermInYears

    The savings plan recommendation term used to generate these recommendations.

  • paymentOption :: PaymentOption

    The payment option used to generate these recommendations.

  • lookbackPeriodInDays :: LookbackPeriodInDays

    The lookback period used to generate the recommendation.

Instances

Instances details
Eq GetSavingsPlansPurchaseRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetSavingsPlansPurchaseRecommendation

Read GetSavingsPlansPurchaseRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetSavingsPlansPurchaseRecommendation

Show GetSavingsPlansPurchaseRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetSavingsPlansPurchaseRecommendation

Generic GetSavingsPlansPurchaseRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetSavingsPlansPurchaseRecommendation

NFData GetSavingsPlansPurchaseRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetSavingsPlansPurchaseRecommendation

Hashable GetSavingsPlansPurchaseRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetSavingsPlansPurchaseRecommendation

ToJSON GetSavingsPlansPurchaseRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetSavingsPlansPurchaseRecommendation

AWSRequest GetSavingsPlansPurchaseRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetSavingsPlansPurchaseRecommendation

ToHeaders GetSavingsPlansPurchaseRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetSavingsPlansPurchaseRecommendation

ToPath GetSavingsPlansPurchaseRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetSavingsPlansPurchaseRecommendation

ToQuery GetSavingsPlansPurchaseRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetSavingsPlansPurchaseRecommendation

type Rep GetSavingsPlansPurchaseRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetSavingsPlansPurchaseRecommendation

type Rep GetSavingsPlansPurchaseRecommendation = D1 ('MetaData "GetSavingsPlansPurchaseRecommendation" "Amazonka.CostExplorer.GetSavingsPlansPurchaseRecommendation" "libZSservicesZSamazonka-cost-explorerZSamazonka-cost-explorer" 'False) (C1 ('MetaCons "GetSavingsPlansPurchaseRecommendation'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "nextPageToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "accountScope") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AccountScope))) :*: (S1 ('MetaSel ('Just "filter'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Expression)) :*: S1 ('MetaSel ('Just "pageSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))) :*: ((S1 ('MetaSel ('Just "savingsPlansType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SupportedSavingsPlansType) :*: S1 ('MetaSel ('Just "termInYears") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TermInYears)) :*: (S1 ('MetaSel ('Just "paymentOption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PaymentOption) :*: S1 ('MetaSel ('Just "lookbackPeriodInDays") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LookbackPeriodInDays)))))
type AWSResponse GetSavingsPlansPurchaseRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetSavingsPlansPurchaseRecommendation

newGetSavingsPlansPurchaseRecommendation Source #

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:

$sel:nextPageToken: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:accountScope: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) for which you want to see Savings Plans purchase recommendations.

For GetSavingsPlansPurchaseRecommendation, the Filter does not 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 for which you want to see Savings Plans Purchase Recommendations. AND and OR operators are not supported.

$sel:pageSize:GetSavingsPlansPurchaseRecommendation', getSavingsPlansPurchaseRecommendation_pageSize - The number of recommendations that you want returned in a single response object.

$sel:savingsPlansType:GetSavingsPlansPurchaseRecommendation', getSavingsPlansPurchaseRecommendation_savingsPlansType - The Savings Plans recommendation type requested.

$sel:termInYears:GetSavingsPlansPurchaseRecommendation', getSavingsPlansPurchaseRecommendation_termInYears - The savings plan recommendation term used to generate these recommendations.

$sel:paymentOption:GetSavingsPlansPurchaseRecommendation', getSavingsPlansPurchaseRecommendation_paymentOption - The payment option used to generate these recommendations.

$sel:lookbackPeriodInDays:GetSavingsPlansPurchaseRecommendation', getSavingsPlansPurchaseRecommendation_lookbackPeriodInDays - The lookback period used to generate the recommendation.

Request Lenses

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_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) for which you want to see Savings Plans purchase recommendations.

For GetSavingsPlansPurchaseRecommendation, the Filter does not 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 for which you want to see Savings Plans Purchase Recommendations. AND and OR operators are not supported.

getSavingsPlansPurchaseRecommendation_pageSize :: Lens' GetSavingsPlansPurchaseRecommendation (Maybe Natural) Source #

The number of recommendations that you want returned in a single response object.

getSavingsPlansPurchaseRecommendation_termInYears :: Lens' GetSavingsPlansPurchaseRecommendation TermInYears Source #

The savings plan recommendation term used to generate these recommendations.

Destructuring the Response

data GetSavingsPlansPurchaseRecommendationResponse Source #

Constructors

GetSavingsPlansPurchaseRecommendationResponse' 

Fields

Instances

Instances details
Eq GetSavingsPlansPurchaseRecommendationResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetSavingsPlansPurchaseRecommendation

Read GetSavingsPlansPurchaseRecommendationResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetSavingsPlansPurchaseRecommendation

Show GetSavingsPlansPurchaseRecommendationResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetSavingsPlansPurchaseRecommendation

Generic GetSavingsPlansPurchaseRecommendationResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetSavingsPlansPurchaseRecommendation

NFData GetSavingsPlansPurchaseRecommendationResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetSavingsPlansPurchaseRecommendation

type Rep GetSavingsPlansPurchaseRecommendationResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetSavingsPlansPurchaseRecommendation

type Rep GetSavingsPlansPurchaseRecommendationResponse = D1 ('MetaData "GetSavingsPlansPurchaseRecommendationResponse" "Amazonka.CostExplorer.GetSavingsPlansPurchaseRecommendation" "libZSservicesZSamazonka-cost-explorerZSamazonka-cost-explorer" 'False) (C1 ('MetaCons "GetSavingsPlansPurchaseRecommendationResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextPageToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "savingsPlansPurchaseRecommendation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SavingsPlansPurchaseRecommendation))) :*: (S1 ('MetaSel ('Just "metadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SavingsPlansPurchaseRecommendationMetadata)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetSavingsPlansPurchaseRecommendationResponse Source #

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:nextPageToken: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:metadata:GetSavingsPlansPurchaseRecommendationResponse', getSavingsPlansPurchaseRecommendationResponse_metadata - Information regarding this specific recommendation set.

$sel:httpStatus:GetSavingsPlansPurchaseRecommendationResponse', getSavingsPlansPurchaseRecommendationResponse_httpStatus - The response's http status code.

Response Lenses

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.