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.GetReservationPurchaseRecommendation

Description

Gets recommendations for which reservations to purchase. These recommendations could help you reduce your costs. Reservations provide a discounted hourly rate (up to 75%) compared to On-Demand pricing.

Amazon Web Services generates your recommendations by identifying your On-Demand usage during a specific time period and collecting your usage into categories that are eligible for a reservation. After Amazon Web Services has these categories, it simulates every combination of reservations in each category of usage to identify the best number of each type of RI to purchase to maximize your estimated savings.

For example, Amazon Web Services automatically aggregates your Amazon EC2 Linux, shared tenancy, and c4 family usage in the US West (Oregon) Region and recommends that you buy size-flexible regional reservations to apply to the c4 family usage. Amazon Web Services recommends the smallest size instance in an instance family. This makes it easier to purchase a size-flexible RI. Amazon Web Services also shows the equal number of normalized units so that you can purchase any instance size that you want. For this example, your RI recommendation would be for c4.large because that is the smallest size instance in the c4 instance family.

Synopsis

Creating a Request

data GetReservationPurchaseRecommendation Source #

Constructors

GetReservationPurchaseRecommendation' 

Fields

Instances

Instances details
Eq GetReservationPurchaseRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetReservationPurchaseRecommendation

Read GetReservationPurchaseRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetReservationPurchaseRecommendation

Show GetReservationPurchaseRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetReservationPurchaseRecommendation

Generic GetReservationPurchaseRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetReservationPurchaseRecommendation

NFData GetReservationPurchaseRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetReservationPurchaseRecommendation

Hashable GetReservationPurchaseRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetReservationPurchaseRecommendation

ToJSON GetReservationPurchaseRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetReservationPurchaseRecommendation

AWSRequest GetReservationPurchaseRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetReservationPurchaseRecommendation

ToHeaders GetReservationPurchaseRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetReservationPurchaseRecommendation

ToPath GetReservationPurchaseRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetReservationPurchaseRecommendation

ToQuery GetReservationPurchaseRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetReservationPurchaseRecommendation

type Rep GetReservationPurchaseRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetReservationPurchaseRecommendation

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

Defined in Amazonka.CostExplorer.GetReservationPurchaseRecommendation

newGetReservationPurchaseRecommendation Source #

Create a value of GetReservationPurchaseRecommendation 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:GetReservationPurchaseRecommendation', getReservationPurchaseRecommendation_nextPageToken - The pagination token that indicates the next set of results that you want to retrieve.

$sel:termInYears:GetReservationPurchaseRecommendation', getReservationPurchaseRecommendation_termInYears - The reservation term that you want recommendations for.

$sel:serviceSpecification:GetReservationPurchaseRecommendation', getReservationPurchaseRecommendation_serviceSpecification - The hardware specifications for the service instances that you want recommendations for, such as standard or convertible Amazon EC2 instances.

$sel:accountScope:GetReservationPurchaseRecommendation', getReservationPurchaseRecommendation_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:accountId:GetReservationPurchaseRecommendation', getReservationPurchaseRecommendation_accountId - The account ID that is associated with the recommendation.

$sel:filter':GetReservationPurchaseRecommendation', getReservationPurchaseRecommendation_filter - Undocumented member.

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

$sel:lookbackPeriodInDays:GetReservationPurchaseRecommendation', getReservationPurchaseRecommendation_lookbackPeriodInDays - The number of previous days that you want Amazon Web Services to consider when it calculates your recommendations.

$sel:paymentOption:GetReservationPurchaseRecommendation', getReservationPurchaseRecommendation_paymentOption - The reservation purchase option that you want recommendations for.

$sel:service:GetReservationPurchaseRecommendation', getReservationPurchaseRecommendation_service - The specific service that you want recommendations for.

Request Lenses

getReservationPurchaseRecommendation_nextPageToken :: Lens' GetReservationPurchaseRecommendation (Maybe Text) Source #

The pagination token that indicates the next set of results that you want to retrieve.

getReservationPurchaseRecommendation_serviceSpecification :: Lens' GetReservationPurchaseRecommendation (Maybe ServiceSpecification) Source #

The hardware specifications for the service instances that you want recommendations for, such as standard or convertible Amazon EC2 instances.

getReservationPurchaseRecommendation_accountScope :: Lens' GetReservationPurchaseRecommendation (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.

getReservationPurchaseRecommendation_accountId :: Lens' GetReservationPurchaseRecommendation (Maybe Text) Source #

The account ID that is associated with the recommendation.

getReservationPurchaseRecommendation_pageSize :: Lens' GetReservationPurchaseRecommendation (Maybe Natural) Source #

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

getReservationPurchaseRecommendation_lookbackPeriodInDays :: Lens' GetReservationPurchaseRecommendation (Maybe LookbackPeriodInDays) Source #

The number of previous days that you want Amazon Web Services to consider when it calculates your recommendations.

Destructuring the Response

data GetReservationPurchaseRecommendationResponse Source #

Constructors

GetReservationPurchaseRecommendationResponse' 

Fields

Instances

Instances details
Eq GetReservationPurchaseRecommendationResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetReservationPurchaseRecommendation

Read GetReservationPurchaseRecommendationResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetReservationPurchaseRecommendation

Show GetReservationPurchaseRecommendationResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetReservationPurchaseRecommendation

Generic GetReservationPurchaseRecommendationResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetReservationPurchaseRecommendation

NFData GetReservationPurchaseRecommendationResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetReservationPurchaseRecommendation

type Rep GetReservationPurchaseRecommendationResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetReservationPurchaseRecommendation

type Rep GetReservationPurchaseRecommendationResponse = D1 ('MetaData "GetReservationPurchaseRecommendationResponse" "Amazonka.CostExplorer.GetReservationPurchaseRecommendation" "libZSservicesZSamazonka-cost-explorerZSamazonka-cost-explorer" 'False) (C1 ('MetaCons "GetReservationPurchaseRecommendationResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextPageToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "recommendations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ReservationPurchaseRecommendation]))) :*: (S1 ('MetaSel ('Just "metadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ReservationPurchaseRecommendationMetadata)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetReservationPurchaseRecommendationResponse Source #

Create a value of GetReservationPurchaseRecommendationResponse 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:GetReservationPurchaseRecommendation', getReservationPurchaseRecommendationResponse_nextPageToken - The pagination token for the next set of retrievable results.

$sel:recommendations:GetReservationPurchaseRecommendationResponse', getReservationPurchaseRecommendationResponse_recommendations - Recommendations for reservations to purchase.

$sel:metadata:GetReservationPurchaseRecommendationResponse', getReservationPurchaseRecommendationResponse_metadata - Information about this specific recommendation call, such as the time stamp for when Cost Explorer generated this recommendation.

$sel:httpStatus:GetReservationPurchaseRecommendationResponse', getReservationPurchaseRecommendationResponse_httpStatus - The response's http status code.

Response Lenses

getReservationPurchaseRecommendationResponse_metadata :: Lens' GetReservationPurchaseRecommendationResponse (Maybe ReservationPurchaseRecommendationMetadata) Source #

Information about this specific recommendation call, such as the time stamp for when Cost Explorer generated this recommendation.