aws_sdk_ssm/client/
describe_maintenance_window_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 [`DescribeMaintenanceWindowTasks`](crate::operation::describe_maintenance_window_tasks::builders::DescribeMaintenanceWindowTasksFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::describe_maintenance_window_tasks::builders::DescribeMaintenanceWindowTasksFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`window_id(impl Into<String>)`](crate::operation::describe_maintenance_window_tasks::builders::DescribeMaintenanceWindowTasksFluentBuilder::window_id) / [`set_window_id(Option<String>)`](crate::operation::describe_maintenance_window_tasks::builders::DescribeMaintenanceWindowTasksFluentBuilder::set_window_id):<br>required: **true**<br><p>The ID of the maintenance window whose tasks should be retrieved.</p><br>
8    ///   - [`filters(MaintenanceWindowFilter)`](crate::operation::describe_maintenance_window_tasks::builders::DescribeMaintenanceWindowTasksFluentBuilder::filters) / [`set_filters(Option<Vec::<MaintenanceWindowFilter>>)`](crate::operation::describe_maintenance_window_tasks::builders::DescribeMaintenanceWindowTasksFluentBuilder::set_filters):<br>required: **false**<br><p>Optional filters used to narrow down the scope of the returned tasks. The supported filter keys are <code>WindowTaskId</code>, <code>TaskArn</code>, <code>Priority</code>, and <code>TaskType</code>.</p><br>
9    ///   - [`max_results(i32)`](crate::operation::describe_maintenance_window_tasks::builders::DescribeMaintenanceWindowTasksFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::describe_maintenance_window_tasks::builders::DescribeMaintenanceWindowTasksFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p><br>
10    ///   - [`next_token(impl Into<String>)`](crate::operation::describe_maintenance_window_tasks::builders::DescribeMaintenanceWindowTasksFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::describe_maintenance_window_tasks::builders::DescribeMaintenanceWindowTasksFluentBuilder::set_next_token):<br>required: **false**<br><p>The token for the next set of items to return. (You received this token from a previous call.)</p><br>
11    /// - On success, responds with [`DescribeMaintenanceWindowTasksOutput`](crate::operation::describe_maintenance_window_tasks::DescribeMaintenanceWindowTasksOutput) with field(s):
12    ///   - [`tasks(Option<Vec::<MaintenanceWindowTask>>)`](crate::operation::describe_maintenance_window_tasks::DescribeMaintenanceWindowTasksOutput::tasks): <p>Information about the tasks in the maintenance window.</p>
13    ///   - [`next_token(Option<String>)`](crate::operation::describe_maintenance_window_tasks::DescribeMaintenanceWindowTasksOutput::next_token): <p>The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.</p>
14    /// - On failure, responds with [`SdkError<DescribeMaintenanceWindowTasksError>`](crate::operation::describe_maintenance_window_tasks::DescribeMaintenanceWindowTasksError)
15    pub fn describe_maintenance_window_tasks(
16        &self,
17    ) -> crate::operation::describe_maintenance_window_tasks::builders::DescribeMaintenanceWindowTasksFluentBuilder {
18        crate::operation::describe_maintenance_window_tasks::builders::DescribeMaintenanceWindowTasksFluentBuilder::new(self.handle.clone())
19    }
20}