aws-sdk-assurance 1.0.0

AWS SDK for AWS Assurance
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListTasks`](crate::operation::list_tasks::builders::ListTasksFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`environment_arn(impl Into<String>)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::environment_arn) / [`set_environment_arn(Option<String>)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::set_environment_arn):<br>required: **true**<br><p>The ARN of this governance environment.</p><br>
    ///   - [`project(impl Into<String>)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::project) / [`set_project(Option<String>)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::set_project):<br>required: **true**<br><p>The project to list tasks for. Each request is scoped to one project.</p><br>
    ///   - [`filters(TaskFilter)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::filters) / [`set_filters(Option<Vec::<TaskFilter>>)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::set_filters):<br>required: **false**<br><p>The response filter criteria. Optional. See <code>TaskFilterName</code> for the filterable attributes. A result must match every attribute you name, and matches if it equals any of the values you give for that attribute. Omitting <code>filters</code> returns every task in the project.</p> <p>A single-valued criterion for <code>framework</code>, <code>framework-version</code>, or <code>control-id</code> narrows the results when every broader component is also supplied. When a broader component is absent, the criterion is applied to the returned results.</p> <p>An <code>assessment-id</code> criterion returns the task history for that assessment. It accepts one value and requires single-valued <code>framework</code>, <code>framework-version</code>, and <code>control-id</code> criteria alongside it.</p><br>
    ///   - [`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 records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the <code>nextToken</code> value from the response to get the next page.</p><br>
    ///   - [`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 returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.</p><br>
    /// - On success, responds with [`ListTasksOutput`](crate::operation::list_tasks::ListTasksOutput) with field(s):
    ///   - [`tasks(Vec::<TaskSummary>)`](crate::operation::list_tasks::ListTasksOutput::tasks): <p>The list of tasks.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_tasks::ListTasksOutput::next_token): <p>The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.</p>
    /// - On failure, responds with [`SdkError<ListTasksError>`](crate::operation::list_tasks::ListTasksError)
    pub fn list_tasks(&self) -> crate::operation::list_tasks::builders::ListTasksFluentBuilder {
        crate::operation::list_tasks::builders::ListTasksFluentBuilder::new(self.handle.clone())
    }
}