#[non_exhaustive]pub struct GetLambdaFunctionRecommendationsInput { /* private fields */ }
Implementations§
source§impl GetLambdaFunctionRecommendationsInput
impl GetLambdaFunctionRecommendationsInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetLambdaFunctionRecommendations, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetLambdaFunctionRecommendations, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<GetLambdaFunctionRecommendations
>
Examples found in repository?
2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::GetLambdaFunctionRecommendations,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::GetLambdaFunctionRecommendationsError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetLambdaFunctionRecommendationsOutput,
aws_smithy_http::result::SdkError<crate::error::GetLambdaFunctionRecommendationsError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture GetLambdaFunctionRecommendationsInput
.
source§impl GetLambdaFunctionRecommendationsInput
impl GetLambdaFunctionRecommendationsInput
sourcepub fn function_arns(&self) -> Option<&[String]>
pub fn function_arns(&self) -> Option<&[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.
sourcepub fn account_ids(&self) -> Option<&[String]>
pub fn account_ids(&self) -> Option<&[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.
sourcepub fn filters(&self) -> Option<&[LambdaFunctionRecommendationFilter]>
pub fn filters(&self) -> Option<&[LambdaFunctionRecommendationFilter]>
An array of objects to specify a filter that returns a more specific list of function recommendations.
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
The token to advance to the next page of function recommendations.
sourcepub fn max_results(&self) -> Option<i32>
pub fn max_results(&self) -> Option<i32>
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.
Trait Implementations§
source§impl Clone for GetLambdaFunctionRecommendationsInput
impl Clone for GetLambdaFunctionRecommendationsInput
source§fn clone(&self) -> GetLambdaFunctionRecommendationsInput
fn clone(&self) -> GetLambdaFunctionRecommendationsInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more