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 GetMaintenanceWindowExecutionTaskOutput {
|
6 + | /// <p>The ID of the maintenance window execution that includes the task.</p>
|
7 + | pub window_execution_id: ::std::option::Option<::std::string::String>,
|
8 + | /// <p>The ID of the specific task execution in the maintenance window task that was retrieved.</p>
|
9 + | pub task_execution_id: ::std::option::Option<::std::string::String>,
|
10 + | /// <p>The Amazon Resource Name (ARN) of the task that ran.</p>
|
11 + | pub task_arn: ::std::option::Option<::std::string::String>,
|
12 + | /// <p>The role that was assumed when running the task.</p>
|
13 + | pub service_role: ::std::option::Option<::std::string::String>,
|
14 + | /// <p>The type of task that was run.</p>
|
15 + | pub r#type: ::std::option::Option<crate::types::MaintenanceWindowTaskType>,
|
16 + | /// <p>The parameters passed to the task when it was run.</p><note>
|
17 + | /// <p><code>TaskParameters</code> has been deprecated. To specify parameters to pass to a task when it runs, instead use the <code>Parameters</code> option in the <code>TaskInvocationParameters</code> structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see <code>MaintenanceWindowTaskInvocationParameters</code>.</p>
|
18 + | /// </note>
|
19 + | /// <p>The map has the following format:</p>
|
20 + | /// <ul>
|
21 + | /// <li>
|
22 + | /// <p><code>Key</code>: string, between 1 and 255 characters</p></li>
|
23 + | /// <li>
|
24 + | /// <p><code>Value</code>: an array of strings, each between 1 and 255 characters</p></li>
|
25 + | /// </ul>
|
26 + | pub task_parameters: ::std::option::Option<
|
27 + | ::std::vec::Vec<::std::collections::HashMap<::std::string::String, crate::types::MaintenanceWindowTaskParameterValueExpression>>,
|
28 + | >,
|
29 + | /// <p>The priority of the task.</p>
|
30 + | pub priority: i32,
|
31 + | /// <p>The defined maximum number of task executions that could be run in parallel.</p>
|
32 + | pub max_concurrency: ::std::option::Option<::std::string::String>,
|
33 + | /// <p>The defined maximum number of task execution errors allowed before scheduling of the task execution would have been stopped.</p>
|
34 + | pub max_errors: ::std::option::Option<::std::string::String>,
|
35 + | /// <p>The status of the task.</p>
|
36 + | pub status: ::std::option::Option<crate::types::MaintenanceWindowExecutionStatus>,
|
37 + | /// <p>The details explaining the status. Not available for all status values.</p>
|
38 + | pub status_details: ::std::option::Option<::std::string::String>,
|
39 + | /// <p>The time the task execution started.</p>
|
40 + | pub start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
41 + | /// <p>The time the task execution completed.</p>
|
42 + | pub end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
43 + | /// <p>The details for the CloudWatch alarm you applied to your maintenance window task.</p>
|
44 + | pub alarm_configuration: ::std::option::Option<crate::types::AlarmConfiguration>,
|
45 + | /// <p>The CloudWatch alarms that were invoked by the maintenance window task.</p>
|
46 + | pub triggered_alarms: ::std::option::Option<::std::vec::Vec<crate::types::AlarmStateInformation>>,
|
47 + | _request_id: Option<String>,
|
48 + | }
|
49 + | impl GetMaintenanceWindowExecutionTaskOutput {
|
50 + | /// <p>The ID of the maintenance window execution that includes the task.</p>
|
51 + | pub fn window_execution_id(&self) -> ::std::option::Option<&str> {
|
52 + | self.window_execution_id.as_deref()
|
53 + | }
|
54 + | /// <p>The ID of the specific task execution in the maintenance window task that was retrieved.</p>
|
55 + | pub fn task_execution_id(&self) -> ::std::option::Option<&str> {
|
56 + | self.task_execution_id.as_deref()
|
57 + | }
|
58 + | /// <p>The Amazon Resource Name (ARN) of the task that ran.</p>
|
59 + | pub fn task_arn(&self) -> ::std::option::Option<&str> {
|
60 + | self.task_arn.as_deref()
|
61 + | }
|
62 + | /// <p>The role that was assumed when running the task.</p>
|
63 + | pub fn service_role(&self) -> ::std::option::Option<&str> {
|
64 + | self.service_role.as_deref()
|
65 + | }
|
66 + | /// <p>The type of task that was run.</p>
|
67 + | pub fn r#type(&self) -> ::std::option::Option<&crate::types::MaintenanceWindowTaskType> {
|
68 + | self.r#type.as_ref()
|
69 + | }
|
70 + | /// <p>The parameters passed to the task when it was run.</p><note>
|
71 + | /// <p><code>TaskParameters</code> has been deprecated. To specify parameters to pass to a task when it runs, instead use the <code>Parameters</code> option in the <code>TaskInvocationParameters</code> structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see <code>MaintenanceWindowTaskInvocationParameters</code>.</p>
|
72 + | /// </note>
|
73 + | /// <p>The map has the following format:</p>
|
74 + | /// <ul>
|
75 + | /// <li>
|
76 + | /// <p><code>Key</code>: string, between 1 and 255 characters</p></li>
|
77 + | /// <li>
|
78 + | /// <p><code>Value</code>: an array of strings, each between 1 and 255 characters</p></li>
|
79 + | /// </ul>
|
80 + | ///
|
81 + | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.task_parameters.is_none()`.
|
82 + | pub fn task_parameters(
|
83 + | &self,
|
84 + | ) -> &[::std::collections::HashMap<::std::string::String, crate::types::MaintenanceWindowTaskParameterValueExpression>] {
|
85 + | self.task_parameters.as_deref().unwrap_or_default()
|
86 + | }
|
87 + | /// <p>The priority of the task.</p>
|
88 + | pub fn priority(&self) -> i32 {
|
89 + | self.priority
|
90 + | }
|
91 + | /// <p>The defined maximum number of task executions that could be run in parallel.</p>
|
92 + | pub fn max_concurrency(&self) -> ::std::option::Option<&str> {
|
93 + | self.max_concurrency.as_deref()
|
94 + | }
|
95 + | /// <p>The defined maximum number of task execution errors allowed before scheduling of the task execution would have been stopped.</p>
|
96 + | pub fn max_errors(&self) -> ::std::option::Option<&str> {
|
97 + | self.max_errors.as_deref()
|
98 + | }
|
99 + | /// <p>The status of the task.</p>
|
100 + | pub fn status(&self) -> ::std::option::Option<&crate::types::MaintenanceWindowExecutionStatus> {
|
101 + | self.status.as_ref()
|
102 + | }
|
103 + | /// <p>The details explaining the status. Not available for all status values.</p>
|
104 + | pub fn status_details(&self) -> ::std::option::Option<&str> {
|
105 + | self.status_details.as_deref()
|
106 + | }
|
107 + | /// <p>The time the task execution started.</p>
|
108 + | pub fn start_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
109 + | self.start_time.as_ref()
|
110 + | }
|
111 + | /// <p>The time the task execution completed.</p>
|
112 + | pub fn end_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
113 + | self.end_time.as_ref()
|
114 + | }
|
115 + | /// <p>The details for the CloudWatch alarm you applied to your maintenance window task.</p>
|
116 + | pub fn alarm_configuration(&self) -> ::std::option::Option<&crate::types::AlarmConfiguration> {
|
117 + | self.alarm_configuration.as_ref()
|
118 + | }
|
119 + | /// <p>The CloudWatch alarms that were invoked by the maintenance window task.</p>
|
120 + | ///
|
121 + | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.triggered_alarms.is_none()`.
|
122 + | pub fn triggered_alarms(&self) -> &[crate::types::AlarmStateInformation] {
|
123 + | self.triggered_alarms.as_deref().unwrap_or_default()
|
124 + | }
|
125 + | }
|
126 + | impl ::std::fmt::Debug for GetMaintenanceWindowExecutionTaskOutput {
|
127 + | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
128 + | let mut formatter = f.debug_struct("GetMaintenanceWindowExecutionTaskOutput");
|
129 + | formatter.field("window_execution_id", &self.window_execution_id);
|
130 + | formatter.field("task_execution_id", &self.task_execution_id);
|
131 + | formatter.field("task_arn", &self.task_arn);
|
132 + | formatter.field("service_role", &self.service_role);
|
133 + | formatter.field("r#type", &self.r#type);
|
134 + | formatter.field("task_parameters", &"*** Sensitive Data Redacted ***");
|
135 + | formatter.field("priority", &self.priority);
|
136 + | formatter.field("max_concurrency", &self.max_concurrency);
|
137 + | formatter.field("max_errors", &self.max_errors);
|
138 + | formatter.field("status", &self.status);
|
139 + | formatter.field("status_details", &self.status_details);
|
140 + | formatter.field("start_time", &self.start_time);
|
141 + | formatter.field("end_time", &self.end_time);
|
142 + | formatter.field("alarm_configuration", &self.alarm_configuration);
|
143 + | formatter.field("triggered_alarms", &self.triggered_alarms);
|
144 + | formatter.field("_request_id", &self._request_id);
|
145 + | formatter.finish()
|
146 + | }
|
147 + | }
|
148 + | static GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_WINDOW_EXECUTION_ID: ::aws_smithy_schema::Schema<'static> =
|
149 + | ::aws_smithy_schema::Schema::new_member(
|
150 + | ::aws_smithy_schema::ShapeId::from_parts(
|
151 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskOutput$WindowExecutionId",
|
152 + | "com.amazonaws.ssm.synthetic",
|
153 + | "GetMaintenanceWindowExecutionTaskOutput",
|
154 + | ),
|
155 + | ::aws_smithy_schema::ShapeType::String,
|
156 + | "WindowExecutionId",
|
157 + | 0,
|
158 + | );
|
159 + | static GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_TASK_EXECUTION_ID: ::aws_smithy_schema::Schema<'static> =
|
160 + | ::aws_smithy_schema::Schema::new_member(
|
161 + | ::aws_smithy_schema::ShapeId::from_parts(
|
162 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskOutput$TaskExecutionId",
|
163 + | "com.amazonaws.ssm.synthetic",
|
164 + | "GetMaintenanceWindowExecutionTaskOutput",
|
165 + | ),
|
166 + | ::aws_smithy_schema::ShapeType::String,
|
167 + | "TaskExecutionId",
|
168 + | 1,
|
169 + | );
|
170 + | static GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_TASK_ARN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
171 + | ::aws_smithy_schema::ShapeId::from_parts(
|
172 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskOutput$TaskArn",
|
173 + | "com.amazonaws.ssm.synthetic",
|
174 + | "GetMaintenanceWindowExecutionTaskOutput",
|
175 + | ),
|
176 + | ::aws_smithy_schema::ShapeType::String,
|
177 + | "TaskArn",
|
178 + | 2,
|
179 + | );
|
180 + | static GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_SERVICE_ROLE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
181 + | ::aws_smithy_schema::ShapeId::from_parts(
|
182 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskOutput$ServiceRole",
|
183 + | "com.amazonaws.ssm.synthetic",
|
184 + | "GetMaintenanceWindowExecutionTaskOutput",
|
185 + | ),
|
186 + | ::aws_smithy_schema::ShapeType::String,
|
187 + | "ServiceRole",
|
188 + | 3,
|
189 + | );
|
190 + | static GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_TYPE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
191 + | ::aws_smithy_schema::ShapeId::from_parts(
|
192 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskOutput$Type",
|
193 + | "com.amazonaws.ssm.synthetic",
|
194 + | "GetMaintenanceWindowExecutionTaskOutput",
|
195 + | ),
|
196 + | ::aws_smithy_schema::ShapeType::String,
|
197 + | "Type",
|
198 + | 4,
|
199 + | );
|
200 + | static GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_TASK_PARAMETERS_MEMBER_KEY: ::aws_smithy_schema::Schema<'static> =
|
201 + | ::aws_smithy_schema::Schema::new_member(
|
202 + | ::aws_smithy_schema::ShapeId::from_parts(
|
203 + | "com.amazonaws.ssm#MaintenanceWindowTaskParameters$key",
|
204 + | "com.amazonaws.ssm",
|
205 + | "MaintenanceWindowTaskParameters",
|
206 + | ),
|
207 + | ::aws_smithy_schema::ShapeType::String,
|
208 + | "key",
|
209 + | 0,
|
210 + | );
|
211 + | static GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_TASK_PARAMETERS_MEMBER_VALUE: ::aws_smithy_schema::Schema<'static> =
|
212 + | ::aws_smithy_schema::Schema::new_member(
|
213 + | ::aws_smithy_schema::ShapeId::from_parts(
|
214 + | "com.amazonaws.ssm#MaintenanceWindowTaskParameters$value",
|
215 + | "com.amazonaws.ssm",
|
216 + | "MaintenanceWindowTaskParameters",
|
217 + | ),
|
218 + | ::aws_smithy_schema::ShapeType::Structure,
|
219 + | "value",
|
220 + | 1,
|
221 + | );
|
222 + | static GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_TASK_PARAMETERS_MEMBER: ::aws_smithy_schema::Schema<'static> =
|
223 + | ::aws_smithy_schema::Schema::new_member(
|
224 + | ::aws_smithy_schema::ShapeId::from_parts(
|
225 + | "com.amazonaws.ssm#MaintenanceWindowTaskParametersList$member",
|
226 + | "com.amazonaws.ssm",
|
227 + | "MaintenanceWindowTaskParametersList",
|
228 + | ),
|
229 + | ::aws_smithy_schema::ShapeType::Map,
|
230 + | "member",
|
231 + | 0,
|
232 + | )
|
233 + | .with_map_members(
|
234 + | &GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_TASK_PARAMETERS_MEMBER_KEY,
|
235 + | &GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_TASK_PARAMETERS_MEMBER_VALUE,
|
236 + | );
|
237 + | static GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_TASK_PARAMETERS: ::aws_smithy_schema::Schema<'static> =
|
238 + | ::aws_smithy_schema::Schema::new_member(
|
239 + | ::aws_smithy_schema::ShapeId::from_parts(
|
240 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskOutput$TaskParameters",
|
241 + | "com.amazonaws.ssm.synthetic",
|
242 + | "GetMaintenanceWindowExecutionTaskOutput",
|
243 + | ),
|
244 + | ::aws_smithy_schema::ShapeType::List,
|
245 + | "TaskParameters",
|
246 + | 5,
|
247 + | )
|
248 + | .with_list_member(&GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_TASK_PARAMETERS_MEMBER);
|
249 + | static GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_PRIORITY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
250 + | ::aws_smithy_schema::ShapeId::from_parts(
|
251 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskOutput$Priority",
|
252 + | "com.amazonaws.ssm.synthetic",
|
253 + | "GetMaintenanceWindowExecutionTaskOutput",
|
254 + | ),
|
255 + | ::aws_smithy_schema::ShapeType::Integer,
|
256 + | "Priority",
|
257 + | 6,
|
258 + | );
|
259 + | static GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_MAX_CONCURRENCY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
260 + | ::aws_smithy_schema::ShapeId::from_parts(
|
261 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskOutput$MaxConcurrency",
|
262 + | "com.amazonaws.ssm.synthetic",
|
263 + | "GetMaintenanceWindowExecutionTaskOutput",
|
264 + | ),
|
265 + | ::aws_smithy_schema::ShapeType::String,
|
266 + | "MaxConcurrency",
|
267 + | 7,
|
268 + | );
|
269 + | static GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_MAX_ERRORS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
270 + | ::aws_smithy_schema::ShapeId::from_parts(
|
271 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskOutput$MaxErrors",
|
272 + | "com.amazonaws.ssm.synthetic",
|
273 + | "GetMaintenanceWindowExecutionTaskOutput",
|
274 + | ),
|
275 + | ::aws_smithy_schema::ShapeType::String,
|
276 + | "MaxErrors",
|
277 + | 8,
|
278 + | );
|
279 + | static GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_STATUS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
280 + | ::aws_smithy_schema::ShapeId::from_parts(
|
281 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskOutput$Status",
|
282 + | "com.amazonaws.ssm.synthetic",
|
283 + | "GetMaintenanceWindowExecutionTaskOutput",
|
284 + | ),
|
285 + | ::aws_smithy_schema::ShapeType::String,
|
286 + | "Status",
|
287 + | 9,
|
288 + | );
|
289 + | static GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_STATUS_DETAILS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
290 + | ::aws_smithy_schema::ShapeId::from_parts(
|
291 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskOutput$StatusDetails",
|
292 + | "com.amazonaws.ssm.synthetic",
|
293 + | "GetMaintenanceWindowExecutionTaskOutput",
|
294 + | ),
|
295 + | ::aws_smithy_schema::ShapeType::String,
|
296 + | "StatusDetails",
|
297 + | 10,
|
298 + | );
|
299 + | static GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_START_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
300 + | ::aws_smithy_schema::ShapeId::from_parts(
|
301 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskOutput$StartTime",
|
302 + | "com.amazonaws.ssm.synthetic",
|
303 + | "GetMaintenanceWindowExecutionTaskOutput",
|
304 + | ),
|
305 + | ::aws_smithy_schema::ShapeType::Timestamp,
|
306 + | "StartTime",
|
307 + | 11,
|
308 + | );
|
309 + | static GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_END_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
310 + | ::aws_smithy_schema::ShapeId::from_parts(
|
311 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskOutput$EndTime",
|
312 + | "com.amazonaws.ssm.synthetic",
|
313 + | "GetMaintenanceWindowExecutionTaskOutput",
|
314 + | ),
|
315 + | ::aws_smithy_schema::ShapeType::Timestamp,
|
316 + | "EndTime",
|
317 + | 12,
|
318 + | );
|
319 + | static GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_ALARM_CONFIGURATION: ::aws_smithy_schema::Schema<'static> =
|
320 + | ::aws_smithy_schema::Schema::new_member(
|
321 + | ::aws_smithy_schema::ShapeId::from_parts(
|
322 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskOutput$AlarmConfiguration",
|
323 + | "com.amazonaws.ssm.synthetic",
|
324 + | "GetMaintenanceWindowExecutionTaskOutput",
|
325 + | ),
|
326 + | ::aws_smithy_schema::ShapeType::Structure,
|
327 + | "AlarmConfiguration",
|
328 + | 13,
|
329 + | );
|
330 + | static GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_TRIGGERED_ALARMS_MEMBER: ::aws_smithy_schema::Schema<'static> =
|
331 + | ::aws_smithy_schema::Schema::new_member(
|
332 + | ::aws_smithy_schema::ShapeId::from_parts(
|
333 + | "com.amazonaws.ssm#AlarmStateInformationList$member",
|
334 + | "com.amazonaws.ssm",
|
335 + | "AlarmStateInformationList",
|
336 + | ),
|
337 + | ::aws_smithy_schema::ShapeType::Structure,
|
338 + | "member",
|
339 + | 0,
|
340 + | );
|
341 + | static GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_TRIGGERED_ALARMS: ::aws_smithy_schema::Schema<'static> =
|
342 + | ::aws_smithy_schema::Schema::new_member(
|
343 + | ::aws_smithy_schema::ShapeId::from_parts(
|
344 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskOutput$TriggeredAlarms",
|
345 + | "com.amazonaws.ssm.synthetic",
|
346 + | "GetMaintenanceWindowExecutionTaskOutput",
|
347 + | ),
|
348 + | ::aws_smithy_schema::ShapeType::List,
|
349 + | "TriggeredAlarms",
|
350 + | 14,
|
351 + | )
|
352 + | .with_list_member(&GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_TRIGGERED_ALARMS_MEMBER);
|
353 + | static GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
354 + | ::aws_smithy_schema::ShapeId::from_parts("synthetic#request_id", "synthetic", "request_id"),
|
355 + | ::aws_smithy_schema::ShapeType::String,
|
356 + | "request_id",
|
357 + | 15,
|
358 + | )
|
359 + | .with_http_header("x-amzn-requestid");
|
360 + | static GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
|
361 + | ::aws_smithy_schema::ShapeId::from_parts(
|
362 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowExecutionTaskOutput",
|
363 + | "com.amazonaws.ssm.synthetic",
|
364 + | "GetMaintenanceWindowExecutionTaskOutput",
|
365 + | ),
|
366 + | ::aws_smithy_schema::ShapeType::Structure,
|
367 + | &[
|
368 + | &GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_WINDOW_EXECUTION_ID,
|
369 + | &GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_TASK_EXECUTION_ID,
|
370 + | &GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_TASK_ARN,
|
371 + | &GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_SERVICE_ROLE,
|
372 + | &GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_TYPE,
|
373 + | &GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_TASK_PARAMETERS,
|
374 + | &GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_PRIORITY,
|
375 + | &GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_MAX_CONCURRENCY,
|
376 + | &GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_MAX_ERRORS,
|
377 + | &GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_STATUS,
|
378 + | &GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_STATUS_DETAILS,
|
379 + | &GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_START_TIME,
|
380 + | &GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_END_TIME,
|
381 + | &GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_ALARM_CONFIGURATION,
|
382 + | &GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_TRIGGERED_ALARMS,
|
383 + | &GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER__REQUEST_ID,
|
384 + | ],
|
385 + | )
|
386 + | .with_original_name("GetMaintenanceWindowExecutionTaskResult");
|
387 + | impl GetMaintenanceWindowExecutionTaskOutput {
|
388 + | /// The schema for this shape.
|
389 + | pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_SCHEMA;
|
390 + | }
|
391 + | impl ::aws_smithy_schema::serde::SerializableStruct for GetMaintenanceWindowExecutionTaskOutput {
|
392 + | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
393 + | fn serialize_members(
|
394 + | &self,
|
395 + | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
396 + | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
397 + | if let Some(ref val) = self.window_execution_id {
|
398 + | ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_WINDOW_EXECUTION_ID, val)?;
|
399 + | }
|
400 + | if let Some(ref val) = self.task_execution_id {
|
401 + | ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_TASK_EXECUTION_ID, val)?;
|
402 + | }
|
403 + | if let Some(ref val) = self.task_arn {
|
404 + | ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_TASK_ARN, val)?;
|
405 + | }
|
406 + | if let Some(ref val) = self.service_role {
|
407 + | ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_SERVICE_ROLE, val)?;
|
408 + | }
|
409 + | if let Some(ref val) = self.r#type {
|
410 + | ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_TYPE, val.as_str())?;
|
411 + | }
|
412 + | if let Some(ref val) = self.task_parameters {
|
413 + | ser.write_list(
|
414 + | &GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_TASK_PARAMETERS,
|
415 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
416 + | for item in val {
|
417 + | ser.write_map(
|
418 + | &GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_TASK_PARAMETERS_MEMBER,
|
419 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
420 + | for (key, value) in item {
|
421 + | ser.write_string(&::aws_smithy_schema::prelude::STRING, key)?;
|
422 + | ser.write_struct(crate::types::MaintenanceWindowTaskParameterValueExpression::SCHEMA, value)?;
|
423 + | }
|
424 + | Ok(())
|
425 + | },
|
426 + | )?;
|
427 + | }
|
428 + | Ok(())
|
429 + | },
|
430 + | )?;
|
431 + | }
|
432 + | {
|
433 + | let val = &self.priority;
|
434 + | ser.write_integer(&GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_PRIORITY, *val)?;
|
435 + | }
|
436 + | if let Some(ref val) = self.max_concurrency {
|
437 + | ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_MAX_CONCURRENCY, val)?;
|
438 + | }
|
439 + | if let Some(ref val) = self.max_errors {
|
440 + | ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_MAX_ERRORS, val)?;
|
441 + | }
|
442 + | if let Some(ref val) = self.status {
|
443 + | ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_STATUS, val.as_str())?;
|
444 + | }
|
445 + | if let Some(ref val) = self.status_details {
|
446 + | ser.write_string(&GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_STATUS_DETAILS, val)?;
|
447 + | }
|
448 + | if let Some(ref val) = self.start_time {
|
449 + | ser.write_timestamp(&GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_START_TIME, val)?;
|
450 + | }
|
451 + | if let Some(ref val) = self.end_time {
|
452 + | ser.write_timestamp(&GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_END_TIME, val)?;
|
453 + | }
|
454 + | if let Some(ref val) = self.alarm_configuration {
|
455 + | ser.write_struct(&GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_ALARM_CONFIGURATION, val)?;
|
456 + | }
|
457 + | if let Some(ref val) = self.triggered_alarms {
|
458 + | ser.write_list(
|
459 + | &GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_TRIGGERED_ALARMS,
|
460 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
461 + | for item in val {
|
462 + | ser.write_struct(crate::types::AlarmStateInformation::SCHEMA, item)?;
|
463 + | }
|
464 + | Ok(())
|
465 + | },
|
466 + | )?;
|
467 + | }
|
468 + | Ok(())
|
469 + | }
|
470 + | }
|
471 + | impl GetMaintenanceWindowExecutionTaskOutput {
|
472 + | /// Deserializes this structure from a [`ShapeDeserializer`].
|
473 + | pub fn deserialize(
|
474 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
475 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
476 + | #[allow(unused_variables, unused_mut)]
|
477 + | let mut builder = Self::builder();
|
478 + | #[allow(
|
479 + | unused_variables,
|
480 + | unreachable_code,
|
481 + | clippy::single_match,
|
482 + | clippy::match_single_binding,
|
483 + | clippy::diverging_sub_expression
|
484 + | )]
|
485 + | deserializer.read_struct(&GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_SCHEMA, &mut |member, deser| {
|
486 + | match member.member_index() {
|
487 + | Some(0) => {
|
488 + | if deser.is_null() {
|
489 + | deser.read_null()?;
|
490 + | } else {
|
491 + | builder.window_execution_id = Some(deser.read_string(member)?);
|
492 + | }
|
493 + | }
|
494 + | Some(1) => {
|
495 + | if deser.is_null() {
|
496 + | deser.read_null()?;
|
497 + | } else {
|
498 + | builder.task_execution_id = Some(deser.read_string(member)?);
|
499 + | }
|
500 + | }
|
501 + | Some(2) => {
|
502 + | if deser.is_null() {
|
503 + | deser.read_null()?;
|
504 + | } else {
|
505 + | builder.task_arn = Some(deser.read_string(member)?);
|
506 + | }
|
507 + | }
|
508 + | Some(3) => {
|
509 + | if deser.is_null() {
|
510 + | deser.read_null()?;
|
511 + | } else {
|
512 + | builder.service_role = Some(deser.read_string(member)?);
|
513 + | }
|
514 + | }
|
515 + | Some(4) => {
|
516 + | if deser.is_null() {
|
517 + | deser.read_null()?;
|
518 + | } else {
|
519 + | builder.r#type = Some(crate::types::MaintenanceWindowTaskType::from(deser.read_string(member)?.as_str()));
|
520 + | }
|
521 + | }
|
522 + | Some(5) => {
|
523 + | if deser.is_null() {
|
524 + | deser.read_null()?;
|
525 + | } else {
|
526 + | builder.task_parameters = Some({
|
527 + | let mut container = Vec::new();
|
528 + | deser.read_list(member, &mut |deser| {
|
529 + | container.push({
|
530 + | let mut map = ::std::collections::HashMap::new();
|
531 + | deser.read_map(
|
532 + | &GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_TASK_PARAMETERS_MEMBER,
|
533 + | &mut |key, deser| {
|
534 + | let value = crate::types::MaintenanceWindowTaskParameterValueExpression::deserialize(deser)?;
|
535 + | map.insert(key, value);
|
536 + | Ok(())
|
537 + | },
|
538 + | )?;
|
539 + | map
|
540 + | });
|
541 + | Ok(())
|
542 + | })?;
|
543 + | container
|
544 + | });
|
545 + | }
|
546 + | }
|
547 + | Some(6) => {
|
548 + | builder.priority = Some(deser.read_integer(member)?);
|
549 + | }
|
550 + | Some(7) => {
|
551 + | if deser.is_null() {
|
552 + | deser.read_null()?;
|
553 + | } else {
|
554 + | builder.max_concurrency = Some(deser.read_string(member)?);
|
555 + | }
|
556 + | }
|
557 + | Some(8) => {
|
558 + | if deser.is_null() {
|
559 + | deser.read_null()?;
|
560 + | } else {
|
561 + | builder.max_errors = Some(deser.read_string(member)?);
|
562 + | }
|
563 + | }
|
564 + | Some(9) => {
|
565 + | if deser.is_null() {
|
566 + | deser.read_null()?;
|
567 + | } else {
|
568 + | builder.status = Some(crate::types::MaintenanceWindowExecutionStatus::from(deser.read_string(member)?.as_str()));
|
569 + | }
|
570 + | }
|
571 + | Some(10) => {
|
572 + | if deser.is_null() {
|
573 + | deser.read_null()?;
|
574 + | } else {
|
575 + | builder.status_details = Some(deser.read_string(member)?);
|
576 + | }
|
577 + | }
|
578 + | Some(11) => {
|
579 + | if deser.is_null() {
|
580 + | deser.read_null()?;
|
581 + | } else {
|
582 + | builder.start_time = Some(deser.read_timestamp(member)?);
|
583 + | }
|
584 + | }
|
585 + | Some(12) => {
|
586 + | if deser.is_null() {
|
587 + | deser.read_null()?;
|
588 + | } else {
|
589 + | builder.end_time = Some(deser.read_timestamp(member)?);
|
590 + | }
|
591 + | }
|
592 + | Some(13) => {
|
593 + | if deser.is_null() {
|
594 + | deser.read_null()?;
|
595 + | } else {
|
596 + | builder.alarm_configuration = Some(crate::types::AlarmConfiguration::deserialize(deser)?);
|
597 + | }
|
598 + | }
|
599 + | Some(14) => {
|
600 + | if deser.is_null() {
|
601 + | deser.read_null()?;
|
602 + | } else {
|
603 + | builder.triggered_alarms = Some({
|
604 + | let mut container = Vec::new();
|
605 + | deser.read_list(member, &mut |deser| {
|
606 + | container.push(crate::types::AlarmStateInformation::deserialize(deser)?);
|
607 + | Ok(())
|
608 + | })?;
|
609 + | container
|
610 + | });
|
611 + | }
|
612 + | }
|
613 + | Some(15) => {
|
614 + | builder._request_id = Some(deser.read_string(member)?);
|
615 + | }
|
616 + | _ => {}
|
617 + | }
|
618 + | Ok(())
|
619 + | })?;
|
620 + | Ok(builder.build())
|
621 + | }
|
622 + | }
|
623 + | impl GetMaintenanceWindowExecutionTaskOutput {
|
624 + | /// Deserializes this structure from a body deserializer and HTTP response headers.
|
625 + | /// Header-bound members are read directly from headers, avoiding runtime
|
626 + | /// member iteration overhead. Body members are read via the deserializer.
|
627 + | pub fn deserialize_with_response(
|
628 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
629 + | headers: &::aws_smithy_runtime_api::http::Headers,
|
630 + | _status: u16,
|
631 + | _body: &[u8],
|
632 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
633 + | #[allow(unused_variables, unused_mut)]
|
634 + | let mut builder = Self::builder();
|
635 + | if let Some(val) = headers.get("x-amzn-requestid") {
|
636 + | builder._request_id = Some(val.to_string());
|
637 + | }
|
638 + |
|
639 + | #[allow(
|
640 + | unused_variables,
|
641 + | unreachable_code,
|
642 + | clippy::single_match,
|
643 + | clippy::match_single_binding,
|
644 + | clippy::diverging_sub_expression
|
645 + | )]
|
646 + | deserializer.read_struct(&GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_SCHEMA, &mut |member, deser| {
|
647 + | match member.member_index() {
|
648 + | Some(0) => {
|
649 + | builder.window_execution_id = Some(deser.read_string(member)?);
|
650 + | }
|
651 + | Some(1) => {
|
652 + | builder.task_execution_id = Some(deser.read_string(member)?);
|
653 + | }
|
654 + | Some(2) => {
|
655 + | builder.task_arn = Some(deser.read_string(member)?);
|
656 + | }
|
657 + | Some(3) => {
|
658 + | builder.service_role = Some(deser.read_string(member)?);
|
659 + | }
|
660 + | Some(4) => {
|
661 + | builder.r#type = Some(crate::types::MaintenanceWindowTaskType::from(deser.read_string(member)?.as_str()));
|
662 + | }
|
663 + | Some(5) => {
|
664 + | builder.task_parameters = Some({
|
665 + | let mut container = Vec::new();
|
666 + | deser.read_list(member, &mut |deser| {
|
667 + | container.push({
|
668 + | let mut map = ::std::collections::HashMap::new();
|
669 + | deser.read_map(
|
670 + | &GETMAINTENANCEWINDOWEXECUTIONTASKOUTPUT_MEMBER_TASK_PARAMETERS_MEMBER,
|
671 + | &mut |key, deser| {
|
672 + | let value = crate::types::MaintenanceWindowTaskParameterValueExpression::deserialize(deser)?;
|
673 + | map.insert(key, value);
|
674 + | Ok(())
|
675 + | },
|
676 + | )?;
|
677 + | map
|
678 + | });
|
679 + | Ok(())
|
680 + | })?;
|
681 + | container
|
682 + | });
|
683 + | }
|
684 + | Some(6) => {
|
685 + | builder.priority = Some(deser.read_integer(member)?);
|
686 + | }
|
687 + | Some(7) => {
|
688 + | builder.max_concurrency = Some(deser.read_string(member)?);
|
689 + | }
|
690 + | Some(8) => {
|
691 + | builder.max_errors = Some(deser.read_string(member)?);
|
692 + | }
|
693 + | Some(9) => {
|
694 + | builder.status = Some(crate::types::MaintenanceWindowExecutionStatus::from(deser.read_string(member)?.as_str()));
|
695 + | }
|
696 + | Some(10) => {
|
697 + | builder.status_details = Some(deser.read_string(member)?);
|
698 + | }
|
699 + | Some(11) => {
|
700 + | builder.start_time = Some(deser.read_timestamp(member)?);
|
701 + | }
|
702 + | Some(12) => {
|
703 + | builder.end_time = Some(deser.read_timestamp(member)?);
|
704 + | }
|
705 + | Some(13) => {
|
706 + | builder.alarm_configuration = Some(crate::types::AlarmConfiguration::deserialize(deser)?);
|
707 + | }
|
708 + | Some(14) => {
|
709 + | builder.triggered_alarms = Some({
|
710 + | let mut container = Vec::new();
|
711 + | deser.read_list(member, &mut |deser| {
|
712 + | container.push(crate::types::AlarmStateInformation::deserialize(deser)?);
|
713 + | Ok(())
|
714 + | })?;
|
715 + | container
|
716 + | });
|
717 + | }
|
718 + | _ => {}
|
719 + | }
|
720 + | Ok(())
|
721 + | })?;
|
722 + | Ok(builder.build())
|
723 + | }
|
724 + | }
|
725 + | impl ::aws_types::request_id::RequestId for GetMaintenanceWindowExecutionTaskOutput {
|
726 + | fn request_id(&self) -> Option<&str> {
|
727 + | self._request_id.as_deref()
|
728 + | }
|
729 + | }
|
730 + | impl GetMaintenanceWindowExecutionTaskOutput {
|
731 + | pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
|
732 + | self._request_id = request_id;
|
733 + | self
|
734 + | }
|
735 + | }
|
736 + | impl GetMaintenanceWindowExecutionTaskOutput {
|
737 + | /// Creates a new builder-style object to manufacture [`GetMaintenanceWindowExecutionTaskOutput`](crate::operation::get_maintenance_window_execution_task::GetMaintenanceWindowExecutionTaskOutput).
|
738 + | pub fn builder() -> crate::operation::get_maintenance_window_execution_task::builders::GetMaintenanceWindowExecutionTaskOutputBuilder {
|
739 + | crate::operation::get_maintenance_window_execution_task::builders::GetMaintenanceWindowExecutionTaskOutputBuilder::default()
|
740 + | }
|
741 + | }
|
742 + |
|
743 + | /// A builder for [`GetMaintenanceWindowExecutionTaskOutput`](crate::operation::get_maintenance_window_execution_task::GetMaintenanceWindowExecutionTaskOutput).
|
744 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
|
745 + | #[non_exhaustive]
|
746 + | pub struct GetMaintenanceWindowExecutionTaskOutputBuilder {
|
747 + | pub(crate) window_execution_id: ::std::option::Option<::std::string::String>,
|
748 + | pub(crate) task_execution_id: ::std::option::Option<::std::string::String>,
|
749 + | pub(crate) task_arn: ::std::option::Option<::std::string::String>,
|
750 + | pub(crate) service_role: ::std::option::Option<::std::string::String>,
|
751 + | pub(crate) r#type: ::std::option::Option<crate::types::MaintenanceWindowTaskType>,
|
752 + | pub(crate) task_parameters: ::std::option::Option<
|
753 + | ::std::vec::Vec<::std::collections::HashMap<::std::string::String, crate::types::MaintenanceWindowTaskParameterValueExpression>>,
|
754 + | >,
|
755 + | pub(crate) priority: ::std::option::Option<i32>,
|
756 + | pub(crate) max_concurrency: ::std::option::Option<::std::string::String>,
|
757 + | pub(crate) max_errors: ::std::option::Option<::std::string::String>,
|
758 + | pub(crate) status: ::std::option::Option<crate::types::MaintenanceWindowExecutionStatus>,
|
759 + | pub(crate) status_details: ::std::option::Option<::std::string::String>,
|
760 + | pub(crate) start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
761 + | pub(crate) end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
762 + | pub(crate) alarm_configuration: ::std::option::Option<crate::types::AlarmConfiguration>,
|
763 + | pub(crate) triggered_alarms: ::std::option::Option<::std::vec::Vec<crate::types::AlarmStateInformation>>,
|
764 + | _request_id: Option<String>,
|
765 + | }
|
766 + | impl GetMaintenanceWindowExecutionTaskOutputBuilder {
|
767 + | /// <p>The ID of the maintenance window execution that includes the task.</p>
|
768 + | pub fn window_execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
769 + | self.window_execution_id = ::std::option::Option::Some(input.into());
|
770 + | self
|
771 + | }
|
772 + | /// <p>The ID of the maintenance window execution that includes the task.</p>
|
773 + | pub fn set_window_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
774 + | self.window_execution_id = input;
|
775 + | self
|
776 + | }
|
777 + | /// <p>The ID of the maintenance window execution that includes the task.</p>
|
778 + | pub fn get_window_execution_id(&self) -> &::std::option::Option<::std::string::String> {
|
779 + | &self.window_execution_id
|
780 + | }
|
781 + | /// <p>The ID of the specific task execution in the maintenance window task that was retrieved.</p>
|
782 + | pub fn task_execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
783 + | self.task_execution_id = ::std::option::Option::Some(input.into());
|
784 + | self
|
785 + | }
|
786 + | /// <p>The ID of the specific task execution in the maintenance window task that was retrieved.</p>
|
787 + | pub fn set_task_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
788 + | self.task_execution_id = input;
|
789 + | self
|
790 + | }
|
791 + | /// <p>The ID of the specific task execution in the maintenance window task that was retrieved.</p>
|
792 + | pub fn get_task_execution_id(&self) -> &::std::option::Option<::std::string::String> {
|
793 + | &self.task_execution_id
|
794 + | }
|
795 + | /// <p>The Amazon Resource Name (ARN) of the task that ran.</p>
|
796 + | pub fn task_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
797 + | self.task_arn = ::std::option::Option::Some(input.into());
|
798 + | self
|
799 + | }
|
800 + | /// <p>The Amazon Resource Name (ARN) of the task that ran.</p>
|
801 + | pub fn set_task_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
802 + | self.task_arn = input;
|
803 + | self
|
804 + | }
|
805 + | /// <p>The Amazon Resource Name (ARN) of the task that ran.</p>
|
806 + | pub fn get_task_arn(&self) -> &::std::option::Option<::std::string::String> {
|
807 + | &self.task_arn
|
808 + | }
|
809 + | /// <p>The role that was assumed when running the task.</p>
|
810 + | pub fn service_role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
811 + | self.service_role = ::std::option::Option::Some(input.into());
|
812 + | self
|
813 + | }
|
814 + | /// <p>The role that was assumed when running the task.</p>
|
815 + | pub fn set_service_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
816 + | self.service_role = input;
|
817 + | self
|
818 + | }
|
819 + | /// <p>The role that was assumed when running the task.</p>
|
820 + | pub fn get_service_role(&self) -> &::std::option::Option<::std::string::String> {
|
821 + | &self.service_role
|
822 + | }
|
823 + | /// <p>The type of task that was run.</p>
|
824 + | pub fn r#type(mut self, input: crate::types::MaintenanceWindowTaskType) -> Self {
|
825 + | self.r#type = ::std::option::Option::Some(input);
|
826 + | self
|
827 + | }
|
828 + | /// <p>The type of task that was run.</p>
|
829 + | pub fn set_type(mut self, input: ::std::option::Option<crate::types::MaintenanceWindowTaskType>) -> Self {
|
830 + | self.r#type = input;
|
831 + | self
|
832 + | }
|
833 + | /// <p>The type of task that was run.</p>
|
834 + | pub fn get_type(&self) -> &::std::option::Option<crate::types::MaintenanceWindowTaskType> {
|
835 + | &self.r#type
|
836 + | }
|
837 + | /// Appends an item to `task_parameters`.
|
838 + | ///
|
839 + | /// To override the contents of this collection use [`set_task_parameters`](Self::set_task_parameters).
|
840 + | ///
|
841 + | /// <p>The parameters passed to the task when it was run.</p><note>
|
842 + | /// <p><code>TaskParameters</code> has been deprecated. To specify parameters to pass to a task when it runs, instead use the <code>Parameters</code> option in the <code>TaskInvocationParameters</code> structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see <code>MaintenanceWindowTaskInvocationParameters</code>.</p>
|
843 + | /// </note>
|
844 + | /// <p>The map has the following format:</p>
|
845 + | /// <ul>
|
846 + | /// <li>
|
847 + | /// <p><code>Key</code>: string, between 1 and 255 characters</p></li>
|
848 + | /// <li>
|
849 + | /// <p><code>Value</code>: an array of strings, each between 1 and 255 characters</p></li>
|
850 + | /// </ul>
|
851 + | pub fn task_parameters(
|
852 + | mut self,
|
853 + | input: ::std::collections::HashMap<::std::string::String, crate::types::MaintenanceWindowTaskParameterValueExpression>,
|
854 + | ) -> Self {
|
855 + | let mut v = self.task_parameters.unwrap_or_default();
|
856 + | v.push(input);
|
857 + | self.task_parameters = ::std::option::Option::Some(v);
|
858 + | self
|
859 + | }
|
860 + | /// <p>The parameters passed to the task when it was run.</p><note>
|
861 + | /// <p><code>TaskParameters</code> has been deprecated. To specify parameters to pass to a task when it runs, instead use the <code>Parameters</code> option in the <code>TaskInvocationParameters</code> structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see <code>MaintenanceWindowTaskInvocationParameters</code>.</p>
|
862 + | /// </note>
|
863 + | /// <p>The map has the following format:</p>
|
864 + | /// <ul>
|
865 + | /// <li>
|
866 + | /// <p><code>Key</code>: string, between 1 and 255 characters</p></li>
|
867 + | /// <li>
|
868 + | /// <p><code>Value</code>: an array of strings, each between 1 and 255 characters</p></li>
|
869 + | /// </ul>
|
870 + | pub fn set_task_parameters(
|
871 + | mut self,
|
872 + | input: ::std::option::Option<
|
873 + | ::std::vec::Vec<::std::collections::HashMap<::std::string::String, crate::types::MaintenanceWindowTaskParameterValueExpression>>,
|
874 + | >,
|
875 + | ) -> Self {
|
876 + | self.task_parameters = input;
|
877 + | self
|
878 + | }
|
879 + | /// <p>The parameters passed to the task when it was run.</p><note>
|
880 + | /// <p><code>TaskParameters</code> has been deprecated. To specify parameters to pass to a task when it runs, instead use the <code>Parameters</code> option in the <code>TaskInvocationParameters</code> structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see <code>MaintenanceWindowTaskInvocationParameters</code>.</p>
|
881 + | /// </note>
|
882 + | /// <p>The map has the following format:</p>
|
883 + | /// <ul>
|
884 + | /// <li>
|
885 + | /// <p><code>Key</code>: string, between 1 and 255 characters</p></li>
|
886 + | /// <li>
|
887 + | /// <p><code>Value</code>: an array of strings, each between 1 and 255 characters</p></li>
|
888 + | /// </ul>
|
889 + | pub fn get_task_parameters(
|
890 + | &self,
|
891 + | ) -> &::std::option::Option<
|
892 + | ::std::vec::Vec<::std::collections::HashMap<::std::string::String, crate::types::MaintenanceWindowTaskParameterValueExpression>>,
|
893 + | > {
|
894 + | &self.task_parameters
|
895 + | }
|
896 + | /// <p>The priority of the task.</p>
|
897 + | pub fn priority(mut self, input: i32) -> Self {
|
898 + | self.priority = ::std::option::Option::Some(input);
|
899 + | self
|
900 + | }
|
901 + | /// <p>The priority of the task.</p>
|
902 + | pub fn set_priority(mut self, input: ::std::option::Option<i32>) -> Self {
|
903 + | self.priority = input;
|
904 + | self
|
905 + | }
|
906 + | /// <p>The priority of the task.</p>
|
907 + | pub fn get_priority(&self) -> &::std::option::Option<i32> {
|
908 + | &self.priority
|
909 + | }
|
910 + | /// <p>The defined maximum number of task executions that could be run in parallel.</p>
|
911 + | pub fn max_concurrency(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
912 + | self.max_concurrency = ::std::option::Option::Some(input.into());
|
913 + | self
|
914 + | }
|
915 + | /// <p>The defined maximum number of task executions that could be run in parallel.</p>
|
916 + | pub fn set_max_concurrency(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
917 + | self.max_concurrency = input;
|
918 + | self
|
919 + | }
|
920 + | /// <p>The defined maximum number of task executions that could be run in parallel.</p>
|
921 + | pub fn get_max_concurrency(&self) -> &::std::option::Option<::std::string::String> {
|
922 + | &self.max_concurrency
|
923 + | }
|
924 + | /// <p>The defined maximum number of task execution errors allowed before scheduling of the task execution would have been stopped.</p>
|
925 + | pub fn max_errors(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
926 + | self.max_errors = ::std::option::Option::Some(input.into());
|
927 + | self
|
928 + | }
|
929 + | /// <p>The defined maximum number of task execution errors allowed before scheduling of the task execution would have been stopped.</p>
|
930 + | pub fn set_max_errors(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
931 + | self.max_errors = input;
|
932 + | self
|
933 + | }
|
934 + | /// <p>The defined maximum number of task execution errors allowed before scheduling of the task execution would have been stopped.</p>
|
935 + | pub fn get_max_errors(&self) -> &::std::option::Option<::std::string::String> {
|
936 + | &self.max_errors
|
937 + | }
|
938 + | /// <p>The status of the task.</p>
|
939 + | pub fn status(mut self, input: crate::types::MaintenanceWindowExecutionStatus) -> Self {
|
940 + | self.status = ::std::option::Option::Some(input);
|
941 + | self
|
942 + | }
|
943 + | /// <p>The status of the task.</p>
|
944 + | pub fn set_status(mut self, input: ::std::option::Option<crate::types::MaintenanceWindowExecutionStatus>) -> Self {
|
945 + | self.status = input;
|
946 + | self
|
947 + | }
|
948 + | /// <p>The status of the task.</p>
|
949 + | pub fn get_status(&self) -> &::std::option::Option<crate::types::MaintenanceWindowExecutionStatus> {
|
950 + | &self.status
|
951 + | }
|
952 + | /// <p>The details explaining the status. Not available for all status values.</p>
|
953 + | pub fn status_details(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
954 + | self.status_details = ::std::option::Option::Some(input.into());
|
955 + | self
|
956 + | }
|
957 + | /// <p>The details explaining the status. Not available for all status values.</p>
|
958 + | pub fn set_status_details(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
959 + | self.status_details = input;
|
960 + | self
|
961 + | }
|
962 + | /// <p>The details explaining the status. Not available for all status values.</p>
|
963 + | pub fn get_status_details(&self) -> &::std::option::Option<::std::string::String> {
|
964 + | &self.status_details
|
965 + | }
|
966 + | /// <p>The time the task execution started.</p>
|
967 + | pub fn start_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
968 + | self.start_time = ::std::option::Option::Some(input);
|
969 + | self
|
970 + | }
|
971 + | /// <p>The time the task execution started.</p>
|
972 + | pub fn set_start_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
973 + | self.start_time = input;
|
974 + | self
|
975 + | }
|
976 + | /// <p>The time the task execution started.</p>
|
977 + | pub fn get_start_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
978 + | &self.start_time
|
979 + | }
|
980 + | /// <p>The time the task execution completed.</p>
|
981 + | pub fn end_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
982 + | self.end_time = ::std::option::Option::Some(input);
|
983 + | self
|
984 + | }
|
985 + | /// <p>The time the task execution completed.</p>
|
986 + | pub fn set_end_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
987 + | self.end_time = input;
|
988 + | self
|
989 + | }
|
990 + | /// <p>The time the task execution completed.</p>
|
991 + | pub fn get_end_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
992 + | &self.end_time
|
993 + | }
|
994 + | /// <p>The details for the CloudWatch alarm you applied to your maintenance window task.</p>
|
995 + | pub fn alarm_configuration(mut self, input: crate::types::AlarmConfiguration) -> Self {
|
996 + | self.alarm_configuration = ::std::option::Option::Some(input);
|
997 + | self
|
998 + | }
|
999 + | /// <p>The details for the CloudWatch alarm you applied to your maintenance window task.</p>
|
1000 + | pub fn set_alarm_configuration(mut self, input: ::std::option::Option<crate::types::AlarmConfiguration>) -> Self {
|
1001 + | self.alarm_configuration = input;
|
1002 + | self
|
1003 + | }
|
1004 + | /// <p>The details for the CloudWatch alarm you applied to your maintenance window task.</p>
|
1005 + | pub fn get_alarm_configuration(&self) -> &::std::option::Option<crate::types::AlarmConfiguration> {
|
1006 + | &self.alarm_configuration
|
1007 + | }
|
1008 + | /// Appends an item to `triggered_alarms`.
|
1009 + | ///
|
1010 + | /// To override the contents of this collection use [`set_triggered_alarms`](Self::set_triggered_alarms).
|
1011 + | ///
|
1012 + | /// <p>The CloudWatch alarms that were invoked by the maintenance window task.</p>
|
1013 + | pub fn triggered_alarms(mut self, input: crate::types::AlarmStateInformation) -> Self {
|
1014 + | let mut v = self.triggered_alarms.unwrap_or_default();
|
1015 + | v.push(input);
|
1016 + | self.triggered_alarms = ::std::option::Option::Some(v);
|
1017 + | self
|
1018 + | }
|
1019 + | /// <p>The CloudWatch alarms that were invoked by the maintenance window task.</p>
|
1020 + | pub fn set_triggered_alarms(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AlarmStateInformation>>) -> Self {
|
1021 + | self.triggered_alarms = input;
|
1022 + | self
|
1023 + | }
|
1024 + | /// <p>The CloudWatch alarms that were invoked by the maintenance window task.</p>
|
1025 + | pub fn get_triggered_alarms(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AlarmStateInformation>> {
|
1026 + | &self.triggered_alarms
|
1027 + | }
|
1028 + | pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
|
1029 + | self._request_id = Some(request_id.into());
|
1030 + | self
|
1031 + | }
|
1032 + |
|
1033 + | pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
|
1034 + | self._request_id = request_id;
|
1035 + | self
|
1036 + | }
|
1037 + | /// Consumes the builder and constructs a [`GetMaintenanceWindowExecutionTaskOutput`](crate::operation::get_maintenance_window_execution_task::GetMaintenanceWindowExecutionTaskOutput).
|
1038 + | pub fn build(self) -> crate::operation::get_maintenance_window_execution_task::GetMaintenanceWindowExecutionTaskOutput {
|
1039 + | crate::operation::get_maintenance_window_execution_task::GetMaintenanceWindowExecutionTaskOutput {
|
1040 + | window_execution_id: self.window_execution_id,
|
1041 + | task_execution_id: self.task_execution_id,
|
1042 + | task_arn: self.task_arn,
|
1043 + | service_role: self.service_role,
|
1044 + | r#type: self.r#type,
|
1045 + | task_parameters: self.task_parameters,
|
1046 + | priority: self.priority.unwrap_or_default(),
|
1047 + | max_concurrency: self.max_concurrency,
|
1048 + | max_errors: self.max_errors,
|
1049 + | status: self.status,
|
1050 + | status_details: self.status_details,
|
1051 + | start_time: self.start_time,
|
1052 + | end_time: self.end_time,
|
1053 + | alarm_configuration: self.alarm_configuration,
|
1054 + | triggered_alarms: self.triggered_alarms,
|
1055 + | _request_id: self._request_id,
|
1056 + | }
|
1057 + | }
|
1058 + | }
|
1059 + | impl ::std::fmt::Debug for GetMaintenanceWindowExecutionTaskOutputBuilder {
|
1060 + | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
1061 + | let mut formatter = f.debug_struct("GetMaintenanceWindowExecutionTaskOutputBuilder");
|
1062 + | formatter.field("window_execution_id", &self.window_execution_id);
|
1063 + | formatter.field("task_execution_id", &self.task_execution_id);
|
1064 + | formatter.field("task_arn", &self.task_arn);
|
1065 + | formatter.field("service_role", &self.service_role);
|
1066 + | formatter.field("r#type", &self.r#type);
|
1067 + | formatter.field("task_parameters", &"*** Sensitive Data Redacted ***");
|
1068 + | formatter.field("priority", &self.priority);
|
1069 + | formatter.field("max_concurrency", &self.max_concurrency);
|
1070 + | formatter.field("max_errors", &self.max_errors);
|
1071 + | formatter.field("status", &self.status);
|
1072 + | formatter.field("status_details", &self.status_details);
|
1073 + | formatter.field("start_time", &self.start_time);
|
1074 + | formatter.field("end_time", &self.end_time);
|
1075 + | formatter.field("alarm_configuration", &self.alarm_configuration);
|
1076 + | formatter.field("triggered_alarms", &self.triggered_alarms);
|
1077 + | formatter.field("_request_id", &self._request_id);
|
1078 + | formatter.finish()
|
1079 + | }
|
1080 + | }
|