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, ::std::fmt::Debug)]
|
5 + | pub struct StartChangeRequestExecutionInput {
|
6 + | /// <p>The date and time specified in the change request to run the Automation runbooks.</p><note>
|
7 + | /// <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p>
|
8 + | /// </note>
|
9 + | pub scheduled_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
10 + | /// <p>The name of the change template document to run during the runbook workflow.</p>
|
11 + | pub document_name: ::std::option::Option<::std::string::String>,
|
12 + | /// <p>The version of the change template document to run during the runbook workflow.</p>
|
13 + | pub document_version: ::std::option::Option<::std::string::String>,
|
14 + | /// <p>A key-value map of parameters that match the declared parameters in the change template document.</p>
|
15 + | pub parameters: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>>,
|
16 + | /// <p>The name of the change request associated with the runbook workflow to be run.</p>
|
17 + | pub change_request_name: ::std::option::Option<::std::string::String>,
|
18 + | /// <p>The user-provided idempotency token. The token must be unique, is case insensitive, enforces the UUID format, and can't be reused.</p>
|
19 + | pub client_token: ::std::option::Option<::std::string::String>,
|
20 + | /// <p>Indicates whether the change request can be approved automatically without the need for manual approvals.</p>
|
21 + | /// <p>If <code>AutoApprovable</code> is enabled in a change template, then setting <code>AutoApprove</code> to <code>true</code> in <code>StartChangeRequestExecution</code> creates a change request that bypasses approver review.</p><note>
|
22 + | /// <p>Change Calendar restrictions are not bypassed in this scenario. If the state of an associated calendar is <code>CLOSED</code>, change freeze approvers must still grant permission for this change request to run. If they don't, the change won't be processed until the calendar state is again <code>OPEN</code>.</p>
|
23 + | /// </note>
|
24 + | pub auto_approve: ::std::option::Option<bool>,
|
25 + | /// <p>Information about the Automation runbooks that are run during the runbook workflow.</p><note>
|
26 + | /// <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p>
|
27 + | /// </note>
|
28 + | pub runbooks: ::std::option::Option<::std::vec::Vec<crate::types::Runbook>>,
|
29 + | /// <p>Optional metadata that you assign to a resource. You can specify a maximum of five tags for a change request. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a change request to identify an environment or target Amazon Web Services Region. In this case, you could specify the following key-value pairs:</p>
|
30 + | /// <ul>
|
31 + | /// <li>
|
32 + | /// <p><code>Key=Environment,Value=Production</code></p></li>
|
33 + | /// <li>
|
34 + | /// <p><code>Key=Region,Value=us-east-2</code></p></li>
|
35 + | /// </ul><note>
|
36 + | /// <p>The <code>Array Members</code> maximum value is reported as 1000. This number includes capacity reserved for internal operations. When calling the <code>StartChangeRequestExecution</code> action, you can specify a maximum of 5 tags. You can, however, use the <code>AddTagsToResource</code> action to add up to a total of 50 tags to an existing change request configuration.</p>
|
37 + | /// </note>
|
38 + | pub tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
|
39 + | /// <p>The time that the requester expects the runbook workflow related to the change request to complete. The time is an estimate only that the requester provides for reviewers.</p>
|
40 + | pub scheduled_end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
41 + | /// <p>User-provided details about the change. If no details are provided, content specified in the <b>Template information</b> section of the associated change template is added.</p>
|
42 + | pub change_details: ::std::option::Option<::std::string::String>,
|
43 + | }
|
44 + | impl StartChangeRequestExecutionInput {
|
45 + | /// <p>The date and time specified in the change request to run the Automation runbooks.</p><note>
|
46 + | /// <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p>
|
47 + | /// </note>
|
48 + | pub fn scheduled_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
49 + | self.scheduled_time.as_ref()
|
50 + | }
|
51 + | /// <p>The name of the change template document to run during the runbook workflow.</p>
|
52 + | pub fn document_name(&self) -> ::std::option::Option<&str> {
|
53 + | self.document_name.as_deref()
|
54 + | }
|
55 + | /// <p>The version of the change template document to run during the runbook workflow.</p>
|
56 + | pub fn document_version(&self) -> ::std::option::Option<&str> {
|
57 + | self.document_version.as_deref()
|
58 + | }
|
59 + | /// <p>A key-value map of parameters that match the declared parameters in the change template document.</p>
|
60 + | pub fn parameters(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>> {
|
61 + | self.parameters.as_ref()
|
62 + | }
|
63 + | /// <p>The name of the change request associated with the runbook workflow to be run.</p>
|
64 + | pub fn change_request_name(&self) -> ::std::option::Option<&str> {
|
65 + | self.change_request_name.as_deref()
|
66 + | }
|
67 + | /// <p>The user-provided idempotency token. The token must be unique, is case insensitive, enforces the UUID format, and can't be reused.</p>
|
68 + | pub fn client_token(&self) -> ::std::option::Option<&str> {
|
69 + | self.client_token.as_deref()
|
70 + | }
|
71 + | /// <p>Indicates whether the change request can be approved automatically without the need for manual approvals.</p>
|
72 + | /// <p>If <code>AutoApprovable</code> is enabled in a change template, then setting <code>AutoApprove</code> to <code>true</code> in <code>StartChangeRequestExecution</code> creates a change request that bypasses approver review.</p><note>
|
73 + | /// <p>Change Calendar restrictions are not bypassed in this scenario. If the state of an associated calendar is <code>CLOSED</code>, change freeze approvers must still grant permission for this change request to run. If they don't, the change won't be processed until the calendar state is again <code>OPEN</code>.</p>
|
74 + | /// </note>
|
75 + | pub fn auto_approve(&self) -> ::std::option::Option<bool> {
|
76 + | self.auto_approve
|
77 + | }
|
78 + | /// <p>Information about the Automation runbooks that are run during the runbook workflow.</p><note>
|
79 + | /// <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p>
|
80 + | /// </note>
|
81 + | ///
|
82 + | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.runbooks.is_none()`.
|
83 + | pub fn runbooks(&self) -> &[crate::types::Runbook] {
|
84 + | self.runbooks.as_deref().unwrap_or_default()
|
85 + | }
|
86 + | /// <p>Optional metadata that you assign to a resource. You can specify a maximum of five tags for a change request. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a change request to identify an environment or target Amazon Web Services Region. In this case, you could specify the following key-value pairs:</p>
|
87 + | /// <ul>
|
88 + | /// <li>
|
89 + | /// <p><code>Key=Environment,Value=Production</code></p></li>
|
90 + | /// <li>
|
91 + | /// <p><code>Key=Region,Value=us-east-2</code></p></li>
|
92 + | /// </ul><note>
|
93 + | /// <p>The <code>Array Members</code> maximum value is reported as 1000. This number includes capacity reserved for internal operations. When calling the <code>StartChangeRequestExecution</code> action, you can specify a maximum of 5 tags. You can, however, use the <code>AddTagsToResource</code> action to add up to a total of 50 tags to an existing change request configuration.</p>
|
94 + | /// </note>
|
95 + | ///
|
96 + | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.tags.is_none()`.
|
97 + | pub fn tags(&self) -> &[crate::types::Tag] {
|
98 + | self.tags.as_deref().unwrap_or_default()
|
99 + | }
|
100 + | /// <p>The time that the requester expects the runbook workflow related to the change request to complete. The time is an estimate only that the requester provides for reviewers.</p>
|
101 + | pub fn scheduled_end_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
102 + | self.scheduled_end_time.as_ref()
|
103 + | }
|
104 + | /// <p>User-provided details about the change. If no details are provided, content specified in the <b>Template information</b> section of the associated change template is added.</p>
|
105 + | pub fn change_details(&self) -> ::std::option::Option<&str> {
|
106 + | self.change_details.as_deref()
|
107 + | }
|
108 + | }
|
109 + | static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_SCHEDULED_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
110 + | ::aws_smithy_schema::ShapeId::from_parts(
|
111 + | "com.amazonaws.ssm.synthetic#StartChangeRequestExecutionInput$ScheduledTime",
|
112 + | "com.amazonaws.ssm.synthetic",
|
113 + | "StartChangeRequestExecutionInput",
|
114 + | ),
|
115 + | ::aws_smithy_schema::ShapeType::Timestamp,
|
116 + | "ScheduledTime",
|
117 + | 0,
|
118 + | );
|
119 + | static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_DOCUMENT_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
120 + | ::aws_smithy_schema::ShapeId::from_parts(
|
121 + | "com.amazonaws.ssm.synthetic#StartChangeRequestExecutionInput$DocumentName",
|
122 + | "com.amazonaws.ssm.synthetic",
|
123 + | "StartChangeRequestExecutionInput",
|
124 + | ),
|
125 + | ::aws_smithy_schema::ShapeType::String,
|
126 + | "DocumentName",
|
127 + | 1,
|
128 + | );
|
129 + | static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_DOCUMENT_VERSION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
130 + | ::aws_smithy_schema::ShapeId::from_parts(
|
131 + | "com.amazonaws.ssm.synthetic#StartChangeRequestExecutionInput$DocumentVersion",
|
132 + | "com.amazonaws.ssm.synthetic",
|
133 + | "StartChangeRequestExecutionInput",
|
134 + | ),
|
135 + | ::aws_smithy_schema::ShapeType::String,
|
136 + | "DocumentVersion",
|
137 + | 2,
|
138 + | );
|
139 + | static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_PARAMETERS_VALUE_MEMBER: ::aws_smithy_schema::Schema<'static> =
|
140 + | ::aws_smithy_schema::Schema::new_member(
|
141 + | ::aws_smithy_schema::ShapeId::from_parts(
|
142 + | "com.amazonaws.ssm#AutomationParameterValueList$member",
|
143 + | "com.amazonaws.ssm",
|
144 + | "AutomationParameterValueList",
|
145 + | ),
|
146 + | ::aws_smithy_schema::ShapeType::String,
|
147 + | "member",
|
148 + | 0,
|
149 + | );
|
150 + | static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_PARAMETERS_KEY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
151 + | ::aws_smithy_schema::ShapeId::from_parts(
|
152 + | "com.amazonaws.ssm#AutomationParameterMap$key",
|
153 + | "com.amazonaws.ssm",
|
154 + | "AutomationParameterMap",
|
155 + | ),
|
156 + | ::aws_smithy_schema::ShapeType::String,
|
157 + | "key",
|
158 + | 0,
|
159 + | );
|
160 + | static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_PARAMETERS_VALUE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
161 + | ::aws_smithy_schema::ShapeId::from_parts(
|
162 + | "com.amazonaws.ssm#AutomationParameterMap$value",
|
163 + | "com.amazonaws.ssm",
|
164 + | "AutomationParameterMap",
|
165 + | ),
|
166 + | ::aws_smithy_schema::ShapeType::List,
|
167 + | "value",
|
168 + | 1,
|
169 + | )
|
170 + | .with_list_member(&STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_PARAMETERS_VALUE_MEMBER);
|
171 + | static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_PARAMETERS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
172 + | ::aws_smithy_schema::ShapeId::from_parts(
|
173 + | "com.amazonaws.ssm.synthetic#StartChangeRequestExecutionInput$Parameters",
|
174 + | "com.amazonaws.ssm.synthetic",
|
175 + | "StartChangeRequestExecutionInput",
|
176 + | ),
|
177 + | ::aws_smithy_schema::ShapeType::Map,
|
178 + | "Parameters",
|
179 + | 3,
|
180 + | )
|
181 + | .with_map_members(
|
182 + | &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_PARAMETERS_KEY,
|
183 + | &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_PARAMETERS_VALUE,
|
184 + | );
|
185 + | static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_CHANGE_REQUEST_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
186 + | ::aws_smithy_schema::ShapeId::from_parts(
|
187 + | "com.amazonaws.ssm.synthetic#StartChangeRequestExecutionInput$ChangeRequestName",
|
188 + | "com.amazonaws.ssm.synthetic",
|
189 + | "StartChangeRequestExecutionInput",
|
190 + | ),
|
191 + | ::aws_smithy_schema::ShapeType::String,
|
192 + | "ChangeRequestName",
|
193 + | 4,
|
194 + | );
|
195 + | static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_CLIENT_TOKEN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
196 + | ::aws_smithy_schema::ShapeId::from_parts(
|
197 + | "com.amazonaws.ssm.synthetic#StartChangeRequestExecutionInput$ClientToken",
|
198 + | "com.amazonaws.ssm.synthetic",
|
199 + | "StartChangeRequestExecutionInput",
|
200 + | ),
|
201 + | ::aws_smithy_schema::ShapeType::String,
|
202 + | "ClientToken",
|
203 + | 5,
|
204 + | );
|
205 + | static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_AUTO_APPROVE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
206 + | ::aws_smithy_schema::ShapeId::from_parts(
|
207 + | "com.amazonaws.ssm.synthetic#StartChangeRequestExecutionInput$AutoApprove",
|
208 + | "com.amazonaws.ssm.synthetic",
|
209 + | "StartChangeRequestExecutionInput",
|
210 + | ),
|
211 + | ::aws_smithy_schema::ShapeType::Boolean,
|
212 + | "AutoApprove",
|
213 + | 6,
|
214 + | );
|
215 + | static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_RUNBOOKS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
216 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Runbooks$member", "com.amazonaws.ssm", "Runbooks"),
|
217 + | ::aws_smithy_schema::ShapeType::Structure,
|
218 + | "member",
|
219 + | 0,
|
220 + | );
|
221 + | static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_RUNBOOKS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
222 + | ::aws_smithy_schema::ShapeId::from_parts(
|
223 + | "com.amazonaws.ssm.synthetic#StartChangeRequestExecutionInput$Runbooks",
|
224 + | "com.amazonaws.ssm.synthetic",
|
225 + | "StartChangeRequestExecutionInput",
|
226 + | ),
|
227 + | ::aws_smithy_schema::ShapeType::List,
|
228 + | "Runbooks",
|
229 + | 7,
|
230 + | )
|
231 + | .with_list_member(&STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_RUNBOOKS_MEMBER);
|
232 + | static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_TAGS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
233 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#TagList$member", "com.amazonaws.ssm", "TagList"),
|
234 + | ::aws_smithy_schema::ShapeType::Structure,
|
235 + | "member",
|
236 + | 0,
|
237 + | );
|
238 + | static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_TAGS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
239 + | ::aws_smithy_schema::ShapeId::from_parts(
|
240 + | "com.amazonaws.ssm.synthetic#StartChangeRequestExecutionInput$Tags",
|
241 + | "com.amazonaws.ssm.synthetic",
|
242 + | "StartChangeRequestExecutionInput",
|
243 + | ),
|
244 + | ::aws_smithy_schema::ShapeType::List,
|
245 + | "Tags",
|
246 + | 8,
|
247 + | )
|
248 + | .with_list_member(&STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_TAGS_MEMBER);
|
249 + | static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_SCHEDULED_END_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
250 + | ::aws_smithy_schema::ShapeId::from_parts(
|
251 + | "com.amazonaws.ssm.synthetic#StartChangeRequestExecutionInput$ScheduledEndTime",
|
252 + | "com.amazonaws.ssm.synthetic",
|
253 + | "StartChangeRequestExecutionInput",
|
254 + | ),
|
255 + | ::aws_smithy_schema::ShapeType::Timestamp,
|
256 + | "ScheduledEndTime",
|
257 + | 9,
|
258 + | );
|
259 + | static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_CHANGE_DETAILS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
260 + | ::aws_smithy_schema::ShapeId::from_parts(
|
261 + | "com.amazonaws.ssm.synthetic#StartChangeRequestExecutionInput$ChangeDetails",
|
262 + | "com.amazonaws.ssm.synthetic",
|
263 + | "StartChangeRequestExecutionInput",
|
264 + | ),
|
265 + | ::aws_smithy_schema::ShapeType::String,
|
266 + | "ChangeDetails",
|
267 + | 10,
|
268 + | );
|
269 + | static STARTCHANGEREQUESTEXECUTIONINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
|
270 + | ::aws_smithy_schema::ShapeId::from_parts(
|
271 + | "com.amazonaws.ssm.synthetic#StartChangeRequestExecutionInput",
|
272 + | "com.amazonaws.ssm.synthetic",
|
273 + | "StartChangeRequestExecutionInput",
|
274 + | ),
|
275 + | ::aws_smithy_schema::ShapeType::Structure,
|
276 + | &[
|
277 + | &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_SCHEDULED_TIME,
|
278 + | &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_DOCUMENT_NAME,
|
279 + | &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_DOCUMENT_VERSION,
|
280 + | &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_PARAMETERS,
|
281 + | &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_CHANGE_REQUEST_NAME,
|
282 + | &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_CLIENT_TOKEN,
|
283 + | &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_AUTO_APPROVE,
|
284 + | &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_RUNBOOKS,
|
285 + | &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_TAGS,
|
286 + | &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_SCHEDULED_END_TIME,
|
287 + | &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_CHANGE_DETAILS,
|
288 + | ],
|
289 + | )
|
290 + | .with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
|
291 + | .with_original_name("StartChangeRequestExecutionRequest");
|
292 + | impl StartChangeRequestExecutionInput {
|
293 + | /// The schema for this shape.
|
294 + | pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &STARTCHANGEREQUESTEXECUTIONINPUT_SCHEMA;
|
295 + | }
|
296 + | impl ::aws_smithy_schema::serde::SerializableStruct for StartChangeRequestExecutionInput {
|
297 + | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
298 + | fn serialize_members(
|
299 + | &self,
|
300 + | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
301 + | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
302 + | if let Some(ref val) = self.scheduled_time {
|
303 + | ser.write_timestamp(&STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_SCHEDULED_TIME, val)?;
|
304 + | }
|
305 + | if let Some(ref val) = self.document_name {
|
306 + | ser.write_string(&STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_DOCUMENT_NAME, val)?;
|
307 + | }
|
308 + | if let Some(ref val) = self.document_version {
|
309 + | ser.write_string(&STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_DOCUMENT_VERSION, val)?;
|
310 + | }
|
311 + | if let Some(ref val) = self.parameters {
|
312 + | ser.write_map(
|
313 + | &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_PARAMETERS,
|
314 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
315 + | for (key, value) in val {
|
316 + | ser.write_string(&::aws_smithy_schema::prelude::STRING, key)?;
|
317 + |
|
318 + | ser.write_list(
|
319 + | &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_PARAMETERS_VALUE,
|
320 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
321 + | for item in value {
|
322 + | ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
|
323 + | }
|
324 + | Ok(())
|
325 + | },
|
326 + | )?;
|
327 + | }
|
328 + | Ok(())
|
329 + | },
|
330 + | )?;
|
331 + | }
|
332 + | if let Some(ref val) = self.change_request_name {
|
333 + | ser.write_string(&STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_CHANGE_REQUEST_NAME, val)?;
|
334 + | }
|
335 + | if let Some(ref val) = self.client_token {
|
336 + | ser.write_string(&STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_CLIENT_TOKEN, val)?;
|
337 + | }
|
338 + | if let Some(ref val) = self.auto_approve {
|
339 + | ser.write_boolean(&STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_AUTO_APPROVE, *val)?;
|
340 + | }
|
341 + | if let Some(ref val) = self.runbooks {
|
342 + | ser.write_list(
|
343 + | &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_RUNBOOKS,
|
344 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
345 + | for item in val {
|
346 + | ser.write_struct(crate::types::Runbook::SCHEMA, item)?;
|
347 + | }
|
348 + | Ok(())
|
349 + | },
|
350 + | )?;
|
351 + | }
|
352 + | if let Some(ref val) = self.tags {
|
353 + | ser.write_list(
|
354 + | &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_TAGS,
|
355 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
356 + | for item in val {
|
357 + | ser.write_struct(crate::types::Tag::SCHEMA, item)?;
|
358 + | }
|
359 + | Ok(())
|
360 + | },
|
361 + | )?;
|
362 + | }
|
363 + | if let Some(ref val) = self.scheduled_end_time {
|
364 + | ser.write_timestamp(&STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_SCHEDULED_END_TIME, val)?;
|
365 + | }
|
366 + | if let Some(ref val) = self.change_details {
|
367 + | ser.write_string(&STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_CHANGE_DETAILS, val)?;
|
368 + | }
|
369 + | Ok(())
|
370 + | }
|
371 + | }
|
372 + | impl StartChangeRequestExecutionInput {
|
373 + | /// Deserializes this structure from a [`ShapeDeserializer`].
|
374 + | pub fn deserialize(
|
375 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
376 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
377 + | #[allow(unused_variables, unused_mut)]
|
378 + | let mut builder = Self::builder();
|
379 + | #[allow(
|
380 + | unused_variables,
|
381 + | unreachable_code,
|
382 + | clippy::single_match,
|
383 + | clippy::match_single_binding,
|
384 + | clippy::diverging_sub_expression
|
385 + | )]
|
386 + | deserializer.read_struct(&STARTCHANGEREQUESTEXECUTIONINPUT_SCHEMA, &mut |member, deser| {
|
387 + | match member.member_index() {
|
388 + | Some(0) => {
|
389 + | if deser.is_null() {
|
390 + | deser.read_null()?;
|
391 + | } else {
|
392 + | builder.scheduled_time = Some(deser.read_timestamp(member)?);
|
393 + | }
|
394 + | }
|
395 + | Some(1) => {
|
396 + | if deser.is_null() {
|
397 + | deser.read_null()?;
|
398 + | } else {
|
399 + | builder.document_name = Some(deser.read_string(member)?);
|
400 + | }
|
401 + | }
|
402 + | Some(2) => {
|
403 + | if deser.is_null() {
|
404 + | deser.read_null()?;
|
405 + | } else {
|
406 + | builder.document_version = Some(deser.read_string(member)?);
|
407 + | }
|
408 + | }
|
409 + | Some(3) => {
|
410 + | if deser.is_null() {
|
411 + | deser.read_null()?;
|
412 + | } else {
|
413 + | builder.parameters = Some({
|
414 + | let mut container = std::collections::HashMap::new();
|
415 + | deser.read_map(member, &mut |key, deser| {
|
416 + | container.insert(key, {
|
417 + | let mut list = Vec::new();
|
418 + | deser.read_list(&STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_PARAMETERS_VALUE, &mut |deser| {
|
419 + | list.push(deser.read_string(&::aws_smithy_schema::prelude::STRING)?);
|
420 + | Ok(())
|
421 + | })?;
|
422 + | list
|
423 + | });
|
424 + | Ok(())
|
425 + | })?;
|
426 + | container
|
427 + | });
|
428 + | }
|
429 + | }
|
430 + | Some(4) => {
|
431 + | if deser.is_null() {
|
432 + | deser.read_null()?;
|
433 + | } else {
|
434 + | builder.change_request_name = Some(deser.read_string(member)?);
|
435 + | }
|
436 + | }
|
437 + | Some(5) => {
|
438 + | if deser.is_null() {
|
439 + | deser.read_null()?;
|
440 + | } else {
|
441 + | builder.client_token = Some(deser.read_string(member)?);
|
442 + | }
|
443 + | }
|
444 + | Some(6) => {
|
445 + | if deser.is_null() {
|
446 + | deser.read_null()?;
|
447 + | } else {
|
448 + | builder.auto_approve = Some(deser.read_boolean(member)?);
|
449 + | }
|
450 + | }
|
451 + | Some(7) => {
|
452 + | if deser.is_null() {
|
453 + | deser.read_null()?;
|
454 + | } else {
|
455 + | builder.runbooks = Some({
|
456 + | let mut container = Vec::new();
|
457 + | deser.read_list(member, &mut |deser| {
|
458 + | container.push(crate::types::Runbook::deserialize(deser)?);
|
459 + | Ok(())
|
460 + | })?;
|
461 + | container
|
462 + | });
|
463 + | }
|
464 + | }
|
465 + | Some(8) => {
|
466 + | if deser.is_null() {
|
467 + | deser.read_null()?;
|
468 + | } else {
|
469 + | builder.tags = Some({
|
470 + | let mut container = Vec::new();
|
471 + | deser.read_list(member, &mut |deser| {
|
472 + | container.push(crate::types::Tag::deserialize(deser)?);
|
473 + | Ok(())
|
474 + | })?;
|
475 + | container
|
476 + | });
|
477 + | }
|
478 + | }
|
479 + | Some(9) => {
|
480 + | if deser.is_null() {
|
481 + | deser.read_null()?;
|
482 + | } else {
|
483 + | builder.scheduled_end_time = Some(deser.read_timestamp(member)?);
|
484 + | }
|
485 + | }
|
486 + | Some(10) => {
|
487 + | if deser.is_null() {
|
488 + | deser.read_null()?;
|
489 + | } else {
|
490 + | builder.change_details = Some(deser.read_string(member)?);
|
491 + | }
|
492 + | }
|
493 + | _ => {}
|
494 + | }
|
495 + | Ok(())
|
496 + | })?;
|
497 + | builder.document_name = builder.document_name.or(Some(String::new()));
|
498 + | builder.runbooks = builder.runbooks.or(Some(Vec::new()));
|
499 + | builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
|
500 + | }
|
501 + | }
|
502 + | impl StartChangeRequestExecutionInput {
|
503 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
504 + | pub fn deserialize_with_response(
|
505 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
506 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
507 + | _status: u16,
|
508 + | _body: &[u8],
|
509 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
510 + | Self::deserialize(deserializer)
|
511 + | }
|
512 + | }
|
513 + | impl StartChangeRequestExecutionInput {
|
514 + | /// Creates a new builder-style object to manufacture [`StartChangeRequestExecutionInput`](crate::operation::start_change_request_execution::StartChangeRequestExecutionInput).
|
515 + | pub fn builder() -> crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionInputBuilder {
|
516 + | crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionInputBuilder::default()
|
517 + | }
|
518 + | }
|
519 + |
|
520 + | /// A builder for [`StartChangeRequestExecutionInput`](crate::operation::start_change_request_execution::StartChangeRequestExecutionInput).
|
521 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
522 + | #[non_exhaustive]
|
523 + | pub struct StartChangeRequestExecutionInputBuilder {
|
524 + | pub(crate) scheduled_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
525 + | pub(crate) document_name: ::std::option::Option<::std::string::String>,
|
526 + | pub(crate) document_version: ::std::option::Option<::std::string::String>,
|
527 + | pub(crate) parameters: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>>,
|
528 + | pub(crate) change_request_name: ::std::option::Option<::std::string::String>,
|
529 + | pub(crate) client_token: ::std::option::Option<::std::string::String>,
|
530 + | pub(crate) auto_approve: ::std::option::Option<bool>,
|
531 + | pub(crate) runbooks: ::std::option::Option<::std::vec::Vec<crate::types::Runbook>>,
|
532 + | pub(crate) tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
|
533 + | pub(crate) scheduled_end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
534 + | pub(crate) change_details: ::std::option::Option<::std::string::String>,
|
535 + | }
|
536 + | impl StartChangeRequestExecutionInputBuilder {
|
537 + | /// <p>The date and time specified in the change request to run the Automation runbooks.</p><note>
|
538 + | /// <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p>
|
539 + | /// </note>
|
540 + | pub fn scheduled_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
541 + | self.scheduled_time = ::std::option::Option::Some(input);
|
542 + | self
|
543 + | }
|
544 + | /// <p>The date and time specified in the change request to run the Automation runbooks.</p><note>
|
545 + | /// <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p>
|
546 + | /// </note>
|
547 + | pub fn set_scheduled_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
548 + | self.scheduled_time = input;
|
549 + | self
|
550 + | }
|
551 + | /// <p>The date and time specified in the change request to run the Automation runbooks.</p><note>
|
552 + | /// <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p>
|
553 + | /// </note>
|
554 + | pub fn get_scheduled_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
555 + | &self.scheduled_time
|
556 + | }
|
557 + | /// <p>The name of the change template document to run during the runbook workflow.</p>
|
558 + | /// This field is required.
|
559 + | pub fn document_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
560 + | self.document_name = ::std::option::Option::Some(input.into());
|
561 + | self
|
562 + | }
|
563 + | /// <p>The name of the change template document to run during the runbook workflow.</p>
|
564 + | pub fn set_document_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
565 + | self.document_name = input;
|
566 + | self
|
567 + | }
|
568 + | /// <p>The name of the change template document to run during the runbook workflow.</p>
|
569 + | pub fn get_document_name(&self) -> &::std::option::Option<::std::string::String> {
|
570 + | &self.document_name
|
571 + | }
|
572 + | /// <p>The version of the change template document to run during the runbook workflow.</p>
|
573 + | pub fn document_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
574 + | self.document_version = ::std::option::Option::Some(input.into());
|
575 + | self
|
576 + | }
|
577 + | /// <p>The version of the change template document to run during the runbook workflow.</p>
|
578 + | pub fn set_document_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
579 + | self.document_version = input;
|
580 + | self
|
581 + | }
|
582 + | /// <p>The version of the change template document to run during the runbook workflow.</p>
|
583 + | pub fn get_document_version(&self) -> &::std::option::Option<::std::string::String> {
|
584 + | &self.document_version
|
585 + | }
|
586 + | /// Adds a key-value pair to `parameters`.
|
587 + | ///
|
588 + | /// To override the contents of this collection use [`set_parameters`](Self::set_parameters).
|
589 + | ///
|
590 + | /// <p>A key-value map of parameters that match the declared parameters in the change template document.</p>
|
591 + | pub fn parameters(mut self, k: impl ::std::convert::Into<::std::string::String>, v: ::std::vec::Vec<::std::string::String>) -> Self {
|
592 + | let mut hash_map = self.parameters.unwrap_or_default();
|
593 + | hash_map.insert(k.into(), v);
|
594 + | self.parameters = ::std::option::Option::Some(hash_map);
|
595 + | self
|
596 + | }
|
597 + | /// <p>A key-value map of parameters that match the declared parameters in the change template document.</p>
|
598 + | pub fn set_parameters(
|
599 + | mut self,
|
600 + | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>>,
|
601 + | ) -> Self {
|
602 + | self.parameters = input;
|
603 + | self
|
604 + | }
|
605 + | /// <p>A key-value map of parameters that match the declared parameters in the change template document.</p>
|
606 + | pub fn get_parameters(
|
607 + | &self,
|
608 + | ) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>> {
|
609 + | &self.parameters
|
610 + | }
|
611 + | /// <p>The name of the change request associated with the runbook workflow to be run.</p>
|
612 + | pub fn change_request_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
613 + | self.change_request_name = ::std::option::Option::Some(input.into());
|
614 + | self
|
615 + | }
|
616 + | /// <p>The name of the change request associated with the runbook workflow to be run.</p>
|
617 + | pub fn set_change_request_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
618 + | self.change_request_name = input;
|
619 + | self
|
620 + | }
|
621 + | /// <p>The name of the change request associated with the runbook workflow to be run.</p>
|
622 + | pub fn get_change_request_name(&self) -> &::std::option::Option<::std::string::String> {
|
623 + | &self.change_request_name
|
624 + | }
|
625 + | /// <p>The user-provided idempotency token. The token must be unique, is case insensitive, enforces the UUID format, and can't be reused.</p>
|
626 + | pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
627 + | self.client_token = ::std::option::Option::Some(input.into());
|
628 + | self
|
629 + | }
|
630 + | /// <p>The user-provided idempotency token. The token must be unique, is case insensitive, enforces the UUID format, and can't be reused.</p>
|
631 + | pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
632 + | self.client_token = input;
|
633 + | self
|
634 + | }
|
635 + | /// <p>The user-provided idempotency token. The token must be unique, is case insensitive, enforces the UUID format, and can't be reused.</p>
|
636 + | pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
|
637 + | &self.client_token
|
638 + | }
|
639 + | /// <p>Indicates whether the change request can be approved automatically without the need for manual approvals.</p>
|
640 + | /// <p>If <code>AutoApprovable</code> is enabled in a change template, then setting <code>AutoApprove</code> to <code>true</code> in <code>StartChangeRequestExecution</code> creates a change request that bypasses approver review.</p><note>
|
641 + | /// <p>Change Calendar restrictions are not bypassed in this scenario. If the state of an associated calendar is <code>CLOSED</code>, change freeze approvers must still grant permission for this change request to run. If they don't, the change won't be processed until the calendar state is again <code>OPEN</code>.</p>
|
642 + | /// </note>
|
643 + | pub fn auto_approve(mut self, input: bool) -> Self {
|
644 + | self.auto_approve = ::std::option::Option::Some(input);
|
645 + | self
|
646 + | }
|
647 + | /// <p>Indicates whether the change request can be approved automatically without the need for manual approvals.</p>
|
648 + | /// <p>If <code>AutoApprovable</code> is enabled in a change template, then setting <code>AutoApprove</code> to <code>true</code> in <code>StartChangeRequestExecution</code> creates a change request that bypasses approver review.</p><note>
|
649 + | /// <p>Change Calendar restrictions are not bypassed in this scenario. If the state of an associated calendar is <code>CLOSED</code>, change freeze approvers must still grant permission for this change request to run. If they don't, the change won't be processed until the calendar state is again <code>OPEN</code>.</p>
|
650 + | /// </note>
|
651 + | pub fn set_auto_approve(mut self, input: ::std::option::Option<bool>) -> Self {
|
652 + | self.auto_approve = input;
|
653 + | self
|
654 + | }
|
655 + | /// <p>Indicates whether the change request can be approved automatically without the need for manual approvals.</p>
|
656 + | /// <p>If <code>AutoApprovable</code> is enabled in a change template, then setting <code>AutoApprove</code> to <code>true</code> in <code>StartChangeRequestExecution</code> creates a change request that bypasses approver review.</p><note>
|
657 + | /// <p>Change Calendar restrictions are not bypassed in this scenario. If the state of an associated calendar is <code>CLOSED</code>, change freeze approvers must still grant permission for this change request to run. If they don't, the change won't be processed until the calendar state is again <code>OPEN</code>.</p>
|
658 + | /// </note>
|
659 + | pub fn get_auto_approve(&self) -> &::std::option::Option<bool> {
|
660 + | &self.auto_approve
|
661 + | }
|
662 + | /// Appends an item to `runbooks`.
|
663 + | ///
|
664 + | /// To override the contents of this collection use [`set_runbooks`](Self::set_runbooks).
|
665 + | ///
|
666 + | /// <p>Information about the Automation runbooks that are run during the runbook workflow.</p><note>
|
667 + | /// <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p>
|
668 + | /// </note>
|
669 + | pub fn runbooks(mut self, input: crate::types::Runbook) -> Self {
|
670 + | let mut v = self.runbooks.unwrap_or_default();
|
671 + | v.push(input);
|
672 + | self.runbooks = ::std::option::Option::Some(v);
|
673 + | self
|
674 + | }
|
675 + | /// <p>Information about the Automation runbooks that are run during the runbook workflow.</p><note>
|
676 + | /// <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p>
|
677 + | /// </note>
|
678 + | pub fn set_runbooks(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Runbook>>) -> Self {
|
679 + | self.runbooks = input;
|
680 + | self
|
681 + | }
|
682 + | /// <p>Information about the Automation runbooks that are run during the runbook workflow.</p><note>
|
683 + | /// <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p>
|
684 + | /// </note>
|
685 + | pub fn get_runbooks(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Runbook>> {
|
686 + | &self.runbooks
|
687 + | }
|
688 + | /// Appends an item to `tags`.
|
689 + | ///
|
690 + | /// To override the contents of this collection use [`set_tags`](Self::set_tags).
|
691 + | ///
|
692 + | /// <p>Optional metadata that you assign to a resource. You can specify a maximum of five tags for a change request. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a change request to identify an environment or target Amazon Web Services Region. In this case, you could specify the following key-value pairs:</p>
|
693 + | /// <ul>
|
694 + | /// <li>
|
695 + | /// <p><code>Key=Environment,Value=Production</code></p></li>
|
696 + | /// <li>
|
697 + | /// <p><code>Key=Region,Value=us-east-2</code></p></li>
|
698 + | /// </ul><note>
|
699 + | /// <p>The <code>Array Members</code> maximum value is reported as 1000. This number includes capacity reserved for internal operations. When calling the <code>StartChangeRequestExecution</code> action, you can specify a maximum of 5 tags. You can, however, use the <code>AddTagsToResource</code> action to add up to a total of 50 tags to an existing change request configuration.</p>
|
700 + | /// </note>
|
701 + | pub fn tags(mut self, input: crate::types::Tag) -> Self {
|
702 + | let mut v = self.tags.unwrap_or_default();
|
703 + | v.push(input);
|
704 + | self.tags = ::std::option::Option::Some(v);
|
705 + | self
|
706 + | }
|
707 + | /// <p>Optional metadata that you assign to a resource. You can specify a maximum of five tags for a change request. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a change request to identify an environment or target Amazon Web Services Region. In this case, you could specify the following key-value pairs:</p>
|
708 + | /// <ul>
|
709 + | /// <li>
|
710 + | /// <p><code>Key=Environment,Value=Production</code></p></li>
|
711 + | /// <li>
|
712 + | /// <p><code>Key=Region,Value=us-east-2</code></p></li>
|
713 + | /// </ul><note>
|
714 + | /// <p>The <code>Array Members</code> maximum value is reported as 1000. This number includes capacity reserved for internal operations. When calling the <code>StartChangeRequestExecution</code> action, you can specify a maximum of 5 tags. You can, however, use the <code>AddTagsToResource</code> action to add up to a total of 50 tags to an existing change request configuration.</p>
|
715 + | /// </note>
|
716 + | pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
|
717 + | self.tags = input;
|
718 + | self
|
719 + | }
|
720 + | /// <p>Optional metadata that you assign to a resource. You can specify a maximum of five tags for a change request. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a change request to identify an environment or target Amazon Web Services Region. In this case, you could specify the following key-value pairs:</p>
|
721 + | /// <ul>
|
722 + | /// <li>
|
723 + | /// <p><code>Key=Environment,Value=Production</code></p></li>
|
724 + | /// <li>
|
725 + | /// <p><code>Key=Region,Value=us-east-2</code></p></li>
|
726 + | /// </ul><note>
|
727 + | /// <p>The <code>Array Members</code> maximum value is reported as 1000. This number includes capacity reserved for internal operations. When calling the <code>StartChangeRequestExecution</code> action, you can specify a maximum of 5 tags. You can, however, use the <code>AddTagsToResource</code> action to add up to a total of 50 tags to an existing change request configuration.</p>
|
728 + | /// </note>
|
729 + | pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
|
730 + | &self.tags
|
731 + | }
|
732 + | /// <p>The time that the requester expects the runbook workflow related to the change request to complete. The time is an estimate only that the requester provides for reviewers.</p>
|
733 + | pub fn scheduled_end_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
734 + | self.scheduled_end_time = ::std::option::Option::Some(input);
|
735 + | self
|
736 + | }
|
737 + | /// <p>The time that the requester expects the runbook workflow related to the change request to complete. The time is an estimate only that the requester provides for reviewers.</p>
|
738 + | pub fn set_scheduled_end_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
739 + | self.scheduled_end_time = input;
|
740 + | self
|
741 + | }
|
742 + | /// <p>The time that the requester expects the runbook workflow related to the change request to complete. The time is an estimate only that the requester provides for reviewers.</p>
|
743 + | pub fn get_scheduled_end_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
744 + | &self.scheduled_end_time
|
745 + | }
|
746 + | /// <p>User-provided details about the change. If no details are provided, content specified in the <b>Template information</b> section of the associated change template is added.</p>
|
747 + | pub fn change_details(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
748 + | self.change_details = ::std::option::Option::Some(input.into());
|
749 + | self
|
750 + | }
|
751 + | /// <p>User-provided details about the change. If no details are provided, content specified in the <b>Template information</b> section of the associated change template is added.</p>
|
752 + | pub fn set_change_details(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
753 + | self.change_details = input;
|
754 + | self
|
755 + | }
|
756 + | /// <p>User-provided details about the change. If no details are provided, content specified in the <b>Template information</b> section of the associated change template is added.</p>
|
757 + | pub fn get_change_details(&self) -> &::std::option::Option<::std::string::String> {
|
758 + | &self.change_details
|
759 + | }
|
760 + | /// Consumes the builder and constructs a [`StartChangeRequestExecutionInput`](crate::operation::start_change_request_execution::StartChangeRequestExecutionInput).
|
761 + | pub fn build(
|
762 + | self,
|
763 + | ) -> ::std::result::Result<
|
764 + | crate::operation::start_change_request_execution::StartChangeRequestExecutionInput,
|
765 + | ::aws_smithy_types::error::operation::BuildError,
|
766 + | > {
|
767 + | ::std::result::Result::Ok(crate::operation::start_change_request_execution::StartChangeRequestExecutionInput {
|
768 + | scheduled_time: self.scheduled_time,
|
769 + | document_name: self.document_name,
|
770 + | document_version: self.document_version,
|
771 + | parameters: self.parameters,
|
772 + | change_request_name: self.change_request_name,
|
773 + | client_token: self.client_token,
|
774 + | auto_approve: self.auto_approve,
|
775 + | runbooks: self.runbooks,
|
776 + | tags: self.tags,
|
777 + | scheduled_end_time: self.scheduled_end_time,
|
778 + | change_details: self.change_details,
|
779 + | })
|
780 + | }
|
781 + | }
|