libZSservicesZSamazonka-compute-optimizerZSamazonka-compute-optimizer
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.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.

  • filters :: Maybe [Filter]

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

  • autoScalingGroupArns :: Maybe [Text]

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

  • recommendationPreferences :: Maybe RecommendationPreferences

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

  • nextToken :: Maybe Text

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

  • maxResults :: Maybe Int

    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.

Instances

Instances details
Eq GetAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

Read GetAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

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

NFData GetAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

Hashable GetAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

ToJSON GetAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

AWSRequest 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

type Rep GetAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

type Rep GetAutoScalingGroupRecommendations = D1 ('MetaData "GetAutoScalingGroupRecommendations" "Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations" "libZSservicesZSamazonka-compute-optimizerZSamazonka-compute-optimizer" 'False) (C1 ('MetaCons "GetAutoScalingGroupRecommendations'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "accountIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Filter])) :*: S1 ('MetaSel ('Just "autoScalingGroupArns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))) :*: (S1 ('MetaSel ('Just "recommendationPreferences") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RecommendationPreferences)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))))
type AWSResponse GetAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

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:filters:GetAutoScalingGroupRecommendations', getAutoScalingGroupRecommendations_filters - An array of objects to specify a filter that returns a more specific list of Auto Scaling group recommendations.

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

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

$sel:nextToken:GetAutoScalingGroupRecommendations', getAutoScalingGroupRecommendations_nextToken - The token to advance to the next page 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.

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_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_autoScalingGroupArns :: Lens' GetAutoScalingGroupRecommendations (Maybe [Text]) Source #

The Amazon Resource Name (ARN) of the Auto Scaling groups for which to return 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.

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

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

getAutoScalingGroupRecommendations_maxResults :: Lens' GetAutoScalingGroupRecommendations (Maybe Int) 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.

Destructuring the Response

data GetAutoScalingGroupRecommendationsResponse Source #

Constructors

GetAutoScalingGroupRecommendationsResponse' 

Fields

Instances

Instances details
Eq 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

Generic GetAutoScalingGroupRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetAutoScalingGroupRecommendations

NFData 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" "libZSservicesZSamazonka-compute-optimizerZSamazonka-compute-optimizer" 'False) (C1 ('MetaCons "GetAutoScalingGroupRecommendationsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "autoScalingGroupRecommendations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AutoScalingGroupRecommendation])) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "errors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [GetRecommendationError])) :*: 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:nextToken: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: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.

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

Response Lenses

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.

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.