1 + | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + |
|
3 + | /// <p>Describes the information about a task invocation for a particular target as part of a task execution performed as part of a maintenance window execution.</p>
|
4 + | #[non_exhaustive]
|
5 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
|
6 + | pub struct MaintenanceWindowExecutionTaskInvocationIdentity {
|
7 + | /// <p>The ID of the maintenance window execution that ran the task.</p>
|
8 + | pub window_execution_id: ::std::option::Option<::std::string::String>,
|
9 + | /// <p>The ID of the specific task execution in the maintenance window execution.</p>
|
10 + | pub task_execution_id: ::std::option::Option<::std::string::String>,
|
11 + | /// <p>The ID of the task invocation.</p>
|
12 + | pub invocation_id: ::std::option::Option<::std::string::String>,
|
13 + | /// <p>The ID of the action performed in the service that actually handled the task invocation. If the task type is <code>RUN_COMMAND</code>, this value is the command ID.</p>
|
14 + | pub execution_id: ::std::option::Option<::std::string::String>,
|
15 + | /// <p>The task type.</p>
|
16 + | pub task_type: ::std::option::Option<crate::types::MaintenanceWindowTaskType>,
|
17 + | /// <p>The parameters that were provided for the invocation when it was run.</p>
|
18 + | pub parameters: ::std::option::Option<::std::string::String>,
|
19 + | /// <p>The status of the task invocation.</p>
|
20 + | pub status: ::std::option::Option<crate::types::MaintenanceWindowExecutionStatus>,
|
21 + | /// <p>The details explaining the status of the task invocation. Not available for all status values.</p>
|
22 + | pub status_details: ::std::option::Option<::std::string::String>,
|
23 + | /// <p>The time the invocation started.</p>
|
24 + | pub start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
25 + | /// <p>The time the invocation finished.</p>
|
26 + | pub end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
27 + | /// <p>User-provided value that was specified when the target was registered with the maintenance window. This was also included in any Amazon CloudWatch Events events raised during the task invocation.</p>
|
28 + | pub owner_information: ::std::option::Option<::std::string::String>,
|
29 + | /// <p>The ID of the target definition in this maintenance window the invocation was performed for.</p>
|
30 + | pub window_target_id: ::std::option::Option<::std::string::String>,
|
31 + | }
|
32 + | impl MaintenanceWindowExecutionTaskInvocationIdentity {
|
33 + | /// <p>The ID of the maintenance window execution that ran the task.</p>
|
34 + | pub fn window_execution_id(&self) -> ::std::option::Option<&str> {
|
35 + | self.window_execution_id.as_deref()
|
36 + | }
|
37 + | /// <p>The ID of the specific task execution in the maintenance window execution.</p>
|
38 + | pub fn task_execution_id(&self) -> ::std::option::Option<&str> {
|
39 + | self.task_execution_id.as_deref()
|
40 + | }
|
41 + | /// <p>The ID of the task invocation.</p>
|
42 + | pub fn invocation_id(&self) -> ::std::option::Option<&str> {
|
43 + | self.invocation_id.as_deref()
|
44 + | }
|
45 + | /// <p>The ID of the action performed in the service that actually handled the task invocation. If the task type is <code>RUN_COMMAND</code>, this value is the command ID.</p>
|
46 + | pub fn execution_id(&self) -> ::std::option::Option<&str> {
|
47 + | self.execution_id.as_deref()
|
48 + | }
|
49 + | /// <p>The task type.</p>
|
50 + | pub fn task_type(&self) -> ::std::option::Option<&crate::types::MaintenanceWindowTaskType> {
|
51 + | self.task_type.as_ref()
|
52 + | }
|
53 + | /// <p>The parameters that were provided for the invocation when it was run.</p>
|
54 + | pub fn parameters(&self) -> ::std::option::Option<&str> {
|
55 + | self.parameters.as_deref()
|
56 + | }
|
57 + | /// <p>The status of the task invocation.</p>
|
58 + | pub fn status(&self) -> ::std::option::Option<&crate::types::MaintenanceWindowExecutionStatus> {
|
59 + | self.status.as_ref()
|
60 + | }
|
61 + | /// <p>The details explaining the status of the task invocation. Not available for all status values.</p>
|
62 + | pub fn status_details(&self) -> ::std::option::Option<&str> {
|
63 + | self.status_details.as_deref()
|
64 + | }
|
65 + | /// <p>The time the invocation started.</p>
|
66 + | pub fn start_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
67 + | self.start_time.as_ref()
|
68 + | }
|
69 + | /// <p>The time the invocation finished.</p>
|
70 + | pub fn end_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
71 + | self.end_time.as_ref()
|
72 + | }
|
73 + | /// <p>User-provided value that was specified when the target was registered with the maintenance window. This was also included in any Amazon CloudWatch Events events raised during the task invocation.</p>
|
74 + | pub fn owner_information(&self) -> ::std::option::Option<&str> {
|
75 + | self.owner_information.as_deref()
|
76 + | }
|
77 + | /// <p>The ID of the target definition in this maintenance window the invocation was performed for.</p>
|
78 + | pub fn window_target_id(&self) -> ::std::option::Option<&str> {
|
79 + | self.window_target_id.as_deref()
|
80 + | }
|
81 + | }
|
82 + | impl ::std::fmt::Debug for MaintenanceWindowExecutionTaskInvocationIdentity {
|
83 + | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
84 + | let mut formatter = f.debug_struct("MaintenanceWindowExecutionTaskInvocationIdentity");
|
85 + | formatter.field("window_execution_id", &self.window_execution_id);
|
86 + | formatter.field("task_execution_id", &self.task_execution_id);
|
87 + | formatter.field("invocation_id", &self.invocation_id);
|
88 + | formatter.field("execution_id", &self.execution_id);
|
89 + | formatter.field("task_type", &self.task_type);
|
90 + | formatter.field("parameters", &"*** Sensitive Data Redacted ***");
|
91 + | formatter.field("status", &self.status);
|
92 + | formatter.field("status_details", &self.status_details);
|
93 + | formatter.field("start_time", &self.start_time);
|
94 + | formatter.field("end_time", &self.end_time);
|
95 + | formatter.field("owner_information", &"*** Sensitive Data Redacted ***");
|
96 + | formatter.field("window_target_id", &self.window_target_id);
|
97 + | formatter.finish()
|
98 + | }
|
99 + | }
|
100 + | static MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_WINDOW_EXECUTION_ID: ::aws_smithy_schema::Schema<'static> =
|
101 + | ::aws_smithy_schema::Schema::new_member(
|
102 + | ::aws_smithy_schema::ShapeId::from_parts(
|
103 + | "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentity$WindowExecutionId",
|
104 + | "com.amazonaws.ssm",
|
105 + | "MaintenanceWindowExecutionTaskInvocationIdentity",
|
106 + | ),
|
107 + | ::aws_smithy_schema::ShapeType::String,
|
108 + | "WindowExecutionId",
|
109 + | 0,
|
110 + | );
|
111 + | static MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_TASK_EXECUTION_ID: ::aws_smithy_schema::Schema<'static> =
|
112 + | ::aws_smithy_schema::Schema::new_member(
|
113 + | ::aws_smithy_schema::ShapeId::from_parts(
|
114 + | "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentity$TaskExecutionId",
|
115 + | "com.amazonaws.ssm",
|
116 + | "MaintenanceWindowExecutionTaskInvocationIdentity",
|
117 + | ),
|
118 + | ::aws_smithy_schema::ShapeType::String,
|
119 + | "TaskExecutionId",
|
120 + | 1,
|
121 + | );
|
122 + | static MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_INVOCATION_ID: ::aws_smithy_schema::Schema<'static> =
|
123 + | ::aws_smithy_schema::Schema::new_member(
|
124 + | ::aws_smithy_schema::ShapeId::from_parts(
|
125 + | "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentity$InvocationId",
|
126 + | "com.amazonaws.ssm",
|
127 + | "MaintenanceWindowExecutionTaskInvocationIdentity",
|
128 + | ),
|
129 + | ::aws_smithy_schema::ShapeType::String,
|
130 + | "InvocationId",
|
131 + | 2,
|
132 + | );
|
133 + | static MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_EXECUTION_ID: ::aws_smithy_schema::Schema<'static> =
|
134 + | ::aws_smithy_schema::Schema::new_member(
|
135 + | ::aws_smithy_schema::ShapeId::from_parts(
|
136 + | "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentity$ExecutionId",
|
137 + | "com.amazonaws.ssm",
|
138 + | "MaintenanceWindowExecutionTaskInvocationIdentity",
|
139 + | ),
|
140 + | ::aws_smithy_schema::ShapeType::String,
|
141 + | "ExecutionId",
|
142 + | 3,
|
143 + | );
|
144 + | static MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_TASK_TYPE: ::aws_smithy_schema::Schema<'static> =
|
145 + | ::aws_smithy_schema::Schema::new_member(
|
146 + | ::aws_smithy_schema::ShapeId::from_parts(
|
147 + | "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentity$TaskType",
|
148 + | "com.amazonaws.ssm",
|
149 + | "MaintenanceWindowExecutionTaskInvocationIdentity",
|
150 + | ),
|
151 + | ::aws_smithy_schema::ShapeType::String,
|
152 + | "TaskType",
|
153 + | 4,
|
154 + | );
|
155 + | static MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_PARAMETERS: ::aws_smithy_schema::Schema<'static> =
|
156 + | ::aws_smithy_schema::Schema::new_member(
|
157 + | ::aws_smithy_schema::ShapeId::from_parts(
|
158 + | "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentity$Parameters",
|
159 + | "com.amazonaws.ssm",
|
160 + | "MaintenanceWindowExecutionTaskInvocationIdentity",
|
161 + | ),
|
162 + | ::aws_smithy_schema::ShapeType::String,
|
163 + | "Parameters",
|
164 + | 5,
|
165 + | );
|
166 + | static MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_STATUS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
167 + | ::aws_smithy_schema::ShapeId::from_parts(
|
168 + | "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentity$Status",
|
169 + | "com.amazonaws.ssm",
|
170 + | "MaintenanceWindowExecutionTaskInvocationIdentity",
|
171 + | ),
|
172 + | ::aws_smithy_schema::ShapeType::String,
|
173 + | "Status",
|
174 + | 6,
|
175 + | );
|
176 + | static MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_STATUS_DETAILS: ::aws_smithy_schema::Schema<'static> =
|
177 + | ::aws_smithy_schema::Schema::new_member(
|
178 + | ::aws_smithy_schema::ShapeId::from_parts(
|
179 + | "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentity$StatusDetails",
|
180 + | "com.amazonaws.ssm",
|
181 + | "MaintenanceWindowExecutionTaskInvocationIdentity",
|
182 + | ),
|
183 + | ::aws_smithy_schema::ShapeType::String,
|
184 + | "StatusDetails",
|
185 + | 7,
|
186 + | );
|
187 + | static MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_START_TIME: ::aws_smithy_schema::Schema<'static> =
|
188 + | ::aws_smithy_schema::Schema::new_member(
|
189 + | ::aws_smithy_schema::ShapeId::from_parts(
|
190 + | "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentity$StartTime",
|
191 + | "com.amazonaws.ssm",
|
192 + | "MaintenanceWindowExecutionTaskInvocationIdentity",
|
193 + | ),
|
194 + | ::aws_smithy_schema::ShapeType::Timestamp,
|
195 + | "StartTime",
|
196 + | 8,
|
197 + | );
|
198 + | static MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_END_TIME: ::aws_smithy_schema::Schema<'static> =
|
199 + | ::aws_smithy_schema::Schema::new_member(
|
200 + | ::aws_smithy_schema::ShapeId::from_parts(
|
201 + | "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentity$EndTime",
|
202 + | "com.amazonaws.ssm",
|
203 + | "MaintenanceWindowExecutionTaskInvocationIdentity",
|
204 + | ),
|
205 + | ::aws_smithy_schema::ShapeType::Timestamp,
|
206 + | "EndTime",
|
207 + | 9,
|
208 + | );
|
209 + | static MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_OWNER_INFORMATION: ::aws_smithy_schema::Schema<'static> =
|
210 + | ::aws_smithy_schema::Schema::new_member(
|
211 + | ::aws_smithy_schema::ShapeId::from_parts(
|
212 + | "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentity$OwnerInformation",
|
213 + | "com.amazonaws.ssm",
|
214 + | "MaintenanceWindowExecutionTaskInvocationIdentity",
|
215 + | ),
|
216 + | ::aws_smithy_schema::ShapeType::String,
|
217 + | "OwnerInformation",
|
218 + | 10,
|
219 + | );
|
220 + | static MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_WINDOW_TARGET_ID: ::aws_smithy_schema::Schema<'static> =
|
221 + | ::aws_smithy_schema::Schema::new_member(
|
222 + | ::aws_smithy_schema::ShapeId::from_parts(
|
223 + | "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentity$WindowTargetId",
|
224 + | "com.amazonaws.ssm",
|
225 + | "MaintenanceWindowExecutionTaskInvocationIdentity",
|
226 + | ),
|
227 + | ::aws_smithy_schema::ShapeType::String,
|
228 + | "WindowTargetId",
|
229 + | 11,
|
230 + | );
|
231 + | static MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
|
232 + | ::aws_smithy_schema::ShapeId::from_parts(
|
233 + | "com.amazonaws.ssm#MaintenanceWindowExecutionTaskInvocationIdentity",
|
234 + | "com.amazonaws.ssm",
|
235 + | "MaintenanceWindowExecutionTaskInvocationIdentity",
|
236 + | ),
|
237 + | ::aws_smithy_schema::ShapeType::Structure,
|
238 + | &[
|
239 + | &MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_WINDOW_EXECUTION_ID,
|
240 + | &MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_TASK_EXECUTION_ID,
|
241 + | &MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_INVOCATION_ID,
|
242 + | &MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_EXECUTION_ID,
|
243 + | &MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_TASK_TYPE,
|
244 + | &MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_PARAMETERS,
|
245 + | &MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_STATUS,
|
246 + | &MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_STATUS_DETAILS,
|
247 + | &MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_START_TIME,
|
248 + | &MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_END_TIME,
|
249 + | &MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_OWNER_INFORMATION,
|
250 + | &MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_WINDOW_TARGET_ID,
|
251 + | ],
|
252 + | );
|
253 + | impl MaintenanceWindowExecutionTaskInvocationIdentity {
|
254 + | /// The schema for this shape.
|
255 + | pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_SCHEMA;
|
256 + | }
|
257 + | impl ::aws_smithy_schema::serde::SerializableStruct for MaintenanceWindowExecutionTaskInvocationIdentity {
|
258 + | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
259 + | fn serialize_members(
|
260 + | &self,
|
261 + | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
262 + | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
263 + | if let Some(ref val) = self.window_execution_id {
|
264 + | ser.write_string(&MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_WINDOW_EXECUTION_ID, val)?;
|
265 + | }
|
266 + | if let Some(ref val) = self.task_execution_id {
|
267 + | ser.write_string(&MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_TASK_EXECUTION_ID, val)?;
|
268 + | }
|
269 + | if let Some(ref val) = self.invocation_id {
|
270 + | ser.write_string(&MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_INVOCATION_ID, val)?;
|
271 + | }
|
272 + | if let Some(ref val) = self.execution_id {
|
273 + | ser.write_string(&MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_EXECUTION_ID, val)?;
|
274 + | }
|
275 + | if let Some(ref val) = self.task_type {
|
276 + | ser.write_string(&MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_TASK_TYPE, val.as_str())?;
|
277 + | }
|
278 + | if let Some(ref val) = self.parameters {
|
279 + | ser.write_string(&MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_PARAMETERS, val)?;
|
280 + | }
|
281 + | if let Some(ref val) = self.status {
|
282 + | ser.write_string(&MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_STATUS, val.as_str())?;
|
283 + | }
|
284 + | if let Some(ref val) = self.status_details {
|
285 + | ser.write_string(&MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_STATUS_DETAILS, val)?;
|
286 + | }
|
287 + | if let Some(ref val) = self.start_time {
|
288 + | ser.write_timestamp(&MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_START_TIME, val)?;
|
289 + | }
|
290 + | if let Some(ref val) = self.end_time {
|
291 + | ser.write_timestamp(&MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_END_TIME, val)?;
|
292 + | }
|
293 + | if let Some(ref val) = self.owner_information {
|
294 + | ser.write_string(&MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_OWNER_INFORMATION, val)?;
|
295 + | }
|
296 + | if let Some(ref val) = self.window_target_id {
|
297 + | ser.write_string(&MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_MEMBER_WINDOW_TARGET_ID, val)?;
|
298 + | }
|
299 + | Ok(())
|
300 + | }
|
301 + | }
|
302 + | impl MaintenanceWindowExecutionTaskInvocationIdentity {
|
303 + | /// Deserializes this structure from a [`ShapeDeserializer`].
|
304 + | pub fn deserialize(
|
305 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
306 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
307 + | #[allow(unused_variables, unused_mut)]
|
308 + | let mut builder = Self::builder();
|
309 + | #[allow(
|
310 + | unused_variables,
|
311 + | unreachable_code,
|
312 + | clippy::single_match,
|
313 + | clippy::match_single_binding,
|
314 + | clippy::diverging_sub_expression
|
315 + | )]
|
316 + | deserializer.read_struct(&MAINTENANCEWINDOWEXECUTIONTASKINVOCATIONIDENTITY_SCHEMA, &mut |member, deser| {
|
317 + | match member.member_index() {
|
318 + | Some(0) => {
|
319 + | if deser.is_null() {
|
320 + | deser.read_null()?;
|
321 + | } else {
|
322 + | builder.window_execution_id = Some(deser.read_string(member)?);
|
323 + | }
|
324 + | }
|
325 + | Some(1) => {
|
326 + | if deser.is_null() {
|
327 + | deser.read_null()?;
|
328 + | } else {
|
329 + | builder.task_execution_id = Some(deser.read_string(member)?);
|
330 + | }
|
331 + | }
|
332 + | Some(2) => {
|
333 + | if deser.is_null() {
|
334 + | deser.read_null()?;
|
335 + | } else {
|
336 + | builder.invocation_id = Some(deser.read_string(member)?);
|
337 + | }
|
338 + | }
|
339 + | Some(3) => {
|
340 + | if deser.is_null() {
|
341 + | deser.read_null()?;
|
342 + | } else {
|
343 + | builder.execution_id = Some(deser.read_string(member)?);
|
344 + | }
|
345 + | }
|
346 + | Some(4) => {
|
347 + | if deser.is_null() {
|
348 + | deser.read_null()?;
|
349 + | } else {
|
350 + | builder.task_type = Some(crate::types::MaintenanceWindowTaskType::from(deser.read_string(member)?.as_str()));
|
351 + | }
|
352 + | }
|
353 + | Some(5) => {
|
354 + | if deser.is_null() {
|
355 + | deser.read_null()?;
|
356 + | } else {
|
357 + | builder.parameters = Some(deser.read_string(member)?);
|
358 + | }
|
359 + | }
|
360 + | Some(6) => {
|
361 + | if deser.is_null() {
|
362 + | deser.read_null()?;
|
363 + | } else {
|
364 + | builder.status = Some(crate::types::MaintenanceWindowExecutionStatus::from(deser.read_string(member)?.as_str()));
|
365 + | }
|
366 + | }
|
367 + | Some(7) => {
|
368 + | if deser.is_null() {
|
369 + | deser.read_null()?;
|
370 + | } else {
|
371 + | builder.status_details = Some(deser.read_string(member)?);
|
372 + | }
|
373 + | }
|
374 + | Some(8) => {
|
375 + | if deser.is_null() {
|
376 + | deser.read_null()?;
|
377 + | } else {
|
378 + | builder.start_time = Some(deser.read_timestamp(member)?);
|
379 + | }
|
380 + | }
|
381 + | Some(9) => {
|
382 + | if deser.is_null() {
|
383 + | deser.read_null()?;
|
384 + | } else {
|
385 + | builder.end_time = Some(deser.read_timestamp(member)?);
|
386 + | }
|
387 + | }
|
388 + | Some(10) => {
|
389 + | if deser.is_null() {
|
390 + | deser.read_null()?;
|
391 + | } else {
|
392 + | builder.owner_information = Some(deser.read_string(member)?);
|
393 + | }
|
394 + | }
|
395 + | Some(11) => {
|
396 + | if deser.is_null() {
|
397 + | deser.read_null()?;
|
398 + | } else {
|
399 + | builder.window_target_id = Some(deser.read_string(member)?);
|
400 + | }
|
401 + | }
|
402 + | _ => {}
|
403 + | }
|
404 + | Ok(())
|
405 + | })?;
|
406 + | Ok(builder.build())
|
407 + | }
|
408 + | }
|
409 + | impl MaintenanceWindowExecutionTaskInvocationIdentity {
|
410 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
411 + | pub fn deserialize_with_response(
|
412 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
413 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
414 + | _status: u16,
|
415 + | _body: &[u8],
|
416 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
417 + | Self::deserialize(deserializer)
|
418 + | }
|
419 + | }
|
420 + | impl MaintenanceWindowExecutionTaskInvocationIdentity {
|
421 + | /// Creates a new builder-style object to manufacture [`MaintenanceWindowExecutionTaskInvocationIdentity`](crate::types::MaintenanceWindowExecutionTaskInvocationIdentity).
|
422 + | pub fn builder() -> crate::types::builders::MaintenanceWindowExecutionTaskInvocationIdentityBuilder {
|
423 + | crate::types::builders::MaintenanceWindowExecutionTaskInvocationIdentityBuilder::default()
|
424 + | }
|
425 + | }
|
426 + |
|
427 + | /// A builder for [`MaintenanceWindowExecutionTaskInvocationIdentity`](crate::types::MaintenanceWindowExecutionTaskInvocationIdentity).
|
428 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
|
429 + | #[non_exhaustive]
|
430 + | pub struct MaintenanceWindowExecutionTaskInvocationIdentityBuilder {
|
431 + | pub(crate) window_execution_id: ::std::option::Option<::std::string::String>,
|
432 + | pub(crate) task_execution_id: ::std::option::Option<::std::string::String>,
|
433 + | pub(crate) invocation_id: ::std::option::Option<::std::string::String>,
|
434 + | pub(crate) execution_id: ::std::option::Option<::std::string::String>,
|
435 + | pub(crate) task_type: ::std::option::Option<crate::types::MaintenanceWindowTaskType>,
|
436 + | pub(crate) parameters: ::std::option::Option<::std::string::String>,
|
437 + | pub(crate) status: ::std::option::Option<crate::types::MaintenanceWindowExecutionStatus>,
|
438 + | pub(crate) status_details: ::std::option::Option<::std::string::String>,
|
439 + | pub(crate) start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
440 + | pub(crate) end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
441 + | pub(crate) owner_information: ::std::option::Option<::std::string::String>,
|
442 + | pub(crate) window_target_id: ::std::option::Option<::std::string::String>,
|
443 + | }
|
444 + | impl MaintenanceWindowExecutionTaskInvocationIdentityBuilder {
|
445 + | /// <p>The ID of the maintenance window execution that ran the task.</p>
|
446 + | pub fn window_execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
447 + | self.window_execution_id = ::std::option::Option::Some(input.into());
|
448 + | self
|
449 + | }
|
450 + | /// <p>The ID of the maintenance window execution that ran the task.</p>
|
451 + | pub fn set_window_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
452 + | self.window_execution_id = input;
|
453 + | self
|
454 + | }
|
455 + | /// <p>The ID of the maintenance window execution that ran the task.</p>
|
456 + | pub fn get_window_execution_id(&self) -> &::std::option::Option<::std::string::String> {
|
457 + | &self.window_execution_id
|
458 + | }
|
459 + | /// <p>The ID of the specific task execution in the maintenance window execution.</p>
|
460 + | pub fn task_execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
461 + | self.task_execution_id = ::std::option::Option::Some(input.into());
|
462 + | self
|
463 + | }
|
464 + | /// <p>The ID of the specific task execution in the maintenance window execution.</p>
|
465 + | pub fn set_task_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
466 + | self.task_execution_id = input;
|
467 + | self
|
468 + | }
|
469 + | /// <p>The ID of the specific task execution in the maintenance window execution.</p>
|
470 + | pub fn get_task_execution_id(&self) -> &::std::option::Option<::std::string::String> {
|
471 + | &self.task_execution_id
|
472 + | }
|
473 + | /// <p>The ID of the task invocation.</p>
|
474 + | pub fn invocation_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
475 + | self.invocation_id = ::std::option::Option::Some(input.into());
|
476 + | self
|
477 + | }
|
478 + | /// <p>The ID of the task invocation.</p>
|
479 + | pub fn set_invocation_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
480 + | self.invocation_id = input;
|
481 + | self
|
482 + | }
|
483 + | /// <p>The ID of the task invocation.</p>
|
484 + | pub fn get_invocation_id(&self) -> &::std::option::Option<::std::string::String> {
|
485 + | &self.invocation_id
|
486 + | }
|
487 + | /// <p>The ID of the action performed in the service that actually handled the task invocation. If the task type is <code>RUN_COMMAND</code>, this value is the command ID.</p>
|
488 + | pub fn execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
489 + | self.execution_id = ::std::option::Option::Some(input.into());
|
490 + | self
|
491 + | }
|
492 + | /// <p>The ID of the action performed in the service that actually handled the task invocation. If the task type is <code>RUN_COMMAND</code>, this value is the command ID.</p>
|
493 + | pub fn set_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
494 + | self.execution_id = input;
|
495 + | self
|
496 + | }
|
497 + | /// <p>The ID of the action performed in the service that actually handled the task invocation. If the task type is <code>RUN_COMMAND</code>, this value is the command ID.</p>
|
498 + | pub fn get_execution_id(&self) -> &::std::option::Option<::std::string::String> {
|
499 + | &self.execution_id
|
500 + | }
|
501 + | /// <p>The task type.</p>
|
502 + | pub fn task_type(mut self, input: crate::types::MaintenanceWindowTaskType) -> Self {
|
503 + | self.task_type = ::std::option::Option::Some(input);
|
504 + | self
|
505 + | }
|
506 + | /// <p>The task type.</p>
|
507 + | pub fn set_task_type(mut self, input: ::std::option::Option<crate::types::MaintenanceWindowTaskType>) -> Self {
|
508 + | self.task_type = input;
|
509 + | self
|
510 + | }
|
511 + | /// <p>The task type.</p>
|
512 + | pub fn get_task_type(&self) -> &::std::option::Option<crate::types::MaintenanceWindowTaskType> {
|
513 + | &self.task_type
|
514 + | }
|
515 + | /// <p>The parameters that were provided for the invocation when it was run.</p>
|
516 + | pub fn parameters(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
517 + | self.parameters = ::std::option::Option::Some(input.into());
|
518 + | self
|
519 + | }
|
520 + | /// <p>The parameters that were provided for the invocation when it was run.</p>
|
521 + | pub fn set_parameters(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
522 + | self.parameters = input;
|
523 + | self
|
524 + | }
|
525 + | /// <p>The parameters that were provided for the invocation when it was run.</p>
|
526 + | pub fn get_parameters(&self) -> &::std::option::Option<::std::string::String> {
|
527 + | &self.parameters
|
528 + | }
|
529 + | /// <p>The status of the task invocation.</p>
|
530 + | pub fn status(mut self, input: crate::types::MaintenanceWindowExecutionStatus) -> Self {
|
531 + | self.status = ::std::option::Option::Some(input);
|
532 + | self
|
533 + | }
|
534 + | /// <p>The status of the task invocation.</p>
|
535 + | pub fn set_status(mut self, input: ::std::option::Option<crate::types::MaintenanceWindowExecutionStatus>) -> Self {
|
536 + | self.status = input;
|
537 + | self
|
538 + | }
|
539 + | /// <p>The status of the task invocation.</p>
|
540 + | pub fn get_status(&self) -> &::std::option::Option<crate::types::MaintenanceWindowExecutionStatus> {
|
541 + | &self.status
|
542 + | }
|
543 + | /// <p>The details explaining the status of the task invocation. Not available for all status values.</p>
|
544 + | pub fn status_details(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
545 + | self.status_details = ::std::option::Option::Some(input.into());
|
546 + | self
|
547 + | }
|
548 + | /// <p>The details explaining the status of the task invocation. Not available for all status values.</p>
|
549 + | pub fn set_status_details(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
550 + | self.status_details = input;
|
551 + | self
|
552 + | }
|
553 + | /// <p>The details explaining the status of the task invocation. Not available for all status values.</p>
|
554 + | pub fn get_status_details(&self) -> &::std::option::Option<::std::string::String> {
|
555 + | &self.status_details
|
556 + | }
|
557 + | /// <p>The time the invocation started.</p>
|
558 + | pub fn start_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
559 + | self.start_time = ::std::option::Option::Some(input);
|
560 + | self
|
561 + | }
|
562 + | /// <p>The time the invocation started.</p>
|
563 + | pub fn set_start_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
564 + | self.start_time = input;
|
565 + | self
|
566 + | }
|
567 + | /// <p>The time the invocation started.</p>
|
568 + | pub fn get_start_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
569 + | &self.start_time
|
570 + | }
|
571 + | /// <p>The time the invocation finished.</p>
|
572 + | pub fn end_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
573 + | self.end_time = ::std::option::Option::Some(input);
|
574 + | self
|
575 + | }
|
576 + | /// <p>The time the invocation finished.</p>
|
577 + | pub fn set_end_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
578 + | self.end_time = input;
|
579 + | self
|
580 + | }
|
581 + | /// <p>The time the invocation finished.</p>
|
582 + | pub fn get_end_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
583 + | &self.end_time
|
584 + | }
|
585 + | /// <p>User-provided value that was specified when the target was registered with the maintenance window. This was also included in any Amazon CloudWatch Events events raised during the task invocation.</p>
|
586 + | pub fn owner_information(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
587 + | self.owner_information = ::std::option::Option::Some(input.into());
|
588 + | self
|
589 + | }
|
590 + | /// <p>User-provided value that was specified when the target was registered with the maintenance window. This was also included in any Amazon CloudWatch Events events raised during the task invocation.</p>
|
591 + | pub fn set_owner_information(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
592 + | self.owner_information = input;
|
593 + | self
|
594 + | }
|
595 + | /// <p>User-provided value that was specified when the target was registered with the maintenance window. This was also included in any Amazon CloudWatch Events events raised during the task invocation.</p>
|
596 + | pub fn get_owner_information(&self) -> &::std::option::Option<::std::string::String> {
|
597 + | &self.owner_information
|
598 + | }
|
599 + | /// <p>The ID of the target definition in this maintenance window the invocation was performed for.</p>
|
600 + | pub fn window_target_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
601 + | self.window_target_id = ::std::option::Option::Some(input.into());
|
602 + | self
|
603 + | }
|
604 + | /// <p>The ID of the target definition in this maintenance window the invocation was performed for.</p>
|
605 + | pub fn set_window_target_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
606 + | self.window_target_id = input;
|
607 + | self
|
608 + | }
|
609 + | /// <p>The ID of the target definition in this maintenance window the invocation was performed for.</p>
|
610 + | pub fn get_window_target_id(&self) -> &::std::option::Option<::std::string::String> {
|
611 + | &self.window_target_id
|
612 + | }
|
613 + | /// Consumes the builder and constructs a [`MaintenanceWindowExecutionTaskInvocationIdentity`](crate::types::MaintenanceWindowExecutionTaskInvocationIdentity).
|
614 + | pub fn build(self) -> crate::types::MaintenanceWindowExecutionTaskInvocationIdentity {
|
615 + | crate::types::MaintenanceWindowExecutionTaskInvocationIdentity {
|
616 + | window_execution_id: self.window_execution_id,
|
617 + | task_execution_id: self.task_execution_id,
|
618 + | invocation_id: self.invocation_id,
|
619 + | execution_id: self.execution_id,
|
620 + | task_type: self.task_type,
|
621 + | parameters: self.parameters,
|
622 + | status: self.status,
|
623 + | status_details: self.status_details,
|
624 + | start_time: self.start_time,
|
625 + | end_time: self.end_time,
|
626 + | owner_information: self.owner_information,
|
627 + | window_target_id: self.window_target_id,
|
628 + | }
|
629 + | }
|
630 + | }
|
631 + | impl ::std::fmt::Debug for MaintenanceWindowExecutionTaskInvocationIdentityBuilder {
|
632 + | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
633 + | let mut formatter = f.debug_struct("MaintenanceWindowExecutionTaskInvocationIdentityBuilder");
|
634 + | formatter.field("window_execution_id", &self.window_execution_id);
|
635 + | formatter.field("task_execution_id", &self.task_execution_id);
|
636 + | formatter.field("invocation_id", &self.invocation_id);
|
637 + | formatter.field("execution_id", &self.execution_id);
|
638 + | formatter.field("task_type", &self.task_type);
|
639 + | formatter.field("parameters", &"*** Sensitive Data Redacted ***");
|
640 + | formatter.field("status", &self.status);
|
641 + | formatter.field("status_details", &self.status_details);
|
642 + | formatter.field("start_time", &self.start_time);
|
643 + | formatter.field("end_time", &self.end_time);
|
644 + | formatter.field("owner_information", &"*** Sensitive Data Redacted ***");
|
645 + | formatter.field("window_target_id", &self.window_target_id);
|
646 + | formatter.finish()
|
647 + | }
|
648 + | }
|