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

Description

Returns Lambda function recommendations.

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

This operation returns paginated results.

Synopsis

Creating a Request

data GetLambdaFunctionRecommendations Source #

See: newGetLambdaFunctionRecommendations smart constructor.

Constructors

GetLambdaFunctionRecommendations' 

Fields

  • accountIds :: Maybe [Text]

    The ID of the Amazon Web Services account for which to return function 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 function recommendations.

    Only one account ID can be specified per request.

  • filters :: Maybe [LambdaFunctionRecommendationFilter]

    An array of objects to specify a filter that returns a more specific list of function recommendations.

  • functionArns :: Maybe [Text]

    The Amazon Resource Name (ARN) of the functions for which to return recommendations.

    You can specify a qualified or unqualified ARN. If you specify an unqualified ARN without a function version suffix, Compute Optimizer will return recommendations for the latest ($LATEST) version of the function. If you specify a qualified ARN with a version suffix, Compute Optimizer will return recommendations for the specified function version. For more information about using function versions, see Using versions in the Lambda Developer Guide.

  • maxResults :: Maybe Natural

    The maximum number of function 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 function recommendations.

Instances

Instances details
ToJSON GetLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

ToHeaders GetLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

ToPath GetLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

ToQuery GetLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

AWSPager GetLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

AWSRequest GetLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

Generic GetLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

Associated Types

type Rep GetLambdaFunctionRecommendations :: Type -> Type #

Read GetLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

Show GetLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

NFData GetLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

Eq GetLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

Hashable GetLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

type AWSResponse GetLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

type Rep GetLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

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

newGetLambdaFunctionRecommendations :: GetLambdaFunctionRecommendations Source #

Create a value of GetLambdaFunctionRecommendations 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:GetLambdaFunctionRecommendations', getLambdaFunctionRecommendations_accountIds - The ID of the Amazon Web Services account for which to return function 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 function recommendations.

Only one account ID can be specified per request.

$sel:filters:GetLambdaFunctionRecommendations', getLambdaFunctionRecommendations_filters - An array of objects to specify a filter that returns a more specific list of function recommendations.

$sel:functionArns:GetLambdaFunctionRecommendations', getLambdaFunctionRecommendations_functionArns - The Amazon Resource Name (ARN) of the functions for which to return recommendations.

You can specify a qualified or unqualified ARN. If you specify an unqualified ARN without a function version suffix, Compute Optimizer will return recommendations for the latest ($LATEST) version of the function. If you specify a qualified ARN with a version suffix, Compute Optimizer will return recommendations for the specified function version. For more information about using function versions, see Using versions in the Lambda Developer Guide.

$sel:maxResults:GetLambdaFunctionRecommendations', getLambdaFunctionRecommendations_maxResults - The maximum number of function recommendations to return with a single request.

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

GetLambdaFunctionRecommendations, getLambdaFunctionRecommendations_nextToken - The token to advance to the next page of function recommendations.

Request Lenses

getLambdaFunctionRecommendations_accountIds :: Lens' GetLambdaFunctionRecommendations (Maybe [Text]) Source #

The ID of the Amazon Web Services account for which to return function 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 function recommendations.

Only one account ID can be specified per request.

getLambdaFunctionRecommendations_filters :: Lens' GetLambdaFunctionRecommendations (Maybe [LambdaFunctionRecommendationFilter]) Source #

An array of objects to specify a filter that returns a more specific list of function recommendations.

getLambdaFunctionRecommendations_functionArns :: Lens' GetLambdaFunctionRecommendations (Maybe [Text]) Source #

The Amazon Resource Name (ARN) of the functions for which to return recommendations.

You can specify a qualified or unqualified ARN. If you specify an unqualified ARN without a function version suffix, Compute Optimizer will return recommendations for the latest ($LATEST) version of the function. If you specify a qualified ARN with a version suffix, Compute Optimizer will return recommendations for the specified function version. For more information about using function versions, see Using versions in the Lambda Developer Guide.

getLambdaFunctionRecommendations_maxResults :: Lens' GetLambdaFunctionRecommendations (Maybe Natural) Source #

The maximum number of function recommendations to return with a single request.

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

getLambdaFunctionRecommendations_nextToken :: Lens' GetLambdaFunctionRecommendations (Maybe Text) Source #

The token to advance to the next page of function recommendations.

Destructuring the Response

data GetLambdaFunctionRecommendationsResponse Source #

Constructors

GetLambdaFunctionRecommendationsResponse' 

Fields

Instances

Instances details
Generic GetLambdaFunctionRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

Read GetLambdaFunctionRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

Show GetLambdaFunctionRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

NFData GetLambdaFunctionRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

Eq GetLambdaFunctionRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

type Rep GetLambdaFunctionRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

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

newGetLambdaFunctionRecommendationsResponse Source #

Create a value of GetLambdaFunctionRecommendationsResponse 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:lambdaFunctionRecommendations:GetLambdaFunctionRecommendationsResponse', getLambdaFunctionRecommendationsResponse_lambdaFunctionRecommendations - An array of objects that describe function recommendations.

GetLambdaFunctionRecommendations, getLambdaFunctionRecommendationsResponse_nextToken - The token to use to advance to the next page of function recommendations.

This value is null when there are no more pages of function recommendations to return.

$sel:httpStatus:GetLambdaFunctionRecommendationsResponse', getLambdaFunctionRecommendationsResponse_httpStatus - The response's http status code.

Response Lenses

getLambdaFunctionRecommendationsResponse_nextToken :: Lens' GetLambdaFunctionRecommendationsResponse (Maybe Text) Source #

The token to use to advance to the next page of function recommendations.

This value is null when there are no more pages of function recommendations to return.