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 GetMaintenanceWindowExecutionTaskInvocationOutput {
|
6 + | /// <p>The maintenance window execution ID.</p>
|
7 + | pub window_execution_id: ::std::option::Option<::std::string::String>,
|
8 + | /// <p>The task execution ID.</p>
|
9 + | pub task_execution_id: ::std::option::Option<::std::string::String>,
|
10 + | /// <p>The invocation ID.</p>
|
11 + | pub invocation_id: ::std::option::Option<::std::string::String>,
|
12 + | /// <p>The execution ID.</p>
|
13 + | pub execution_id: ::std::option::Option<::std::string::String>,
|
14 + | /// <p>Retrieves the task type for a maintenance window.</p>
|
15 + | pub task_type: ::std::option::Option<crate::types::MaintenanceWindowTaskType>,
|
16 + | /// <p>The parameters used at the time that the task ran.</p>
|
17 + | pub parameters: ::std::option::Option<::std::string::String>,
|
18 + | /// <p>The task status for an invocation.</p>
|
19 + | pub status: ::std::option::Option<crate::types::MaintenanceWindowExecutionStatus>,
|
20 + | /// <p>The details explaining the status. Details are only available for certain status values.</p>
|
21 + | pub status_details: ::std::option::Option<::std::string::String>,
|
22 + | /// <p>The time that the task started running on the target.</p>
|
23 + | pub start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
24 + | /// <p>The time that the task finished running on the target.</p>
|
25 + | pub end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
26 + | /// <p>User-provided value to be included in any Amazon CloudWatch Events or Amazon EventBridge events raised while running tasks for these targets in this maintenance window.</p>
|
27 + | pub owner_information: ::std::option::Option<::std::string::String>,
|
28 + | /// <p>The maintenance window target ID.</p>
|
29 + | pub window_target_id: ::std::option::Option<::std::string::String>,
|
30 + | _request_id: Option<String>,
|
31 + | }
|
32 + | impl GetMaintenanceWindowExecutionTaskInvocationOutput {
|
33 + | /// <p>The maintenance window execution ID.</p>
|
34 + | pub fn window_execution_id(&self) -> ::std::option::Option<&str> {
|
35 + | self.window_execution_id.as_deref()
|
36 + | }
|
37 + | /// <p>The task execution ID.</p>
|
38 + | pub fn task_execution_id(&self) -> ::std::option::Option<&str> {
|
39 + | self.task_execution_id.as_deref()
|
40 + | }
|
41 + | /// <p>The invocation ID.</p>
|
42 + | pub fn invocation_id(&self) -> ::std::option::Option<&str> {
|
43 + | self.invocation_id.as_deref()
|
44 + | }
|
45 + | /// <p>The execution ID.</p>
|
46 + | pub fn execution_id(&self) -> ::std::option::Option<&str> {
|
47 + | self.execution_id.as_deref()
|
48 + | }
|
49 + | /// <p>Retrieves the task type for a maintenance window.</p>
|
50 + | pub fn task_type(&self) -> ::std::option::Option<&crate::types::MaintenanceWindowTaskType> {
|
51 + | self.task_type.as_ref()
|
52 + | }
|
53 + | /// <p>The parameters used at the time that the task ran.</p>
|
54 + | pub fn parameters(&self) -> ::std::option::Option<&str> {
|
55 + | self.parameters.as_deref()
|
56 + | }
|
57 + | /// <p>The task status for an 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. Details are only available for certain status values.</p>
|
62 + | pub fn status_details(&self) -> ::std::option::Option<&str> {
|
63 + | self.status_details.as_deref()
|
64 + | }
|
65 + | /// <p>The time that the task started running on the target.</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 that the task finished running on the target.</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 to be included in any Amazon CloudWatch Events or Amazon EventBridge events raised while running tasks for these targets in this maintenance window.</p>
|
74 + | pub fn owner_information(&self) -> ::std::option::Option<&str> {
|
75 + | self.owner_information.as_deref()
|
76 + | }
|
77 + | /// <p>The maintenance window target ID.</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 GetMaintenanceWindowExecutionTaskInvocationOutput {
|
83 + | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
84 + | let mut formatter = f.debug_struct("GetMaintenanceWindowExecutionTaskInvocationOutput");
|
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.field("_request_id", &self._request_id);
|
98 + | formatter.finish()
|
99 + | }
|
100 + | }
|
101 + | static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_WINDOW_EXECUTION_ID: ::aws_smithy_schema::Schema<'static> =
|
102 + | ::aws_smithy_schema::Schema::new_member(
|
103 + | ::aws_smithy_schema::ShapeId::from_parts(
|
104 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationOutput$WindowExecutionId",
|
105 + | "com.amazonaws.ssm.synthetic",
|
106 + | "GetMaintenanceWindowExecutionTaskInvocationOutput",
|
107 + | ),
|
108 + | ::aws_smithy_schema::ShapeType::String,
|
109 + | "WindowExecutionId",
|
110 + | 0,
|
111 + | );
|
112 + | static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_TASK_EXECUTION_ID: ::aws_smithy_schema::Schema<'static> =
|
113 + | ::aws_smithy_schema::Schema::new_member(
|
114 + | ::aws_smithy_schema::ShapeId::from_parts(
|
115 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationOutput$TaskExecutionId",
|
116 + | "com.amazonaws.ssm.synthetic",
|
117 + | "GetMaintenanceWindowExecutionTaskInvocationOutput",
|
118 + | ),
|
119 + | ::aws_smithy_schema::ShapeType::String,
|
120 + | "TaskExecutionId",
|
121 + | 1,
|
122 + | );
|
123 + | static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_INVOCATION_ID: ::aws_smithy_schema::Schema<'static> =
|
124 + | ::aws_smithy_schema::Schema::new_member(
|
125 + | ::aws_smithy_schema::ShapeId::from_parts(
|
126 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationOutput$InvocationId",
|
127 + | "com.amazonaws.ssm.synthetic",
|
128 + | "GetMaintenanceWindowExecutionTaskInvocationOutput",
|
129 + | ),
|
130 + | ::aws_smithy_schema::ShapeType::String,
|
131 + | "InvocationId",
|
132 + | 2,
|
133 + | );
|
134 + | static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_EXECUTION_ID: ::aws_smithy_schema::Schema<'static> =
|
135 + | ::aws_smithy_schema::Schema::new_member(
|
136 + | ::aws_smithy_schema::ShapeId::from_parts(
|
137 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationOutput$ExecutionId",
|
138 + | "com.amazonaws.ssm.synthetic",
|
139 + | "GetMaintenanceWindowExecutionTaskInvocationOutput",
|
140 + | ),
|
141 + | ::aws_smithy_schema::ShapeType::String,
|
142 + | "ExecutionId",
|
143 + | 3,
|
144 + | );
|
145 + | static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_TASK_TYPE: ::aws_smithy_schema::Schema<'static> =
|
146 + | ::aws_smithy_schema::Schema::new_member(
|
147 + | ::aws_smithy_schema::ShapeId::from_parts(
|
148 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationOutput$TaskType",
|
149 + | "com.amazonaws.ssm.synthetic",
|
150 + | "GetMaintenanceWindowExecutionTaskInvocationOutput",
|
151 + | ),
|
152 + | ::aws_smithy_schema::ShapeType::String,
|
153 + | "TaskType",
|
154 + | 4,
|
155 + | );
|
156 + | static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_PARAMETERS: ::aws_smithy_schema::Schema<'static> =
|
157 + | ::aws_smithy_schema::Schema::new_member(
|
158 + | ::aws_smithy_schema::ShapeId::from_parts(
|
159 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationOutput$Parameters",
|
160 + | "com.amazonaws.ssm.synthetic",
|
161 + | "GetMaintenanceWindowExecutionTaskInvocationOutput",
|
162 + | ),
|
163 + | ::aws_smithy_schema::ShapeType::String,
|
164 + | "Parameters",
|
165 + | 5,
|
166 + | );
|
167 + | static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_STATUS: ::aws_smithy_schema::Schema<'static> =
|
168 + | ::aws_smithy_schema::Schema::new_member(
|
169 + | ::aws_smithy_schema::ShapeId::from_parts(
|
170 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationOutput$Status",
|
171 + | "com.amazonaws.ssm.synthetic",
|
172 + | "GetMaintenanceWindowExecutionTaskInvocationOutput",
|
173 + | ),
|
174 + | ::aws_smithy_schema::ShapeType::String,
|
175 + | "Status",
|
176 + | 6,
|
177 + | );
|
178 + | static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_STATUS_DETAILS: ::aws_smithy_schema::Schema<'static> =
|
179 + | ::aws_smithy_schema::Schema::new_member(
|
180 + | ::aws_smithy_schema::ShapeId::from_parts(
|
181 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationOutput$StatusDetails",
|
182 + | "com.amazonaws.ssm.synthetic",
|
183 + | "GetMaintenanceWindowExecutionTaskInvocationOutput",
|
184 + | ),
|
185 + | ::aws_smithy_schema::ShapeType::String,
|
186 + | "StatusDetails",
|
187 + | 7,
|
188 + | );
|
189 + | static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_START_TIME: ::aws_smithy_schema::Schema<'static> =
|
190 + | ::aws_smithy_schema::Schema::new_member(
|
191 + | ::aws_smithy_schema::ShapeId::from_parts(
|
192 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationOutput$StartTime",
|
193 + | "com.amazonaws.ssm.synthetic",
|
194 + | "GetMaintenanceWindowExecutionTaskInvocationOutput",
|
195 + | ),
|
196 + | ::aws_smithy_schema::ShapeType::Timestamp,
|
197 + | "StartTime",
|
198 + | 8,
|
199 + | );
|
200 + | static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_END_TIME: ::aws_smithy_schema::Schema<'static> =
|
201 + | ::aws_smithy_schema::Schema::new_member(
|
202 + | ::aws_smithy_schema::ShapeId::from_parts(
|
203 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationOutput$EndTime",
|
204 + | "com.amazonaws.ssm.synthetic",
|
205 + | "GetMaintenanceWindowExecutionTaskInvocationOutput",
|
206 + | ),
|
207 + | ::aws_smithy_schema::ShapeType::Timestamp,
|
208 + | "EndTime",
|
209 + | 9,
|
210 + | );
|
211 + | static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_OWNER_INFORMATION: ::aws_smithy_schema::Schema<'static> =
|
212 + | ::aws_smithy_schema::Schema::new_member(
|
213 + | ::aws_smithy_schema::ShapeId::from_parts(
|
214 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationOutput$OwnerInformation",
|
215 + | "com.amazonaws.ssm.synthetic",
|
216 + | "GetMaintenanceWindowExecutionTaskInvocationOutput",
|
217 + | ),
|
218 + | ::aws_smithy_schema::ShapeType::String,
|
219 + | "OwnerInformation",
|
220 + | 10,
|
221 + | );
|
222 + | static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_WINDOW_TARGET_ID: ::aws_smithy_schema::Schema<'static> =
|
223 + | ::aws_smithy_schema::Schema::new_member(
|
224 + | ::aws_smithy_schema::ShapeId::from_parts(
|
225 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationOutput$WindowTargetId",
|
226 + | "com.amazonaws.ssm.synthetic",
|
227 + | "GetMaintenanceWindowExecutionTaskInvocationOutput",
|
228 + | ),
|
229 + | ::aws_smithy_schema::ShapeType::String,
|
230 + | "WindowTargetId",
|
231 + | 11,
|
232 + | );
|
233 + | static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema<'static> =
|
234 + | ::aws_smithy_schema::Schema::new_member(
|
235 + | ::aws_smithy_schema::ShapeId::from_parts("synthetic#request_id", "synthetic", "request_id"),
|
236 + | ::aws_smithy_schema::ShapeType::String,
|
237 + | "request_id",
|
238 + | 12,
|
239 + | )
|
240 + | .with_http_header("x-amzn-requestid");
|
241 + | static GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
|
242 + | ::aws_smithy_schema::ShapeId::from_parts(
|
243 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskInvocationOutput",
|
244 + | "com.amazonaws.ssm.synthetic",
|
245 + | "GetMaintenanceWindowExecutionTaskInvocationOutput",
|
246 + | ),
|
247 + | ::aws_smithy_schema::ShapeType::Structure,
|
248 + | &[
|
249 + | &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_WINDOW_EXECUTION_ID,
|
250 + | &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_TASK_EXECUTION_ID,
|
251 + | &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_INVOCATION_ID,
|
252 + | &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_EXECUTION_ID,
|
253 + | &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_TASK_TYPE,
|
254 + | &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_PARAMETERS,
|
255 + | &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_STATUS,
|
256 + | &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_STATUS_DETAILS,
|
257 + | &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_START_TIME,
|
258 + | &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_END_TIME,
|
259 + | &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_OWNER_INFORMATION,
|
260 + | &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_WINDOW_TARGET_ID,
|
261 + | &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER__REQUEST_ID,
|
262 + | ],
|
263 + | )
|
264 + | .with_original_name("GetMaintenanceWindowExecutionTaskInvocationResult");
|
265 + | impl GetMaintenanceWindowExecutionTaskInvocationOutput {
|
266 + | /// The schema for this shape.
|
267 + | pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_SCHEMA;
|
268 + | }
|
269 + | impl ::aws_smithy_schema::serde::SerializableStruct for GetMaintenanceWindowExecutionTaskInvocationOutput {
|
270 + | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
271 + | fn serialize_members(
|
272 + | &self,
|
273 + | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
274 + | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
275 + | if let Some(ref val) = self.window_execution_id {
|
276 + | ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_WINDOW_EXECUTION_ID, val)?;
|
277 + | }
|
278 + | if let Some(ref val) = self.task_execution_id {
|
279 + | ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_TASK_EXECUTION_ID, val)?;
|
280 + | }
|
281 + | if let Some(ref val) = self.invocation_id {
|
282 + | ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_INVOCATION_ID, val)?;
|
283 + | }
|
284 + | if let Some(ref val) = self.execution_id {
|
285 + | ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_EXECUTION_ID, val)?;
|
286 + | }
|
287 + | if let Some(ref val) = self.task_type {
|
288 + | ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_TASK_TYPE, val.as_str())?;
|
289 + | }
|
290 + | if let Some(ref val) = self.parameters {
|
291 + | ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_PARAMETERS, val)?;
|
292 + | }
|
293 + | if let Some(ref val) = self.status {
|
294 + | ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_STATUS, val.as_str())?;
|
295 + | }
|
296 + | if let Some(ref val) = self.status_details {
|
297 + | ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_STATUS_DETAILS, val)?;
|
298 + | }
|
299 + | if let Some(ref val) = self.start_time {
|
300 + | ser.write_timestamp(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_START_TIME, val)?;
|
301 + | }
|
302 + | if let Some(ref val) = self.end_time {
|
303 + | ser.write_timestamp(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_END_TIME, val)?;
|
304 + | }
|
305 + | if let Some(ref val) = self.owner_information {
|
306 + | ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_OWNER_INFORMATION, val)?;
|
307 + | }
|
308 + | if let Some(ref val) = self.window_target_id {
|
309 + | ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_MEMBER_WINDOW_TARGET_ID, val)?;
|
310 + | }
|
311 + | Ok(())
|
312 + | }
|
313 + | }
|
314 + | impl GetMaintenanceWindowExecutionTaskInvocationOutput {
|
315 + | /// Deserializes this structure from a [`ShapeDeserializer`].
|
316 + | pub fn deserialize(
|
317 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
318 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
319 + | #[allow(unused_variables, unused_mut)]
|
320 + | let mut builder = Self::builder();
|
321 + | #[allow(
|
322 + | unused_variables,
|
323 + | unreachable_code,
|
324 + | clippy::single_match,
|
325 + | clippy::match_single_binding,
|
326 + | clippy::diverging_sub_expression
|
327 + | )]
|
328 + | deserializer.read_struct(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_SCHEMA, &mut |member, deser| {
|
329 + | match member.member_index() {
|
330 + | Some(0) => {
|
331 + | if deser.is_null() {
|
332 + | deser.read_null()?;
|
333 + | } else {
|
334 + | builder.window_execution_id = Some(deser.read_string(member)?);
|
335 + | }
|
336 + | }
|
337 + | Some(1) => {
|
338 + | if deser.is_null() {
|
339 + | deser.read_null()?;
|
340 + | } else {
|
341 + | builder.task_execution_id = Some(deser.read_string(member)?);
|
342 + | }
|
343 + | }
|
344 + | Some(2) => {
|
345 + | if deser.is_null() {
|
346 + | deser.read_null()?;
|
347 + | } else {
|
348 + | builder.invocation_id = Some(deser.read_string(member)?);
|
349 + | }
|
350 + | }
|
351 + | Some(3) => {
|
352 + | if deser.is_null() {
|
353 + | deser.read_null()?;
|
354 + | } else {
|
355 + | builder.execution_id = Some(deser.read_string(member)?);
|
356 + | }
|
357 + | }
|
358 + | Some(4) => {
|
359 + | if deser.is_null() {
|
360 + | deser.read_null()?;
|
361 + | } else {
|
362 + | builder.task_type = Some(crate::types::MaintenanceWindowTaskType::from(deser.read_string(member)?.as_str()));
|
363 + | }
|
364 + | }
|
365 + | Some(5) => {
|
366 + | if deser.is_null() {
|
367 + | deser.read_null()?;
|
368 + | } else {
|
369 + | builder.parameters = Some(deser.read_string(member)?);
|
370 + | }
|
371 + | }
|
372 + | Some(6) => {
|
373 + | if deser.is_null() {
|
374 + | deser.read_null()?;
|
375 + | } else {
|
376 + | builder.status = Some(crate::types::MaintenanceWindowExecutionStatus::from(deser.read_string(member)?.as_str()));
|
377 + | }
|
378 + | }
|
379 + | Some(7) => {
|
380 + | if deser.is_null() {
|
381 + | deser.read_null()?;
|
382 + | } else {
|
383 + | builder.status_details = Some(deser.read_string(member)?);
|
384 + | }
|
385 + | }
|
386 + | Some(8) => {
|
387 + | if deser.is_null() {
|
388 + | deser.read_null()?;
|
389 + | } else {
|
390 + | builder.start_time = Some(deser.read_timestamp(member)?);
|
391 + | }
|
392 + | }
|
393 + | Some(9) => {
|
394 + | if deser.is_null() {
|
395 + | deser.read_null()?;
|
396 + | } else {
|
397 + | builder.end_time = Some(deser.read_timestamp(member)?);
|
398 + | }
|
399 + | }
|
400 + | Some(10) => {
|
401 + | if deser.is_null() {
|
402 + | deser.read_null()?;
|
403 + | } else {
|
404 + | builder.owner_information = Some(deser.read_string(member)?);
|
405 + | }
|
406 + | }
|
407 + | Some(11) => {
|
408 + | if deser.is_null() {
|
409 + | deser.read_null()?;
|
410 + | } else {
|
411 + | builder.window_target_id = Some(deser.read_string(member)?);
|
412 + | }
|
413 + | }
|
414 + | Some(12) => {
|
415 + | builder._request_id = Some(deser.read_string(member)?);
|
416 + | }
|
417 + | _ => {}
|
418 + | }
|
419 + | Ok(())
|
420 + | })?;
|
421 + | Ok(builder.build())
|
422 + | }
|
423 + | }
|
424 + | impl GetMaintenanceWindowExecutionTaskInvocationOutput {
|
425 + | /// Deserializes this structure from a body deserializer and HTTP response headers.
|
426 + | /// Header-bound members are read directly from headers, avoiding runtime
|
427 + | /// member iteration overhead. Body members are read via the deserializer.
|
428 + | pub fn deserialize_with_response(
|
429 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
430 + | headers: &::aws_smithy_runtime_api::http::Headers,
|
431 + | _status: u16,
|
432 + | _body: &[u8],
|
433 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
434 + | #[allow(unused_variables, unused_mut)]
|
435 + | let mut builder = Self::builder();
|
436 + | if let Some(val) = headers.get("x-amzn-requestid") {
|
437 + | builder._request_id = Some(val.to_string());
|
438 + | }
|
439 + |
|
440 + | #[allow(
|
441 + | unused_variables,
|
442 + | unreachable_code,
|
443 + | clippy::single_match,
|
444 + | clippy::match_single_binding,
|
445 + | clippy::diverging_sub_expression
|
446 + | )]
|
447 + | deserializer.read_struct(&GETMAINTENANCEWINDOWEXECUTIONTASKINVOCATIONOUTPUT_SCHEMA, &mut |member, deser| {
|
448 + | match member.member_index() {
|
449 + | Some(0) => {
|
450 + | builder.window_execution_id = Some(deser.read_string(member)?);
|
451 + | }
|
452 + | Some(1) => {
|
453 + | builder.task_execution_id = Some(deser.read_string(member)?);
|
454 + | }
|
455 + | Some(2) => {
|
456 + | builder.invocation_id = Some(deser.read_string(member)?);
|
457 + | }
|
458 + | Some(3) => {
|
459 + | builder.execution_id = Some(deser.read_string(member)?);
|
460 + | }
|
461 + | Some(4) => {
|
462 + | builder.task_type = Some(crate::types::MaintenanceWindowTaskType::from(deser.read_string(member)?.as_str()));
|
463 + | }
|
464 + | Some(5) => {
|
465 + | builder.parameters = Some(deser.read_string(member)?);
|
466 + | }
|
467 + | Some(6) => {
|
468 + | builder.status = Some(crate::types::MaintenanceWindowExecutionStatus::from(deser.read_string(member)?.as_str()));
|
469 + | }
|
470 + | Some(7) => {
|
471 + | builder.status_details = Some(deser.read_string(member)?);
|
472 + | }
|
473 + | Some(8) => {
|
474 + | builder.start_time = Some(deser.read_timestamp(member)?);
|
475 + | }
|
476 + | Some(9) => {
|
477 + | builder.end_time = Some(deser.read_timestamp(member)?);
|
478 + | }
|
479 + | Some(10) => {
|
480 + | builder.owner_information = Some(deser.read_string(member)?);
|
481 + | }
|
482 + | Some(11) => {
|
483 + | builder.window_target_id = Some(deser.read_string(member)?);
|
484 + | }
|
485 + | _ => {}
|
486 + | }
|
487 + | Ok(())
|
488 + | })?;
|
489 + | Ok(builder.build())
|
490 + | }
|
491 + | }
|
492 + | impl ::aws_types::request_id::RequestId for GetMaintenanceWindowExecutionTaskInvocationOutput {
|
493 + | fn request_id(&self) -> Option<&str> {
|
494 + | self._request_id.as_deref()
|
495 + | }
|
496 + | }
|
497 + | impl GetMaintenanceWindowExecutionTaskInvocationOutput {
|
498 + | pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
|
499 + | self._request_id = request_id;
|
500 + | self
|
501 + | }
|
502 + | }
|
503 + | impl GetMaintenanceWindowExecutionTaskInvocationOutput {
|
504 + | /// Creates a new builder-style object to manufacture [`GetMaintenanceWindowExecutionTaskInvocationOutput`](crate::operation::get_maintenance_window_execution_task_invocation::GetMaintenanceWindowExecutionTaskInvocationOutput).
|
505 + | pub fn builder(
|
506 + | ) -> crate::operation::get_maintenance_window_execution_task_invocation::builders::GetMaintenanceWindowExecutionTaskInvocationOutputBuilder {
|
507 + | crate::operation::get_maintenance_window_execution_task_invocation::builders::GetMaintenanceWindowExecutionTaskInvocationOutputBuilder::default()
|
508 + | }
|
509 + | }
|
510 + |
|
511 + | /// A builder for [`GetMaintenanceWindowExecutionTaskInvocationOutput`](crate::operation::get_maintenance_window_execution_task_invocation::GetMaintenanceWindowExecutionTaskInvocationOutput).
|
512 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
|
513 + | #[non_exhaustive]
|
514 + | pub struct GetMaintenanceWindowExecutionTaskInvocationOutputBuilder {
|
515 + | pub(crate) window_execution_id: ::std::option::Option<::std::string::String>,
|
516 + | pub(crate) task_execution_id: ::std::option::Option<::std::string::String>,
|
517 + | pub(crate) invocation_id: ::std::option::Option<::std::string::String>,
|
518 + | pub(crate) execution_id: ::std::option::Option<::std::string::String>,
|
519 + | pub(crate) task_type: ::std::option::Option<crate::types::MaintenanceWindowTaskType>,
|
520 + | pub(crate) parameters: ::std::option::Option<::std::string::String>,
|
521 + | pub(crate) status: ::std::option::Option<crate::types::MaintenanceWindowExecutionStatus>,
|
522 + | pub(crate) status_details: ::std::option::Option<::std::string::String>,
|
523 + | pub(crate) start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
524 + | pub(crate) end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
525 + | pub(crate) owner_information: ::std::option::Option<::std::string::String>,
|
526 + | pub(crate) window_target_id: ::std::option::Option<::std::string::String>,
|
527 + | _request_id: Option<String>,
|
528 + | }
|
529 + | impl GetMaintenanceWindowExecutionTaskInvocationOutputBuilder {
|
530 + | /// <p>The maintenance window execution ID.</p>
|
531 + | pub fn window_execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
532 + | self.window_execution_id = ::std::option::Option::Some(input.into());
|
533 + | self
|
534 + | }
|
535 + | /// <p>The maintenance window execution ID.</p>
|
536 + | pub fn set_window_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
537 + | self.window_execution_id = input;
|
538 + | self
|
539 + | }
|
540 + | /// <p>The maintenance window execution ID.</p>
|
541 + | pub fn get_window_execution_id(&self) -> &::std::option::Option<::std::string::String> {
|
542 + | &self.window_execution_id
|
543 + | }
|
544 + | /// <p>The task execution ID.</p>
|
545 + | pub fn task_execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
546 + | self.task_execution_id = ::std::option::Option::Some(input.into());
|
547 + | self
|
548 + | }
|
549 + | /// <p>The task execution ID.</p>
|
550 + | pub fn set_task_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
551 + | self.task_execution_id = input;
|
552 + | self
|
553 + | }
|
554 + | /// <p>The task execution ID.</p>
|
555 + | pub fn get_task_execution_id(&self) -> &::std::option::Option<::std::string::String> {
|
556 + | &self.task_execution_id
|
557 + | }
|
558 + | /// <p>The invocation ID.</p>
|
559 + | pub fn invocation_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
560 + | self.invocation_id = ::std::option::Option::Some(input.into());
|
561 + | self
|
562 + | }
|
563 + | /// <p>The invocation ID.</p>
|
564 + | pub fn set_invocation_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
565 + | self.invocation_id = input;
|
566 + | self
|
567 + | }
|
568 + | /// <p>The invocation ID.</p>
|
569 + | pub fn get_invocation_id(&self) -> &::std::option::Option<::std::string::String> {
|
570 + | &self.invocation_id
|
571 + | }
|
572 + | /// <p>The execution ID.</p>
|
573 + | pub fn execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
574 + | self.execution_id = ::std::option::Option::Some(input.into());
|
575 + | self
|
576 + | }
|
577 + | /// <p>The execution ID.</p>
|
578 + | pub fn set_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
579 + | self.execution_id = input;
|
580 + | self
|
581 + | }
|
582 + | /// <p>The execution ID.</p>
|
583 + | pub fn get_execution_id(&self) -> &::std::option::Option<::std::string::String> {
|
584 + | &self.execution_id
|
585 + | }
|
586 + | /// <p>Retrieves the task type for a maintenance window.</p>
|
587 + | pub fn task_type(mut self, input: crate::types::MaintenanceWindowTaskType) -> Self {
|
588 + | self.task_type = ::std::option::Option::Some(input);
|
589 + | self
|
590 + | }
|
591 + | /// <p>Retrieves the task type for a maintenance window.</p>
|
592 + | pub fn set_task_type(mut self, input: ::std::option::Option<crate::types::MaintenanceWindowTaskType>) -> Self {
|
593 + | self.task_type = input;
|
594 + | self
|
595 + | }
|
596 + | /// <p>Retrieves the task type for a maintenance window.</p>
|
597 + | pub fn get_task_type(&self) -> &::std::option::Option<crate::types::MaintenanceWindowTaskType> {
|
598 + | &self.task_type
|
599 + | }
|
600 + | /// <p>The parameters used at the time that the task ran.</p>
|
601 + | pub fn parameters(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
602 + | self.parameters = ::std::option::Option::Some(input.into());
|
603 + | self
|
604 + | }
|
605 + | /// <p>The parameters used at the time that the task ran.</p>
|
606 + | pub fn set_parameters(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
607 + | self.parameters = input;
|
608 + | self
|
609 + | }
|
610 + | /// <p>The parameters used at the time that the task ran.</p>
|
611 + | pub fn get_parameters(&self) -> &::std::option::Option<::std::string::String> {
|
612 + | &self.parameters
|
613 + | }
|
614 + | /// <p>The task status for an invocation.</p>
|
615 + | pub fn status(mut self, input: crate::types::MaintenanceWindowExecutionStatus) -> Self {
|
616 + | self.status = ::std::option::Option::Some(input);
|
617 + | self
|
618 + | }
|
619 + | /// <p>The task status for an invocation.</p>
|
620 + | pub fn set_status(mut self, input: ::std::option::Option<crate::types::MaintenanceWindowExecutionStatus>) -> Self {
|
621 + | self.status = input;
|
622 + | self
|
623 + | }
|
624 + | /// <p>The task status for an invocation.</p>
|
625 + | pub fn get_status(&self) -> &::std::option::Option<crate::types::MaintenanceWindowExecutionStatus> {
|
626 + | &self.status
|
627 + | }
|
628 + | /// <p>The details explaining the status. Details are only available for certain status values.</p>
|
629 + | pub fn status_details(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
630 + | self.status_details = ::std::option::Option::Some(input.into());
|
631 + | self
|
632 + | }
|
633 + | /// <p>The details explaining the status. Details are only available for certain status values.</p>
|
634 + | pub fn set_status_details(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
635 + | self.status_details = input;
|
636 + | self
|
637 + | }
|
638 + | /// <p>The details explaining the status. Details are only available for certain status values.</p>
|
639 + | pub fn get_status_details(&self) -> &::std::option::Option<::std::string::String> {
|
640 + | &self.status_details
|
641 + | }
|
642 + | /// <p>The time that the task started running on the target.</p>
|
643 + | pub fn start_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
644 + | self.start_time = ::std::option::Option::Some(input);
|
645 + | self
|
646 + | }
|
647 + | /// <p>The time that the task started running on the target.</p>
|
648 + | pub fn set_start_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
649 + | self.start_time = input;
|
650 + | self
|
651 + | }
|
652 + | /// <p>The time that the task started running on the target.</p>
|
653 + | pub fn get_start_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
654 + | &self.start_time
|
655 + | }
|
656 + | /// <p>The time that the task finished running on the target.</p>
|
657 + | pub fn end_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
658 + | self.end_time = ::std::option::Option::Some(input);
|
659 + | self
|
660 + | }
|
661 + | /// <p>The time that the task finished running on the target.</p>
|
662 + | pub fn set_end_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
663 + | self.end_time = input;
|
664 + | self
|
665 + | }
|
666 + | /// <p>The time that the task finished running on the target.</p>
|
667 + | pub fn get_end_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
668 + | &self.end_time
|
669 + | }
|
670 + | /// <p>User-provided value to be included in any Amazon CloudWatch Events or Amazon EventBridge events raised while running tasks for these targets in this maintenance window.</p>
|
671 + | pub fn owner_information(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
672 + | self.owner_information = ::std::option::Option::Some(input.into());
|
673 + | self
|
674 + | }
|
675 + | /// <p>User-provided value to be included in any Amazon CloudWatch Events or Amazon EventBridge events raised while running tasks for these targets in this maintenance window.</p>
|
676 + | pub fn set_owner_information(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
677 + | self.owner_information = input;
|
678 + | self
|
679 + | }
|
680 + | /// <p>User-provided value to be included in any Amazon CloudWatch Events or Amazon EventBridge events raised while running tasks for these targets in this maintenance window.</p>
|
681 + | pub fn get_owner_information(&self) -> &::std::option::Option<::std::string::String> {
|
682 + | &self.owner_information
|
683 + | }
|
684 + | /// <p>The maintenance window target ID.</p>
|
685 + | pub fn window_target_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
686 + | self.window_target_id = ::std::option::Option::Some(input.into());
|
687 + | self
|
688 + | }
|
689 + | /// <p>The maintenance window target ID.</p>
|
690 + | pub fn set_window_target_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
691 + | self.window_target_id = input;
|
692 + | self
|
693 + | }
|
694 + | /// <p>The maintenance window target ID.</p>
|
695 + | pub fn get_window_target_id(&self) -> &::std::option::Option<::std::string::String> {
|
696 + | &self.window_target_id
|
697 + | }
|
698 + | pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
|
699 + | self._request_id = Some(request_id.into());
|
700 + | self
|
701 + | }
|
702 + |
|
703 + | pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
|
704 + | self._request_id = request_id;
|
705 + | self
|
706 + | }
|
707 + | /// Consumes the builder and constructs a [`GetMaintenanceWindowExecutionTaskInvocationOutput`](crate::operation::get_maintenance_window_execution_task_invocation::GetMaintenanceWindowExecutionTaskInvocationOutput).
|
708 + | pub fn build(self) -> crate::operation::get_maintenance_window_execution_task_invocation::GetMaintenanceWindowExecutionTaskInvocationOutput {
|
709 + | crate::operation::get_maintenance_window_execution_task_invocation::GetMaintenanceWindowExecutionTaskInvocationOutput {
|
710 + | window_execution_id: self.window_execution_id,
|
711 + | task_execution_id: self.task_execution_id,
|
712 + | invocation_id: self.invocation_id,
|
713 + | execution_id: self.execution_id,
|
714 + | task_type: self.task_type,
|
715 + | parameters: self.parameters,
|
716 + | status: self.status,
|
717 + | status_details: self.status_details,
|
718 + | start_time: self.start_time,
|
719 + | end_time: self.end_time,
|
720 + | owner_information: self.owner_information,
|
721 + | window_target_id: self.window_target_id,
|
722 + | _request_id: self._request_id,
|
723 + | }
|
724 + | }
|
725 + | }
|
726 + | impl ::std::fmt::Debug for GetMaintenanceWindowExecutionTaskInvocationOutputBuilder {
|
727 + | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
728 + | let mut formatter = f.debug_struct("GetMaintenanceWindowExecutionTaskInvocationOutputBuilder");
|
729 + | formatter.field("window_execution_id", &self.window_execution_id);
|
730 + | formatter.field("task_execution_id", &self.task_execution_id);
|
731 + | formatter.field("invocation_id", &self.invocation_id);
|
732 + | formatter.field("execution_id", &self.execution_id);
|
733 + | formatter.field("task_type", &self.task_type);
|
734 + | formatter.field("parameters", &"*** Sensitive Data Redacted ***");
|
735 + | formatter.field("status", &self.status);
|
736 + | formatter.field("status_details", &self.status_details);
|
737 + | formatter.field("start_time", &self.start_time);
|
738 + | formatter.field("end_time", &self.end_time);
|
739 + | formatter.field("owner_information", &"*** Sensitive Data Redacted ***");
|
740 + | formatter.field("window_target_id", &self.window_target_id);
|
741 + | formatter.field("_request_id", &self._request_id);
|
742 + | formatter.finish()
|
743 + | }
|
744 + | }
|