aws_sdk_ecs/client/list_services.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 [`ListServices`](crate::operation::list_services::builders::ListServicesFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_services::builders::ListServicesFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`cluster(impl Into<String>)`](crate::operation::list_services::builders::ListServicesFluentBuilder::cluster) / [`set_cluster(Option<String>)`](crate::operation::list_services::builders::ListServicesFluentBuilder::set_cluster):<br>required: **false**<br><p>The short name or full Amazon Resource Name (ARN) of the cluster to use when filtering the <code>ListServices</code> results. If you do not specify a cluster, the default cluster is assumed.</p><br>
8 /// - [`next_token(impl Into<String>)`](crate::operation::list_services::builders::ListServicesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_services::builders::ListServicesFluentBuilder::set_next_token):<br>required: **false**<br><p>The <code>nextToken</code> value returned from a <code>ListServices</code> request indicating that more results are available to fulfill the request and further calls will be needed. If <code>maxResults</code> was provided, it is possible the number of results to be fewer than <code>maxResults</code>.</p><note> <p>This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.</p> </note><br>
9 /// - [`max_results(i32)`](crate::operation::list_services::builders::ListServicesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_services::builders::ListServicesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of service results that <code>ListServices</code> returned in paginated output. When this parameter is used, <code>ListServices</code> only returns <code>maxResults</code> results in a single page along with a <code>nextToken</code> response element. The remaining results of the initial request can be seen by sending another <code>ListServices</code> request with the returned <code>nextToken</code> value. This value can be between 1 and 100. If this parameter isn't used, then <code>ListServices</code> returns up to 10 results and a <code>nextToken</code> value if applicable.</p><br>
10 /// - [`launch_type(LaunchType)`](crate::operation::list_services::builders::ListServicesFluentBuilder::launch_type) / [`set_launch_type(Option<LaunchType>)`](crate::operation::list_services::builders::ListServicesFluentBuilder::set_launch_type):<br>required: **false**<br><p>The launch type to use when filtering the <code>ListServices</code> results.</p><br>
11 /// - [`scheduling_strategy(SchedulingStrategy)`](crate::operation::list_services::builders::ListServicesFluentBuilder::scheduling_strategy) / [`set_scheduling_strategy(Option<SchedulingStrategy>)`](crate::operation::list_services::builders::ListServicesFluentBuilder::set_scheduling_strategy):<br>required: **false**<br><p>The scheduling strategy to use when filtering the <code>ListServices</code> results.</p><br>
12 /// - On success, responds with [`ListServicesOutput`](crate::operation::list_services::ListServicesOutput) with field(s):
13 /// - [`service_arns(Option<Vec::<String>>)`](crate::operation::list_services::ListServicesOutput::service_arns): <p>The list of full ARN entries for each service that's associated with the specified cluster.</p>
14 /// - [`next_token(Option<String>)`](crate::operation::list_services::ListServicesOutput::next_token): <p>The <code>nextToken</code> value to include in a future <code>ListServices</code> request. When the results of a <code>ListServices</code> request exceed <code>maxResults</code>, this value can be used to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>
15 /// - On failure, responds with [`SdkError<ListServicesError>`](crate::operation::list_services::ListServicesError)
16 pub fn list_services(&self) -> crate::operation::list_services::builders::ListServicesFluentBuilder {
17 crate::operation::list_services::builders::ListServicesFluentBuilder::new(self.handle.clone())
18 }
19}