1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct StartSyncExecutionOutput {
/// <p>The Amazon Resource Name (ARN) that identifies the execution.</p>
pub execution_arn: ::std::string::String,
/// <p>The Amazon Resource Name (ARN) that identifies the state machine.</p>
pub state_machine_arn: ::std::option::Option<::std::string::String>,
/// <p>The name of the execution.</p>
pub name: ::std::option::Option<::std::string::String>,
/// <p>The date the execution is started.</p>
pub start_date: ::aws_smithy_types::DateTime,
/// <p>If the execution has already ended, the date the execution stopped.</p>
pub stop_date: ::aws_smithy_types::DateTime,
/// <p>The current status of the execution.</p>
pub status: crate::types::SyncExecutionStatus,
/// <p>The error code of the failure.</p>
pub error: ::std::option::Option<::std::string::String>,
/// <p>A more detailed explanation of the cause of the failure.</p>
pub cause: ::std::option::Option<::std::string::String>,
/// <p>The string that contains the JSON input data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.</p>
pub input: ::std::option::Option<::std::string::String>,
/// <p>Provides details about execution input or output.</p>
pub input_details: ::std::option::Option<crate::types::CloudWatchEventsExecutionDataDetails>,
/// <p>The JSON output data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.</p><note>
/// <p>This field is set only if the execution succeeds. If the execution fails, this field is null.</p>
/// </note>
pub output: ::std::option::Option<::std::string::String>,
/// <p>Provides details about execution input or output.</p>
pub output_details: ::std::option::Option<crate::types::CloudWatchEventsExecutionDataDetails>,
/// <p>The X-Ray trace header that was passed to the execution.</p><note>
/// <p>For X-Ray traces, all Amazon Web Services services use the <code>X-Amzn-Trace-Id</code> header from the HTTP request. Using the header is the preferred mechanism to identify a trace. <code>StartExecution</code> and <code>StartSyncExecution</code> API operations can also use <code>traceHeader</code> from the body of the request payload. If <b>both</b> sources are provided, Step Functions will use the <b>header value</b> (preferred) over the value in the request body.</p>
/// </note>
pub trace_header: ::std::option::Option<::std::string::String>,
/// <p>An object that describes workflow billing details, including billed duration and memory use.</p>
pub billing_details: ::std::option::Option<crate::types::BillingDetails>,
_request_id: Option<String>,
}
impl StartSyncExecutionOutput {
/// <p>The Amazon Resource Name (ARN) that identifies the execution.</p>
pub fn execution_arn(&self) -> &str {
use std::ops::Deref;
self.execution_arn.deref()
}
/// <p>The Amazon Resource Name (ARN) that identifies the state machine.</p>
pub fn state_machine_arn(&self) -> ::std::option::Option<&str> {
self.state_machine_arn.as_deref()
}
/// <p>The name of the execution.</p>
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
/// <p>The date the execution is started.</p>
pub fn start_date(&self) -> &::aws_smithy_types::DateTime {
&self.start_date
}
/// <p>If the execution has already ended, the date the execution stopped.</p>
pub fn stop_date(&self) -> &::aws_smithy_types::DateTime {
&self.stop_date
}
/// <p>The current status of the execution.</p>
pub fn status(&self) -> &crate::types::SyncExecutionStatus {
&self.status
}
/// <p>The error code of the failure.</p>
pub fn error(&self) -> ::std::option::Option<&str> {
self.error.as_deref()
}
/// <p>A more detailed explanation of the cause of the failure.</p>
pub fn cause(&self) -> ::std::option::Option<&str> {
self.cause.as_deref()
}
/// <p>The string that contains the JSON input data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.</p>
pub fn input(&self) -> ::std::option::Option<&str> {
self.input.as_deref()
}
/// <p>Provides details about execution input or output.</p>
pub fn input_details(&self) -> ::std::option::Option<&crate::types::CloudWatchEventsExecutionDataDetails> {
self.input_details.as_ref()
}
/// <p>The JSON output data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.</p><note>
/// <p>This field is set only if the execution succeeds. If the execution fails, this field is null.</p>
/// </note>
pub fn output(&self) -> ::std::option::Option<&str> {
self.output.as_deref()
}
/// <p>Provides details about execution input or output.</p>
pub fn output_details(&self) -> ::std::option::Option<&crate::types::CloudWatchEventsExecutionDataDetails> {
self.output_details.as_ref()
}
/// <p>The X-Ray trace header that was passed to the execution.</p><note>
/// <p>For X-Ray traces, all Amazon Web Services services use the <code>X-Amzn-Trace-Id</code> header from the HTTP request. Using the header is the preferred mechanism to identify a trace. <code>StartExecution</code> and <code>StartSyncExecution</code> API operations can also use <code>traceHeader</code> from the body of the request payload. If <b>both</b> sources are provided, Step Functions will use the <b>header value</b> (preferred) over the value in the request body.</p>
/// </note>
pub fn trace_header(&self) -> ::std::option::Option<&str> {
self.trace_header.as_deref()
}
/// <p>An object that describes workflow billing details, including billed duration and memory use.</p>
pub fn billing_details(&self) -> ::std::option::Option<&crate::types::BillingDetails> {
self.billing_details.as_ref()
}
}
impl ::std::fmt::Debug for StartSyncExecutionOutput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("StartSyncExecutionOutput");
formatter.field("execution_arn", &self.execution_arn);
formatter.field("state_machine_arn", &self.state_machine_arn);
formatter.field("name", &self.name);
formatter.field("start_date", &self.start_date);
formatter.field("stop_date", &self.stop_date);
formatter.field("status", &self.status);
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.field("input", &"*** Sensitive Data Redacted ***");
formatter.field("input_details", &self.input_details);
formatter.field("output", &"*** Sensitive Data Redacted ***");
formatter.field("output_details", &self.output_details);
formatter.field("trace_header", &self.trace_header);
formatter.field("billing_details", &self.billing_details);
formatter.field("_request_id", &self._request_id);
formatter.finish()
}
}
impl ::aws_types::request_id::RequestId for StartSyncExecutionOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl StartSyncExecutionOutput {
/// Creates a new builder-style object to manufacture [`StartSyncExecutionOutput`](crate::operation::start_sync_execution::StartSyncExecutionOutput).
pub fn builder() -> crate::operation::start_sync_execution::builders::StartSyncExecutionOutputBuilder {
crate::operation::start_sync_execution::builders::StartSyncExecutionOutputBuilder::default()
}
}
/// A builder for [`StartSyncExecutionOutput`](crate::operation::start_sync_execution::StartSyncExecutionOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct StartSyncExecutionOutputBuilder {
pub(crate) execution_arn: ::std::option::Option<::std::string::String>,
pub(crate) state_machine_arn: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) start_date: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) stop_date: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) status: ::std::option::Option<crate::types::SyncExecutionStatus>,
pub(crate) error: ::std::option::Option<::std::string::String>,
pub(crate) cause: ::std::option::Option<::std::string::String>,
pub(crate) input: ::std::option::Option<::std::string::String>,
pub(crate) input_details: ::std::option::Option<crate::types::CloudWatchEventsExecutionDataDetails>,
pub(crate) output: ::std::option::Option<::std::string::String>,
pub(crate) output_details: ::std::option::Option<crate::types::CloudWatchEventsExecutionDataDetails>,
pub(crate) trace_header: ::std::option::Option<::std::string::String>,
pub(crate) billing_details: ::std::option::Option<crate::types::BillingDetails>,
_request_id: Option<String>,
}
impl StartSyncExecutionOutputBuilder {
/// <p>The Amazon Resource Name (ARN) that identifies the execution.</p>
/// This field is required.
pub fn execution_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.execution_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) that identifies the execution.</p>
pub fn set_execution_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.execution_arn = input;
self
}
/// <p>The Amazon Resource Name (ARN) that identifies the execution.</p>
pub fn get_execution_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.execution_arn
}
/// <p>The Amazon Resource Name (ARN) that identifies the state machine.</p>
pub fn state_machine_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.state_machine_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) that identifies the state machine.</p>
pub fn set_state_machine_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.state_machine_arn = input;
self
}
/// <p>The Amazon Resource Name (ARN) that identifies the state machine.</p>
pub fn get_state_machine_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.state_machine_arn
}
/// <p>The name of the execution.</p>
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the execution.</p>
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The name of the execution.</p>
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
/// <p>The date the execution is started.</p>
/// This field is required.
pub fn start_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.start_date = ::std::option::Option::Some(input);
self
}
/// <p>The date the execution is started.</p>
pub fn set_start_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.start_date = input;
self
}
/// <p>The date the execution is started.</p>
pub fn get_start_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.start_date
}
/// <p>If the execution has already ended, the date the execution stopped.</p>
/// This field is required.
pub fn stop_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.stop_date = ::std::option::Option::Some(input);
self
}
/// <p>If the execution has already ended, the date the execution stopped.</p>
pub fn set_stop_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.stop_date = input;
self
}
/// <p>If the execution has already ended, the date the execution stopped.</p>
pub fn get_stop_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.stop_date
}
/// <p>The current status of the execution.</p>
/// This field is required.
pub fn status(mut self, input: crate::types::SyncExecutionStatus) -> Self {
self.status = ::std::option::Option::Some(input);
self
}
/// <p>The current status of the execution.</p>
pub fn set_status(mut self, input: ::std::option::Option<crate::types::SyncExecutionStatus>) -> Self {
self.status = input;
self
}
/// <p>The current status of the execution.</p>
pub fn get_status(&self) -> &::std::option::Option<crate::types::SyncExecutionStatus> {
&self.status
}
/// <p>The error code of the failure.</p>
pub fn error(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.error = ::std::option::Option::Some(input.into());
self
}
/// <p>The error code of the failure.</p>
pub fn set_error(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.error = input;
self
}
/// <p>The error code of the failure.</p>
pub fn get_error(&self) -> &::std::option::Option<::std::string::String> {
&self.error
}
/// <p>A more detailed explanation of the cause of the failure.</p>
pub fn cause(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cause = ::std::option::Option::Some(input.into());
self
}
/// <p>A more detailed explanation of the cause of the failure.</p>
pub fn set_cause(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cause = input;
self
}
/// <p>A more detailed explanation of the cause of the failure.</p>
pub fn get_cause(&self) -> &::std::option::Option<::std::string::String> {
&self.cause
}
/// <p>The string that contains the JSON input data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.</p>
pub fn input(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.input = ::std::option::Option::Some(input.into());
self
}
/// <p>The string that contains the JSON input data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.</p>
pub fn set_input(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.input = input;
self
}
/// <p>The string that contains the JSON input data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.</p>
pub fn get_input(&self) -> &::std::option::Option<::std::string::String> {
&self.input
}
/// <p>Provides details about execution input or output.</p>
pub fn input_details(mut self, input: crate::types::CloudWatchEventsExecutionDataDetails) -> Self {
self.input_details = ::std::option::Option::Some(input);
self
}
/// <p>Provides details about execution input or output.</p>
pub fn set_input_details(mut self, input: ::std::option::Option<crate::types::CloudWatchEventsExecutionDataDetails>) -> Self {
self.input_details = input;
self
}
/// <p>Provides details about execution input or output.</p>
pub fn get_input_details(&self) -> &::std::option::Option<crate::types::CloudWatchEventsExecutionDataDetails> {
&self.input_details
}
/// <p>The JSON output data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.</p><note>
/// <p>This field is set only if the execution succeeds. If the execution fails, this field is null.</p>
/// </note>
pub fn output(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.output = ::std::option::Option::Some(input.into());
self
}
/// <p>The JSON output data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.</p><note>
/// <p>This field is set only if the execution succeeds. If the execution fails, this field is null.</p>
/// </note>
pub fn set_output(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.output = input;
self
}
/// <p>The JSON output data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.</p><note>
/// <p>This field is set only if the execution succeeds. If the execution fails, this field is null.</p>
/// </note>
pub fn get_output(&self) -> &::std::option::Option<::std::string::String> {
&self.output
}
/// <p>Provides details about execution input or output.</p>
pub fn output_details(mut self, input: crate::types::CloudWatchEventsExecutionDataDetails) -> Self {
self.output_details = ::std::option::Option::Some(input);
self
}
/// <p>Provides details about execution input or output.</p>
pub fn set_output_details(mut self, input: ::std::option::Option<crate::types::CloudWatchEventsExecutionDataDetails>) -> Self {
self.output_details = input;
self
}
/// <p>Provides details about execution input or output.</p>
pub fn get_output_details(&self) -> &::std::option::Option<crate::types::CloudWatchEventsExecutionDataDetails> {
&self.output_details
}
/// <p>The X-Ray trace header that was passed to the execution.</p><note>
/// <p>For X-Ray traces, all Amazon Web Services services use the <code>X-Amzn-Trace-Id</code> header from the HTTP request. Using the header is the preferred mechanism to identify a trace. <code>StartExecution</code> and <code>StartSyncExecution</code> API operations can also use <code>traceHeader</code> from the body of the request payload. If <b>both</b> sources are provided, Step Functions will use the <b>header value</b> (preferred) over the value in the request body.</p>
/// </note>
pub fn trace_header(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.trace_header = ::std::option::Option::Some(input.into());
self
}
/// <p>The X-Ray trace header that was passed to the execution.</p><note>
/// <p>For X-Ray traces, all Amazon Web Services services use the <code>X-Amzn-Trace-Id</code> header from the HTTP request. Using the header is the preferred mechanism to identify a trace. <code>StartExecution</code> and <code>StartSyncExecution</code> API operations can also use <code>traceHeader</code> from the body of the request payload. If <b>both</b> sources are provided, Step Functions will use the <b>header value</b> (preferred) over the value in the request body.</p>
/// </note>
pub fn set_trace_header(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.trace_header = input;
self
}
/// <p>The X-Ray trace header that was passed to the execution.</p><note>
/// <p>For X-Ray traces, all Amazon Web Services services use the <code>X-Amzn-Trace-Id</code> header from the HTTP request. Using the header is the preferred mechanism to identify a trace. <code>StartExecution</code> and <code>StartSyncExecution</code> API operations can also use <code>traceHeader</code> from the body of the request payload. If <b>both</b> sources are provided, Step Functions will use the <b>header value</b> (preferred) over the value in the request body.</p>
/// </note>
pub fn get_trace_header(&self) -> &::std::option::Option<::std::string::String> {
&self.trace_header
}
/// <p>An object that describes workflow billing details, including billed duration and memory use.</p>
pub fn billing_details(mut self, input: crate::types::BillingDetails) -> Self {
self.billing_details = ::std::option::Option::Some(input);
self
}
/// <p>An object that describes workflow billing details, including billed duration and memory use.</p>
pub fn set_billing_details(mut self, input: ::std::option::Option<crate::types::BillingDetails>) -> Self {
self.billing_details = input;
self
}
/// <p>An object that describes workflow billing details, including billed duration and memory use.</p>
pub fn get_billing_details(&self) -> &::std::option::Option<crate::types::BillingDetails> {
&self.billing_details
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
/// Consumes the builder and constructs a [`StartSyncExecutionOutput`](crate::operation::start_sync_execution::StartSyncExecutionOutput).
/// This method will fail if any of the following fields are not set:
/// - [`execution_arn`](crate::operation::start_sync_execution::builders::StartSyncExecutionOutputBuilder::execution_arn)
/// - [`start_date`](crate::operation::start_sync_execution::builders::StartSyncExecutionOutputBuilder::start_date)
/// - [`stop_date`](crate::operation::start_sync_execution::builders::StartSyncExecutionOutputBuilder::stop_date)
/// - [`status`](crate::operation::start_sync_execution::builders::StartSyncExecutionOutputBuilder::status)
pub fn build(
self,
) -> ::std::result::Result<crate::operation::start_sync_execution::StartSyncExecutionOutput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::start_sync_execution::StartSyncExecutionOutput {
execution_arn: self.execution_arn.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"execution_arn",
"execution_arn was not specified but it is required when building StartSyncExecutionOutput",
)
})?,
state_machine_arn: self.state_machine_arn,
name: self.name,
start_date: self.start_date.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"start_date",
"start_date was not specified but it is required when building StartSyncExecutionOutput",
)
})?,
stop_date: self.stop_date.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"stop_date",
"stop_date was not specified but it is required when building StartSyncExecutionOutput",
)
})?,
status: self.status.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"status",
"status was not specified but it is required when building StartSyncExecutionOutput",
)
})?,
error: self.error,
cause: self.cause,
input: self.input,
input_details: self.input_details,
output: self.output,
output_details: self.output_details,
trace_header: self.trace_header,
billing_details: self.billing_details,
_request_id: self._request_id,
})
}
}
impl ::std::fmt::Debug for StartSyncExecutionOutputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("StartSyncExecutionOutputBuilder");
formatter.field("execution_arn", &self.execution_arn);
formatter.field("state_machine_arn", &self.state_machine_arn);
formatter.field("name", &self.name);
formatter.field("start_date", &self.start_date);
formatter.field("stop_date", &self.stop_date);
formatter.field("status", &self.status);
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.field("input", &"*** Sensitive Data Redacted ***");
formatter.field("input_details", &self.input_details);
formatter.field("output", &"*** Sensitive Data Redacted ***");
formatter.field("output_details", &self.output_details);
formatter.field("trace_header", &self.trace_header);
formatter.field("billing_details", &self.billing_details);
formatter.field("_request_id", &self._request_id);
formatter.finish()
}
}