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

Synopsis

Creating a Request

data GetLambdaFunctionRecommendations Source #

See: newGetLambdaFunctionRecommendations smart constructor.

Constructors

GetLambdaFunctionRecommendations' 

Fields

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

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

  • nextToken :: Maybe Text

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

  • maxResults :: Maybe Int

    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.

Instances

Instances details
Eq GetLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

Read GetLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

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

NFData GetLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

Hashable GetLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

ToJSON GetLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

AWSRequest 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

type Rep GetLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

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

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

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: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: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:nextToken:GetLambdaFunctionRecommendations', getLambdaFunctionRecommendations_nextToken - The token to advance to the next page of function recommendations.

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

Request Lenses

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_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_nextToken :: Lens' GetLambdaFunctionRecommendations (Maybe Text) Source #

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

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

Destructuring the Response

data GetLambdaFunctionRecommendationsResponse Source #

Constructors

GetLambdaFunctionRecommendationsResponse' 

Fields

Instances

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

Generic GetLambdaFunctionRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetLambdaFunctionRecommendations

NFData 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" "libZSservicesZSamazonka-compute-optimizerZSamazonka-compute-optimizer" 'False) (C1 ('MetaCons "GetLambdaFunctionRecommendationsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "lambdaFunctionRecommendations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [LambdaFunctionRecommendation])) :*: 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:nextToken: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:lambdaFunctionRecommendations:GetLambdaFunctionRecommendationsResponse', getLambdaFunctionRecommendationsResponse_lambdaFunctionRecommendations - An array of objects that describe function recommendations.

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