amazonka-compute-optimizer-2.0: Amazon Compute Optimizer SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

Description

Returns Auto Scaling group recommendations.

Compute Optimizer generates recommendations for Amazon EC2 Auto Scaling groups that meet a specific set of requirements. For more information, see the Supported resources and requirements in the Compute Optimizer User Guide.

Synopsis

Creating a Request

data GetAutoScalingGroupRecommendations Source #

Constructors

GetAutoScalingGroupRecommendations' 

Fields

  • accountIds :: Maybe [Text]

    The ID of the Amazon Web Services account for which to return Auto Scaling group recommendations.

    If your account is the management account of an organization, use this parameter to specify the member account for which you want to return Auto Scaling group recommendations.

    Only one account ID can be specified per request.

  • autoScalingGroupArns :: Maybe [Text]

    The Amazon Resource Name (ARN) of the Auto Scaling groups for which to return recommendations.

  • filters :: Maybe [Filter]

    An array of objects to specify a filter that returns a more specific list of Auto Scaling group recommendations.

  • maxResults :: Maybe Natural

    The maximum number of Auto Scaling group recommendations to return with a single request.

    To retrieve the remaining results, make another request with the returned nextToken value.

  • nextToken :: Maybe Text

    The token to advance to the next page of Auto Scaling group recommendations.

  • recommendationPreferences :: Maybe RecommendationPreferences

    An object to specify the preferences for the Auto Scaling group recommendations to return in the response.

Instances

Instances details
ToJSON GetAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

ToHeaders GetAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

ToPath GetAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

ToQuery GetAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

AWSRequest GetAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

Generic GetAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

Associated Types

type Rep GetAutoScalingGroupRecommendations :: Type -> Type #

Read GetAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

Show GetAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

NFData GetAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

Eq GetAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

Hashable GetAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

type AWSResponse GetAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

type Rep GetAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

type Rep GetAutoScalingGroupRecommendations = D1 ('MetaData "GetAutoScalingGroupRecommendations" "Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations" "amazonka-compute-optimizer-2.0-5JAMFRZoNrnJ0UCJqIgHbk" 'False) (C1 ('MetaCons "GetAutoScalingGroupRecommendations'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "accountIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "autoScalingGroupArns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Filter])))) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "recommendationPreferences") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RecommendationPreferences))))))

newGetAutoScalingGroupRecommendations :: GetAutoScalingGroupRecommendations Source #

Create a value of GetAutoScalingGroupRecommendations 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:accountIds:GetAutoScalingGroupRecommendations', getAutoScalingGroupRecommendations_accountIds - The ID of the Amazon Web Services account for which to return Auto Scaling group recommendations.

If your account is the management account of an organization, use this parameter to specify the member account for which you want to return Auto Scaling group recommendations.

Only one account ID can be specified per request.

$sel:autoScalingGroupArns:GetAutoScalingGroupRecommendations', getAutoScalingGroupRecommendations_autoScalingGroupArns - The Amazon Resource Name (ARN) of the Auto Scaling groups for which to return recommendations.

$sel:filters:GetAutoScalingGroupRecommendations', getAutoScalingGroupRecommendations_filters - An array of objects to specify a filter that returns a more specific list of Auto Scaling group recommendations.

$sel:maxResults:GetAutoScalingGroupRecommendations', getAutoScalingGroupRecommendations_maxResults - The maximum number of Auto Scaling group recommendations to return with a single request.

To retrieve the remaining results, make another request with the returned nextToken value.

GetAutoScalingGroupRecommendations, getAutoScalingGroupRecommendations_nextToken - The token to advance to the next page of Auto Scaling group recommendations.

$sel:recommendationPreferences:GetAutoScalingGroupRecommendations', getAutoScalingGroupRecommendations_recommendationPreferences - An object to specify the preferences for the Auto Scaling group recommendations to return in the response.

Request Lenses

getAutoScalingGroupRecommendations_accountIds :: Lens' GetAutoScalingGroupRecommendations (Maybe [Text]) Source #

The ID of the Amazon Web Services account for which to return Auto Scaling group recommendations.

If your account is the management account of an organization, use this parameter to specify the member account for which you want to return Auto Scaling group recommendations.

Only one account ID can be specified per request.

getAutoScalingGroupRecommendations_autoScalingGroupArns :: Lens' GetAutoScalingGroupRecommendations (Maybe [Text]) Source #

The Amazon Resource Name (ARN) of the Auto Scaling groups for which to return recommendations.

getAutoScalingGroupRecommendations_filters :: Lens' GetAutoScalingGroupRecommendations (Maybe [Filter]) Source #

An array of objects to specify a filter that returns a more specific list of Auto Scaling group recommendations.

getAutoScalingGroupRecommendations_maxResults :: Lens' GetAutoScalingGroupRecommendations (Maybe Natural) Source #

The maximum number of Auto Scaling group recommendations to return with a single request.

To retrieve the remaining results, make another request with the returned nextToken value.

getAutoScalingGroupRecommendations_nextToken :: Lens' GetAutoScalingGroupRecommendations (Maybe Text) Source #

The token to advance to the next page of Auto Scaling group recommendations.

getAutoScalingGroupRecommendations_recommendationPreferences :: Lens' GetAutoScalingGroupRecommendations (Maybe RecommendationPreferences) Source #

An object to specify the preferences for the Auto Scaling group recommendations to return in the response.

Destructuring the Response

data GetAutoScalingGroupRecommendationsResponse Source #

Constructors

GetAutoScalingGroupRecommendationsResponse' 

Fields

Instances

Instances details
Generic GetAutoScalingGroupRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

Read GetAutoScalingGroupRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

Show GetAutoScalingGroupRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

NFData GetAutoScalingGroupRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

Eq GetAutoScalingGroupRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

type Rep GetAutoScalingGroupRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

type Rep GetAutoScalingGroupRecommendationsResponse = D1 ('MetaData "GetAutoScalingGroupRecommendationsResponse" "Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations" "amazonka-compute-optimizer-2.0-5JAMFRZoNrnJ0UCJqIgHbk" 'False) (C1 ('MetaCons "GetAutoScalingGroupRecommendationsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "autoScalingGroupRecommendations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AutoScalingGroupRecommendation])) :*: S1 ('MetaSel ('Just "errors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [GetRecommendationError]))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetAutoScalingGroupRecommendationsResponse Source #

Create a value of GetAutoScalingGroupRecommendationsResponse 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:autoScalingGroupRecommendations:GetAutoScalingGroupRecommendationsResponse', getAutoScalingGroupRecommendationsResponse_autoScalingGroupRecommendations - An array of objects that describe Auto Scaling group recommendations.

$sel:errors:GetAutoScalingGroupRecommendationsResponse', getAutoScalingGroupRecommendationsResponse_errors - An array of objects that describe errors of the request.

For example, an error is returned if you request recommendations for an unsupported Auto Scaling group.

GetAutoScalingGroupRecommendations, getAutoScalingGroupRecommendationsResponse_nextToken - The token to use to advance to the next page of Auto Scaling group recommendations.

This value is null when there are no more pages of Auto Scaling group recommendations to return.

$sel:httpStatus:GetAutoScalingGroupRecommendationsResponse', getAutoScalingGroupRecommendationsResponse_httpStatus - The response's http status code.

Response Lenses

getAutoScalingGroupRecommendationsResponse_errors :: Lens' GetAutoScalingGroupRecommendationsResponse (Maybe [GetRecommendationError]) Source #

An array of objects that describe errors of the request.

For example, an error is returned if you request recommendations for an unsupported Auto Scaling group.

getAutoScalingGroupRecommendationsResponse_nextToken :: Lens' GetAutoScalingGroupRecommendationsResponse (Maybe Text) Source #

The token to use to advance to the next page of Auto Scaling group recommendations.

This value is null when there are no more pages of Auto Scaling group recommendations to return.