aws_sdk_ecs/client/
describe_tasks.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 [`DescribeTasks`](crate::operation::describe_tasks::builders::DescribeTasksFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`cluster(impl Into<String>)`](crate::operation::describe_tasks::builders::DescribeTasksFluentBuilder::cluster) / [`set_cluster(Option<String>)`](crate::operation::describe_tasks::builders::DescribeTasksFluentBuilder::set_cluster):<br>required: **false**<br><p>The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task or tasks to describe. If you do not specify a cluster, the default cluster is assumed.</p><br>
7    ///   - [`tasks(impl Into<String>)`](crate::operation::describe_tasks::builders::DescribeTasksFluentBuilder::tasks) / [`set_tasks(Option<Vec::<String>>)`](crate::operation::describe_tasks::builders::DescribeTasksFluentBuilder::set_tasks):<br>required: **true**<br><p>A list of up to 100 task IDs or full ARN entries.</p><br>
8    ///   - [`include(TaskField)`](crate::operation::describe_tasks::builders::DescribeTasksFluentBuilder::include) / [`set_include(Option<Vec::<TaskField>>)`](crate::operation::describe_tasks::builders::DescribeTasksFluentBuilder::set_include):<br>required: **false**<br><p>Specifies whether you want to see the resource tags for the task. If <code>TAGS</code> is specified, the tags are included in the response. If this field is omitted, tags aren't included in the response.</p><br>
9    /// - On success, responds with [`DescribeTasksOutput`](crate::operation::describe_tasks::DescribeTasksOutput) with field(s):
10    ///   - [`tasks(Option<Vec::<Task>>)`](crate::operation::describe_tasks::DescribeTasksOutput::tasks): <p>The list of tasks.</p>
11    ///   - [`failures(Option<Vec::<Failure>>)`](crate::operation::describe_tasks::DescribeTasksOutput::failures): <p>Any failures associated with the call.</p>
12    /// - On failure, responds with [`SdkError<DescribeTasksError>`](crate::operation::describe_tasks::DescribeTasksError)
13    pub fn describe_tasks(&self) -> crate::operation::describe_tasks::builders::DescribeTasksFluentBuilder {
14        crate::operation::describe_tasks::builders::DescribeTasksFluentBuilder::new(self.handle.clone())
15    }
16}