@aws-sdk/client-sfn 3.312.0 → 3.316.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,147 +9,147 @@ const SFNServiceException_1 = require("../models/SFNServiceException");
9
9
  const se_CreateActivityCommand = async (input, context) => {
10
10
  const headers = sharedHeaders("CreateActivity");
11
11
  let body;
12
- body = JSON.stringify(se_CreateActivityInput(input, context));
12
+ body = JSON.stringify((0, smithy_client_1._json)(input));
13
13
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
14
14
  };
15
15
  exports.se_CreateActivityCommand = se_CreateActivityCommand;
16
16
  const se_CreateStateMachineCommand = async (input, context) => {
17
17
  const headers = sharedHeaders("CreateStateMachine");
18
18
  let body;
19
- body = JSON.stringify(se_CreateStateMachineInput(input, context));
19
+ body = JSON.stringify((0, smithy_client_1._json)(input));
20
20
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
21
21
  };
22
22
  exports.se_CreateStateMachineCommand = se_CreateStateMachineCommand;
23
23
  const se_DeleteActivityCommand = async (input, context) => {
24
24
  const headers = sharedHeaders("DeleteActivity");
25
25
  let body;
26
- body = JSON.stringify(se_DeleteActivityInput(input, context));
26
+ body = JSON.stringify((0, smithy_client_1._json)(input));
27
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
28
  };
29
29
  exports.se_DeleteActivityCommand = se_DeleteActivityCommand;
30
30
  const se_DeleteStateMachineCommand = async (input, context) => {
31
31
  const headers = sharedHeaders("DeleteStateMachine");
32
32
  let body;
33
- body = JSON.stringify(se_DeleteStateMachineInput(input, context));
33
+ body = JSON.stringify((0, smithy_client_1._json)(input));
34
34
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
35
  };
36
36
  exports.se_DeleteStateMachineCommand = se_DeleteStateMachineCommand;
37
37
  const se_DescribeActivityCommand = async (input, context) => {
38
38
  const headers = sharedHeaders("DescribeActivity");
39
39
  let body;
40
- body = JSON.stringify(se_DescribeActivityInput(input, context));
40
+ body = JSON.stringify((0, smithy_client_1._json)(input));
41
41
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
42
42
  };
43
43
  exports.se_DescribeActivityCommand = se_DescribeActivityCommand;
44
44
  const se_DescribeExecutionCommand = async (input, context) => {
45
45
  const headers = sharedHeaders("DescribeExecution");
46
46
  let body;
47
- body = JSON.stringify(se_DescribeExecutionInput(input, context));
47
+ body = JSON.stringify((0, smithy_client_1._json)(input));
48
48
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
49
  };
50
50
  exports.se_DescribeExecutionCommand = se_DescribeExecutionCommand;
51
51
  const se_DescribeMapRunCommand = async (input, context) => {
52
52
  const headers = sharedHeaders("DescribeMapRun");
53
53
  let body;
54
- body = JSON.stringify(se_DescribeMapRunInput(input, context));
54
+ body = JSON.stringify((0, smithy_client_1._json)(input));
55
55
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
56
56
  };
57
57
  exports.se_DescribeMapRunCommand = se_DescribeMapRunCommand;
58
58
  const se_DescribeStateMachineCommand = async (input, context) => {
59
59
  const headers = sharedHeaders("DescribeStateMachine");
60
60
  let body;
61
- body = JSON.stringify(se_DescribeStateMachineInput(input, context));
61
+ body = JSON.stringify((0, smithy_client_1._json)(input));
62
62
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
63
63
  };
64
64
  exports.se_DescribeStateMachineCommand = se_DescribeStateMachineCommand;
65
65
  const se_DescribeStateMachineForExecutionCommand = async (input, context) => {
66
66
  const headers = sharedHeaders("DescribeStateMachineForExecution");
67
67
  let body;
68
- body = JSON.stringify(se_DescribeStateMachineForExecutionInput(input, context));
68
+ body = JSON.stringify((0, smithy_client_1._json)(input));
69
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
70
70
  };
71
71
  exports.se_DescribeStateMachineForExecutionCommand = se_DescribeStateMachineForExecutionCommand;
72
72
  const se_GetActivityTaskCommand = async (input, context) => {
73
73
  const headers = sharedHeaders("GetActivityTask");
74
74
  let body;
75
- body = JSON.stringify(se_GetActivityTaskInput(input, context));
75
+ body = JSON.stringify((0, smithy_client_1._json)(input));
76
76
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
77
  };
78
78
  exports.se_GetActivityTaskCommand = se_GetActivityTaskCommand;
79
79
  const se_GetExecutionHistoryCommand = async (input, context) => {
80
80
  const headers = sharedHeaders("GetExecutionHistory");
81
81
  let body;
82
- body = JSON.stringify(se_GetExecutionHistoryInput(input, context));
82
+ body = JSON.stringify((0, smithy_client_1._json)(input));
83
83
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
84
84
  };
85
85
  exports.se_GetExecutionHistoryCommand = se_GetExecutionHistoryCommand;
86
86
  const se_ListActivitiesCommand = async (input, context) => {
87
87
  const headers = sharedHeaders("ListActivities");
88
88
  let body;
89
- body = JSON.stringify(se_ListActivitiesInput(input, context));
89
+ body = JSON.stringify((0, smithy_client_1._json)(input));
90
90
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
91
91
  };
92
92
  exports.se_ListActivitiesCommand = se_ListActivitiesCommand;
93
93
  const se_ListExecutionsCommand = async (input, context) => {
94
94
  const headers = sharedHeaders("ListExecutions");
95
95
  let body;
96
- body = JSON.stringify(se_ListExecutionsInput(input, context));
96
+ body = JSON.stringify((0, smithy_client_1._json)(input));
97
97
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
98
98
  };
99
99
  exports.se_ListExecutionsCommand = se_ListExecutionsCommand;
100
100
  const se_ListMapRunsCommand = async (input, context) => {
101
101
  const headers = sharedHeaders("ListMapRuns");
102
102
  let body;
103
- body = JSON.stringify(se_ListMapRunsInput(input, context));
103
+ body = JSON.stringify((0, smithy_client_1._json)(input));
104
104
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
105
105
  };
106
106
  exports.se_ListMapRunsCommand = se_ListMapRunsCommand;
107
107
  const se_ListStateMachinesCommand = async (input, context) => {
108
108
  const headers = sharedHeaders("ListStateMachines");
109
109
  let body;
110
- body = JSON.stringify(se_ListStateMachinesInput(input, context));
110
+ body = JSON.stringify((0, smithy_client_1._json)(input));
111
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
112
  };
113
113
  exports.se_ListStateMachinesCommand = se_ListStateMachinesCommand;
114
114
  const se_ListTagsForResourceCommand = async (input, context) => {
115
115
  const headers = sharedHeaders("ListTagsForResource");
116
116
  let body;
117
- body = JSON.stringify(se_ListTagsForResourceInput(input, context));
117
+ body = JSON.stringify((0, smithy_client_1._json)(input));
118
118
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
119
119
  };
120
120
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
121
121
  const se_SendTaskFailureCommand = async (input, context) => {
122
122
  const headers = sharedHeaders("SendTaskFailure");
123
123
  let body;
124
- body = JSON.stringify(se_SendTaskFailureInput(input, context));
124
+ body = JSON.stringify((0, smithy_client_1._json)(input));
125
125
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
126
  };
127
127
  exports.se_SendTaskFailureCommand = se_SendTaskFailureCommand;
128
128
  const se_SendTaskHeartbeatCommand = async (input, context) => {
129
129
  const headers = sharedHeaders("SendTaskHeartbeat");
130
130
  let body;
131
- body = JSON.stringify(se_SendTaskHeartbeatInput(input, context));
131
+ body = JSON.stringify((0, smithy_client_1._json)(input));
132
132
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
133
133
  };
134
134
  exports.se_SendTaskHeartbeatCommand = se_SendTaskHeartbeatCommand;
135
135
  const se_SendTaskSuccessCommand = async (input, context) => {
136
136
  const headers = sharedHeaders("SendTaskSuccess");
137
137
  let body;
138
- body = JSON.stringify(se_SendTaskSuccessInput(input, context));
138
+ body = JSON.stringify((0, smithy_client_1._json)(input));
139
139
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
140
140
  };
141
141
  exports.se_SendTaskSuccessCommand = se_SendTaskSuccessCommand;
142
142
  const se_StartExecutionCommand = async (input, context) => {
143
143
  const headers = sharedHeaders("StartExecution");
144
144
  let body;
145
- body = JSON.stringify(se_StartExecutionInput(input, context));
145
+ body = JSON.stringify((0, smithy_client_1._json)(input));
146
146
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
147
147
  };
148
148
  exports.se_StartExecutionCommand = se_StartExecutionCommand;
149
149
  const se_StartSyncExecutionCommand = async (input, context) => {
150
150
  const headers = sharedHeaders("StartSyncExecution");
151
151
  let body;
152
- body = JSON.stringify(se_StartSyncExecutionInput(input, context));
152
+ body = JSON.stringify((0, smithy_client_1._json)(input));
153
153
  let { hostname: resolvedHostname } = await context.endpoint();
154
154
  if (context.disableHostPrefix !== true) {
155
155
  resolvedHostname = "sync-" + resolvedHostname;
@@ -163,21 +163,21 @@ exports.se_StartSyncExecutionCommand = se_StartSyncExecutionCommand;
163
163
  const se_StopExecutionCommand = async (input, context) => {
164
164
  const headers = sharedHeaders("StopExecution");
165
165
  let body;
166
- body = JSON.stringify(se_StopExecutionInput(input, context));
166
+ body = JSON.stringify((0, smithy_client_1._json)(input));
167
167
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
168
168
  };
169
169
  exports.se_StopExecutionCommand = se_StopExecutionCommand;
170
170
  const se_TagResourceCommand = async (input, context) => {
171
171
  const headers = sharedHeaders("TagResource");
172
172
  let body;
173
- body = JSON.stringify(se_TagResourceInput(input, context));
173
+ body = JSON.stringify((0, smithy_client_1._json)(input));
174
174
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
175
175
  };
176
176
  exports.se_TagResourceCommand = se_TagResourceCommand;
177
177
  const se_UntagResourceCommand = async (input, context) => {
178
178
  const headers = sharedHeaders("UntagResource");
179
179
  let body;
180
- body = JSON.stringify(se_UntagResourceInput(input, context));
180
+ body = JSON.stringify((0, smithy_client_1._json)(input));
181
181
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
182
182
  };
183
183
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
@@ -191,7 +191,7 @@ exports.se_UpdateMapRunCommand = se_UpdateMapRunCommand;
191
191
  const se_UpdateStateMachineCommand = async (input, context) => {
192
192
  const headers = sharedHeaders("UpdateStateMachine");
193
193
  let body;
194
- body = JSON.stringify(se_UpdateStateMachineInput(input, context));
194
+ body = JSON.stringify((0, smithy_client_1._json)(input));
195
195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
196
196
  };
197
197
  exports.se_UpdateStateMachineCommand = se_UpdateStateMachineCommand;
@@ -206,7 +206,7 @@ const de_CreateActivityCommand = async (output, context) => {
206
206
  $metadata: deserializeMetadata(output),
207
207
  ...contents,
208
208
  };
209
- return Promise.resolve(response);
209
+ return response;
210
210
  };
211
211
  exports.de_CreateActivityCommand = de_CreateActivityCommand;
212
212
  const de_CreateActivityCommandError = async (output, context) => {
@@ -227,10 +227,9 @@ const de_CreateActivityCommandError = async (output, context) => {
227
227
  throw await de_TooManyTagsRes(parsedOutput, context);
228
228
  default:
229
229
  const parsedBody = parsedOutput.body;
230
- (0, smithy_client_1.throwDefaultError)({
230
+ return throwDefaultError({
231
231
  output,
232
232
  parsedBody,
233
- exceptionCtor: SFNServiceException_1.SFNServiceException,
234
233
  errorCode,
235
234
  });
236
235
  }
@@ -246,7 +245,7 @@ const de_CreateStateMachineCommand = async (output, context) => {
246
245
  $metadata: deserializeMetadata(output),
247
246
  ...contents,
248
247
  };
249
- return Promise.resolve(response);
248
+ return response;
250
249
  };
251
250
  exports.de_CreateStateMachineCommand = de_CreateStateMachineCommand;
252
251
  const de_CreateStateMachineCommandError = async (output, context) => {
@@ -288,10 +287,9 @@ const de_CreateStateMachineCommandError = async (output, context) => {
288
287
  throw await de_TooManyTagsRes(parsedOutput, context);
289
288
  default:
290
289
  const parsedBody = parsedOutput.body;
291
- (0, smithy_client_1.throwDefaultError)({
290
+ return throwDefaultError({
292
291
  output,
293
292
  parsedBody,
294
- exceptionCtor: SFNServiceException_1.SFNServiceException,
295
293
  errorCode,
296
294
  });
297
295
  }
@@ -302,12 +300,12 @@ const de_DeleteActivityCommand = async (output, context) => {
302
300
  }
303
301
  const data = await parseBody(output.body, context);
304
302
  let contents = {};
305
- contents = de_DeleteActivityOutput(data, context);
303
+ contents = (0, smithy_client_1._json)(data);
306
304
  const response = {
307
305
  $metadata: deserializeMetadata(output),
308
306
  ...contents,
309
307
  };
310
- return Promise.resolve(response);
308
+ return response;
311
309
  };
312
310
  exports.de_DeleteActivityCommand = de_DeleteActivityCommand;
313
311
  const de_DeleteActivityCommandError = async (output, context) => {
@@ -322,10 +320,9 @@ const de_DeleteActivityCommandError = async (output, context) => {
322
320
  throw await de_InvalidArnRes(parsedOutput, context);
323
321
  default:
324
322
  const parsedBody = parsedOutput.body;
325
- (0, smithy_client_1.throwDefaultError)({
323
+ return throwDefaultError({
326
324
  output,
327
325
  parsedBody,
328
- exceptionCtor: SFNServiceException_1.SFNServiceException,
329
326
  errorCode,
330
327
  });
331
328
  }
@@ -336,12 +333,12 @@ const de_DeleteStateMachineCommand = async (output, context) => {
336
333
  }
337
334
  const data = await parseBody(output.body, context);
338
335
  let contents = {};
339
- contents = de_DeleteStateMachineOutput(data, context);
336
+ contents = (0, smithy_client_1._json)(data);
340
337
  const response = {
341
338
  $metadata: deserializeMetadata(output),
342
339
  ...contents,
343
340
  };
344
- return Promise.resolve(response);
341
+ return response;
345
342
  };
346
343
  exports.de_DeleteStateMachineCommand = de_DeleteStateMachineCommand;
347
344
  const de_DeleteStateMachineCommandError = async (output, context) => {
@@ -359,10 +356,9 @@ const de_DeleteStateMachineCommandError = async (output, context) => {
359
356
  throw await de_ValidationExceptionRes(parsedOutput, context);
360
357
  default:
361
358
  const parsedBody = parsedOutput.body;
362
- (0, smithy_client_1.throwDefaultError)({
359
+ return throwDefaultError({
363
360
  output,
364
361
  parsedBody,
365
- exceptionCtor: SFNServiceException_1.SFNServiceException,
366
362
  errorCode,
367
363
  });
368
364
  }
@@ -378,7 +374,7 @@ const de_DescribeActivityCommand = async (output, context) => {
378
374
  $metadata: deserializeMetadata(output),
379
375
  ...contents,
380
376
  };
381
- return Promise.resolve(response);
377
+ return response;
382
378
  };
383
379
  exports.de_DescribeActivityCommand = de_DescribeActivityCommand;
384
380
  const de_DescribeActivityCommandError = async (output, context) => {
@@ -396,10 +392,9 @@ const de_DescribeActivityCommandError = async (output, context) => {
396
392
  throw await de_InvalidArnRes(parsedOutput, context);
397
393
  default:
398
394
  const parsedBody = parsedOutput.body;
399
- (0, smithy_client_1.throwDefaultError)({
395
+ return throwDefaultError({
400
396
  output,
401
397
  parsedBody,
402
- exceptionCtor: SFNServiceException_1.SFNServiceException,
403
398
  errorCode,
404
399
  });
405
400
  }
@@ -415,7 +410,7 @@ const de_DescribeExecutionCommand = async (output, context) => {
415
410
  $metadata: deserializeMetadata(output),
416
411
  ...contents,
417
412
  };
418
- return Promise.resolve(response);
413
+ return response;
419
414
  };
420
415
  exports.de_DescribeExecutionCommand = de_DescribeExecutionCommand;
421
416
  const de_DescribeExecutionCommandError = async (output, context) => {
@@ -433,10 +428,9 @@ const de_DescribeExecutionCommandError = async (output, context) => {
433
428
  throw await de_InvalidArnRes(parsedOutput, context);
434
429
  default:
435
430
  const parsedBody = parsedOutput.body;
436
- (0, smithy_client_1.throwDefaultError)({
431
+ return throwDefaultError({
437
432
  output,
438
433
  parsedBody,
439
- exceptionCtor: SFNServiceException_1.SFNServiceException,
440
434
  errorCode,
441
435
  });
442
436
  }
@@ -452,7 +446,7 @@ const de_DescribeMapRunCommand = async (output, context) => {
452
446
  $metadata: deserializeMetadata(output),
453
447
  ...contents,
454
448
  };
455
- return Promise.resolve(response);
449
+ return response;
456
450
  };
457
451
  exports.de_DescribeMapRunCommand = de_DescribeMapRunCommand;
458
452
  const de_DescribeMapRunCommandError = async (output, context) => {
@@ -470,10 +464,9 @@ const de_DescribeMapRunCommandError = async (output, context) => {
470
464
  throw await de_ResourceNotFoundRes(parsedOutput, context);
471
465
  default:
472
466
  const parsedBody = parsedOutput.body;
473
- (0, smithy_client_1.throwDefaultError)({
467
+ return throwDefaultError({
474
468
  output,
475
469
  parsedBody,
476
- exceptionCtor: SFNServiceException_1.SFNServiceException,
477
470
  errorCode,
478
471
  });
479
472
  }
@@ -489,7 +482,7 @@ const de_DescribeStateMachineCommand = async (output, context) => {
489
482
  $metadata: deserializeMetadata(output),
490
483
  ...contents,
491
484
  };
492
- return Promise.resolve(response);
485
+ return response;
493
486
  };
494
487
  exports.de_DescribeStateMachineCommand = de_DescribeStateMachineCommand;
495
488
  const de_DescribeStateMachineCommandError = async (output, context) => {
@@ -507,10 +500,9 @@ const de_DescribeStateMachineCommandError = async (output, context) => {
507
500
  throw await de_StateMachineDoesNotExistRes(parsedOutput, context);
508
501
  default:
509
502
  const parsedBody = parsedOutput.body;
510
- (0, smithy_client_1.throwDefaultError)({
503
+ return throwDefaultError({
511
504
  output,
512
505
  parsedBody,
513
- exceptionCtor: SFNServiceException_1.SFNServiceException,
514
506
  errorCode,
515
507
  });
516
508
  }
@@ -526,7 +518,7 @@ const de_DescribeStateMachineForExecutionCommand = async (output, context) => {
526
518
  $metadata: deserializeMetadata(output),
527
519
  ...contents,
528
520
  };
529
- return Promise.resolve(response);
521
+ return response;
530
522
  };
531
523
  exports.de_DescribeStateMachineForExecutionCommand = de_DescribeStateMachineForExecutionCommand;
532
524
  const de_DescribeStateMachineForExecutionCommandError = async (output, context) => {
@@ -544,10 +536,9 @@ const de_DescribeStateMachineForExecutionCommandError = async (output, context)
544
536
  throw await de_InvalidArnRes(parsedOutput, context);
545
537
  default:
546
538
  const parsedBody = parsedOutput.body;
547
- (0, smithy_client_1.throwDefaultError)({
539
+ return throwDefaultError({
548
540
  output,
549
541
  parsedBody,
550
- exceptionCtor: SFNServiceException_1.SFNServiceException,
551
542
  errorCode,
552
543
  });
553
544
  }
@@ -558,12 +549,12 @@ const de_GetActivityTaskCommand = async (output, context) => {
558
549
  }
559
550
  const data = await parseBody(output.body, context);
560
551
  let contents = {};
561
- contents = de_GetActivityTaskOutput(data, context);
552
+ contents = (0, smithy_client_1._json)(data);
562
553
  const response = {
563
554
  $metadata: deserializeMetadata(output),
564
555
  ...contents,
565
556
  };
566
- return Promise.resolve(response);
557
+ return response;
567
558
  };
568
559
  exports.de_GetActivityTaskCommand = de_GetActivityTaskCommand;
569
560
  const de_GetActivityTaskCommandError = async (output, context) => {
@@ -584,10 +575,9 @@ const de_GetActivityTaskCommandError = async (output, context) => {
584
575
  throw await de_InvalidArnRes(parsedOutput, context);
585
576
  default:
586
577
  const parsedBody = parsedOutput.body;
587
- (0, smithy_client_1.throwDefaultError)({
578
+ return throwDefaultError({
588
579
  output,
589
580
  parsedBody,
590
- exceptionCtor: SFNServiceException_1.SFNServiceException,
591
581
  errorCode,
592
582
  });
593
583
  }
@@ -603,7 +593,7 @@ const de_GetExecutionHistoryCommand = async (output, context) => {
603
593
  $metadata: deserializeMetadata(output),
604
594
  ...contents,
605
595
  };
606
- return Promise.resolve(response);
596
+ return response;
607
597
  };
608
598
  exports.de_GetExecutionHistoryCommand = de_GetExecutionHistoryCommand;
609
599
  const de_GetExecutionHistoryCommandError = async (output, context) => {
@@ -624,10 +614,9 @@ const de_GetExecutionHistoryCommandError = async (output, context) => {
624
614
  throw await de_InvalidTokenRes(parsedOutput, context);
625
615
  default:
626
616
  const parsedBody = parsedOutput.body;
627
- (0, smithy_client_1.throwDefaultError)({
617
+ return throwDefaultError({
628
618
  output,
629
619
  parsedBody,
630
- exceptionCtor: SFNServiceException_1.SFNServiceException,
631
620
  errorCode,
632
621
  });
633
622
  }
@@ -643,7 +632,7 @@ const de_ListActivitiesCommand = async (output, context) => {
643
632
  $metadata: deserializeMetadata(output),
644
633
  ...contents,
645
634
  };
646
- return Promise.resolve(response);
635
+ return response;
647
636
  };
648
637
  exports.de_ListActivitiesCommand = de_ListActivitiesCommand;
649
638
  const de_ListActivitiesCommandError = async (output, context) => {
@@ -658,10 +647,9 @@ const de_ListActivitiesCommandError = async (output, context) => {
658
647
  throw await de_InvalidTokenRes(parsedOutput, context);
659
648
  default:
660
649
  const parsedBody = parsedOutput.body;
661
- (0, smithy_client_1.throwDefaultError)({
650
+ return throwDefaultError({
662
651
  output,
663
652
  parsedBody,
664
- exceptionCtor: SFNServiceException_1.SFNServiceException,
665
653
  errorCode,
666
654
  });
667
655
  }
@@ -677,7 +665,7 @@ const de_ListExecutionsCommand = async (output, context) => {
677
665
  $metadata: deserializeMetadata(output),
678
666
  ...contents,
679
667
  };
680
- return Promise.resolve(response);
668
+ return response;
681
669
  };
682
670
  exports.de_ListExecutionsCommand = de_ListExecutionsCommand;
683
671
  const de_ListExecutionsCommandError = async (output, context) => {
@@ -707,10 +695,9 @@ const de_ListExecutionsCommandError = async (output, context) => {
707
695
  throw await de_ValidationExceptionRes(parsedOutput, context);
708
696
  default:
709
697
  const parsedBody = parsedOutput.body;
710
- (0, smithy_client_1.throwDefaultError)({
698
+ return throwDefaultError({
711
699
  output,
712
700
  parsedBody,
713
- exceptionCtor: SFNServiceException_1.SFNServiceException,
714
701
  errorCode,
715
702
  });
716
703
  }
@@ -726,7 +713,7 @@ const de_ListMapRunsCommand = async (output, context) => {
726
713
  $metadata: deserializeMetadata(output),
727
714
  ...contents,
728
715
  };
729
- return Promise.resolve(response);
716
+ return response;
730
717
  };
731
718
  exports.de_ListMapRunsCommand = de_ListMapRunsCommand;
732
719
  const de_ListMapRunsCommandError = async (output, context) => {
@@ -747,10 +734,9 @@ const de_ListMapRunsCommandError = async (output, context) => {
747
734
  throw await de_InvalidTokenRes(parsedOutput, context);
748
735
  default:
749
736
  const parsedBody = parsedOutput.body;
750
- (0, smithy_client_1.throwDefaultError)({
737
+ return throwDefaultError({
751
738
  output,
752
739
  parsedBody,
753
- exceptionCtor: SFNServiceException_1.SFNServiceException,
754
740
  errorCode,
755
741
  });
756
742
  }
@@ -766,7 +752,7 @@ const de_ListStateMachinesCommand = async (output, context) => {
766
752
  $metadata: deserializeMetadata(output),
767
753
  ...contents,
768
754
  };
769
- return Promise.resolve(response);
755
+ return response;
770
756
  };
771
757
  exports.de_ListStateMachinesCommand = de_ListStateMachinesCommand;
772
758
  const de_ListStateMachinesCommandError = async (output, context) => {
@@ -781,10 +767,9 @@ const de_ListStateMachinesCommandError = async (output, context) => {
781
767
  throw await de_InvalidTokenRes(parsedOutput, context);
782
768
  default:
783
769
  const parsedBody = parsedOutput.body;
784
- (0, smithy_client_1.throwDefaultError)({
770
+ return throwDefaultError({
785
771
  output,
786
772
  parsedBody,
787
- exceptionCtor: SFNServiceException_1.SFNServiceException,
788
773
  errorCode,
789
774
  });
790
775
  }
@@ -795,12 +780,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
795
780
  }
796
781
  const data = await parseBody(output.body, context);
797
782
  let contents = {};
798
- contents = de_ListTagsForResourceOutput(data, context);
783
+ contents = (0, smithy_client_1._json)(data);
799
784
  const response = {
800
785
  $metadata: deserializeMetadata(output),
801
786
  ...contents,
802
787
  };
803
- return Promise.resolve(response);
788
+ return response;
804
789
  };
805
790
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
806
791
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -818,10 +803,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
818
803
  throw await de_ResourceNotFoundRes(parsedOutput, context);
819
804
  default:
820
805
  const parsedBody = parsedOutput.body;
821
- (0, smithy_client_1.throwDefaultError)({
806
+ return throwDefaultError({
822
807
  output,
823
808
  parsedBody,
824
- exceptionCtor: SFNServiceException_1.SFNServiceException,
825
809
  errorCode,
826
810
  });
827
811
  }
@@ -832,12 +816,12 @@ const de_SendTaskFailureCommand = async (output, context) => {
832
816
  }
833
817
  const data = await parseBody(output.body, context);
834
818
  let contents = {};
835
- contents = de_SendTaskFailureOutput(data, context);
819
+ contents = (0, smithy_client_1._json)(data);
836
820
  const response = {
837
821
  $metadata: deserializeMetadata(output),
838
822
  ...contents,
839
823
  };
840
- return Promise.resolve(response);
824
+ return response;
841
825
  };
842
826
  exports.de_SendTaskFailureCommand = de_SendTaskFailureCommand;
843
827
  const de_SendTaskFailureCommandError = async (output, context) => {
@@ -858,10 +842,9 @@ const de_SendTaskFailureCommandError = async (output, context) => {
858
842
  throw await de_TaskTimedOutRes(parsedOutput, context);
859
843
  default:
860
844
  const parsedBody = parsedOutput.body;
861
- (0, smithy_client_1.throwDefaultError)({
845
+ return throwDefaultError({
862
846
  output,
863
847
  parsedBody,
864
- exceptionCtor: SFNServiceException_1.SFNServiceException,
865
848
  errorCode,
866
849
  });
867
850
  }
@@ -872,12 +855,12 @@ const de_SendTaskHeartbeatCommand = async (output, context) => {
872
855
  }
873
856
  const data = await parseBody(output.body, context);
874
857
  let contents = {};
875
- contents = de_SendTaskHeartbeatOutput(data, context);
858
+ contents = (0, smithy_client_1._json)(data);
876
859
  const response = {
877
860
  $metadata: deserializeMetadata(output),
878
861
  ...contents,
879
862
  };
880
- return Promise.resolve(response);
863
+ return response;
881
864
  };
882
865
  exports.de_SendTaskHeartbeatCommand = de_SendTaskHeartbeatCommand;
883
866
  const de_SendTaskHeartbeatCommandError = async (output, context) => {
@@ -898,10 +881,9 @@ const de_SendTaskHeartbeatCommandError = async (output, context) => {
898
881
  throw await de_TaskTimedOutRes(parsedOutput, context);
899
882
  default:
900
883
  const parsedBody = parsedOutput.body;
901
- (0, smithy_client_1.throwDefaultError)({
884
+ return throwDefaultError({
902
885
  output,
903
886
  parsedBody,
904
- exceptionCtor: SFNServiceException_1.SFNServiceException,
905
887
  errorCode,
906
888
  });
907
889
  }
@@ -912,12 +894,12 @@ const de_SendTaskSuccessCommand = async (output, context) => {
912
894
  }
913
895
  const data = await parseBody(output.body, context);
914
896
  let contents = {};
915
- contents = de_SendTaskSuccessOutput(data, context);
897
+ contents = (0, smithy_client_1._json)(data);
916
898
  const response = {
917
899
  $metadata: deserializeMetadata(output),
918
900
  ...contents,
919
901
  };
920
- return Promise.resolve(response);
902
+ return response;
921
903
  };
922
904
  exports.de_SendTaskSuccessCommand = de_SendTaskSuccessCommand;
923
905
  const de_SendTaskSuccessCommandError = async (output, context) => {
@@ -941,10 +923,9 @@ const de_SendTaskSuccessCommandError = async (output, context) => {
941
923
  throw await de_TaskTimedOutRes(parsedOutput, context);
942
924
  default:
943
925
  const parsedBody = parsedOutput.body;
944
- (0, smithy_client_1.throwDefaultError)({
926
+ return throwDefaultError({
945
927
  output,
946
928
  parsedBody,
947
- exceptionCtor: SFNServiceException_1.SFNServiceException,
948
929
  errorCode,
949
930
  });
950
931
  }
@@ -960,7 +941,7 @@ const de_StartExecutionCommand = async (output, context) => {
960
941
  $metadata: deserializeMetadata(output),
961
942
  ...contents,
962
943
  };
963
- return Promise.resolve(response);
944
+ return response;
964
945
  };
965
946
  exports.de_StartExecutionCommand = de_StartExecutionCommand;
966
947
  const de_StartExecutionCommandError = async (output, context) => {
@@ -996,10 +977,9 @@ const de_StartExecutionCommandError = async (output, context) => {
996
977
  throw await de_ValidationExceptionRes(parsedOutput, context);
997
978
  default:
998
979
  const parsedBody = parsedOutput.body;
999
- (0, smithy_client_1.throwDefaultError)({
980
+ return throwDefaultError({
1000
981
  output,
1001
982
  parsedBody,
1002
- exceptionCtor: SFNServiceException_1.SFNServiceException,
1003
983
  errorCode,
1004
984
  });
1005
985
  }
@@ -1015,7 +995,7 @@ const de_StartSyncExecutionCommand = async (output, context) => {
1015
995
  $metadata: deserializeMetadata(output),
1016
996
  ...contents,
1017
997
  };
1018
- return Promise.resolve(response);
998
+ return response;
1019
999
  };
1020
1000
  exports.de_StartSyncExecutionCommand = de_StartSyncExecutionCommand;
1021
1001
  const de_StartSyncExecutionCommandError = async (output, context) => {
@@ -1045,10 +1025,9 @@ const de_StartSyncExecutionCommandError = async (output, context) => {
1045
1025
  throw await de_StateMachineTypeNotSupportedRes(parsedOutput, context);
1046
1026
  default:
1047
1027
  const parsedBody = parsedOutput.body;
1048
- (0, smithy_client_1.throwDefaultError)({
1028
+ return throwDefaultError({
1049
1029
  output,
1050
1030
  parsedBody,
1051
- exceptionCtor: SFNServiceException_1.SFNServiceException,
1052
1031
  errorCode,
1053
1032
  });
1054
1033
  }
@@ -1064,7 +1043,7 @@ const de_StopExecutionCommand = async (output, context) => {
1064
1043
  $metadata: deserializeMetadata(output),
1065
1044
  ...contents,
1066
1045
  };
1067
- return Promise.resolve(response);
1046
+ return response;
1068
1047
  };
1069
1048
  exports.de_StopExecutionCommand = de_StopExecutionCommand;
1070
1049
  const de_StopExecutionCommandError = async (output, context) => {
@@ -1085,10 +1064,9 @@ const de_StopExecutionCommandError = async (output, context) => {
1085
1064
  throw await de_ValidationExceptionRes(parsedOutput, context);
1086
1065
  default:
1087
1066
  const parsedBody = parsedOutput.body;
1088
- (0, smithy_client_1.throwDefaultError)({
1067
+ return throwDefaultError({
1089
1068
  output,
1090
1069
  parsedBody,
1091
- exceptionCtor: SFNServiceException_1.SFNServiceException,
1092
1070
  errorCode,
1093
1071
  });
1094
1072
  }
@@ -1099,12 +1077,12 @@ const de_TagResourceCommand = async (output, context) => {
1099
1077
  }
1100
1078
  const data = await parseBody(output.body, context);
1101
1079
  let contents = {};
1102
- contents = de_TagResourceOutput(data, context);
1080
+ contents = (0, smithy_client_1._json)(data);
1103
1081
  const response = {
1104
1082
  $metadata: deserializeMetadata(output),
1105
1083
  ...contents,
1106
1084
  };
1107
- return Promise.resolve(response);
1085
+ return response;
1108
1086
  };
1109
1087
  exports.de_TagResourceCommand = de_TagResourceCommand;
1110
1088
  const de_TagResourceCommandError = async (output, context) => {
@@ -1125,10 +1103,9 @@ const de_TagResourceCommandError = async (output, context) => {
1125
1103
  throw await de_TooManyTagsRes(parsedOutput, context);
1126
1104
  default:
1127
1105
  const parsedBody = parsedOutput.body;
1128
- (0, smithy_client_1.throwDefaultError)({
1106
+ return throwDefaultError({
1129
1107
  output,
1130
1108
  parsedBody,
1131
- exceptionCtor: SFNServiceException_1.SFNServiceException,
1132
1109
  errorCode,
1133
1110
  });
1134
1111
  }
@@ -1139,12 +1116,12 @@ const de_UntagResourceCommand = async (output, context) => {
1139
1116
  }
1140
1117
  const data = await parseBody(output.body, context);
1141
1118
  let contents = {};
1142
- contents = de_UntagResourceOutput(data, context);
1119
+ contents = (0, smithy_client_1._json)(data);
1143
1120
  const response = {
1144
1121
  $metadata: deserializeMetadata(output),
1145
1122
  ...contents,
1146
1123
  };
1147
- return Promise.resolve(response);
1124
+ return response;
1148
1125
  };
1149
1126
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
1150
1127
  const de_UntagResourceCommandError = async (output, context) => {
@@ -1162,10 +1139,9 @@ const de_UntagResourceCommandError = async (output, context) => {
1162
1139
  throw await de_ResourceNotFoundRes(parsedOutput, context);
1163
1140
  default:
1164
1141
  const parsedBody = parsedOutput.body;
1165
- (0, smithy_client_1.throwDefaultError)({
1142
+ return throwDefaultError({
1166
1143
  output,
1167
1144
  parsedBody,
1168
- exceptionCtor: SFNServiceException_1.SFNServiceException,
1169
1145
  errorCode,
1170
1146
  });
1171
1147
  }
@@ -1176,12 +1152,12 @@ const de_UpdateMapRunCommand = async (output, context) => {
1176
1152
  }
1177
1153
  const data = await parseBody(output.body, context);
1178
1154
  let contents = {};
1179
- contents = de_UpdateMapRunOutput(data, context);
1155
+ contents = (0, smithy_client_1._json)(data);
1180
1156
  const response = {
1181
1157
  $metadata: deserializeMetadata(output),
1182
1158
  ...contents,
1183
1159
  };
1184
- return Promise.resolve(response);
1160
+ return response;
1185
1161
  };
1186
1162
  exports.de_UpdateMapRunCommand = de_UpdateMapRunCommand;
1187
1163
  const de_UpdateMapRunCommandError = async (output, context) => {
@@ -1202,10 +1178,9 @@ const de_UpdateMapRunCommandError = async (output, context) => {
1202
1178
  throw await de_ValidationExceptionRes(parsedOutput, context);
1203
1179
  default:
1204
1180
  const parsedBody = parsedOutput.body;
1205
- (0, smithy_client_1.throwDefaultError)({
1181
+ return throwDefaultError({
1206
1182
  output,
1207
1183
  parsedBody,
1208
- exceptionCtor: SFNServiceException_1.SFNServiceException,
1209
1184
  errorCode,
1210
1185
  });
1211
1186
  }
@@ -1221,7 +1196,7 @@ const de_UpdateStateMachineCommand = async (output, context) => {
1221
1196
  $metadata: deserializeMetadata(output),
1222
1197
  ...contents,
1223
1198
  };
1224
- return Promise.resolve(response);
1199
+ return response;
1225
1200
  };
1226
1201
  exports.de_UpdateStateMachineCommand = de_UpdateStateMachineCommand;
1227
1202
  const de_UpdateStateMachineCommandError = async (output, context) => {
@@ -1257,17 +1232,16 @@ const de_UpdateStateMachineCommandError = async (output, context) => {
1257
1232
  throw await de_ValidationExceptionRes(parsedOutput, context);
1258
1233
  default:
1259
1234
  const parsedBody = parsedOutput.body;
1260
- (0, smithy_client_1.throwDefaultError)({
1235
+ return throwDefaultError({
1261
1236
  output,
1262
1237
  parsedBody,
1263
- exceptionCtor: SFNServiceException_1.SFNServiceException,
1264
1238
  errorCode,
1265
1239
  });
1266
1240
  }
1267
1241
  };
1268
1242
  const de_ActivityDoesNotExistRes = async (parsedOutput, context) => {
1269
1243
  const body = parsedOutput.body;
1270
- const deserialized = de_ActivityDoesNotExist(body, context);
1244
+ const deserialized = (0, smithy_client_1._json)(body);
1271
1245
  const exception = new models_0_1.ActivityDoesNotExist({
1272
1246
  $metadata: deserializeMetadata(parsedOutput),
1273
1247
  ...deserialized,
@@ -1276,7 +1250,7 @@ const de_ActivityDoesNotExistRes = async (parsedOutput, context) => {
1276
1250
  };
1277
1251
  const de_ActivityLimitExceededRes = async (parsedOutput, context) => {
1278
1252
  const body = parsedOutput.body;
1279
- const deserialized = de_ActivityLimitExceeded(body, context);
1253
+ const deserialized = (0, smithy_client_1._json)(body);
1280
1254
  const exception = new models_0_1.ActivityLimitExceeded({
1281
1255
  $metadata: deserializeMetadata(parsedOutput),
1282
1256
  ...deserialized,
@@ -1285,7 +1259,7 @@ const de_ActivityLimitExceededRes = async (parsedOutput, context) => {
1285
1259
  };
1286
1260
  const de_ActivityWorkerLimitExceededRes = async (parsedOutput, context) => {
1287
1261
  const body = parsedOutput.body;
1288
- const deserialized = de_ActivityWorkerLimitExceeded(body, context);
1262
+ const deserialized = (0, smithy_client_1._json)(body);
1289
1263
  const exception = new models_0_1.ActivityWorkerLimitExceeded({
1290
1264
  $metadata: deserializeMetadata(parsedOutput),
1291
1265
  ...deserialized,
@@ -1294,7 +1268,7 @@ const de_ActivityWorkerLimitExceededRes = async (parsedOutput, context) => {
1294
1268
  };
1295
1269
  const de_ExecutionAlreadyExistsRes = async (parsedOutput, context) => {
1296
1270
  const body = parsedOutput.body;
1297
- const deserialized = de_ExecutionAlreadyExists(body, context);
1271
+ const deserialized = (0, smithy_client_1._json)(body);
1298
1272
  const exception = new models_0_1.ExecutionAlreadyExists({
1299
1273
  $metadata: deserializeMetadata(parsedOutput),
1300
1274
  ...deserialized,
@@ -1303,7 +1277,7 @@ const de_ExecutionAlreadyExistsRes = async (parsedOutput, context) => {
1303
1277
  };
1304
1278
  const de_ExecutionDoesNotExistRes = async (parsedOutput, context) => {
1305
1279
  const body = parsedOutput.body;
1306
- const deserialized = de_ExecutionDoesNotExist(body, context);
1280
+ const deserialized = (0, smithy_client_1._json)(body);
1307
1281
  const exception = new models_0_1.ExecutionDoesNotExist({
1308
1282
  $metadata: deserializeMetadata(parsedOutput),
1309
1283
  ...deserialized,
@@ -1312,7 +1286,7 @@ const de_ExecutionDoesNotExistRes = async (parsedOutput, context) => {
1312
1286
  };
1313
1287
  const de_ExecutionLimitExceededRes = async (parsedOutput, context) => {
1314
1288
  const body = parsedOutput.body;
1315
- const deserialized = de_ExecutionLimitExceeded(body, context);
1289
+ const deserialized = (0, smithy_client_1._json)(body);
1316
1290
  const exception = new models_0_1.ExecutionLimitExceeded({
1317
1291
  $metadata: deserializeMetadata(parsedOutput),
1318
1292
  ...deserialized,
@@ -1321,7 +1295,7 @@ const de_ExecutionLimitExceededRes = async (parsedOutput, context) => {
1321
1295
  };
1322
1296
  const de_InvalidArnRes = async (parsedOutput, context) => {
1323
1297
  const body = parsedOutput.body;
1324
- const deserialized = de_InvalidArn(body, context);
1298
+ const deserialized = (0, smithy_client_1._json)(body);
1325
1299
  const exception = new models_0_1.InvalidArn({
1326
1300
  $metadata: deserializeMetadata(parsedOutput),
1327
1301
  ...deserialized,
@@ -1330,7 +1304,7 @@ const de_InvalidArnRes = async (parsedOutput, context) => {
1330
1304
  };
1331
1305
  const de_InvalidDefinitionRes = async (parsedOutput, context) => {
1332
1306
  const body = parsedOutput.body;
1333
- const deserialized = de_InvalidDefinition(body, context);
1307
+ const deserialized = (0, smithy_client_1._json)(body);
1334
1308
  const exception = new models_0_1.InvalidDefinition({
1335
1309
  $metadata: deserializeMetadata(parsedOutput),
1336
1310
  ...deserialized,
@@ -1339,7 +1313,7 @@ const de_InvalidDefinitionRes = async (parsedOutput, context) => {
1339
1313
  };
1340
1314
  const de_InvalidExecutionInputRes = async (parsedOutput, context) => {
1341
1315
  const body = parsedOutput.body;
1342
- const deserialized = de_InvalidExecutionInput(body, context);
1316
+ const deserialized = (0, smithy_client_1._json)(body);
1343
1317
  const exception = new models_0_1.InvalidExecutionInput({
1344
1318
  $metadata: deserializeMetadata(parsedOutput),
1345
1319
  ...deserialized,
@@ -1348,7 +1322,7 @@ const de_InvalidExecutionInputRes = async (parsedOutput, context) => {
1348
1322
  };
1349
1323
  const de_InvalidLoggingConfigurationRes = async (parsedOutput, context) => {
1350
1324
  const body = parsedOutput.body;
1351
- const deserialized = de_InvalidLoggingConfiguration(body, context);
1325
+ const deserialized = (0, smithy_client_1._json)(body);
1352
1326
  const exception = new models_0_1.InvalidLoggingConfiguration({
1353
1327
  $metadata: deserializeMetadata(parsedOutput),
1354
1328
  ...deserialized,
@@ -1357,7 +1331,7 @@ const de_InvalidLoggingConfigurationRes = async (parsedOutput, context) => {
1357
1331
  };
1358
1332
  const de_InvalidNameRes = async (parsedOutput, context) => {
1359
1333
  const body = parsedOutput.body;
1360
- const deserialized = de_InvalidName(body, context);
1334
+ const deserialized = (0, smithy_client_1._json)(body);
1361
1335
  const exception = new models_0_1.InvalidName({
1362
1336
  $metadata: deserializeMetadata(parsedOutput),
1363
1337
  ...deserialized,
@@ -1366,7 +1340,7 @@ const de_InvalidNameRes = async (parsedOutput, context) => {
1366
1340
  };
1367
1341
  const de_InvalidOutputRes = async (parsedOutput, context) => {
1368
1342
  const body = parsedOutput.body;
1369
- const deserialized = de_InvalidOutput(body, context);
1343
+ const deserialized = (0, smithy_client_1._json)(body);
1370
1344
  const exception = new models_0_1.InvalidOutput({
1371
1345
  $metadata: deserializeMetadata(parsedOutput),
1372
1346
  ...deserialized,
@@ -1375,7 +1349,7 @@ const de_InvalidOutputRes = async (parsedOutput, context) => {
1375
1349
  };
1376
1350
  const de_InvalidTokenRes = async (parsedOutput, context) => {
1377
1351
  const body = parsedOutput.body;
1378
- const deserialized = de_InvalidToken(body, context);
1352
+ const deserialized = (0, smithy_client_1._json)(body);
1379
1353
  const exception = new models_0_1.InvalidToken({
1380
1354
  $metadata: deserializeMetadata(parsedOutput),
1381
1355
  ...deserialized,
@@ -1384,7 +1358,7 @@ const de_InvalidTokenRes = async (parsedOutput, context) => {
1384
1358
  };
1385
1359
  const de_InvalidTracingConfigurationRes = async (parsedOutput, context) => {
1386
1360
  const body = parsedOutput.body;
1387
- const deserialized = de_InvalidTracingConfiguration(body, context);
1361
+ const deserialized = (0, smithy_client_1._json)(body);
1388
1362
  const exception = new models_0_1.InvalidTracingConfiguration({
1389
1363
  $metadata: deserializeMetadata(parsedOutput),
1390
1364
  ...deserialized,
@@ -1393,7 +1367,7 @@ const de_InvalidTracingConfigurationRes = async (parsedOutput, context) => {
1393
1367
  };
1394
1368
  const de_MissingRequiredParameterRes = async (parsedOutput, context) => {
1395
1369
  const body = parsedOutput.body;
1396
- const deserialized = de_MissingRequiredParameter(body, context);
1370
+ const deserialized = (0, smithy_client_1._json)(body);
1397
1371
  const exception = new models_0_1.MissingRequiredParameter({
1398
1372
  $metadata: deserializeMetadata(parsedOutput),
1399
1373
  ...deserialized,
@@ -1402,7 +1376,7 @@ const de_MissingRequiredParameterRes = async (parsedOutput, context) => {
1402
1376
  };
1403
1377
  const de_ResourceNotFoundRes = async (parsedOutput, context) => {
1404
1378
  const body = parsedOutput.body;
1405
- const deserialized = de_ResourceNotFound(body, context);
1379
+ const deserialized = (0, smithy_client_1._json)(body);
1406
1380
  const exception = new models_0_1.ResourceNotFound({
1407
1381
  $metadata: deserializeMetadata(parsedOutput),
1408
1382
  ...deserialized,
@@ -1411,7 +1385,7 @@ const de_ResourceNotFoundRes = async (parsedOutput, context) => {
1411
1385
  };
1412
1386
  const de_StateMachineAlreadyExistsRes = async (parsedOutput, context) => {
1413
1387
  const body = parsedOutput.body;
1414
- const deserialized = de_StateMachineAlreadyExists(body, context);
1388
+ const deserialized = (0, smithy_client_1._json)(body);
1415
1389
  const exception = new models_0_1.StateMachineAlreadyExists({
1416
1390
  $metadata: deserializeMetadata(parsedOutput),
1417
1391
  ...deserialized,
@@ -1420,7 +1394,7 @@ const de_StateMachineAlreadyExistsRes = async (parsedOutput, context) => {
1420
1394
  };
1421
1395
  const de_StateMachineDeletingRes = async (parsedOutput, context) => {
1422
1396
  const body = parsedOutput.body;
1423
- const deserialized = de_StateMachineDeleting(body, context);
1397
+ const deserialized = (0, smithy_client_1._json)(body);
1424
1398
  const exception = new models_0_1.StateMachineDeleting({
1425
1399
  $metadata: deserializeMetadata(parsedOutput),
1426
1400
  ...deserialized,
@@ -1429,7 +1403,7 @@ const de_StateMachineDeletingRes = async (parsedOutput, context) => {
1429
1403
  };
1430
1404
  const de_StateMachineDoesNotExistRes = async (parsedOutput, context) => {
1431
1405
  const body = parsedOutput.body;
1432
- const deserialized = de_StateMachineDoesNotExist(body, context);
1406
+ const deserialized = (0, smithy_client_1._json)(body);
1433
1407
  const exception = new models_0_1.StateMachineDoesNotExist({
1434
1408
  $metadata: deserializeMetadata(parsedOutput),
1435
1409
  ...deserialized,
@@ -1438,7 +1412,7 @@ const de_StateMachineDoesNotExistRes = async (parsedOutput, context) => {
1438
1412
  };
1439
1413
  const de_StateMachineLimitExceededRes = async (parsedOutput, context) => {
1440
1414
  const body = parsedOutput.body;
1441
- const deserialized = de_StateMachineLimitExceeded(body, context);
1415
+ const deserialized = (0, smithy_client_1._json)(body);
1442
1416
  const exception = new models_0_1.StateMachineLimitExceeded({
1443
1417
  $metadata: deserializeMetadata(parsedOutput),
1444
1418
  ...deserialized,
@@ -1447,7 +1421,7 @@ const de_StateMachineLimitExceededRes = async (parsedOutput, context) => {
1447
1421
  };
1448
1422
  const de_StateMachineTypeNotSupportedRes = async (parsedOutput, context) => {
1449
1423
  const body = parsedOutput.body;
1450
- const deserialized = de_StateMachineTypeNotSupported(body, context);
1424
+ const deserialized = (0, smithy_client_1._json)(body);
1451
1425
  const exception = new models_0_1.StateMachineTypeNotSupported({
1452
1426
  $metadata: deserializeMetadata(parsedOutput),
1453
1427
  ...deserialized,
@@ -1456,7 +1430,7 @@ const de_StateMachineTypeNotSupportedRes = async (parsedOutput, context) => {
1456
1430
  };
1457
1431
  const de_TaskDoesNotExistRes = async (parsedOutput, context) => {
1458
1432
  const body = parsedOutput.body;
1459
- const deserialized = de_TaskDoesNotExist(body, context);
1433
+ const deserialized = (0, smithy_client_1._json)(body);
1460
1434
  const exception = new models_0_1.TaskDoesNotExist({
1461
1435
  $metadata: deserializeMetadata(parsedOutput),
1462
1436
  ...deserialized,
@@ -1465,7 +1439,7 @@ const de_TaskDoesNotExistRes = async (parsedOutput, context) => {
1465
1439
  };
1466
1440
  const de_TaskTimedOutRes = async (parsedOutput, context) => {
1467
1441
  const body = parsedOutput.body;
1468
- const deserialized = de_TaskTimedOut(body, context);
1442
+ const deserialized = (0, smithy_client_1._json)(body);
1469
1443
  const exception = new models_0_1.TaskTimedOut({
1470
1444
  $metadata: deserializeMetadata(parsedOutput),
1471
1445
  ...deserialized,
@@ -1474,7 +1448,7 @@ const de_TaskTimedOutRes = async (parsedOutput, context) => {
1474
1448
  };
1475
1449
  const de_TooManyTagsRes = async (parsedOutput, context) => {
1476
1450
  const body = parsedOutput.body;
1477
- const deserialized = de_TooManyTags(body, context);
1451
+ const deserialized = (0, smithy_client_1._json)(body);
1478
1452
  const exception = new models_0_1.TooManyTags({
1479
1453
  $metadata: deserializeMetadata(parsedOutput),
1480
1454
  ...deserialized,
@@ -1483,1067 +1457,280 @@ const de_TooManyTagsRes = async (parsedOutput, context) => {
1483
1457
  };
1484
1458
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
1485
1459
  const body = parsedOutput.body;
1486
- const deserialized = de_ValidationException(body, context);
1460
+ const deserialized = (0, smithy_client_1._json)(body);
1487
1461
  const exception = new models_0_1.ValidationException({
1488
1462
  $metadata: deserializeMetadata(parsedOutput),
1489
1463
  ...deserialized,
1490
1464
  });
1491
1465
  return (0, smithy_client_1.decorateServiceException)(exception, body);
1492
1466
  };
1493
- const se_CloudWatchLogsLogGroup = (input, context) => {
1494
- return {
1495
- ...(input.logGroupArn != null && { logGroupArn: input.logGroupArn }),
1496
- };
1497
- };
1498
- const se_CreateActivityInput = (input, context) => {
1499
- return {
1500
- ...(input.name != null && { name: input.name }),
1501
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
1502
- };
1503
- };
1504
- const se_CreateStateMachineInput = (input, context) => {
1505
- return {
1506
- ...(input.definition != null && { definition: input.definition }),
1507
- ...(input.loggingConfiguration != null && {
1508
- loggingConfiguration: se_LoggingConfiguration(input.loggingConfiguration, context),
1509
- }),
1510
- ...(input.name != null && { name: input.name }),
1511
- ...(input.roleArn != null && { roleArn: input.roleArn }),
1512
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
1513
- ...(input.tracingConfiguration != null && {
1514
- tracingConfiguration: se_TracingConfiguration(input.tracingConfiguration, context),
1515
- }),
1516
- ...(input.type != null && { type: input.type }),
1517
- };
1518
- };
1519
- const se_DeleteActivityInput = (input, context) => {
1520
- return {
1521
- ...(input.activityArn != null && { activityArn: input.activityArn }),
1522
- };
1523
- };
1524
- const se_DeleteStateMachineInput = (input, context) => {
1525
- return {
1526
- ...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
1527
- };
1528
- };
1529
- const se_DescribeActivityInput = (input, context) => {
1530
- return {
1531
- ...(input.activityArn != null && { activityArn: input.activityArn }),
1532
- };
1533
- };
1534
- const se_DescribeExecutionInput = (input, context) => {
1535
- return {
1536
- ...(input.executionArn != null && { executionArn: input.executionArn }),
1537
- };
1538
- };
1539
- const se_DescribeMapRunInput = (input, context) => {
1540
- return {
1541
- ...(input.mapRunArn != null && { mapRunArn: input.mapRunArn }),
1542
- };
1543
- };
1544
- const se_DescribeStateMachineForExecutionInput = (input, context) => {
1545
- return {
1546
- ...(input.executionArn != null && { executionArn: input.executionArn }),
1547
- };
1548
- };
1549
- const se_DescribeStateMachineInput = (input, context) => {
1550
- return {
1551
- ...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
1552
- };
1553
- };
1554
- const se_GetActivityTaskInput = (input, context) => {
1555
- return {
1556
- ...(input.activityArn != null && { activityArn: input.activityArn }),
1557
- ...(input.workerName != null && { workerName: input.workerName }),
1558
- };
1559
- };
1560
- const se_GetExecutionHistoryInput = (input, context) => {
1561
- return {
1562
- ...(input.executionArn != null && { executionArn: input.executionArn }),
1563
- ...(input.includeExecutionData != null && { includeExecutionData: input.includeExecutionData }),
1564
- ...(input.maxResults != null && { maxResults: input.maxResults }),
1565
- ...(input.nextToken != null && { nextToken: input.nextToken }),
1566
- ...(input.reverseOrder != null && { reverseOrder: input.reverseOrder }),
1567
- };
1568
- };
1569
- const se_ListActivitiesInput = (input, context) => {
1570
- return {
1571
- ...(input.maxResults != null && { maxResults: input.maxResults }),
1572
- ...(input.nextToken != null && { nextToken: input.nextToken }),
1573
- };
1574
- };
1575
- const se_ListExecutionsInput = (input, context) => {
1576
- return {
1577
- ...(input.mapRunArn != null && { mapRunArn: input.mapRunArn }),
1578
- ...(input.maxResults != null && { maxResults: input.maxResults }),
1579
- ...(input.nextToken != null && { nextToken: input.nextToken }),
1580
- ...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
1581
- ...(input.statusFilter != null && { statusFilter: input.statusFilter }),
1582
- };
1583
- };
1584
- const se_ListMapRunsInput = (input, context) => {
1585
- return {
1586
- ...(input.executionArn != null && { executionArn: input.executionArn }),
1587
- ...(input.maxResults != null && { maxResults: input.maxResults }),
1588
- ...(input.nextToken != null && { nextToken: input.nextToken }),
1589
- };
1590
- };
1591
- const se_ListStateMachinesInput = (input, context) => {
1592
- return {
1593
- ...(input.maxResults != null && { maxResults: input.maxResults }),
1594
- ...(input.nextToken != null && { nextToken: input.nextToken }),
1595
- };
1596
- };
1597
- const se_ListTagsForResourceInput = (input, context) => {
1598
- return {
1599
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
1600
- };
1601
- };
1602
- const se_LogDestination = (input, context) => {
1603
- return {
1604
- ...(input.cloudWatchLogsLogGroup != null && {
1605
- cloudWatchLogsLogGroup: se_CloudWatchLogsLogGroup(input.cloudWatchLogsLogGroup, context),
1606
- }),
1607
- };
1608
- };
1609
- const se_LogDestinationList = (input, context) => {
1610
- return input
1611
- .filter((e) => e != null)
1612
- .map((entry) => {
1613
- return se_LogDestination(entry, context);
1614
- });
1615
- };
1616
- const se_LoggingConfiguration = (input, context) => {
1617
- return {
1618
- ...(input.destinations != null && { destinations: se_LogDestinationList(input.destinations, context) }),
1619
- ...(input.includeExecutionData != null && { includeExecutionData: input.includeExecutionData }),
1620
- ...(input.level != null && { level: input.level }),
1621
- };
1622
- };
1623
- const se_SendTaskFailureInput = (input, context) => {
1624
- return {
1625
- ...(input.cause != null && { cause: input.cause }),
1626
- ...(input.error != null && { error: input.error }),
1627
- ...(input.taskToken != null && { taskToken: input.taskToken }),
1628
- };
1629
- };
1630
- const se_SendTaskHeartbeatInput = (input, context) => {
1631
- return {
1632
- ...(input.taskToken != null && { taskToken: input.taskToken }),
1633
- };
1634
- };
1635
- const se_SendTaskSuccessInput = (input, context) => {
1636
- return {
1637
- ...(input.output != null && { output: input.output }),
1638
- ...(input.taskToken != null && { taskToken: input.taskToken }),
1639
- };
1640
- };
1641
- const se_StartExecutionInput = (input, context) => {
1642
- return {
1643
- ...(input.input != null && { input: input.input }),
1644
- ...(input.name != null && { name: input.name }),
1645
- ...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
1646
- ...(input.traceHeader != null && { traceHeader: input.traceHeader }),
1647
- };
1648
- };
1649
- const se_StartSyncExecutionInput = (input, context) => {
1650
- return {
1651
- ...(input.input != null && { input: input.input }),
1652
- ...(input.name != null && { name: input.name }),
1653
- ...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
1654
- ...(input.traceHeader != null && { traceHeader: input.traceHeader }),
1655
- };
1656
- };
1657
- const se_StopExecutionInput = (input, context) => {
1658
- return {
1659
- ...(input.cause != null && { cause: input.cause }),
1660
- ...(input.error != null && { error: input.error }),
1661
- ...(input.executionArn != null && { executionArn: input.executionArn }),
1662
- };
1663
- };
1664
- const se_Tag = (input, context) => {
1665
- return {
1666
- ...(input.key != null && { key: input.key }),
1667
- ...(input.value != null && { value: input.value }),
1668
- };
1669
- };
1670
- const se_TagKeyList = (input, context) => {
1671
- return input
1672
- .filter((e) => e != null)
1673
- .map((entry) => {
1674
- return entry;
1675
- });
1676
- };
1677
- const se_TagList = (input, context) => {
1678
- return input
1679
- .filter((e) => e != null)
1680
- .map((entry) => {
1681
- return se_Tag(entry, context);
1682
- });
1683
- };
1684
- const se_TagResourceInput = (input, context) => {
1685
- return {
1686
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
1687
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
1688
- };
1689
- };
1690
- const se_TracingConfiguration = (input, context) => {
1691
- return {
1692
- ...(input.enabled != null && { enabled: input.enabled }),
1693
- };
1694
- };
1695
- const se_UntagResourceInput = (input, context) => {
1696
- return {
1697
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
1698
- ...(input.tagKeys != null && { tagKeys: se_TagKeyList(input.tagKeys, context) }),
1699
- };
1700
- };
1701
1467
  const se_UpdateMapRunInput = (input, context) => {
1702
- return {
1703
- ...(input.mapRunArn != null && { mapRunArn: input.mapRunArn }),
1704
- ...(input.maxConcurrency != null && { maxConcurrency: input.maxConcurrency }),
1705
- ...(input.toleratedFailureCount != null && { toleratedFailureCount: input.toleratedFailureCount }),
1706
- ...(input.toleratedFailurePercentage != null && {
1707
- toleratedFailurePercentage: (0, smithy_client_1.serializeFloat)(input.toleratedFailurePercentage),
1708
- }),
1709
- };
1710
- };
1711
- const se_UpdateStateMachineInput = (input, context) => {
1712
- return {
1713
- ...(input.definition != null && { definition: input.definition }),
1714
- ...(input.loggingConfiguration != null && {
1715
- loggingConfiguration: se_LoggingConfiguration(input.loggingConfiguration, context),
1716
- }),
1717
- ...(input.roleArn != null && { roleArn: input.roleArn }),
1718
- ...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
1719
- ...(input.tracingConfiguration != null && {
1720
- tracingConfiguration: se_TracingConfiguration(input.tracingConfiguration, context),
1721
- }),
1722
- };
1723
- };
1724
- const de_ActivityDoesNotExist = (output, context) => {
1725
- return {
1726
- message: (0, smithy_client_1.expectString)(output.message),
1727
- };
1728
- };
1729
- const de_ActivityFailedEventDetails = (output, context) => {
1730
- return {
1731
- cause: (0, smithy_client_1.expectString)(output.cause),
1732
- error: (0, smithy_client_1.expectString)(output.error),
1733
- };
1734
- };
1735
- const de_ActivityLimitExceeded = (output, context) => {
1736
- return {
1737
- message: (0, smithy_client_1.expectString)(output.message),
1738
- };
1468
+ return (0, smithy_client_1.take)(input, {
1469
+ mapRunArn: [],
1470
+ maxConcurrency: [],
1471
+ toleratedFailureCount: [],
1472
+ toleratedFailurePercentage: smithy_client_1.serializeFloat,
1473
+ });
1739
1474
  };
1740
1475
  const de_ActivityList = (output, context) => {
1741
1476
  const retVal = (output || [])
1742
1477
  .filter((e) => e != null)
1743
1478
  .map((entry) => {
1744
- if (entry === null) {
1745
- return null;
1746
- }
1747
1479
  return de_ActivityListItem(entry, context);
1748
1480
  });
1749
1481
  return retVal;
1750
1482
  };
1751
1483
  const de_ActivityListItem = (output, context) => {
1752
- return {
1753
- activityArn: (0, smithy_client_1.expectString)(output.activityArn),
1754
- creationDate: output.creationDate != null
1755
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
1756
- : undefined,
1757
- name: (0, smithy_client_1.expectString)(output.name),
1758
- };
1759
- };
1760
- const de_ActivityScheduledEventDetails = (output, context) => {
1761
- return {
1762
- heartbeatInSeconds: (0, smithy_client_1.expectLong)(output.heartbeatInSeconds),
1763
- input: (0, smithy_client_1.expectString)(output.input),
1764
- inputDetails: output.inputDetails != null ? de_HistoryEventExecutionDataDetails(output.inputDetails, context) : undefined,
1765
- resource: (0, smithy_client_1.expectString)(output.resource),
1766
- timeoutInSeconds: (0, smithy_client_1.expectLong)(output.timeoutInSeconds),
1767
- };
1768
- };
1769
- const de_ActivityScheduleFailedEventDetails = (output, context) => {
1770
- return {
1771
- cause: (0, smithy_client_1.expectString)(output.cause),
1772
- error: (0, smithy_client_1.expectString)(output.error),
1773
- };
1774
- };
1775
- const de_ActivityStartedEventDetails = (output, context) => {
1776
- return {
1777
- workerName: (0, smithy_client_1.expectString)(output.workerName),
1778
- };
1779
- };
1780
- const de_ActivitySucceededEventDetails = (output, context) => {
1781
- return {
1782
- output: (0, smithy_client_1.expectString)(output.output),
1783
- outputDetails: output.outputDetails != null ? de_HistoryEventExecutionDataDetails(output.outputDetails, context) : undefined,
1784
- };
1785
- };
1786
- const de_ActivityTimedOutEventDetails = (output, context) => {
1787
- return {
1788
- cause: (0, smithy_client_1.expectString)(output.cause),
1789
- error: (0, smithy_client_1.expectString)(output.error),
1790
- };
1791
- };
1792
- const de_ActivityWorkerLimitExceeded = (output, context) => {
1793
- return {
1794
- message: (0, smithy_client_1.expectString)(output.message),
1795
- };
1796
- };
1797
- const de_BillingDetails = (output, context) => {
1798
- return {
1799
- billedDurationInMilliseconds: (0, smithy_client_1.expectLong)(output.billedDurationInMilliseconds),
1800
- billedMemoryUsedInMB: (0, smithy_client_1.expectLong)(output.billedMemoryUsedInMB),
1801
- };
1802
- };
1803
- const de_CloudWatchEventsExecutionDataDetails = (output, context) => {
1804
- return {
1805
- included: (0, smithy_client_1.expectBoolean)(output.included),
1806
- };
1807
- };
1808
- const de_CloudWatchLogsLogGroup = (output, context) => {
1809
- return {
1810
- logGroupArn: (0, smithy_client_1.expectString)(output.logGroupArn),
1811
- };
1484
+ return (0, smithy_client_1.take)(output, {
1485
+ activityArn: smithy_client_1.expectString,
1486
+ creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1487
+ name: smithy_client_1.expectString,
1488
+ });
1812
1489
  };
1813
1490
  const de_CreateActivityOutput = (output, context) => {
1814
- return {
1815
- activityArn: (0, smithy_client_1.expectString)(output.activityArn),
1816
- creationDate: output.creationDate != null
1817
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
1818
- : undefined,
1819
- };
1491
+ return (0, smithy_client_1.take)(output, {
1492
+ activityArn: smithy_client_1.expectString,
1493
+ creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1494
+ });
1820
1495
  };
1821
1496
  const de_CreateStateMachineOutput = (output, context) => {
1822
- return {
1823
- creationDate: output.creationDate != null
1824
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
1825
- : undefined,
1826
- stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
1827
- };
1828
- };
1829
- const de_DeleteActivityOutput = (output, context) => {
1830
- return {};
1831
- };
1832
- const de_DeleteStateMachineOutput = (output, context) => {
1833
- return {};
1497
+ return (0, smithy_client_1.take)(output, {
1498
+ creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1499
+ stateMachineArn: smithy_client_1.expectString,
1500
+ });
1834
1501
  };
1835
1502
  const de_DescribeActivityOutput = (output, context) => {
1836
- return {
1837
- activityArn: (0, smithy_client_1.expectString)(output.activityArn),
1838
- creationDate: output.creationDate != null
1839
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
1840
- : undefined,
1841
- name: (0, smithy_client_1.expectString)(output.name),
1842
- };
1503
+ return (0, smithy_client_1.take)(output, {
1504
+ activityArn: smithy_client_1.expectString,
1505
+ creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1506
+ name: smithy_client_1.expectString,
1507
+ });
1843
1508
  };
1844
1509
  const de_DescribeExecutionOutput = (output, context) => {
1845
- return {
1846
- cause: (0, smithy_client_1.expectString)(output.cause),
1847
- error: (0, smithy_client_1.expectString)(output.error),
1848
- executionArn: (0, smithy_client_1.expectString)(output.executionArn),
1849
- input: (0, smithy_client_1.expectString)(output.input),
1850
- inputDetails: output.inputDetails != null ? de_CloudWatchEventsExecutionDataDetails(output.inputDetails, context) : undefined,
1851
- mapRunArn: (0, smithy_client_1.expectString)(output.mapRunArn),
1852
- name: (0, smithy_client_1.expectString)(output.name),
1853
- output: (0, smithy_client_1.expectString)(output.output),
1854
- outputDetails: output.outputDetails != null ? de_CloudWatchEventsExecutionDataDetails(output.outputDetails, context) : undefined,
1855
- startDate: output.startDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startDate))) : undefined,
1856
- stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
1857
- status: (0, smithy_client_1.expectString)(output.status),
1858
- stopDate: output.stopDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopDate))) : undefined,
1859
- traceHeader: (0, smithy_client_1.expectString)(output.traceHeader),
1860
- };
1510
+ return (0, smithy_client_1.take)(output, {
1511
+ cause: smithy_client_1.expectString,
1512
+ error: smithy_client_1.expectString,
1513
+ executionArn: smithy_client_1.expectString,
1514
+ input: smithy_client_1.expectString,
1515
+ inputDetails: smithy_client_1._json,
1516
+ mapRunArn: smithy_client_1.expectString,
1517
+ name: smithy_client_1.expectString,
1518
+ output: smithy_client_1.expectString,
1519
+ outputDetails: smithy_client_1._json,
1520
+ startDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1521
+ stateMachineArn: smithy_client_1.expectString,
1522
+ status: smithy_client_1.expectString,
1523
+ stopDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1524
+ traceHeader: smithy_client_1.expectString,
1525
+ });
1861
1526
  };
1862
1527
  const de_DescribeMapRunOutput = (output, context) => {
1863
- return {
1864
- executionArn: (0, smithy_client_1.expectString)(output.executionArn),
1865
- executionCounts: output.executionCounts != null ? de_MapRunExecutionCounts(output.executionCounts, context) : undefined,
1866
- itemCounts: output.itemCounts != null ? de_MapRunItemCounts(output.itemCounts, context) : undefined,
1867
- mapRunArn: (0, smithy_client_1.expectString)(output.mapRunArn),
1868
- maxConcurrency: (0, smithy_client_1.expectInt32)(output.maxConcurrency),
1869
- startDate: output.startDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startDate))) : undefined,
1870
- status: (0, smithy_client_1.expectString)(output.status),
1871
- stopDate: output.stopDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopDate))) : undefined,
1872
- toleratedFailureCount: (0, smithy_client_1.expectLong)(output.toleratedFailureCount),
1873
- toleratedFailurePercentage: (0, smithy_client_1.limitedParseFloat32)(output.toleratedFailurePercentage),
1874
- };
1528
+ return (0, smithy_client_1.take)(output, {
1529
+ executionArn: smithy_client_1.expectString,
1530
+ executionCounts: smithy_client_1._json,
1531
+ itemCounts: smithy_client_1._json,
1532
+ mapRunArn: smithy_client_1.expectString,
1533
+ maxConcurrency: smithy_client_1.expectInt32,
1534
+ startDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1535
+ status: smithy_client_1.expectString,
1536
+ stopDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1537
+ toleratedFailureCount: smithy_client_1.expectLong,
1538
+ toleratedFailurePercentage: smithy_client_1.limitedParseFloat32,
1539
+ });
1875
1540
  };
1876
1541
  const de_DescribeStateMachineForExecutionOutput = (output, context) => {
1877
- return {
1878
- definition: (0, smithy_client_1.expectString)(output.definition),
1879
- label: (0, smithy_client_1.expectString)(output.label),
1880
- loggingConfiguration: output.loggingConfiguration != null ? de_LoggingConfiguration(output.loggingConfiguration, context) : undefined,
1881
- mapRunArn: (0, smithy_client_1.expectString)(output.mapRunArn),
1882
- name: (0, smithy_client_1.expectString)(output.name),
1883
- roleArn: (0, smithy_client_1.expectString)(output.roleArn),
1884
- stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
1885
- tracingConfiguration: output.tracingConfiguration != null ? de_TracingConfiguration(output.tracingConfiguration, context) : undefined,
1886
- updateDate: output.updateDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateDate))) : undefined,
1887
- };
1542
+ return (0, smithy_client_1.take)(output, {
1543
+ definition: smithy_client_1.expectString,
1544
+ label: smithy_client_1.expectString,
1545
+ loggingConfiguration: smithy_client_1._json,
1546
+ mapRunArn: smithy_client_1.expectString,
1547
+ name: smithy_client_1.expectString,
1548
+ roleArn: smithy_client_1.expectString,
1549
+ stateMachineArn: smithy_client_1.expectString,
1550
+ tracingConfiguration: smithy_client_1._json,
1551
+ updateDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1552
+ });
1888
1553
  };
1889
1554
  const de_DescribeStateMachineOutput = (output, context) => {
1890
- return {
1891
- creationDate: output.creationDate != null
1892
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
1893
- : undefined,
1894
- definition: (0, smithy_client_1.expectString)(output.definition),
1895
- label: (0, smithy_client_1.expectString)(output.label),
1896
- loggingConfiguration: output.loggingConfiguration != null ? de_LoggingConfiguration(output.loggingConfiguration, context) : undefined,
1897
- name: (0, smithy_client_1.expectString)(output.name),
1898
- roleArn: (0, smithy_client_1.expectString)(output.roleArn),
1899
- stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
1900
- status: (0, smithy_client_1.expectString)(output.status),
1901
- tracingConfiguration: output.tracingConfiguration != null ? de_TracingConfiguration(output.tracingConfiguration, context) : undefined,
1902
- type: (0, smithy_client_1.expectString)(output.type),
1903
- };
1904
- };
1905
- const de_ExecutionAbortedEventDetails = (output, context) => {
1906
- return {
1907
- cause: (0, smithy_client_1.expectString)(output.cause),
1908
- error: (0, smithy_client_1.expectString)(output.error),
1909
- };
1910
- };
1911
- const de_ExecutionAlreadyExists = (output, context) => {
1912
- return {
1913
- message: (0, smithy_client_1.expectString)(output.message),
1914
- };
1915
- };
1916
- const de_ExecutionDoesNotExist = (output, context) => {
1917
- return {
1918
- message: (0, smithy_client_1.expectString)(output.message),
1919
- };
1920
- };
1921
- const de_ExecutionFailedEventDetails = (output, context) => {
1922
- return {
1923
- cause: (0, smithy_client_1.expectString)(output.cause),
1924
- error: (0, smithy_client_1.expectString)(output.error),
1925
- };
1926
- };
1927
- const de_ExecutionLimitExceeded = (output, context) => {
1928
- return {
1929
- message: (0, smithy_client_1.expectString)(output.message),
1930
- };
1555
+ return (0, smithy_client_1.take)(output, {
1556
+ creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1557
+ definition: smithy_client_1.expectString,
1558
+ label: smithy_client_1.expectString,
1559
+ loggingConfiguration: smithy_client_1._json,
1560
+ name: smithy_client_1.expectString,
1561
+ roleArn: smithy_client_1.expectString,
1562
+ stateMachineArn: smithy_client_1.expectString,
1563
+ status: smithy_client_1.expectString,
1564
+ tracingConfiguration: smithy_client_1._json,
1565
+ type: smithy_client_1.expectString,
1566
+ });
1931
1567
  };
1932
1568
  const de_ExecutionList = (output, context) => {
1933
1569
  const retVal = (output || [])
1934
1570
  .filter((e) => e != null)
1935
1571
  .map((entry) => {
1936
- if (entry === null) {
1937
- return null;
1938
- }
1939
1572
  return de_ExecutionListItem(entry, context);
1940
1573
  });
1941
1574
  return retVal;
1942
1575
  };
1943
1576
  const de_ExecutionListItem = (output, context) => {
1944
- return {
1945
- executionArn: (0, smithy_client_1.expectString)(output.executionArn),
1946
- itemCount: (0, smithy_client_1.expectInt32)(output.itemCount),
1947
- mapRunArn: (0, smithy_client_1.expectString)(output.mapRunArn),
1948
- name: (0, smithy_client_1.expectString)(output.name),
1949
- startDate: output.startDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startDate))) : undefined,
1950
- stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
1951
- status: (0, smithy_client_1.expectString)(output.status),
1952
- stopDate: output.stopDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopDate))) : undefined,
1953
- };
1954
- };
1955
- const de_ExecutionStartedEventDetails = (output, context) => {
1956
- return {
1957
- input: (0, smithy_client_1.expectString)(output.input),
1958
- inputDetails: output.inputDetails != null ? de_HistoryEventExecutionDataDetails(output.inputDetails, context) : undefined,
1959
- roleArn: (0, smithy_client_1.expectString)(output.roleArn),
1960
- };
1961
- };
1962
- const de_ExecutionSucceededEventDetails = (output, context) => {
1963
- return {
1964
- output: (0, smithy_client_1.expectString)(output.output),
1965
- outputDetails: output.outputDetails != null ? de_HistoryEventExecutionDataDetails(output.outputDetails, context) : undefined,
1966
- };
1967
- };
1968
- const de_ExecutionTimedOutEventDetails = (output, context) => {
1969
- return {
1970
- cause: (0, smithy_client_1.expectString)(output.cause),
1971
- error: (0, smithy_client_1.expectString)(output.error),
1972
- };
1973
- };
1974
- const de_GetActivityTaskOutput = (output, context) => {
1975
- return {
1976
- input: (0, smithy_client_1.expectString)(output.input),
1977
- taskToken: (0, smithy_client_1.expectString)(output.taskToken),
1978
- };
1577
+ return (0, smithy_client_1.take)(output, {
1578
+ executionArn: smithy_client_1.expectString,
1579
+ itemCount: smithy_client_1.expectInt32,
1580
+ mapRunArn: smithy_client_1.expectString,
1581
+ name: smithy_client_1.expectString,
1582
+ startDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1583
+ stateMachineArn: smithy_client_1.expectString,
1584
+ status: smithy_client_1.expectString,
1585
+ stopDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1586
+ });
1979
1587
  };
1980
1588
  const de_GetExecutionHistoryOutput = (output, context) => {
1981
- return {
1982
- events: output.events != null ? de_HistoryEventList(output.events, context) : undefined,
1983
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
1984
- };
1589
+ return (0, smithy_client_1.take)(output, {
1590
+ events: (_) => de_HistoryEventList(_, context),
1591
+ nextToken: smithy_client_1.expectString,
1592
+ });
1985
1593
  };
1986
1594
  const de_HistoryEvent = (output, context) => {
1987
- return {
1988
- activityFailedEventDetails: output.activityFailedEventDetails != null
1989
- ? de_ActivityFailedEventDetails(output.activityFailedEventDetails, context)
1990
- : undefined,
1991
- activityScheduleFailedEventDetails: output.activityScheduleFailedEventDetails != null
1992
- ? de_ActivityScheduleFailedEventDetails(output.activityScheduleFailedEventDetails, context)
1993
- : undefined,
1994
- activityScheduledEventDetails: output.activityScheduledEventDetails != null
1995
- ? de_ActivityScheduledEventDetails(output.activityScheduledEventDetails, context)
1996
- : undefined,
1997
- activityStartedEventDetails: output.activityStartedEventDetails != null
1998
- ? de_ActivityStartedEventDetails(output.activityStartedEventDetails, context)
1999
- : undefined,
2000
- activitySucceededEventDetails: output.activitySucceededEventDetails != null
2001
- ? de_ActivitySucceededEventDetails(output.activitySucceededEventDetails, context)
2002
- : undefined,
2003
- activityTimedOutEventDetails: output.activityTimedOutEventDetails != null
2004
- ? de_ActivityTimedOutEventDetails(output.activityTimedOutEventDetails, context)
2005
- : undefined,
2006
- executionAbortedEventDetails: output.executionAbortedEventDetails != null
2007
- ? de_ExecutionAbortedEventDetails(output.executionAbortedEventDetails, context)
2008
- : undefined,
2009
- executionFailedEventDetails: output.executionFailedEventDetails != null
2010
- ? de_ExecutionFailedEventDetails(output.executionFailedEventDetails, context)
2011
- : undefined,
2012
- executionStartedEventDetails: output.executionStartedEventDetails != null
2013
- ? de_ExecutionStartedEventDetails(output.executionStartedEventDetails, context)
2014
- : undefined,
2015
- executionSucceededEventDetails: output.executionSucceededEventDetails != null
2016
- ? de_ExecutionSucceededEventDetails(output.executionSucceededEventDetails, context)
2017
- : undefined,
2018
- executionTimedOutEventDetails: output.executionTimedOutEventDetails != null
2019
- ? de_ExecutionTimedOutEventDetails(output.executionTimedOutEventDetails, context)
2020
- : undefined,
2021
- id: (0, smithy_client_1.expectLong)(output.id),
2022
- lambdaFunctionFailedEventDetails: output.lambdaFunctionFailedEventDetails != null
2023
- ? de_LambdaFunctionFailedEventDetails(output.lambdaFunctionFailedEventDetails, context)
2024
- : undefined,
2025
- lambdaFunctionScheduleFailedEventDetails: output.lambdaFunctionScheduleFailedEventDetails != null
2026
- ? de_LambdaFunctionScheduleFailedEventDetails(output.lambdaFunctionScheduleFailedEventDetails, context)
2027
- : undefined,
2028
- lambdaFunctionScheduledEventDetails: output.lambdaFunctionScheduledEventDetails != null
2029
- ? de_LambdaFunctionScheduledEventDetails(output.lambdaFunctionScheduledEventDetails, context)
2030
- : undefined,
2031
- lambdaFunctionStartFailedEventDetails: output.lambdaFunctionStartFailedEventDetails != null
2032
- ? de_LambdaFunctionStartFailedEventDetails(output.lambdaFunctionStartFailedEventDetails, context)
2033
- : undefined,
2034
- lambdaFunctionSucceededEventDetails: output.lambdaFunctionSucceededEventDetails != null
2035
- ? de_LambdaFunctionSucceededEventDetails(output.lambdaFunctionSucceededEventDetails, context)
2036
- : undefined,
2037
- lambdaFunctionTimedOutEventDetails: output.lambdaFunctionTimedOutEventDetails != null
2038
- ? de_LambdaFunctionTimedOutEventDetails(output.lambdaFunctionTimedOutEventDetails, context)
2039
- : undefined,
2040
- mapIterationAbortedEventDetails: output.mapIterationAbortedEventDetails != null
2041
- ? de_MapIterationEventDetails(output.mapIterationAbortedEventDetails, context)
2042
- : undefined,
2043
- mapIterationFailedEventDetails: output.mapIterationFailedEventDetails != null
2044
- ? de_MapIterationEventDetails(output.mapIterationFailedEventDetails, context)
2045
- : undefined,
2046
- mapIterationStartedEventDetails: output.mapIterationStartedEventDetails != null
2047
- ? de_MapIterationEventDetails(output.mapIterationStartedEventDetails, context)
2048
- : undefined,
2049
- mapIterationSucceededEventDetails: output.mapIterationSucceededEventDetails != null
2050
- ? de_MapIterationEventDetails(output.mapIterationSucceededEventDetails, context)
2051
- : undefined,
2052
- mapRunFailedEventDetails: output.mapRunFailedEventDetails != null
2053
- ? de_MapRunFailedEventDetails(output.mapRunFailedEventDetails, context)
2054
- : undefined,
2055
- mapRunStartedEventDetails: output.mapRunStartedEventDetails != null
2056
- ? de_MapRunStartedEventDetails(output.mapRunStartedEventDetails, context)
2057
- : undefined,
2058
- mapStateStartedEventDetails: output.mapStateStartedEventDetails != null
2059
- ? de_MapStateStartedEventDetails(output.mapStateStartedEventDetails, context)
2060
- : undefined,
2061
- previousEventId: (0, smithy_client_1.expectLong)(output.previousEventId),
2062
- stateEnteredEventDetails: output.stateEnteredEventDetails != null
2063
- ? de_StateEnteredEventDetails(output.stateEnteredEventDetails, context)
2064
- : undefined,
2065
- stateExitedEventDetails: output.stateExitedEventDetails != null
2066
- ? de_StateExitedEventDetails(output.stateExitedEventDetails, context)
2067
- : undefined,
2068
- taskFailedEventDetails: output.taskFailedEventDetails != null
2069
- ? de_TaskFailedEventDetails(output.taskFailedEventDetails, context)
2070
- : undefined,
2071
- taskScheduledEventDetails: output.taskScheduledEventDetails != null
2072
- ? de_TaskScheduledEventDetails(output.taskScheduledEventDetails, context)
2073
- : undefined,
2074
- taskStartFailedEventDetails: output.taskStartFailedEventDetails != null
2075
- ? de_TaskStartFailedEventDetails(output.taskStartFailedEventDetails, context)
2076
- : undefined,
2077
- taskStartedEventDetails: output.taskStartedEventDetails != null
2078
- ? de_TaskStartedEventDetails(output.taskStartedEventDetails, context)
2079
- : undefined,
2080
- taskSubmitFailedEventDetails: output.taskSubmitFailedEventDetails != null
2081
- ? de_TaskSubmitFailedEventDetails(output.taskSubmitFailedEventDetails, context)
2082
- : undefined,
2083
- taskSubmittedEventDetails: output.taskSubmittedEventDetails != null
2084
- ? de_TaskSubmittedEventDetails(output.taskSubmittedEventDetails, context)
2085
- : undefined,
2086
- taskSucceededEventDetails: output.taskSucceededEventDetails != null
2087
- ? de_TaskSucceededEventDetails(output.taskSucceededEventDetails, context)
2088
- : undefined,
2089
- taskTimedOutEventDetails: output.taskTimedOutEventDetails != null
2090
- ? de_TaskTimedOutEventDetails(output.taskTimedOutEventDetails, context)
2091
- : undefined,
2092
- timestamp: output.timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.timestamp))) : undefined,
2093
- type: (0, smithy_client_1.expectString)(output.type),
2094
- };
2095
- };
2096
- const de_HistoryEventExecutionDataDetails = (output, context) => {
2097
- return {
2098
- truncated: (0, smithy_client_1.expectBoolean)(output.truncated),
2099
- };
1595
+ return (0, smithy_client_1.take)(output, {
1596
+ activityFailedEventDetails: smithy_client_1._json,
1597
+ activityScheduleFailedEventDetails: smithy_client_1._json,
1598
+ activityScheduledEventDetails: smithy_client_1._json,
1599
+ activityStartedEventDetails: smithy_client_1._json,
1600
+ activitySucceededEventDetails: smithy_client_1._json,
1601
+ activityTimedOutEventDetails: smithy_client_1._json,
1602
+ executionAbortedEventDetails: smithy_client_1._json,
1603
+ executionFailedEventDetails: smithy_client_1._json,
1604
+ executionStartedEventDetails: smithy_client_1._json,
1605
+ executionSucceededEventDetails: smithy_client_1._json,
1606
+ executionTimedOutEventDetails: smithy_client_1._json,
1607
+ id: smithy_client_1.expectLong,
1608
+ lambdaFunctionFailedEventDetails: smithy_client_1._json,
1609
+ lambdaFunctionScheduleFailedEventDetails: smithy_client_1._json,
1610
+ lambdaFunctionScheduledEventDetails: smithy_client_1._json,
1611
+ lambdaFunctionStartFailedEventDetails: smithy_client_1._json,
1612
+ lambdaFunctionSucceededEventDetails: smithy_client_1._json,
1613
+ lambdaFunctionTimedOutEventDetails: smithy_client_1._json,
1614
+ mapIterationAbortedEventDetails: smithy_client_1._json,
1615
+ mapIterationFailedEventDetails: smithy_client_1._json,
1616
+ mapIterationStartedEventDetails: smithy_client_1._json,
1617
+ mapIterationSucceededEventDetails: smithy_client_1._json,
1618
+ mapRunFailedEventDetails: smithy_client_1._json,
1619
+ mapRunStartedEventDetails: smithy_client_1._json,
1620
+ mapStateStartedEventDetails: smithy_client_1._json,
1621
+ previousEventId: smithy_client_1.expectLong,
1622
+ stateEnteredEventDetails: smithy_client_1._json,
1623
+ stateExitedEventDetails: smithy_client_1._json,
1624
+ taskFailedEventDetails: smithy_client_1._json,
1625
+ taskScheduledEventDetails: smithy_client_1._json,
1626
+ taskStartFailedEventDetails: smithy_client_1._json,
1627
+ taskStartedEventDetails: smithy_client_1._json,
1628
+ taskSubmitFailedEventDetails: smithy_client_1._json,
1629
+ taskSubmittedEventDetails: smithy_client_1._json,
1630
+ taskSucceededEventDetails: smithy_client_1._json,
1631
+ taskTimedOutEventDetails: smithy_client_1._json,
1632
+ timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1633
+ type: smithy_client_1.expectString,
1634
+ });
2100
1635
  };
2101
1636
  const de_HistoryEventList = (output, context) => {
2102
1637
  const retVal = (output || [])
2103
1638
  .filter((e) => e != null)
2104
1639
  .map((entry) => {
2105
- if (entry === null) {
2106
- return null;
2107
- }
2108
1640
  return de_HistoryEvent(entry, context);
2109
1641
  });
2110
1642
  return retVal;
2111
1643
  };
2112
- const de_InvalidArn = (output, context) => {
2113
- return {
2114
- message: (0, smithy_client_1.expectString)(output.message),
2115
- };
2116
- };
2117
- const de_InvalidDefinition = (output, context) => {
2118
- return {
2119
- message: (0, smithy_client_1.expectString)(output.message),
2120
- };
2121
- };
2122
- const de_InvalidExecutionInput = (output, context) => {
2123
- return {
2124
- message: (0, smithy_client_1.expectString)(output.message),
2125
- };
2126
- };
2127
- const de_InvalidLoggingConfiguration = (output, context) => {
2128
- return {
2129
- message: (0, smithy_client_1.expectString)(output.message),
2130
- };
2131
- };
2132
- const de_InvalidName = (output, context) => {
2133
- return {
2134
- message: (0, smithy_client_1.expectString)(output.message),
2135
- };
2136
- };
2137
- const de_InvalidOutput = (output, context) => {
2138
- return {
2139
- message: (0, smithy_client_1.expectString)(output.message),
2140
- };
2141
- };
2142
- const de_InvalidToken = (output, context) => {
2143
- return {
2144
- message: (0, smithy_client_1.expectString)(output.message),
2145
- };
2146
- };
2147
- const de_InvalidTracingConfiguration = (output, context) => {
2148
- return {
2149
- message: (0, smithy_client_1.expectString)(output.message),
2150
- };
2151
- };
2152
- const de_LambdaFunctionFailedEventDetails = (output, context) => {
2153
- return {
2154
- cause: (0, smithy_client_1.expectString)(output.cause),
2155
- error: (0, smithy_client_1.expectString)(output.error),
2156
- };
2157
- };
2158
- const de_LambdaFunctionScheduledEventDetails = (output, context) => {
2159
- return {
2160
- input: (0, smithy_client_1.expectString)(output.input),
2161
- inputDetails: output.inputDetails != null ? de_HistoryEventExecutionDataDetails(output.inputDetails, context) : undefined,
2162
- resource: (0, smithy_client_1.expectString)(output.resource),
2163
- taskCredentials: output.taskCredentials != null ? de_TaskCredentials(output.taskCredentials, context) : undefined,
2164
- timeoutInSeconds: (0, smithy_client_1.expectLong)(output.timeoutInSeconds),
2165
- };
2166
- };
2167
- const de_LambdaFunctionScheduleFailedEventDetails = (output, context) => {
2168
- return {
2169
- cause: (0, smithy_client_1.expectString)(output.cause),
2170
- error: (0, smithy_client_1.expectString)(output.error),
2171
- };
2172
- };
2173
- const de_LambdaFunctionStartFailedEventDetails = (output, context) => {
2174
- return {
2175
- cause: (0, smithy_client_1.expectString)(output.cause),
2176
- error: (0, smithy_client_1.expectString)(output.error),
2177
- };
2178
- };
2179
- const de_LambdaFunctionSucceededEventDetails = (output, context) => {
2180
- return {
2181
- output: (0, smithy_client_1.expectString)(output.output),
2182
- outputDetails: output.outputDetails != null ? de_HistoryEventExecutionDataDetails(output.outputDetails, context) : undefined,
2183
- };
2184
- };
2185
- const de_LambdaFunctionTimedOutEventDetails = (output, context) => {
2186
- return {
2187
- cause: (0, smithy_client_1.expectString)(output.cause),
2188
- error: (0, smithy_client_1.expectString)(output.error),
2189
- };
2190
- };
2191
1644
  const de_ListActivitiesOutput = (output, context) => {
2192
- return {
2193
- activities: output.activities != null ? de_ActivityList(output.activities, context) : undefined,
2194
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
2195
- };
1645
+ return (0, smithy_client_1.take)(output, {
1646
+ activities: (_) => de_ActivityList(_, context),
1647
+ nextToken: smithy_client_1.expectString,
1648
+ });
2196
1649
  };
2197
1650
  const de_ListExecutionsOutput = (output, context) => {
2198
- return {
2199
- executions: output.executions != null ? de_ExecutionList(output.executions, context) : undefined,
2200
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
2201
- };
1651
+ return (0, smithy_client_1.take)(output, {
1652
+ executions: (_) => de_ExecutionList(_, context),
1653
+ nextToken: smithy_client_1.expectString,
1654
+ });
2202
1655
  };
2203
1656
  const de_ListMapRunsOutput = (output, context) => {
2204
- return {
2205
- mapRuns: output.mapRuns != null ? de_MapRunList(output.mapRuns, context) : undefined,
2206
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
2207
- };
1657
+ return (0, smithy_client_1.take)(output, {
1658
+ mapRuns: (_) => de_MapRunList(_, context),
1659
+ nextToken: smithy_client_1.expectString,
1660
+ });
2208
1661
  };
2209
1662
  const de_ListStateMachinesOutput = (output, context) => {
2210
- return {
2211
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
2212
- stateMachines: output.stateMachines != null ? de_StateMachineList(output.stateMachines, context) : undefined,
2213
- };
2214
- };
2215
- const de_ListTagsForResourceOutput = (output, context) => {
2216
- return {
2217
- tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
2218
- };
2219
- };
2220
- const de_LogDestination = (output, context) => {
2221
- return {
2222
- cloudWatchLogsLogGroup: output.cloudWatchLogsLogGroup != null
2223
- ? de_CloudWatchLogsLogGroup(output.cloudWatchLogsLogGroup, context)
2224
- : undefined,
2225
- };
2226
- };
2227
- const de_LogDestinationList = (output, context) => {
2228
- const retVal = (output || [])
2229
- .filter((e) => e != null)
2230
- .map((entry) => {
2231
- if (entry === null) {
2232
- return null;
2233
- }
2234
- return de_LogDestination(entry, context);
1663
+ return (0, smithy_client_1.take)(output, {
1664
+ nextToken: smithy_client_1.expectString,
1665
+ stateMachines: (_) => de_StateMachineList(_, context),
2235
1666
  });
2236
- return retVal;
2237
- };
2238
- const de_LoggingConfiguration = (output, context) => {
2239
- return {
2240
- destinations: output.destinations != null ? de_LogDestinationList(output.destinations, context) : undefined,
2241
- includeExecutionData: (0, smithy_client_1.expectBoolean)(output.includeExecutionData),
2242
- level: (0, smithy_client_1.expectString)(output.level),
2243
- };
2244
- };
2245
- const de_MapIterationEventDetails = (output, context) => {
2246
- return {
2247
- index: (0, smithy_client_1.expectInt32)(output.index),
2248
- name: (0, smithy_client_1.expectString)(output.name),
2249
- };
2250
- };
2251
- const de_MapRunExecutionCounts = (output, context) => {
2252
- return {
2253
- aborted: (0, smithy_client_1.expectLong)(output.aborted),
2254
- failed: (0, smithy_client_1.expectLong)(output.failed),
2255
- pending: (0, smithy_client_1.expectLong)(output.pending),
2256
- resultsWritten: (0, smithy_client_1.expectLong)(output.resultsWritten),
2257
- running: (0, smithy_client_1.expectLong)(output.running),
2258
- succeeded: (0, smithy_client_1.expectLong)(output.succeeded),
2259
- timedOut: (0, smithy_client_1.expectLong)(output.timedOut),
2260
- total: (0, smithy_client_1.expectLong)(output.total),
2261
- };
2262
- };
2263
- const de_MapRunFailedEventDetails = (output, context) => {
2264
- return {
2265
- cause: (0, smithy_client_1.expectString)(output.cause),
2266
- error: (0, smithy_client_1.expectString)(output.error),
2267
- };
2268
- };
2269
- const de_MapRunItemCounts = (output, context) => {
2270
- return {
2271
- aborted: (0, smithy_client_1.expectLong)(output.aborted),
2272
- failed: (0, smithy_client_1.expectLong)(output.failed),
2273
- pending: (0, smithy_client_1.expectLong)(output.pending),
2274
- resultsWritten: (0, smithy_client_1.expectLong)(output.resultsWritten),
2275
- running: (0, smithy_client_1.expectLong)(output.running),
2276
- succeeded: (0, smithy_client_1.expectLong)(output.succeeded),
2277
- timedOut: (0, smithy_client_1.expectLong)(output.timedOut),
2278
- total: (0, smithy_client_1.expectLong)(output.total),
2279
- };
2280
1667
  };
2281
1668
  const de_MapRunList = (output, context) => {
2282
1669
  const retVal = (output || [])
2283
1670
  .filter((e) => e != null)
2284
1671
  .map((entry) => {
2285
- if (entry === null) {
2286
- return null;
2287
- }
2288
1672
  return de_MapRunListItem(entry, context);
2289
1673
  });
2290
1674
  return retVal;
2291
1675
  };
2292
1676
  const de_MapRunListItem = (output, context) => {
2293
- return {
2294
- executionArn: (0, smithy_client_1.expectString)(output.executionArn),
2295
- mapRunArn: (0, smithy_client_1.expectString)(output.mapRunArn),
2296
- startDate: output.startDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startDate))) : undefined,
2297
- stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
2298
- stopDate: output.stopDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopDate))) : undefined,
2299
- };
2300
- };
2301
- const de_MapRunStartedEventDetails = (output, context) => {
2302
- return {
2303
- mapRunArn: (0, smithy_client_1.expectString)(output.mapRunArn),
2304
- };
2305
- };
2306
- const de_MapStateStartedEventDetails = (output, context) => {
2307
- return {
2308
- length: (0, smithy_client_1.expectInt32)(output.length),
2309
- };
2310
- };
2311
- const de_MissingRequiredParameter = (output, context) => {
2312
- return {
2313
- message: (0, smithy_client_1.expectString)(output.message),
2314
- };
2315
- };
2316
- const de_ResourceNotFound = (output, context) => {
2317
- return {
2318
- message: (0, smithy_client_1.expectString)(output.message),
2319
- resourceName: (0, smithy_client_1.expectString)(output.resourceName),
2320
- };
2321
- };
2322
- const de_SendTaskFailureOutput = (output, context) => {
2323
- return {};
2324
- };
2325
- const de_SendTaskHeartbeatOutput = (output, context) => {
2326
- return {};
2327
- };
2328
- const de_SendTaskSuccessOutput = (output, context) => {
2329
- return {};
1677
+ return (0, smithy_client_1.take)(output, {
1678
+ executionArn: smithy_client_1.expectString,
1679
+ mapRunArn: smithy_client_1.expectString,
1680
+ startDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1681
+ stateMachineArn: smithy_client_1.expectString,
1682
+ stopDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1683
+ });
2330
1684
  };
2331
1685
  const de_StartExecutionOutput = (output, context) => {
2332
- return {
2333
- executionArn: (0, smithy_client_1.expectString)(output.executionArn),
2334
- startDate: output.startDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startDate))) : undefined,
2335
- };
1686
+ return (0, smithy_client_1.take)(output, {
1687
+ executionArn: smithy_client_1.expectString,
1688
+ startDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1689
+ });
2336
1690
  };
2337
1691
  const de_StartSyncExecutionOutput = (output, context) => {
2338
- return {
2339
- billingDetails: output.billingDetails != null ? de_BillingDetails(output.billingDetails, context) : undefined,
2340
- cause: (0, smithy_client_1.expectString)(output.cause),
2341
- error: (0, smithy_client_1.expectString)(output.error),
2342
- executionArn: (0, smithy_client_1.expectString)(output.executionArn),
2343
- input: (0, smithy_client_1.expectString)(output.input),
2344
- inputDetails: output.inputDetails != null ? de_CloudWatchEventsExecutionDataDetails(output.inputDetails, context) : undefined,
2345
- name: (0, smithy_client_1.expectString)(output.name),
2346
- output: (0, smithy_client_1.expectString)(output.output),
2347
- outputDetails: output.outputDetails != null ? de_CloudWatchEventsExecutionDataDetails(output.outputDetails, context) : undefined,
2348
- startDate: output.startDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startDate))) : undefined,
2349
- stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
2350
- status: (0, smithy_client_1.expectString)(output.status),
2351
- stopDate: output.stopDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopDate))) : undefined,
2352
- traceHeader: (0, smithy_client_1.expectString)(output.traceHeader),
2353
- };
2354
- };
2355
- const de_StateEnteredEventDetails = (output, context) => {
2356
- return {
2357
- input: (0, smithy_client_1.expectString)(output.input),
2358
- inputDetails: output.inputDetails != null ? de_HistoryEventExecutionDataDetails(output.inputDetails, context) : undefined,
2359
- name: (0, smithy_client_1.expectString)(output.name),
2360
- };
2361
- };
2362
- const de_StateExitedEventDetails = (output, context) => {
2363
- return {
2364
- name: (0, smithy_client_1.expectString)(output.name),
2365
- output: (0, smithy_client_1.expectString)(output.output),
2366
- outputDetails: output.outputDetails != null ? de_HistoryEventExecutionDataDetails(output.outputDetails, context) : undefined,
2367
- };
2368
- };
2369
- const de_StateMachineAlreadyExists = (output, context) => {
2370
- return {
2371
- message: (0, smithy_client_1.expectString)(output.message),
2372
- };
2373
- };
2374
- const de_StateMachineDeleting = (output, context) => {
2375
- return {
2376
- message: (0, smithy_client_1.expectString)(output.message),
2377
- };
2378
- };
2379
- const de_StateMachineDoesNotExist = (output, context) => {
2380
- return {
2381
- message: (0, smithy_client_1.expectString)(output.message),
2382
- };
2383
- };
2384
- const de_StateMachineLimitExceeded = (output, context) => {
2385
- return {
2386
- message: (0, smithy_client_1.expectString)(output.message),
2387
- };
1692
+ return (0, smithy_client_1.take)(output, {
1693
+ billingDetails: smithy_client_1._json,
1694
+ cause: smithy_client_1.expectString,
1695
+ error: smithy_client_1.expectString,
1696
+ executionArn: smithy_client_1.expectString,
1697
+ input: smithy_client_1.expectString,
1698
+ inputDetails: smithy_client_1._json,
1699
+ name: smithy_client_1.expectString,
1700
+ output: smithy_client_1.expectString,
1701
+ outputDetails: smithy_client_1._json,
1702
+ startDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1703
+ stateMachineArn: smithy_client_1.expectString,
1704
+ status: smithy_client_1.expectString,
1705
+ stopDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1706
+ traceHeader: smithy_client_1.expectString,
1707
+ });
2388
1708
  };
2389
1709
  const de_StateMachineList = (output, context) => {
2390
1710
  const retVal = (output || [])
2391
1711
  .filter((e) => e != null)
2392
1712
  .map((entry) => {
2393
- if (entry === null) {
2394
- return null;
2395
- }
2396
1713
  return de_StateMachineListItem(entry, context);
2397
1714
  });
2398
1715
  return retVal;
2399
1716
  };
2400
1717
  const de_StateMachineListItem = (output, context) => {
2401
- return {
2402
- creationDate: output.creationDate != null
2403
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
2404
- : undefined,
2405
- name: (0, smithy_client_1.expectString)(output.name),
2406
- stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
2407
- type: (0, smithy_client_1.expectString)(output.type),
2408
- };
2409
- };
2410
- const de_StateMachineTypeNotSupported = (output, context) => {
2411
- return {
2412
- message: (0, smithy_client_1.expectString)(output.message),
2413
- };
1718
+ return (0, smithy_client_1.take)(output, {
1719
+ creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1720
+ name: smithy_client_1.expectString,
1721
+ stateMachineArn: smithy_client_1.expectString,
1722
+ type: smithy_client_1.expectString,
1723
+ });
2414
1724
  };
2415
1725
  const de_StopExecutionOutput = (output, context) => {
2416
- return {
2417
- stopDate: output.stopDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopDate))) : undefined,
2418
- };
2419
- };
2420
- const de_Tag = (output, context) => {
2421
- return {
2422
- key: (0, smithy_client_1.expectString)(output.key),
2423
- value: (0, smithy_client_1.expectString)(output.value),
2424
- };
2425
- };
2426
- const de_TagList = (output, context) => {
2427
- const retVal = (output || [])
2428
- .filter((e) => e != null)
2429
- .map((entry) => {
2430
- if (entry === null) {
2431
- return null;
2432
- }
2433
- return de_Tag(entry, context);
1726
+ return (0, smithy_client_1.take)(output, {
1727
+ stopDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2434
1728
  });
2435
- return retVal;
2436
- };
2437
- const de_TagResourceOutput = (output, context) => {
2438
- return {};
2439
- };
2440
- const de_TaskCredentials = (output, context) => {
2441
- return {
2442
- roleArn: (0, smithy_client_1.expectString)(output.roleArn),
2443
- };
2444
- };
2445
- const de_TaskDoesNotExist = (output, context) => {
2446
- return {
2447
- message: (0, smithy_client_1.expectString)(output.message),
2448
- };
2449
- };
2450
- const de_TaskFailedEventDetails = (output, context) => {
2451
- return {
2452
- cause: (0, smithy_client_1.expectString)(output.cause),
2453
- error: (0, smithy_client_1.expectString)(output.error),
2454
- resource: (0, smithy_client_1.expectString)(output.resource),
2455
- resourceType: (0, smithy_client_1.expectString)(output.resourceType),
2456
- };
2457
- };
2458
- const de_TaskScheduledEventDetails = (output, context) => {
2459
- return {
2460
- heartbeatInSeconds: (0, smithy_client_1.expectLong)(output.heartbeatInSeconds),
2461
- parameters: (0, smithy_client_1.expectString)(output.parameters),
2462
- region: (0, smithy_client_1.expectString)(output.region),
2463
- resource: (0, smithy_client_1.expectString)(output.resource),
2464
- resourceType: (0, smithy_client_1.expectString)(output.resourceType),
2465
- taskCredentials: output.taskCredentials != null ? de_TaskCredentials(output.taskCredentials, context) : undefined,
2466
- timeoutInSeconds: (0, smithy_client_1.expectLong)(output.timeoutInSeconds),
2467
- };
2468
- };
2469
- const de_TaskStartedEventDetails = (output, context) => {
2470
- return {
2471
- resource: (0, smithy_client_1.expectString)(output.resource),
2472
- resourceType: (0, smithy_client_1.expectString)(output.resourceType),
2473
- };
2474
- };
2475
- const de_TaskStartFailedEventDetails = (output, context) => {
2476
- return {
2477
- cause: (0, smithy_client_1.expectString)(output.cause),
2478
- error: (0, smithy_client_1.expectString)(output.error),
2479
- resource: (0, smithy_client_1.expectString)(output.resource),
2480
- resourceType: (0, smithy_client_1.expectString)(output.resourceType),
2481
- };
2482
- };
2483
- const de_TaskSubmitFailedEventDetails = (output, context) => {
2484
- return {
2485
- cause: (0, smithy_client_1.expectString)(output.cause),
2486
- error: (0, smithy_client_1.expectString)(output.error),
2487
- resource: (0, smithy_client_1.expectString)(output.resource),
2488
- resourceType: (0, smithy_client_1.expectString)(output.resourceType),
2489
- };
2490
- };
2491
- const de_TaskSubmittedEventDetails = (output, context) => {
2492
- return {
2493
- output: (0, smithy_client_1.expectString)(output.output),
2494
- outputDetails: output.outputDetails != null ? de_HistoryEventExecutionDataDetails(output.outputDetails, context) : undefined,
2495
- resource: (0, smithy_client_1.expectString)(output.resource),
2496
- resourceType: (0, smithy_client_1.expectString)(output.resourceType),
2497
- };
2498
- };
2499
- const de_TaskSucceededEventDetails = (output, context) => {
2500
- return {
2501
- output: (0, smithy_client_1.expectString)(output.output),
2502
- outputDetails: output.outputDetails != null ? de_HistoryEventExecutionDataDetails(output.outputDetails, context) : undefined,
2503
- resource: (0, smithy_client_1.expectString)(output.resource),
2504
- resourceType: (0, smithy_client_1.expectString)(output.resourceType),
2505
- };
2506
- };
2507
- const de_TaskTimedOut = (output, context) => {
2508
- return {
2509
- message: (0, smithy_client_1.expectString)(output.message),
2510
- };
2511
- };
2512
- const de_TaskTimedOutEventDetails = (output, context) => {
2513
- return {
2514
- cause: (0, smithy_client_1.expectString)(output.cause),
2515
- error: (0, smithy_client_1.expectString)(output.error),
2516
- resource: (0, smithy_client_1.expectString)(output.resource),
2517
- resourceType: (0, smithy_client_1.expectString)(output.resourceType),
2518
- };
2519
- };
2520
- const de_TooManyTags = (output, context) => {
2521
- return {
2522
- message: (0, smithy_client_1.expectString)(output.message),
2523
- resourceName: (0, smithy_client_1.expectString)(output.resourceName),
2524
- };
2525
- };
2526
- const de_TracingConfiguration = (output, context) => {
2527
- return {
2528
- enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
2529
- };
2530
- };
2531
- const de_UntagResourceOutput = (output, context) => {
2532
- return {};
2533
- };
2534
- const de_UpdateMapRunOutput = (output, context) => {
2535
- return {};
2536
1729
  };
2537
1730
  const de_UpdateStateMachineOutput = (output, context) => {
2538
- return {
2539
- updateDate: output.updateDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateDate))) : undefined,
2540
- };
2541
- };
2542
- const de_ValidationException = (output, context) => {
2543
- return {
2544
- message: (0, smithy_client_1.expectString)(output.message),
2545
- reason: (0, smithy_client_1.expectString)(output.reason),
2546
- };
1731
+ return (0, smithy_client_1.take)(output, {
1732
+ updateDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1733
+ });
2547
1734
  };
2548
1735
  const deserializeMetadata = (output) => ({
2549
1736
  httpStatusCode: output.statusCode,
@@ -2558,6 +1745,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
2558
1745
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2559
1746
  };
2560
1747
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1748
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(SFNServiceException_1.SFNServiceException);
2561
1749
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
2562
1750
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2563
1751
  const contents = {