aws_sdk_computeoptimizer/client/
get_ecs_service_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 [`GetECSServiceRecommendations`](crate::operation::get_ecs_service_recommendations::builders::GetECSServiceRecommendationsFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`service_arns(impl Into<String>)`](crate::operation::get_ecs_service_recommendations::builders::GetECSServiceRecommendationsFluentBuilder::service_arns) / [`set_service_arns(Option<Vec::<String>>)`](crate::operation::get_ecs_service_recommendations::builders::GetECSServiceRecommendationsFluentBuilder::set_service_arns):<br>required: **false**<br><p>The ARN that identifies the Amazon ECS service.</p> <p>The following is the format of the ARN:</p> <p><code>arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name</code></p><br>
7    ///   - [`next_token(impl Into<String>)`](crate::operation::get_ecs_service_recommendations::builders::GetECSServiceRecommendationsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::get_ecs_service_recommendations::builders::GetECSServiceRecommendationsFluentBuilder::set_next_token):<br>required: **false**<br><p>The token to advance to the next page of Amazon ECS service recommendations.</p><br>
8    ///   - [`max_results(i32)`](crate::operation::get_ecs_service_recommendations::builders::GetECSServiceRecommendationsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::get_ecs_service_recommendations::builders::GetECSServiceRecommendationsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of Amazon ECS service 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>
9    ///   - [`filters(EcsServiceRecommendationFilter)`](crate::operation::get_ecs_service_recommendations::builders::GetECSServiceRecommendationsFluentBuilder::filters) / [`set_filters(Option<Vec::<EcsServiceRecommendationFilter>>)`](crate::operation::get_ecs_service_recommendations::builders::GetECSServiceRecommendationsFluentBuilder::set_filters):<br>required: **false**<br><p>An array of objects to specify a filter that returns a more specific list of Amazon ECS service recommendations.</p><br>
10    ///   - [`account_ids(impl Into<String>)`](crate::operation::get_ecs_service_recommendations::builders::GetECSServiceRecommendationsFluentBuilder::account_ids) / [`set_account_ids(Option<Vec::<String>>)`](crate::operation::get_ecs_service_recommendations::builders::GetECSServiceRecommendationsFluentBuilder::set_account_ids):<br>required: **false**<br><p>Return the Amazon ECS service recommendations to the specified Amazon Web Services account IDs.</p> <p>If your account is the management account or the delegated administrator of an organization, use this parameter to return the Amazon ECS service recommendations to specific member accounts.</p> <p>You can only specify one account ID per request.</p><br>
11    /// - On success, responds with [`GetEcsServiceRecommendationsOutput`](crate::operation::get_ecs_service_recommendations::GetEcsServiceRecommendationsOutput) with field(s):
12    ///   - [`next_token(Option<String>)`](crate::operation::get_ecs_service_recommendations::GetEcsServiceRecommendationsOutput::next_token): <p>The token to advance to the next page of Amazon ECS service recommendations.</p>
13    ///   - [`ecs_service_recommendations(Option<Vec::<EcsServiceRecommendation>>)`](crate::operation::get_ecs_service_recommendations::GetEcsServiceRecommendationsOutput::ecs_service_recommendations): <p>An array of objects that describe the Amazon ECS service recommendations.</p>
14    ///   - [`errors(Option<Vec::<GetRecommendationError>>)`](crate::operation::get_ecs_service_recommendations::GetEcsServiceRecommendationsOutput::errors): <p>An array of objects that describe errors of the request.</p>
15    /// - On failure, responds with [`SdkError<GetECSServiceRecommendationsError>`](crate::operation::get_ecs_service_recommendations::GetECSServiceRecommendationsError)
16    pub fn get_ecs_service_recommendations(
17        &self,
18    ) -> crate::operation::get_ecs_service_recommendations::builders::GetECSServiceRecommendationsFluentBuilder {
19        crate::operation::get_ecs_service_recommendations::builders::GetECSServiceRecommendationsFluentBuilder::new(self.handle.clone())
20    }
21}