1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetECSServiceRecommendations`](crate::operation::get_ecs_service_recommendations::builders::GetECSServiceRecommendationsFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`GetEcsServiceRecommendationsOutput`](crate::operation::get_ecs_service_recommendations::GetEcsServiceRecommendationsOutput) with field(s):
    ///   - [`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>
    ///   - [`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>
    ///   - [`errors(Option<Vec::<GetRecommendationError>>)`](crate::operation::get_ecs_service_recommendations::GetEcsServiceRecommendationsOutput::errors): <p> An array of objects that describe errors of the request. </p>
    /// - On failure, responds with [`SdkError<GetECSServiceRecommendationsError>`](crate::operation::get_ecs_service_recommendations::GetECSServiceRecommendationsError)
    pub fn get_ecs_service_recommendations(
        &self,
    ) -> crate::operation::get_ecs_service_recommendations::builders::GetECSServiceRecommendationsFluentBuilder {
        crate::operation::get_ecs_service_recommendations::builders::GetECSServiceRecommendationsFluentBuilder::new(self.handle.clone())
    }
}