aws_sdk_context/client/list_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 [`ListTasks`](crate::operation::list_tasks::builders::ListTasksFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`agent_context_id(impl Into<String>)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::agent_context_id) / [`set_agent_context_id(Option<String>)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::set_agent_context_id):<br>required: **true**<br><p>The agent context, as an ID or ARN.</p><br>
8 /// - [`status(TaskStatus)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::status) / [`set_status(Option<TaskStatus>)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::set_status):<br>required: **false**<br><p>Specify a status to list only the tasks with that status.</p><br>
9 /// - [`r#type(TaskType)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::type) / [`set_type(Option<TaskType>)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::set_type):<br>required: **false**<br><p>Specify a type to list only the tasks of that type.</p><br>
10 /// - [`max_results(i32)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of tasks to return in one page, from 1–100. The service can return fewer. Defaults to 20. A value outside 1–100 fails with <code>ValidationException</code>.</p><br>
11 /// - [`next_token(impl Into<String>)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::set_next_token):<br>required: **false**<br><p>The pagination token from a previous ListTasks response. Omit it for the first page, and keep the <code>status</code> and <code>type</code> filters the same on every page.</p><br>
12 /// - On success, responds with [`ListTasksOutput`](crate::operation::list_tasks::ListTasksOutput) with field(s):
13 /// - [`items(Vec::<TaskSummary>)`](crate::operation::list_tasks::ListTasksOutput::items): <p>The tasks. Always present, and empty when there are none.</p>
14 /// - [`next_token(Option<String>)`](crate::operation::list_tasks::ListTasksOutput::next_token): <p>The token for the next page of results. Absent on the last page.</p>
15 /// - On failure, responds with [`SdkError<ListTasksError>`](crate::operation::list_tasks::ListTasksError)
16 pub fn list_tasks(&self) -> crate::operation::list_tasks::builders::ListTasksFluentBuilder {
17 crate::operation::list_tasks::builders::ListTasksFluentBuilder::new(self.handle.clone())
18 }
19}