1 + | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | #[allow(missing_docs)] // documentation missing in model
|
3 + | #[non_exhaustive]
|
4 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
|
5 + | pub struct CreateMaintenanceWindowInput {
|
6 + | /// <p>The name of the maintenance window.</p>
|
7 + | pub name: ::std::option::Option<::std::string::String>,
|
8 + | /// <p>An optional description for the maintenance window. We recommend specifying a description to help you organize your maintenance windows.</p>
|
9 + | pub description: ::std::option::Option<::std::string::String>,
|
10 + | /// <p>The date and time, in ISO-8601 Extended format, for when you want the maintenance window to become active. <code>StartDate</code> allows you to delay activation of the maintenance window until the specified future date.</p><note>
|
11 + | /// <p>When using a rate schedule, if you provide a start date that occurs in the past, the current date and time are used as the start date.</p>
|
12 + | /// </note>
|
13 + | pub start_date: ::std::option::Option<::std::string::String>,
|
14 + | /// <p>The date and time, in ISO-8601 Extended format, for when you want the maintenance window to become inactive. <code>EndDate</code> allows you to set a date and time in the future when the maintenance window will no longer run.</p>
|
15 + | pub end_date: ::std::option::Option<::std::string::String>,
|
16 + | /// <p>The schedule of the maintenance window in the form of a cron or rate expression.</p>
|
17 + | pub schedule: ::std::option::Option<::std::string::String>,
|
18 + | /// <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>
|
19 + | pub schedule_timezone: ::std::option::Option<::std::string::String>,
|
20 + | /// <p>The number of days to wait after the date and time specified by a cron expression before running the maintenance window.</p>
|
21 + | /// <p>For example, the following cron expression schedules a maintenance window to run on the third Tuesday of every month at 11:30 PM.</p>
|
22 + | /// <p><code>cron(30 23 ? * TUE#3 *)</code></p>
|
23 + | /// <p>If the schedule offset is <code>2</code>, the maintenance window won't run until two days later.</p>
|
24 + | pub schedule_offset: ::std::option::Option<i32>,
|
25 + | /// <p>The duration of the maintenance window in hours.</p>
|
26 + | pub duration: ::std::option::Option<i32>,
|
27 + | /// <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>
|
28 + | pub cutoff: ::std::option::Option<i32>,
|
29 + | /// <p>Enables a maintenance window task to run on managed nodes, even if you haven't registered those nodes as targets. If enabled, then you must specify the unregistered managed nodes (by node ID) when you register a task with the maintenance window.</p>
|
30 + | /// <p>If you don't enable this option, then you must specify previously-registered targets when you register a task with the maintenance window.</p>
|
31 + | pub allow_unassociated_targets: ::std::option::Option<bool>,
|
32 + | /// <p>User-provided idempotency token.</p>
|
33 + | pub client_token: ::std::option::Option<::std::string::String>,
|
34 + | /// <p>Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a maintenance window to identify the type of tasks it will run, the types of targets, and the environment it will run in. In this case, you could specify the following key-value pairs:</p>
|
35 + | /// <ul>
|
36 + | /// <li>
|
37 + | /// <p><code>Key=TaskType,Value=AgentUpdate</code></p></li>
|
38 + | /// <li>
|
39 + | /// <p><code>Key=OS,Value=Windows</code></p></li>
|
40 + | /// <li>
|
41 + | /// <p><code>Key=Environment,Value=Production</code></p></li>
|
42 + | /// </ul><note>
|
43 + | /// <p>To add tags to an existing maintenance window, use the <code>AddTagsToResource</code> operation.</p>
|
44 + | /// </note>
|
45 + | pub tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
|
46 + | }
|
47 + | impl CreateMaintenanceWindowInput {
|
48 + | /// <p>The name of the maintenance window.</p>
|
49 + | pub fn name(&self) -> ::std::option::Option<&str> {
|
50 + | self.name.as_deref()
|
51 + | }
|
52 + | /// <p>An optional description for the maintenance window. We recommend specifying a description to help you organize your maintenance windows.</p>
|
53 + | pub fn description(&self) -> ::std::option::Option<&str> {
|
54 + | self.description.as_deref()
|
55 + | }
|
56 + | /// <p>The date and time, in ISO-8601 Extended format, for when you want the maintenance window to become active. <code>StartDate</code> allows you to delay activation of the maintenance window until the specified future date.</p><note>
|
57 + | /// <p>When using a rate schedule, if you provide a start date that occurs in the past, the current date and time are used as the start date.</p>
|
58 + | /// </note>
|
59 + | pub fn start_date(&self) -> ::std::option::Option<&str> {
|
60 + | self.start_date.as_deref()
|
61 + | }
|
62 + | /// <p>The date and time, in ISO-8601 Extended format, for when you want the maintenance window to become inactive. <code>EndDate</code> allows you to set a date and time in the future when the maintenance window will no longer run.</p>
|
63 + | pub fn end_date(&self) -> ::std::option::Option<&str> {
|
64 + | self.end_date.as_deref()
|
65 + | }
|
66 + | /// <p>The schedule of the maintenance window in the form of a cron or rate expression.</p>
|
67 + | pub fn schedule(&self) -> ::std::option::Option<&str> {
|
68 + | self.schedule.as_deref()
|
69 + | }
|
70 + | /// <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>
|
71 + | pub fn schedule_timezone(&self) -> ::std::option::Option<&str> {
|
72 + | self.schedule_timezone.as_deref()
|
73 + | }
|
74 + | /// <p>The number of days to wait after the date and time specified by a cron expression before running the maintenance window.</p>
|
75 + | /// <p>For example, the following cron expression schedules a maintenance window to run on the third Tuesday of every month at 11:30 PM.</p>
|
76 + | /// <p><code>cron(30 23 ? * TUE#3 *)</code></p>
|
77 + | /// <p>If the schedule offset is <code>2</code>, the maintenance window won't run until two days later.</p>
|
78 + | pub fn schedule_offset(&self) -> ::std::option::Option<i32> {
|
79 + | self.schedule_offset
|
80 + | }
|
81 + | /// <p>The duration of the maintenance window in hours.</p>
|
82 + | pub fn duration(&self) -> ::std::option::Option<i32> {
|
83 + | self.duration
|
84 + | }
|
85 + | /// <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>
|
86 + | pub fn cutoff(&self) -> ::std::option::Option<i32> {
|
87 + | self.cutoff
|
88 + | }
|
89 + | /// <p>Enables a maintenance window task to run on managed nodes, even if you haven't registered those nodes as targets. If enabled, then you must specify the unregistered managed nodes (by node ID) when you register a task with the maintenance window.</p>
|
90 + | /// <p>If you don't enable this option, then you must specify previously-registered targets when you register a task with the maintenance window.</p>
|
91 + | pub fn allow_unassociated_targets(&self) -> ::std::option::Option<bool> {
|
92 + | self.allow_unassociated_targets
|
93 + | }
|
94 + | /// <p>User-provided idempotency token.</p>
|
95 + | pub fn client_token(&self) -> ::std::option::Option<&str> {
|
96 + | self.client_token.as_deref()
|
97 + | }
|
98 + | /// <p>Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a maintenance window to identify the type of tasks it will run, the types of targets, and the environment it will run in. In this case, you could specify the following key-value pairs:</p>
|
99 + | /// <ul>
|
100 + | /// <li>
|
101 + | /// <p><code>Key=TaskType,Value=AgentUpdate</code></p></li>
|
102 + | /// <li>
|
103 + | /// <p><code>Key=OS,Value=Windows</code></p></li>
|
104 + | /// <li>
|
105 + | /// <p><code>Key=Environment,Value=Production</code></p></li>
|
106 + | /// </ul><note>
|
107 + | /// <p>To add tags to an existing maintenance window, use the <code>AddTagsToResource</code> operation.</p>
|
108 + | /// </note>
|
109 + | ///
|
110 + | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.tags.is_none()`.
|
111 + | pub fn tags(&self) -> &[crate::types::Tag] {
|
112 + | self.tags.as_deref().unwrap_or_default()
|
113 + | }
|
114 + | }
|
115 + | impl ::std::fmt::Debug for CreateMaintenanceWindowInput {
|
116 + | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
117 + | let mut formatter = f.debug_struct("CreateMaintenanceWindowInput");
|
118 + | formatter.field("name", &self.name);
|
119 + | formatter.field("description", &"*** Sensitive Data Redacted ***");
|
120 + | formatter.field("start_date", &self.start_date);
|
121 + | formatter.field("end_date", &self.end_date);
|
122 + | formatter.field("schedule", &self.schedule);
|
123 + | formatter.field("schedule_timezone", &self.schedule_timezone);
|
124 + | formatter.field("schedule_offset", &self.schedule_offset);
|
125 + | formatter.field("duration", &self.duration);
|
126 + | formatter.field("cutoff", &self.cutoff);
|
127 + | formatter.field("allow_unassociated_targets", &self.allow_unassociated_targets);
|
128 + | formatter.field("client_token", &self.client_token);
|
129 + | formatter.field("tags", &self.tags);
|
130 + | formatter.finish()
|
131 + | }
|
132 + | }
|
133 + | static CREATEMAINTENANCEWINDOWINPUT_MEMBER_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
134 + | ::aws_smithy_schema::ShapeId::from_parts(
|
135 + | "com.amazonaws.ssm.synthetic#CreateMaintenanceWindowInput$Name",
|
136 + | "com.amazonaws.ssm.synthetic",
|
137 + | "CreateMaintenanceWindowInput",
|
138 + | ),
|
139 + | ::aws_smithy_schema::ShapeType::String,
|
140 + | "Name",
|
141 + | 0,
|
142 + | );
|
143 + | static CREATEMAINTENANCEWINDOWINPUT_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
144 + | ::aws_smithy_schema::ShapeId::from_parts(
|
145 + | "com.amazonaws.ssm.synthetic#CreateMaintenanceWindowInput$Description",
|
146 + | "com.amazonaws.ssm.synthetic",
|
147 + | "CreateMaintenanceWindowInput",
|
148 + | ),
|
149 + | ::aws_smithy_schema::ShapeType::String,
|
150 + | "Description",
|
151 + | 1,
|
152 + | );
|
153 + | static CREATEMAINTENANCEWINDOWINPUT_MEMBER_START_DATE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
154 + | ::aws_smithy_schema::ShapeId::from_parts(
|
155 + | "com.amazonaws.ssm.synthetic#CreateMaintenanceWindowInput$StartDate",
|
156 + | "com.amazonaws.ssm.synthetic",
|
157 + | "CreateMaintenanceWindowInput",
|
158 + | ),
|
159 + | ::aws_smithy_schema::ShapeType::String,
|
160 + | "StartDate",
|
161 + | 2,
|
162 + | );
|
163 + | static CREATEMAINTENANCEWINDOWINPUT_MEMBER_END_DATE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
164 + | ::aws_smithy_schema::ShapeId::from_parts(
|
165 + | "com.amazonaws.ssm.synthetic#CreateMaintenanceWindowInput$EndDate",
|
166 + | "com.amazonaws.ssm.synthetic",
|
167 + | "CreateMaintenanceWindowInput",
|
168 + | ),
|
169 + | ::aws_smithy_schema::ShapeType::String,
|
170 + | "EndDate",
|
171 + | 3,
|
172 + | );
|
173 + | static CREATEMAINTENANCEWINDOWINPUT_MEMBER_SCHEDULE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
174 + | ::aws_smithy_schema::ShapeId::from_parts(
|
175 + | "com.amazonaws.ssm.synthetic#CreateMaintenanceWindowInput$Schedule",
|
176 + | "com.amazonaws.ssm.synthetic",
|
177 + | "CreateMaintenanceWindowInput",
|
178 + | ),
|
179 + | ::aws_smithy_schema::ShapeType::String,
|
180 + | "Schedule",
|
181 + | 4,
|
182 + | );
|
183 + | static CREATEMAINTENANCEWINDOWINPUT_MEMBER_SCHEDULE_TIMEZONE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
184 + | ::aws_smithy_schema::ShapeId::from_parts(
|
185 + | "com.amazonaws.ssm.synthetic#CreateMaintenanceWindowInput$ScheduleTimezone",
|
186 + | "com.amazonaws.ssm.synthetic",
|
187 + | "CreateMaintenanceWindowInput",
|
188 + | ),
|
189 + | ::aws_smithy_schema::ShapeType::String,
|
190 + | "ScheduleTimezone",
|
191 + | 5,
|
192 + | );
|
193 + | static CREATEMAINTENANCEWINDOWINPUT_MEMBER_SCHEDULE_OFFSET: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
194 + | ::aws_smithy_schema::ShapeId::from_parts(
|
195 + | "com.amazonaws.ssm.synthetic#CreateMaintenanceWindowInput$ScheduleOffset",
|
196 + | "com.amazonaws.ssm.synthetic",
|
197 + | "CreateMaintenanceWindowInput",
|
198 + | ),
|
199 + | ::aws_smithy_schema::ShapeType::Integer,
|
200 + | "ScheduleOffset",
|
201 + | 6,
|
202 + | );
|
203 + | static CREATEMAINTENANCEWINDOWINPUT_MEMBER_DURATION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
204 + | ::aws_smithy_schema::ShapeId::from_parts(
|
205 + | "com.amazonaws.ssm.synthetic#CreateMaintenanceWindowInput$Duration",
|
206 + | "com.amazonaws.ssm.synthetic",
|
207 + | "CreateMaintenanceWindowInput",
|
208 + | ),
|
209 + | ::aws_smithy_schema::ShapeType::Integer,
|
210 + | "Duration",
|
211 + | 7,
|
212 + | );
|
213 + | static CREATEMAINTENANCEWINDOWINPUT_MEMBER_CUTOFF: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
214 + | ::aws_smithy_schema::ShapeId::from_parts(
|
215 + | "com.amazonaws.ssm.synthetic#CreateMaintenanceWindowInput$Cutoff",
|
216 + | "com.amazonaws.ssm.synthetic",
|
217 + | "CreateMaintenanceWindowInput",
|
218 + | ),
|
219 + | ::aws_smithy_schema::ShapeType::Integer,
|
220 + | "Cutoff",
|
221 + | 8,
|
222 + | );
|
223 + | static CREATEMAINTENANCEWINDOWINPUT_MEMBER_ALLOW_UNASSOCIATED_TARGETS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
224 + | ::aws_smithy_schema::ShapeId::from_parts(
|
225 + | "com.amazonaws.ssm.synthetic#CreateMaintenanceWindowInput$AllowUnassociatedTargets",
|
226 + | "com.amazonaws.ssm.synthetic",
|
227 + | "CreateMaintenanceWindowInput",
|
228 + | ),
|
229 + | ::aws_smithy_schema::ShapeType::Boolean,
|
230 + | "AllowUnassociatedTargets",
|
231 + | 9,
|
232 + | );
|
233 + | static CREATEMAINTENANCEWINDOWINPUT_MEMBER_CLIENT_TOKEN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
234 + | ::aws_smithy_schema::ShapeId::from_parts(
|
235 + | "com.amazonaws.ssm.synthetic#CreateMaintenanceWindowInput$ClientToken",
|
236 + | "com.amazonaws.ssm.synthetic",
|
237 + | "CreateMaintenanceWindowInput",
|
238 + | ),
|
239 + | ::aws_smithy_schema::ShapeType::String,
|
240 + | "ClientToken",
|
241 + | 10,
|
242 + | );
|
243 + | static CREATEMAINTENANCEWINDOWINPUT_MEMBER_TAGS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
244 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#TagList$member", "com.amazonaws.ssm", "TagList"),
|
245 + | ::aws_smithy_schema::ShapeType::Structure,
|
246 + | "member",
|
247 + | 0,
|
248 + | );
|
249 + | static CREATEMAINTENANCEWINDOWINPUT_MEMBER_TAGS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
250 + | ::aws_smithy_schema::ShapeId::from_parts(
|
251 + | "com.amazonaws.ssm.synthetic#CreateMaintenanceWindowInput$Tags",
|
252 + | "com.amazonaws.ssm.synthetic",
|
253 + | "CreateMaintenanceWindowInput",
|
254 + | ),
|
255 + | ::aws_smithy_schema::ShapeType::List,
|
256 + | "Tags",
|
257 + | 11,
|
258 + | )
|
259 + | .with_list_member(&CREATEMAINTENANCEWINDOWINPUT_MEMBER_TAGS_MEMBER);
|
260 + | static CREATEMAINTENANCEWINDOWINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
|
261 + | ::aws_smithy_schema::ShapeId::from_parts(
|
262 + | "com.amazonaws.ssm.synthetic#CreateMaintenanceWindowInput",
|
263 + | "com.amazonaws.ssm.synthetic",
|
264 + | "CreateMaintenanceWindowInput",
|
265 + | ),
|
266 + | ::aws_smithy_schema::ShapeType::Structure,
|
267 + | &[
|
268 + | &CREATEMAINTENANCEWINDOWINPUT_MEMBER_NAME,
|
269 + | &CREATEMAINTENANCEWINDOWINPUT_MEMBER_DESCRIPTION,
|
270 + | &CREATEMAINTENANCEWINDOWINPUT_MEMBER_START_DATE,
|
271 + | &CREATEMAINTENANCEWINDOWINPUT_MEMBER_END_DATE,
|
272 + | &CREATEMAINTENANCEWINDOWINPUT_MEMBER_SCHEDULE,
|
273 + | &CREATEMAINTENANCEWINDOWINPUT_MEMBER_SCHEDULE_TIMEZONE,
|
274 + | &CREATEMAINTENANCEWINDOWINPUT_MEMBER_SCHEDULE_OFFSET,
|
275 + | &CREATEMAINTENANCEWINDOWINPUT_MEMBER_DURATION,
|
276 + | &CREATEMAINTENANCEWINDOWINPUT_MEMBER_CUTOFF,
|
277 + | &CREATEMAINTENANCEWINDOWINPUT_MEMBER_ALLOW_UNASSOCIATED_TARGETS,
|
278 + | &CREATEMAINTENANCEWINDOWINPUT_MEMBER_CLIENT_TOKEN,
|
279 + | &CREATEMAINTENANCEWINDOWINPUT_MEMBER_TAGS,
|
280 + | ],
|
281 + | )
|
282 + | .with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
|
283 + | .with_original_name("CreateMaintenanceWindowRequest");
|
284 + | impl CreateMaintenanceWindowInput {
|
285 + | /// The schema for this shape.
|
286 + | pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &CREATEMAINTENANCEWINDOWINPUT_SCHEMA;
|
287 + | }
|
288 + | impl ::aws_smithy_schema::serde::SerializableStruct for CreateMaintenanceWindowInput {
|
289 + | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
290 + | fn serialize_members(
|
291 + | &self,
|
292 + | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
293 + | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
294 + | if let Some(ref val) = self.name {
|
295 + | ser.write_string(&CREATEMAINTENANCEWINDOWINPUT_MEMBER_NAME, val)?;
|
296 + | }
|
297 + | if let Some(ref val) = self.description {
|
298 + | ser.write_string(&CREATEMAINTENANCEWINDOWINPUT_MEMBER_DESCRIPTION, val)?;
|
299 + | }
|
300 + | if let Some(ref val) = self.start_date {
|
301 + | ser.write_string(&CREATEMAINTENANCEWINDOWINPUT_MEMBER_START_DATE, val)?;
|
302 + | }
|
303 + | if let Some(ref val) = self.end_date {
|
304 + | ser.write_string(&CREATEMAINTENANCEWINDOWINPUT_MEMBER_END_DATE, val)?;
|
305 + | }
|
306 + | if let Some(ref val) = self.schedule {
|
307 + | ser.write_string(&CREATEMAINTENANCEWINDOWINPUT_MEMBER_SCHEDULE, val)?;
|
308 + | }
|
309 + | if let Some(ref val) = self.schedule_timezone {
|
310 + | ser.write_string(&CREATEMAINTENANCEWINDOWINPUT_MEMBER_SCHEDULE_TIMEZONE, val)?;
|
311 + | }
|
312 + | if let Some(ref val) = self.schedule_offset {
|
313 + | ser.write_integer(&CREATEMAINTENANCEWINDOWINPUT_MEMBER_SCHEDULE_OFFSET, *val)?;
|
314 + | }
|
315 + | if let Some(ref val) = self.duration {
|
316 + | ser.write_integer(&CREATEMAINTENANCEWINDOWINPUT_MEMBER_DURATION, *val)?;
|
317 + | }
|
318 + | if let Some(ref val) = self.cutoff {
|
319 + | ser.write_integer(&CREATEMAINTENANCEWINDOWINPUT_MEMBER_CUTOFF, *val)?;
|
320 + | }
|
321 + | if let Some(ref val) = self.allow_unassociated_targets {
|
322 + | ser.write_boolean(&CREATEMAINTENANCEWINDOWINPUT_MEMBER_ALLOW_UNASSOCIATED_TARGETS, *val)?;
|
323 + | }
|
324 + | if let Some(ref val) = self.client_token {
|
325 + | ser.write_string(&CREATEMAINTENANCEWINDOWINPUT_MEMBER_CLIENT_TOKEN, val)?;
|
326 + | }
|
327 + | if let Some(ref val) = self.tags {
|
328 + | ser.write_list(
|
329 + | &CREATEMAINTENANCEWINDOWINPUT_MEMBER_TAGS,
|
330 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
331 + | for item in val {
|
332 + | ser.write_struct(crate::types::Tag::SCHEMA, item)?;
|
333 + | }
|
334 + | Ok(())
|
335 + | },
|
336 + | )?;
|
337 + | }
|
338 + | Ok(())
|
339 + | }
|
340 + | }
|
341 + | impl CreateMaintenanceWindowInput {
|
342 + | /// Deserializes this structure from a [`ShapeDeserializer`].
|
343 + | pub fn deserialize(
|
344 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
345 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
346 + | #[allow(unused_variables, unused_mut)]
|
347 + | let mut builder = Self::builder();
|
348 + | #[allow(
|
349 + | unused_variables,
|
350 + | unreachable_code,
|
351 + | clippy::single_match,
|
352 + | clippy::match_single_binding,
|
353 + | clippy::diverging_sub_expression
|
354 + | )]
|
355 + | deserializer.read_struct(&CREATEMAINTENANCEWINDOWINPUT_SCHEMA, &mut |member, deser| {
|
356 + | match member.member_index() {
|
357 + | Some(0) => {
|
358 + | if deser.is_null() {
|
359 + | deser.read_null()?;
|
360 + | } else {
|
361 + | builder.name = Some(deser.read_string(member)?);
|
362 + | }
|
363 + | }
|
364 + | Some(1) => {
|
365 + | if deser.is_null() {
|
366 + | deser.read_null()?;
|
367 + | } else {
|
368 + | builder.description = Some(deser.read_string(member)?);
|
369 + | }
|
370 + | }
|
371 + | Some(2) => {
|
372 + | if deser.is_null() {
|
373 + | deser.read_null()?;
|
374 + | } else {
|
375 + | builder.start_date = Some(deser.read_string(member)?);
|
376 + | }
|
377 + | }
|
378 + | Some(3) => {
|
379 + | if deser.is_null() {
|
380 + | deser.read_null()?;
|
381 + | } else {
|
382 + | builder.end_date = Some(deser.read_string(member)?);
|
383 + | }
|
384 + | }
|
385 + | Some(4) => {
|
386 + | if deser.is_null() {
|
387 + | deser.read_null()?;
|
388 + | } else {
|
389 + | builder.schedule = Some(deser.read_string(member)?);
|
390 + | }
|
391 + | }
|
392 + | Some(5) => {
|
393 + | if deser.is_null() {
|
394 + | deser.read_null()?;
|
395 + | } else {
|
396 + | builder.schedule_timezone = Some(deser.read_string(member)?);
|
397 + | }
|
398 + | }
|
399 + | Some(6) => {
|
400 + | if deser.is_null() {
|
401 + | deser.read_null()?;
|
402 + | } else {
|
403 + | builder.schedule_offset = Some(deser.read_integer(member)?);
|
404 + | }
|
405 + | }
|
406 + | Some(7) => {
|
407 + | if deser.is_null() {
|
408 + | deser.read_null()?;
|
409 + | } else {
|
410 + | builder.duration = Some(deser.read_integer(member)?);
|
411 + | }
|
412 + | }
|
413 + | Some(8) => {
|
414 + | if deser.is_null() {
|
415 + | deser.read_null()?;
|
416 + | } else {
|
417 + | builder.cutoff = Some(deser.read_integer(member)?);
|
418 + | }
|
419 + | }
|
420 + | Some(9) => {
|
421 + | if deser.is_null() {
|
422 + | deser.read_null()?;
|
423 + | } else {
|
424 + | builder.allow_unassociated_targets = Some(deser.read_boolean(member)?);
|
425 + | }
|
426 + | }
|
427 + | Some(10) => {
|
428 + | if deser.is_null() {
|
429 + | deser.read_null()?;
|
430 + | } else {
|
431 + | builder.client_token = Some(deser.read_string(member)?);
|
432 + | }
|
433 + | }
|
434 + | Some(11) => {
|
435 + | if deser.is_null() {
|
436 + | deser.read_null()?;
|
437 + | } else {
|
438 + | builder.tags = Some({
|
439 + | let mut container = Vec::new();
|
440 + | deser.read_list(member, &mut |deser| {
|
441 + | container.push(crate::types::Tag::deserialize(deser)?);
|
442 + | Ok(())
|
443 + | })?;
|
444 + | container
|
445 + | });
|
446 + | }
|
447 + | }
|
448 + | _ => {}
|
449 + | }
|
450 + | Ok(())
|
451 + | })?;
|
452 + | builder.name = builder.name.or(Some(String::new()));
|
453 + | builder.schedule = builder.schedule.or(Some(String::new()));
|
454 + | builder.duration = builder.duration.or(Some(0i32));
|
455 + | builder.cutoff = builder.cutoff.or(Some(0i32));
|
456 + | builder.allow_unassociated_targets = builder.allow_unassociated_targets.or(Some(false));
|
457 + | builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
|
458 + | }
|
459 + | }
|
460 + | impl CreateMaintenanceWindowInput {
|
461 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
462 + | pub fn deserialize_with_response(
|
463 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
464 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
465 + | _status: u16,
|
466 + | _body: &[u8],
|
467 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
468 + | Self::deserialize(deserializer)
|
469 + | }
|
470 + | }
|
471 + | impl CreateMaintenanceWindowInput {
|
472 + | /// Creates a new builder-style object to manufacture [`CreateMaintenanceWindowInput`](crate::operation::create_maintenance_window::CreateMaintenanceWindowInput).
|
473 + | pub fn builder() -> crate::operation::create_maintenance_window::builders::CreateMaintenanceWindowInputBuilder {
|
474 + | crate::operation::create_maintenance_window::builders::CreateMaintenanceWindowInputBuilder::default()
|
475 + | }
|
476 + | }
|
477 + |
|
478 + | /// A builder for [`CreateMaintenanceWindowInput`](crate::operation::create_maintenance_window::CreateMaintenanceWindowInput).
|
479 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
|
480 + | #[non_exhaustive]
|
481 + | pub struct CreateMaintenanceWindowInputBuilder {
|
482 + | pub(crate) name: ::std::option::Option<::std::string::String>,
|
483 + | pub(crate) description: ::std::option::Option<::std::string::String>,
|
484 + | pub(crate) start_date: ::std::option::Option<::std::string::String>,
|
485 + | pub(crate) end_date: ::std::option::Option<::std::string::String>,
|
486 + | pub(crate) schedule: ::std::option::Option<::std::string::String>,
|
487 + | pub(crate) schedule_timezone: ::std::option::Option<::std::string::String>,
|
488 + | pub(crate) schedule_offset: ::std::option::Option<i32>,
|
489 + | pub(crate) duration: ::std::option::Option<i32>,
|
490 + | pub(crate) cutoff: ::std::option::Option<i32>,
|
491 + | pub(crate) allow_unassociated_targets: ::std::option::Option<bool>,
|
492 + | pub(crate) client_token: ::std::option::Option<::std::string::String>,
|
493 + | pub(crate) tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
|
494 + | }
|
495 + | impl CreateMaintenanceWindowInputBuilder {
|
496 + | /// <p>The name of the maintenance window.</p>
|
497 + | /// This field is required.
|
498 + | pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
499 + | self.name = ::std::option::Option::Some(input.into());
|
500 + | self
|
501 + | }
|
502 + | /// <p>The name of the maintenance window.</p>
|
503 + | pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
504 + | self.name = input;
|
505 + | self
|
506 + | }
|
507 + | /// <p>The name of the maintenance window.</p>
|
508 + | pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
|
509 + | &self.name
|
510 + | }
|
511 + | /// <p>An optional description for the maintenance window. We recommend specifying a description to help you organize your maintenance windows.</p>
|
512 + | pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
513 + | self.description = ::std::option::Option::Some(input.into());
|
514 + | self
|
515 + | }
|
516 + | /// <p>An optional description for the maintenance window. We recommend specifying a description to help you organize your maintenance windows.</p>
|
517 + | pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
518 + | self.description = input;
|
519 + | self
|
520 + | }
|
521 + | /// <p>An optional description for the maintenance window. We recommend specifying a description to help you organize your maintenance windows.</p>
|
522 + | pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
|
523 + | &self.description
|
524 + | }
|
525 + | /// <p>The date and time, in ISO-8601 Extended format, for when you want the maintenance window to become active. <code>StartDate</code> allows you to delay activation of the maintenance window until the specified future date.</p><note>
|
526 + | /// <p>When using a rate schedule, if you provide a start date that occurs in the past, the current date and time are used as the start date.</p>
|
527 + | /// </note>
|
528 + | pub fn start_date(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
529 + | self.start_date = ::std::option::Option::Some(input.into());
|
530 + | self
|
531 + | }
|
532 + | /// <p>The date and time, in ISO-8601 Extended format, for when you want the maintenance window to become active. <code>StartDate</code> allows you to delay activation of the maintenance window until the specified future date.</p><note>
|
533 + | /// <p>When using a rate schedule, if you provide a start date that occurs in the past, the current date and time are used as the start date.</p>
|
534 + | /// </note>
|
535 + | pub fn set_start_date(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
536 + | self.start_date = input;
|
537 + | self
|
538 + | }
|
539 + | /// <p>The date and time, in ISO-8601 Extended format, for when you want the maintenance window to become active. <code>StartDate</code> allows you to delay activation of the maintenance window until the specified future date.</p><note>
|
540 + | /// <p>When using a rate schedule, if you provide a start date that occurs in the past, the current date and time are used as the start date.</p>
|
541 + | /// </note>
|
542 + | pub fn get_start_date(&self) -> &::std::option::Option<::std::string::String> {
|
543 + | &self.start_date
|
544 + | }
|
545 + | /// <p>The date and time, in ISO-8601 Extended format, for when you want the maintenance window to become inactive. <code>EndDate</code> allows you to set a date and time in the future when the maintenance window will no longer run.</p>
|
546 + | pub fn end_date(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
547 + | self.end_date = ::std::option::Option::Some(input.into());
|
548 + | self
|
549 + | }
|
550 + | /// <p>The date and time, in ISO-8601 Extended format, for when you want the maintenance window to become inactive. <code>EndDate</code> allows you to set a date and time in the future when the maintenance window will no longer run.</p>
|
551 + | pub fn set_end_date(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
552 + | self.end_date = input;
|
553 + | self
|
554 + | }
|
555 + | /// <p>The date and time, in ISO-8601 Extended format, for when you want the maintenance window to become inactive. <code>EndDate</code> allows you to set a date and time in the future when the maintenance window will no longer run.</p>
|
556 + | pub fn get_end_date(&self) -> &::std::option::Option<::std::string::String> {
|
557 + | &self.end_date
|
558 + | }
|
559 + | /// <p>The schedule of the maintenance window in the form of a cron or rate expression.</p>
|
560 + | /// This field is required.
|
561 + | pub fn schedule(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
562 + | self.schedule = ::std::option::Option::Some(input.into());
|
563 + | self
|
564 + | }
|
565 + | /// <p>The schedule of the maintenance window in the form of a cron or rate expression.</p>
|
566 + | pub fn set_schedule(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
567 + | self.schedule = input;
|
568 + | self
|
569 + | }
|
570 + | /// <p>The schedule of the maintenance window in the form of a cron or rate expression.</p>
|
571 + | pub fn get_schedule(&self) -> &::std::option::Option<::std::string::String> {
|
572 + | &self.schedule
|
573 + | }
|
574 + | /// <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>
|
575 + | pub fn schedule_timezone(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
576 + | self.schedule_timezone = ::std::option::Option::Some(input.into());
|
577 + | self
|
578 + | }
|
579 + | /// <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>
|
580 + | pub fn set_schedule_timezone(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
581 + | self.schedule_timezone = input;
|
582 + | self
|
583 + | }
|
584 + | /// <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>
|
585 + | pub fn get_schedule_timezone(&self) -> &::std::option::Option<::std::string::String> {
|
586 + | &self.schedule_timezone
|
587 + | }
|
588 + | /// <p>The number of days to wait after the date and time specified by a cron expression before running the maintenance window.</p>
|
589 + | /// <p>For example, the following cron expression schedules a maintenance window to run on the third Tuesday of every month at 11:30 PM.</p>
|
590 + | /// <p><code>cron(30 23 ? * TUE#3 *)</code></p>
|
591 + | /// <p>If the schedule offset is <code>2</code>, the maintenance window won't run until two days later.</p>
|
592 + | pub fn schedule_offset(mut self, input: i32) -> Self {
|
593 + | self.schedule_offset = ::std::option::Option::Some(input);
|
594 + | self
|
595 + | }
|
596 + | /// <p>The number of days to wait after the date and time specified by a cron expression before running the maintenance window.</p>
|
597 + | /// <p>For example, the following cron expression schedules a maintenance window to run on the third Tuesday of every month at 11:30 PM.</p>
|
598 + | /// <p><code>cron(30 23 ? * TUE#3 *)</code></p>
|
599 + | /// <p>If the schedule offset is <code>2</code>, the maintenance window won't run until two days later.</p>
|
600 + | pub fn set_schedule_offset(mut self, input: ::std::option::Option<i32>) -> Self {
|
601 + | self.schedule_offset = input;
|
602 + | self
|
603 + | }
|
604 + | /// <p>The number of days to wait after the date and time specified by a cron expression before running the maintenance window.</p>
|
605 + | /// <p>For example, the following cron expression schedules a maintenance window to run on the third Tuesday of every month at 11:30 PM.</p>
|
606 + | /// <p><code>cron(30 23 ? * TUE#3 *)</code></p>
|
607 + | /// <p>If the schedule offset is <code>2</code>, the maintenance window won't run until two days later.</p>
|
608 + | pub fn get_schedule_offset(&self) -> &::std::option::Option<i32> {
|
609 + | &self.schedule_offset
|
610 + | }
|
611 + | /// <p>The duration of the maintenance window in hours.</p>
|
612 + | /// This field is required.
|
613 + | pub fn duration(mut self, input: i32) -> Self {
|
614 + | self.duration = ::std::option::Option::Some(input);
|
615 + | self
|
616 + | }
|
617 + | /// <p>The duration of the maintenance window in hours.</p>
|
618 + | pub fn set_duration(mut self, input: ::std::option::Option<i32>) -> Self {
|
619 + | self.duration = input;
|
620 + | self
|
621 + | }
|
622 + | /// <p>The duration of the maintenance window in hours.</p>
|
623 + | pub fn get_duration(&self) -> &::std::option::Option<i32> {
|
624 + | &self.duration
|
625 + | }
|
626 + | /// <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>
|
627 + | /// This field is required.
|
628 + | pub fn cutoff(mut self, input: i32) -> Self {
|
629 + | self.cutoff = ::std::option::Option::Some(input);
|
630 + | self
|
631 + | }
|
632 + | /// <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>
|
633 + | pub fn set_cutoff(mut self, input: ::std::option::Option<i32>) -> Self {
|
634 + | self.cutoff = input;
|
635 + | self
|
636 + | }
|
637 + | /// <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>
|
638 + | pub fn get_cutoff(&self) -> &::std::option::Option<i32> {
|
639 + | &self.cutoff
|
640 + | }
|
641 + | /// <p>Enables a maintenance window task to run on managed nodes, even if you haven't registered those nodes as targets. If enabled, then you must specify the unregistered managed nodes (by node ID) when you register a task with the maintenance window.</p>
|
642 + | /// <p>If you don't enable this option, then you must specify previously-registered targets when you register a task with the maintenance window.</p>
|
643 + | /// This field is required.
|
644 + | pub fn allow_unassociated_targets(mut self, input: bool) -> Self {
|
645 + | self.allow_unassociated_targets = ::std::option::Option::Some(input);
|
646 + | self
|
647 + | }
|
648 + | /// <p>Enables a maintenance window task to run on managed nodes, even if you haven't registered those nodes as targets. If enabled, then you must specify the unregistered managed nodes (by node ID) when you register a task with the maintenance window.</p>
|
649 + | /// <p>If you don't enable this option, then you must specify previously-registered targets when you register a task with the maintenance window.</p>
|
650 + | pub fn set_allow_unassociated_targets(mut self, input: ::std::option::Option<bool>) -> Self {
|
651 + | self.allow_unassociated_targets = input;
|
652 + | self
|
653 + | }
|
654 + | /// <p>Enables a maintenance window task to run on managed nodes, even if you haven't registered those nodes as targets. If enabled, then you must specify the unregistered managed nodes (by node ID) when you register a task with the maintenance window.</p>
|
655 + | /// <p>If you don't enable this option, then you must specify previously-registered targets when you register a task with the maintenance window.</p>
|
656 + | pub fn get_allow_unassociated_targets(&self) -> &::std::option::Option<bool> {
|
657 + | &self.allow_unassociated_targets
|
658 + | }
|
659 + | /// <p>User-provided idempotency token.</p>
|
660 + | pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
661 + | self.client_token = ::std::option::Option::Some(input.into());
|
662 + | self
|
663 + | }
|
664 + | /// <p>User-provided idempotency token.</p>
|
665 + | pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
666 + | self.client_token = input;
|
667 + | self
|
668 + | }
|
669 + | /// <p>User-provided idempotency token.</p>
|
670 + | pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
|
671 + | &self.client_token
|
672 + | }
|
673 + | /// Appends an item to `tags`.
|
674 + | ///
|
675 + | /// To override the contents of this collection use [`set_tags`](Self::set_tags).
|
676 + | ///
|
677 + | /// <p>Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a maintenance window to identify the type of tasks it will run, the types of targets, and the environment it will run in. In this case, you could specify the following key-value pairs:</p>
|
678 + | /// <ul>
|
679 + | /// <li>
|
680 + | /// <p><code>Key=TaskType,Value=AgentUpdate</code></p></li>
|
681 + | /// <li>
|
682 + | /// <p><code>Key=OS,Value=Windows</code></p></li>
|
683 + | /// <li>
|
684 + | /// <p><code>Key=Environment,Value=Production</code></p></li>
|
685 + | /// </ul><note>
|
686 + | /// <p>To add tags to an existing maintenance window, use the <code>AddTagsToResource</code> operation.</p>
|
687 + | /// </note>
|
688 + | pub fn tags(mut self, input: crate::types::Tag) -> Self {
|
689 + | let mut v = self.tags.unwrap_or_default();
|
690 + | v.push(input);
|
691 + | self.tags = ::std::option::Option::Some(v);
|
692 + | self
|
693 + | }
|
694 + | /// <p>Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a maintenance window to identify the type of tasks it will run, the types of targets, and the environment it will run in. In this case, you could specify the following key-value pairs:</p>
|
695 + | /// <ul>
|
696 + | /// <li>
|
697 + | /// <p><code>Key=TaskType,Value=AgentUpdate</code></p></li>
|
698 + | /// <li>
|
699 + | /// <p><code>Key=OS,Value=Windows</code></p></li>
|
700 + | /// <li>
|
701 + | /// <p><code>Key=Environment,Value=Production</code></p></li>
|
702 + | /// </ul><note>
|
703 + | /// <p>To add tags to an existing maintenance window, use the <code>AddTagsToResource</code> operation.</p>
|
704 + | /// </note>
|
705 + | pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
|
706 + | self.tags = input;
|
707 + | self
|
708 + | }
|
709 + | /// <p>Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a maintenance window to identify the type of tasks it will run, the types of targets, and the environment it will run in. In this case, you could specify the following key-value pairs:</p>
|
710 + | /// <ul>
|
711 + | /// <li>
|
712 + | /// <p><code>Key=TaskType,Value=AgentUpdate</code></p></li>
|
713 + | /// <li>
|
714 + | /// <p><code>Key=OS,Value=Windows</code></p></li>
|
715 + | /// <li>
|
716 + | /// <p><code>Key=Environment,Value=Production</code></p></li>
|
717 + | /// </ul><note>
|
718 + | /// <p>To add tags to an existing maintenance window, use the <code>AddTagsToResource</code> operation.</p>
|
719 + | /// </note>
|
720 + | pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
|
721 + | &self.tags
|
722 + | }
|
723 + | /// Consumes the builder and constructs a [`CreateMaintenanceWindowInput`](crate::operation::create_maintenance_window::CreateMaintenanceWindowInput).
|
724 + | pub fn build(
|
725 + | self,
|
726 + | ) -> ::std::result::Result<
|
727 + | crate::operation::create_maintenance_window::CreateMaintenanceWindowInput,
|
728 + | ::aws_smithy_types::error::operation::BuildError,
|
729 + | > {
|
730 + | ::std::result::Result::Ok(crate::operation::create_maintenance_window::CreateMaintenanceWindowInput {
|
731 + | name: self.name,
|
732 + | description: self.description,
|
733 + | start_date: self.start_date,
|
734 + | end_date: self.end_date,
|
735 + | schedule: self.schedule,
|
736 + | schedule_timezone: self.schedule_timezone,
|
737 + | schedule_offset: self.schedule_offset,
|
738 + | duration: self.duration,
|
739 + | cutoff: self.cutoff,
|
740 + | allow_unassociated_targets: self.allow_unassociated_targets,
|
741 + | client_token: self.client_token,
|
742 + | tags: self.tags,
|
743 + | })
|
744 + | }
|
745 + | }
|
746 + | impl ::std::fmt::Debug for CreateMaintenanceWindowInputBuilder {
|
747 + | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
748 + | let mut formatter = f.debug_struct("CreateMaintenanceWindowInputBuilder");
|
749 + | formatter.field("name", &self.name);
|
750 + | formatter.field("description", &"*** Sensitive Data Redacted ***");
|
751 + | formatter.field("start_date", &self.start_date);
|
752 + | formatter.field("end_date", &self.end_date);
|
753 + | formatter.field("schedule", &self.schedule);
|
754 + | formatter.field("schedule_timezone", &self.schedule_timezone);
|
755 + | formatter.field("schedule_offset", &self.schedule_offset);
|
756 + | formatter.field("duration", &self.duration);
|
757 + | formatter.field("cutoff", &self.cutoff);
|
758 + | formatter.field("allow_unassociated_targets", &self.allow_unassociated_targets);
|
759 + | formatter.field("client_token", &self.client_token);
|
760 + | formatter.field("tags", &self.tags);
|
761 + | formatter.finish()
|
762 + | }
|
763 + | }
|