Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data GetLambdaFunctionRecommendations = GetLambdaFunctionRecommendations' {
- functionArns :: Maybe [Text]
- accountIds :: Maybe [Text]
- filters :: Maybe [LambdaFunctionRecommendationFilter]
- nextToken :: Maybe Text
- maxResults :: Maybe Int
- newGetLambdaFunctionRecommendations :: GetLambdaFunctionRecommendations
- getLambdaFunctionRecommendations_functionArns :: Lens' GetLambdaFunctionRecommendations (Maybe [Text])
- getLambdaFunctionRecommendations_accountIds :: Lens' GetLambdaFunctionRecommendations (Maybe [Text])
- getLambdaFunctionRecommendations_filters :: Lens' GetLambdaFunctionRecommendations (Maybe [LambdaFunctionRecommendationFilter])
- getLambdaFunctionRecommendations_nextToken :: Lens' GetLambdaFunctionRecommendations (Maybe Text)
- getLambdaFunctionRecommendations_maxResults :: Lens' GetLambdaFunctionRecommendations (Maybe Int)
- data GetLambdaFunctionRecommendationsResponse = GetLambdaFunctionRecommendationsResponse' {}
- newGetLambdaFunctionRecommendationsResponse :: Int -> GetLambdaFunctionRecommendationsResponse
- getLambdaFunctionRecommendationsResponse_nextToken :: Lens' GetLambdaFunctionRecommendationsResponse (Maybe Text)
- getLambdaFunctionRecommendationsResponse_lambdaFunctionRecommendations :: Lens' GetLambdaFunctionRecommendationsResponse (Maybe [LambdaFunctionRecommendation])
- getLambdaFunctionRecommendationsResponse_httpStatus :: Lens' GetLambdaFunctionRecommendationsResponse Int
Creating a Request
data GetLambdaFunctionRecommendations Source #
See: newGetLambdaFunctionRecommendations
smart constructor.
GetLambdaFunctionRecommendations' | |
|
Instances
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 #
See: newGetLambdaFunctionRecommendationsResponse
smart constructor.
GetLambdaFunctionRecommendationsResponse' | |
|
Instances
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.
getLambdaFunctionRecommendationsResponse_lambdaFunctionRecommendations :: Lens' GetLambdaFunctionRecommendationsResponse (Maybe [LambdaFunctionRecommendation]) Source #
An array of objects that describe function recommendations.
getLambdaFunctionRecommendationsResponse_httpStatus :: Lens' GetLambdaFunctionRecommendationsResponse Int Source #
The response's http status code.