aws_sdk_computeoptimizer/client/get_lambda_function_recommendations.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetLambdaFunctionRecommendations`](crate::operation::get_lambda_function_recommendations::builders::GetLambdaFunctionRecommendationsFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::get_lambda_function_recommendations::builders::GetLambdaFunctionRecommendationsFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`function_arns(impl Into<String>)`](crate::operation::get_lambda_function_recommendations::builders::GetLambdaFunctionRecommendationsFluentBuilder::function_arns) / [`set_function_arns(Option<Vec::<String>>)`](crate::operation::get_lambda_function_recommendations::builders::GetLambdaFunctionRecommendationsFluentBuilder::set_function_arns):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of the functions for which to return recommendations.</p> <p>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 (<code>$LATEST</code>) 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 <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html#versioning-versions-using">Using versions</a> in the <i>Lambda Developer Guide</i>.</p><br>
8 /// - [`account_ids(impl Into<String>)`](crate::operation::get_lambda_function_recommendations::builders::GetLambdaFunctionRecommendationsFluentBuilder::account_ids) / [`set_account_ids(Option<Vec::<String>>)`](crate::operation::get_lambda_function_recommendations::builders::GetLambdaFunctionRecommendationsFluentBuilder::set_account_ids):<br>required: **false**<br><p>The ID of the Amazon Web Services account for which to return function recommendations.</p> <p>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.</p> <p>Only one account ID can be specified per request.</p><br>
9 /// - [`filters(LambdaFunctionRecommendationFilter)`](crate::operation::get_lambda_function_recommendations::builders::GetLambdaFunctionRecommendationsFluentBuilder::filters) / [`set_filters(Option<Vec::<LambdaFunctionRecommendationFilter>>)`](crate::operation::get_lambda_function_recommendations::builders::GetLambdaFunctionRecommendationsFluentBuilder::set_filters):<br>required: **false**<br><p>An array of objects to specify a filter that returns a more specific list of function recommendations.</p><br>
10 /// - [`next_token(impl Into<String>)`](crate::operation::get_lambda_function_recommendations::builders::GetLambdaFunctionRecommendationsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::get_lambda_function_recommendations::builders::GetLambdaFunctionRecommendationsFluentBuilder::set_next_token):<br>required: **false**<br><p>The token to advance to the next page of function recommendations.</p><br>
11 /// - [`max_results(i32)`](crate::operation::get_lambda_function_recommendations::builders::GetLambdaFunctionRecommendationsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::get_lambda_function_recommendations::builders::GetLambdaFunctionRecommendationsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of function recommendations to return with a single request.</p> <p>To retrieve the remaining results, make another request with the returned <code>nextToken</code> value.</p><br>
12 /// - On success, responds with [`GetLambdaFunctionRecommendationsOutput`](crate::operation::get_lambda_function_recommendations::GetLambdaFunctionRecommendationsOutput) with field(s):
13 /// - [`next_token(Option<String>)`](crate::operation::get_lambda_function_recommendations::GetLambdaFunctionRecommendationsOutput::next_token): <p>The token to use to advance to the next page of function recommendations.</p> <p>This value is null when there are no more pages of function recommendations to return.</p>
14 /// - [`lambda_function_recommendations(Option<Vec::<LambdaFunctionRecommendation>>)`](crate::operation::get_lambda_function_recommendations::GetLambdaFunctionRecommendationsOutput::lambda_function_recommendations): <p>An array of objects that describe function recommendations.</p>
15 /// - On failure, responds with [`SdkError<GetLambdaFunctionRecommendationsError>`](crate::operation::get_lambda_function_recommendations::GetLambdaFunctionRecommendationsError)
16 pub fn get_lambda_function_recommendations(
17 &self,
18 ) -> crate::operation::get_lambda_function_recommendations::builders::GetLambdaFunctionRecommendationsFluentBuilder {
19 crate::operation::get_lambda_function_recommendations::builders::GetLambdaFunctionRecommendationsFluentBuilder::new(self.handle.clone())
20 }
21}