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

Description

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

Creating a Request

data GetRightsizingRecommendation Source #

See: newGetRightsizingRecommendation smart constructor.

Constructors

GetRightsizingRecommendation' 

Fields

  • nextPageToken :: Maybe Text

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

  • configuration :: Maybe RightsizingRecommendationConfiguration

    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.

  • filter' :: Maybe Expression
     
  • pageSize :: Maybe Natural

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

  • service :: Text

    The specific service that you want recommendations for. The only valid value for GetRightsizingRecommendation is "AmazonEC2".

Instances

Instances details
Eq GetRightsizingRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetRightsizingRecommendation

Read GetRightsizingRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetRightsizingRecommendation

Show GetRightsizingRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetRightsizingRecommendation

Generic GetRightsizingRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetRightsizingRecommendation

Associated Types

type Rep GetRightsizingRecommendation :: Type -> Type #

NFData GetRightsizingRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetRightsizingRecommendation

Hashable GetRightsizingRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetRightsizingRecommendation

ToJSON GetRightsizingRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetRightsizingRecommendation

AWSRequest GetRightsizingRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetRightsizingRecommendation

ToHeaders GetRightsizingRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetRightsizingRecommendation

ToPath GetRightsizingRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetRightsizingRecommendation

ToQuery GetRightsizingRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetRightsizingRecommendation

type Rep GetRightsizingRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetRightsizingRecommendation

type Rep GetRightsizingRecommendation = D1 ('MetaData "GetRightsizingRecommendation" "Amazonka.CostExplorer.GetRightsizingRecommendation" "libZSservicesZSamazonka-cost-explorerZSamazonka-cost-explorer" 'False) (C1 ('MetaCons "GetRightsizingRecommendation'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextPageToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "configuration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RightsizingRecommendationConfiguration))) :*: (S1 ('MetaSel ('Just "filter'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Expression)) :*: (S1 ('MetaSel ('Just "pageSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "service") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse GetRightsizingRecommendation Source # 
Instance details

Defined in Amazonka.CostExplorer.GetRightsizingRecommendation

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_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 #

Constructors

GetRightsizingRecommendationResponse' 

Fields

Instances

Instances details
Eq GetRightsizingRecommendationResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetRightsizingRecommendation

Read GetRightsizingRecommendationResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetRightsizingRecommendation

Show GetRightsizingRecommendationResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetRightsizingRecommendation

Generic GetRightsizingRecommendationResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetRightsizingRecommendation

NFData GetRightsizingRecommendationResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetRightsizingRecommendation

type Rep GetRightsizingRecommendationResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.GetRightsizingRecommendation

type Rep GetRightsizingRecommendationResponse = D1 ('MetaData "GetRightsizingRecommendationResponse" "Amazonka.CostExplorer.GetRightsizingRecommendation" "libZSservicesZSamazonka-cost-explorerZSamazonka-cost-explorer" 'False) (C1 ('MetaCons "GetRightsizingRecommendationResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "summary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RightsizingRecommendationSummary)) :*: (S1 ('MetaSel ('Just "nextPageToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "rightsizingRecommendations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [RightsizingRecommendation])))) :*: (S1 ('MetaSel ('Just "metadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RightsizingRecommendationMetadata)) :*: (S1 ('MetaSel ('Just "configuration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RightsizingRecommendationConfiguration)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

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