Class: Aws::ComputeOptimizer::Types::GetLambdaFunctionRecommendationsRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-computeoptimizer/lib/aws-sdk-computeoptimizer/types.rb

Overview

Note:

When making an API call, you may pass GetLambdaFunctionRecommendationsRequest data as a hash:

{
  function_arns: ["FunctionArn"],
  account_ids: ["AccountId"],
  filters: [
    {
      name: "Finding", # accepts Finding, FindingReasonCode
      values: ["FilterValue"],
    },
  ],
  next_token: "NextToken",
  max_results: 1,
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#account_idsArray<String>

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.

Returns:

  • (Array<String>)


1693
1694
1695
1696
1697
1698
1699
1700
1701
# File 'gems/aws-sdk-computeoptimizer/lib/aws-sdk-computeoptimizer/types.rb', line 1693

class GetLambdaFunctionRecommendationsRequest < Struct.new(
  :function_arns,
  :account_ids,
  :filters,
  :next_token,
  :max_results)
  SENSITIVE = []
  include Aws::Structure
end

#filtersArray<Types::LambdaFunctionRecommendationFilter>

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



1693
1694
1695
1696
1697
1698
1699
1700
1701
# File 'gems/aws-sdk-computeoptimizer/lib/aws-sdk-computeoptimizer/types.rb', line 1693

class GetLambdaFunctionRecommendationsRequest < Struct.new(
  :function_arns,
  :account_ids,
  :filters,
  :next_token,
  :max_results)
  SENSITIVE = []
  include Aws::Structure
end

#function_arnsArray<String>

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.

Returns:

  • (Array<String>)


1693
1694
1695
1696
1697
1698
1699
1700
1701
# File 'gems/aws-sdk-computeoptimizer/lib/aws-sdk-computeoptimizer/types.rb', line 1693

class GetLambdaFunctionRecommendationsRequest < Struct.new(
  :function_arns,
  :account_ids,
  :filters,
  :next_token,
  :max_results)
  SENSITIVE = []
  include Aws::Structure
end

#max_resultsInteger

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.

Returns:

  • (Integer)


1693
1694
1695
1696
1697
1698
1699
1700
1701
# File 'gems/aws-sdk-computeoptimizer/lib/aws-sdk-computeoptimizer/types.rb', line 1693

class GetLambdaFunctionRecommendationsRequest < Struct.new(
  :function_arns,
  :account_ids,
  :filters,
  :next_token,
  :max_results)
  SENSITIVE = []
  include Aws::Structure
end

#next_tokenString

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

Returns:

  • (String)


1693
1694
1695
1696
1697
1698
1699
1700
1701
# File 'gems/aws-sdk-computeoptimizer/lib/aws-sdk-computeoptimizer/types.rb', line 1693

class GetLambdaFunctionRecommendationsRequest < Struct.new(
  :function_arns,
  :account_ids,
  :filters,
  :next_token,
  :max_results)
  SENSITIVE = []
  include Aws::Structure
end