aws_sdk_ssm/client/get_maintenance_window.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 [`GetMaintenanceWindow`](crate::operation::get_maintenance_window::builders::GetMaintenanceWindowFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`window_id(impl Into<String>)`](crate::operation::get_maintenance_window::builders::GetMaintenanceWindowFluentBuilder::window_id) / [`set_window_id(Option<String>)`](crate::operation::get_maintenance_window::builders::GetMaintenanceWindowFluentBuilder::set_window_id):<br>required: **true**<br><p>The ID of the maintenance window for which you want to retrieve information.</p><br>
7 /// - On success, responds with [`GetMaintenanceWindowOutput`](crate::operation::get_maintenance_window::GetMaintenanceWindowOutput) with field(s):
8 /// - [`window_id(Option<String>)`](crate::operation::get_maintenance_window::GetMaintenanceWindowOutput::window_id): <p>The ID of the created maintenance window.</p>
9 /// - [`name(Option<String>)`](crate::operation::get_maintenance_window::GetMaintenanceWindowOutput::name): <p>The name of the maintenance window.</p>
10 /// - [`description(Option<String>)`](crate::operation::get_maintenance_window::GetMaintenanceWindowOutput::description): <p>The description of the maintenance window.</p>
11 /// - [`start_date(Option<String>)`](crate::operation::get_maintenance_window::GetMaintenanceWindowOutput::start_date): <p>The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become active. The maintenance window won't run before this specified time.</p>
12 /// - [`end_date(Option<String>)`](crate::operation::get_maintenance_window::GetMaintenanceWindowOutput::end_date): <p>The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become inactive. The maintenance window won't run after this specified time.</p>
13 /// - [`schedule(Option<String>)`](crate::operation::get_maintenance_window::GetMaintenanceWindowOutput::schedule): <p>The schedule of the maintenance window in the form of a cron or rate expression.</p>
14 /// - [`schedule_timezone(Option<String>)`](crate::operation::get_maintenance_window::GetMaintenanceWindowOutput::schedule_timezone): <p>The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the <a href="https://www.iana.org/time-zones">Time Zone Database</a> on the IANA website.</p>
15 /// - [`schedule_offset(Option<i32>)`](crate::operation::get_maintenance_window::GetMaintenanceWindowOutput::schedule_offset): <p>The number of days to wait to run a maintenance window after the scheduled cron expression date and time.</p>
16 /// - [`next_execution_time(Option<String>)`](crate::operation::get_maintenance_window::GetMaintenanceWindowOutput::next_execution_time): <p>The next time the maintenance window will actually run, taking into account any specified times for the maintenance window to become active or inactive.</p>
17 /// - [`duration(Option<i32>)`](crate::operation::get_maintenance_window::GetMaintenanceWindowOutput::duration): <p>The duration of the maintenance window in hours.</p>
18 /// - [`cutoff(i32)`](crate::operation::get_maintenance_window::GetMaintenanceWindowOutput::cutoff): <p>The number of hours before the end of the maintenance window that Amazon Web Services Systems Manager stops scheduling new tasks for execution.</p>
19 /// - [`allow_unassociated_targets(bool)`](crate::operation::get_maintenance_window::GetMaintenanceWindowOutput::allow_unassociated_targets): <p>Whether targets must be registered with the maintenance window before tasks can be defined for those targets.</p>
20 /// - [`enabled(bool)`](crate::operation::get_maintenance_window::GetMaintenanceWindowOutput::enabled): <p>Indicates whether the maintenance window is enabled.</p>
21 /// - [`created_date(Option<DateTime>)`](crate::operation::get_maintenance_window::GetMaintenanceWindowOutput::created_date): <p>The date the maintenance window was created.</p>
22 /// - [`modified_date(Option<DateTime>)`](crate::operation::get_maintenance_window::GetMaintenanceWindowOutput::modified_date): <p>The date the maintenance window was last modified.</p>
23 /// - On failure, responds with [`SdkError<GetMaintenanceWindowError>`](crate::operation::get_maintenance_window::GetMaintenanceWindowError)
24 pub fn get_maintenance_window(&self) -> crate::operation::get_maintenance_window::builders::GetMaintenanceWindowFluentBuilder {
25 crate::operation::get_maintenance_window::builders::GetMaintenanceWindowFluentBuilder::new(self.handle.clone())
26 }
27}