@aws-sdk/client-sfn 3.131.0 → 3.142.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.
- package/CHANGELOG.md +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/CreateActivityCommand.js +2 -2
- package/dist-cjs/commands/CreateStateMachineCommand.js +2 -2
- package/dist-cjs/commands/DeleteActivityCommand.js +2 -2
- package/dist-cjs/commands/DeleteStateMachineCommand.js +2 -2
- package/dist-cjs/commands/DescribeActivityCommand.js +2 -2
- package/dist-cjs/commands/DescribeExecutionCommand.js +2 -2
- package/dist-cjs/commands/DescribeStateMachineCommand.js +2 -2
- package/dist-cjs/commands/DescribeStateMachineForExecutionCommand.js +2 -2
- package/dist-cjs/commands/GetActivityTaskCommand.js +2 -2
- package/dist-cjs/commands/GetExecutionHistoryCommand.js +2 -2
- package/dist-cjs/commands/ListActivitiesCommand.js +2 -2
- package/dist-cjs/commands/ListExecutionsCommand.js +2 -2
- package/dist-cjs/commands/ListStateMachinesCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/SendTaskFailureCommand.js +2 -2
- package/dist-cjs/commands/SendTaskHeartbeatCommand.js +2 -2
- package/dist-cjs/commands/SendTaskSuccessCommand.js +2 -2
- package/dist-cjs/commands/StartExecutionCommand.js +2 -2
- package/dist-cjs/commands/StartSyncExecutionCommand.js +2 -2
- package/dist-cjs/commands/StopExecutionCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateStateMachineCommand.js +2 -2
- package/dist-cjs/models/models_0.js +484 -658
- package/dist-cjs/protocols/Aws_json1_0.js +115 -193
- package/dist-es/commands/CreateActivityCommand.js +3 -3
- package/dist-es/commands/CreateStateMachineCommand.js +3 -3
- package/dist-es/commands/DeleteActivityCommand.js +3 -3
- package/dist-es/commands/DeleteStateMachineCommand.js +3 -3
- package/dist-es/commands/DescribeActivityCommand.js +3 -3
- package/dist-es/commands/DescribeExecutionCommand.js +3 -3
- package/dist-es/commands/DescribeStateMachineCommand.js +3 -3
- package/dist-es/commands/DescribeStateMachineForExecutionCommand.js +3 -3
- package/dist-es/commands/GetActivityTaskCommand.js +3 -3
- package/dist-es/commands/GetExecutionHistoryCommand.js +3 -3
- package/dist-es/commands/ListActivitiesCommand.js +3 -3
- package/dist-es/commands/ListExecutionsCommand.js +3 -3
- package/dist-es/commands/ListStateMachinesCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/SendTaskFailureCommand.js +3 -3
- package/dist-es/commands/SendTaskHeartbeatCommand.js +3 -3
- package/dist-es/commands/SendTaskSuccessCommand.js +3 -3
- package/dist-es/commands/StartExecutionCommand.js +3 -3
- package/dist-es/commands/StartSyncExecutionCommand.js +3 -3
- package/dist-es/commands/StopExecutionCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateStateMachineCommand.js +3 -3
- package/dist-es/models/models_0.js +137 -398
- package/dist-es/protocols/Aws_json1_0.js +185 -194
- package/dist-types/models/models_0.d.ts +348 -522
- package/dist-types/ts3.4/models/models_0.d.ts +174 -348
- package/package.json +6 -6
|
@@ -261,7 +261,6 @@ const deserializeAws_json1_0CreateActivityCommandError = async (output, context)
|
|
|
261
261
|
...output,
|
|
262
262
|
body: await parseBody(output.body, context),
|
|
263
263
|
};
|
|
264
|
-
let response;
|
|
265
264
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
266
265
|
switch (errorCode) {
|
|
267
266
|
case "ActivityLimitExceeded":
|
|
@@ -275,14 +274,12 @@ const deserializeAws_json1_0CreateActivityCommandError = async (output, context)
|
|
|
275
274
|
throw await deserializeAws_json1_0TooManyTagsResponse(parsedOutput, context);
|
|
276
275
|
default:
|
|
277
276
|
const parsedBody = parsedOutput.body;
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
$metadata,
|
|
277
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
278
|
+
output,
|
|
279
|
+
parsedBody,
|
|
280
|
+
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
281
|
+
errorCode,
|
|
284
282
|
});
|
|
285
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
286
283
|
}
|
|
287
284
|
};
|
|
288
285
|
const deserializeAws_json1_0CreateStateMachineCommand = async (output, context) => {
|
|
@@ -304,7 +301,6 @@ const deserializeAws_json1_0CreateStateMachineCommandError = async (output, cont
|
|
|
304
301
|
...output,
|
|
305
302
|
body: await parseBody(output.body, context),
|
|
306
303
|
};
|
|
307
|
-
let response;
|
|
308
304
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
309
305
|
switch (errorCode) {
|
|
310
306
|
case "InvalidArn":
|
|
@@ -339,14 +335,12 @@ const deserializeAws_json1_0CreateStateMachineCommandError = async (output, cont
|
|
|
339
335
|
throw await deserializeAws_json1_0TooManyTagsResponse(parsedOutput, context);
|
|
340
336
|
default:
|
|
341
337
|
const parsedBody = parsedOutput.body;
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
$metadata,
|
|
338
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
339
|
+
output,
|
|
340
|
+
parsedBody,
|
|
341
|
+
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
342
|
+
errorCode,
|
|
348
343
|
});
|
|
349
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
350
344
|
}
|
|
351
345
|
};
|
|
352
346
|
const deserializeAws_json1_0DeleteActivityCommand = async (output, context) => {
|
|
@@ -368,7 +362,6 @@ const deserializeAws_json1_0DeleteActivityCommandError = async (output, context)
|
|
|
368
362
|
...output,
|
|
369
363
|
body: await parseBody(output.body, context),
|
|
370
364
|
};
|
|
371
|
-
let response;
|
|
372
365
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
373
366
|
switch (errorCode) {
|
|
374
367
|
case "InvalidArn":
|
|
@@ -376,14 +369,12 @@ const deserializeAws_json1_0DeleteActivityCommandError = async (output, context)
|
|
|
376
369
|
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
377
370
|
default:
|
|
378
371
|
const parsedBody = parsedOutput.body;
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
$metadata,
|
|
372
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
373
|
+
output,
|
|
374
|
+
parsedBody,
|
|
375
|
+
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
376
|
+
errorCode,
|
|
385
377
|
});
|
|
386
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
387
378
|
}
|
|
388
379
|
};
|
|
389
380
|
const deserializeAws_json1_0DeleteStateMachineCommand = async (output, context) => {
|
|
@@ -405,7 +396,6 @@ const deserializeAws_json1_0DeleteStateMachineCommandError = async (output, cont
|
|
|
405
396
|
...output,
|
|
406
397
|
body: await parseBody(output.body, context),
|
|
407
398
|
};
|
|
408
|
-
let response;
|
|
409
399
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
410
400
|
switch (errorCode) {
|
|
411
401
|
case "InvalidArn":
|
|
@@ -413,14 +403,12 @@ const deserializeAws_json1_0DeleteStateMachineCommandError = async (output, cont
|
|
|
413
403
|
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
414
404
|
default:
|
|
415
405
|
const parsedBody = parsedOutput.body;
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
$metadata,
|
|
406
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
407
|
+
output,
|
|
408
|
+
parsedBody,
|
|
409
|
+
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
410
|
+
errorCode,
|
|
422
411
|
});
|
|
423
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
424
412
|
}
|
|
425
413
|
};
|
|
426
414
|
const deserializeAws_json1_0DescribeActivityCommand = async (output, context) => {
|
|
@@ -442,7 +430,6 @@ const deserializeAws_json1_0DescribeActivityCommandError = async (output, contex
|
|
|
442
430
|
...output,
|
|
443
431
|
body: await parseBody(output.body, context),
|
|
444
432
|
};
|
|
445
|
-
let response;
|
|
446
433
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
447
434
|
switch (errorCode) {
|
|
448
435
|
case "ActivityDoesNotExist":
|
|
@@ -453,14 +440,12 @@ const deserializeAws_json1_0DescribeActivityCommandError = async (output, contex
|
|
|
453
440
|
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
454
441
|
default:
|
|
455
442
|
const parsedBody = parsedOutput.body;
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
$metadata,
|
|
443
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
444
|
+
output,
|
|
445
|
+
parsedBody,
|
|
446
|
+
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
447
|
+
errorCode,
|
|
462
448
|
});
|
|
463
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
464
449
|
}
|
|
465
450
|
};
|
|
466
451
|
const deserializeAws_json1_0DescribeExecutionCommand = async (output, context) => {
|
|
@@ -482,7 +467,6 @@ const deserializeAws_json1_0DescribeExecutionCommandError = async (output, conte
|
|
|
482
467
|
...output,
|
|
483
468
|
body: await parseBody(output.body, context),
|
|
484
469
|
};
|
|
485
|
-
let response;
|
|
486
470
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
487
471
|
switch (errorCode) {
|
|
488
472
|
case "ExecutionDoesNotExist":
|
|
@@ -493,14 +477,12 @@ const deserializeAws_json1_0DescribeExecutionCommandError = async (output, conte
|
|
|
493
477
|
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
494
478
|
default:
|
|
495
479
|
const parsedBody = parsedOutput.body;
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
$metadata,
|
|
480
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
481
|
+
output,
|
|
482
|
+
parsedBody,
|
|
483
|
+
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
484
|
+
errorCode,
|
|
502
485
|
});
|
|
503
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
504
486
|
}
|
|
505
487
|
};
|
|
506
488
|
const deserializeAws_json1_0DescribeStateMachineCommand = async (output, context) => {
|
|
@@ -522,7 +504,6 @@ const deserializeAws_json1_0DescribeStateMachineCommandError = async (output, co
|
|
|
522
504
|
...output,
|
|
523
505
|
body: await parseBody(output.body, context),
|
|
524
506
|
};
|
|
525
|
-
let response;
|
|
526
507
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
527
508
|
switch (errorCode) {
|
|
528
509
|
case "InvalidArn":
|
|
@@ -533,14 +514,12 @@ const deserializeAws_json1_0DescribeStateMachineCommandError = async (output, co
|
|
|
533
514
|
throw await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context);
|
|
534
515
|
default:
|
|
535
516
|
const parsedBody = parsedOutput.body;
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
$metadata,
|
|
517
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
518
|
+
output,
|
|
519
|
+
parsedBody,
|
|
520
|
+
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
521
|
+
errorCode,
|
|
542
522
|
});
|
|
543
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
544
523
|
}
|
|
545
524
|
};
|
|
546
525
|
const deserializeAws_json1_0DescribeStateMachineForExecutionCommand = async (output, context) => {
|
|
@@ -562,7 +541,6 @@ const deserializeAws_json1_0DescribeStateMachineForExecutionCommandError = async
|
|
|
562
541
|
...output,
|
|
563
542
|
body: await parseBody(output.body, context),
|
|
564
543
|
};
|
|
565
|
-
let response;
|
|
566
544
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
567
545
|
switch (errorCode) {
|
|
568
546
|
case "ExecutionDoesNotExist":
|
|
@@ -573,14 +551,12 @@ const deserializeAws_json1_0DescribeStateMachineForExecutionCommandError = async
|
|
|
573
551
|
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
574
552
|
default:
|
|
575
553
|
const parsedBody = parsedOutput.body;
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
$metadata,
|
|
554
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
555
|
+
output,
|
|
556
|
+
parsedBody,
|
|
557
|
+
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
558
|
+
errorCode,
|
|
582
559
|
});
|
|
583
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
584
560
|
}
|
|
585
561
|
};
|
|
586
562
|
const deserializeAws_json1_0GetActivityTaskCommand = async (output, context) => {
|
|
@@ -602,7 +578,6 @@ const deserializeAws_json1_0GetActivityTaskCommandError = async (output, context
|
|
|
602
578
|
...output,
|
|
603
579
|
body: await parseBody(output.body, context),
|
|
604
580
|
};
|
|
605
|
-
let response;
|
|
606
581
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
607
582
|
switch (errorCode) {
|
|
608
583
|
case "ActivityDoesNotExist":
|
|
@@ -616,14 +591,12 @@ const deserializeAws_json1_0GetActivityTaskCommandError = async (output, context
|
|
|
616
591
|
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
617
592
|
default:
|
|
618
593
|
const parsedBody = parsedOutput.body;
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
$metadata,
|
|
594
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
595
|
+
output,
|
|
596
|
+
parsedBody,
|
|
597
|
+
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
598
|
+
errorCode,
|
|
625
599
|
});
|
|
626
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
627
600
|
}
|
|
628
601
|
};
|
|
629
602
|
const deserializeAws_json1_0GetExecutionHistoryCommand = async (output, context) => {
|
|
@@ -645,7 +618,6 @@ const deserializeAws_json1_0GetExecutionHistoryCommandError = async (output, con
|
|
|
645
618
|
...output,
|
|
646
619
|
body: await parseBody(output.body, context),
|
|
647
620
|
};
|
|
648
|
-
let response;
|
|
649
621
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
650
622
|
switch (errorCode) {
|
|
651
623
|
case "ExecutionDoesNotExist":
|
|
@@ -659,14 +631,12 @@ const deserializeAws_json1_0GetExecutionHistoryCommandError = async (output, con
|
|
|
659
631
|
throw await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context);
|
|
660
632
|
default:
|
|
661
633
|
const parsedBody = parsedOutput.body;
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
$metadata,
|
|
634
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
635
|
+
output,
|
|
636
|
+
parsedBody,
|
|
637
|
+
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
638
|
+
errorCode,
|
|
668
639
|
});
|
|
669
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
670
640
|
}
|
|
671
641
|
};
|
|
672
642
|
const deserializeAws_json1_0ListActivitiesCommand = async (output, context) => {
|
|
@@ -688,7 +658,6 @@ const deserializeAws_json1_0ListActivitiesCommandError = async (output, context)
|
|
|
688
658
|
...output,
|
|
689
659
|
body: await parseBody(output.body, context),
|
|
690
660
|
};
|
|
691
|
-
let response;
|
|
692
661
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
693
662
|
switch (errorCode) {
|
|
694
663
|
case "InvalidToken":
|
|
@@ -696,14 +665,12 @@ const deserializeAws_json1_0ListActivitiesCommandError = async (output, context)
|
|
|
696
665
|
throw await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context);
|
|
697
666
|
default:
|
|
698
667
|
const parsedBody = parsedOutput.body;
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
$metadata,
|
|
668
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
669
|
+
output,
|
|
670
|
+
parsedBody,
|
|
671
|
+
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
672
|
+
errorCode,
|
|
705
673
|
});
|
|
706
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
707
674
|
}
|
|
708
675
|
};
|
|
709
676
|
const deserializeAws_json1_0ListExecutionsCommand = async (output, context) => {
|
|
@@ -725,7 +692,6 @@ const deserializeAws_json1_0ListExecutionsCommandError = async (output, context)
|
|
|
725
692
|
...output,
|
|
726
693
|
body: await parseBody(output.body, context),
|
|
727
694
|
};
|
|
728
|
-
let response;
|
|
729
695
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
730
696
|
switch (errorCode) {
|
|
731
697
|
case "InvalidArn":
|
|
@@ -742,14 +708,12 @@ const deserializeAws_json1_0ListExecutionsCommandError = async (output, context)
|
|
|
742
708
|
throw await deserializeAws_json1_0StateMachineTypeNotSupportedResponse(parsedOutput, context);
|
|
743
709
|
default:
|
|
744
710
|
const parsedBody = parsedOutput.body;
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
$metadata,
|
|
711
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
712
|
+
output,
|
|
713
|
+
parsedBody,
|
|
714
|
+
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
715
|
+
errorCode,
|
|
751
716
|
});
|
|
752
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
753
717
|
}
|
|
754
718
|
};
|
|
755
719
|
const deserializeAws_json1_0ListStateMachinesCommand = async (output, context) => {
|
|
@@ -771,7 +735,6 @@ const deserializeAws_json1_0ListStateMachinesCommandError = async (output, conte
|
|
|
771
735
|
...output,
|
|
772
736
|
body: await parseBody(output.body, context),
|
|
773
737
|
};
|
|
774
|
-
let response;
|
|
775
738
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
776
739
|
switch (errorCode) {
|
|
777
740
|
case "InvalidToken":
|
|
@@ -779,14 +742,12 @@ const deserializeAws_json1_0ListStateMachinesCommandError = async (output, conte
|
|
|
779
742
|
throw await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context);
|
|
780
743
|
default:
|
|
781
744
|
const parsedBody = parsedOutput.body;
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
$metadata,
|
|
745
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
746
|
+
output,
|
|
747
|
+
parsedBody,
|
|
748
|
+
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
749
|
+
errorCode,
|
|
788
750
|
});
|
|
789
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
790
751
|
}
|
|
791
752
|
};
|
|
792
753
|
const deserializeAws_json1_0ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -808,7 +769,6 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
808
769
|
...output,
|
|
809
770
|
body: await parseBody(output.body, context),
|
|
810
771
|
};
|
|
811
|
-
let response;
|
|
812
772
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
813
773
|
switch (errorCode) {
|
|
814
774
|
case "InvalidArn":
|
|
@@ -819,14 +779,12 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
819
779
|
throw await deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context);
|
|
820
780
|
default:
|
|
821
781
|
const parsedBody = parsedOutput.body;
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
$metadata,
|
|
782
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
783
|
+
output,
|
|
784
|
+
parsedBody,
|
|
785
|
+
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
786
|
+
errorCode,
|
|
828
787
|
});
|
|
829
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
830
788
|
}
|
|
831
789
|
};
|
|
832
790
|
const deserializeAws_json1_0SendTaskFailureCommand = async (output, context) => {
|
|
@@ -848,7 +806,6 @@ const deserializeAws_json1_0SendTaskFailureCommandError = async (output, context
|
|
|
848
806
|
...output,
|
|
849
807
|
body: await parseBody(output.body, context),
|
|
850
808
|
};
|
|
851
|
-
let response;
|
|
852
809
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
853
810
|
switch (errorCode) {
|
|
854
811
|
case "InvalidToken":
|
|
@@ -862,14 +819,12 @@ const deserializeAws_json1_0SendTaskFailureCommandError = async (output, context
|
|
|
862
819
|
throw await deserializeAws_json1_0TaskTimedOutResponse(parsedOutput, context);
|
|
863
820
|
default:
|
|
864
821
|
const parsedBody = parsedOutput.body;
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
$metadata,
|
|
822
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
823
|
+
output,
|
|
824
|
+
parsedBody,
|
|
825
|
+
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
826
|
+
errorCode,
|
|
871
827
|
});
|
|
872
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
873
828
|
}
|
|
874
829
|
};
|
|
875
830
|
const deserializeAws_json1_0SendTaskHeartbeatCommand = async (output, context) => {
|
|
@@ -891,7 +846,6 @@ const deserializeAws_json1_0SendTaskHeartbeatCommandError = async (output, conte
|
|
|
891
846
|
...output,
|
|
892
847
|
body: await parseBody(output.body, context),
|
|
893
848
|
};
|
|
894
|
-
let response;
|
|
895
849
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
896
850
|
switch (errorCode) {
|
|
897
851
|
case "InvalidToken":
|
|
@@ -905,14 +859,12 @@ const deserializeAws_json1_0SendTaskHeartbeatCommandError = async (output, conte
|
|
|
905
859
|
throw await deserializeAws_json1_0TaskTimedOutResponse(parsedOutput, context);
|
|
906
860
|
default:
|
|
907
861
|
const parsedBody = parsedOutput.body;
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
$metadata,
|
|
862
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
863
|
+
output,
|
|
864
|
+
parsedBody,
|
|
865
|
+
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
866
|
+
errorCode,
|
|
914
867
|
});
|
|
915
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
916
868
|
}
|
|
917
869
|
};
|
|
918
870
|
const deserializeAws_json1_0SendTaskSuccessCommand = async (output, context) => {
|
|
@@ -934,7 +886,6 @@ const deserializeAws_json1_0SendTaskSuccessCommandError = async (output, context
|
|
|
934
886
|
...output,
|
|
935
887
|
body: await parseBody(output.body, context),
|
|
936
888
|
};
|
|
937
|
-
let response;
|
|
938
889
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
939
890
|
switch (errorCode) {
|
|
940
891
|
case "InvalidOutput":
|
|
@@ -951,14 +902,12 @@ const deserializeAws_json1_0SendTaskSuccessCommandError = async (output, context
|
|
|
951
902
|
throw await deserializeAws_json1_0TaskTimedOutResponse(parsedOutput, context);
|
|
952
903
|
default:
|
|
953
904
|
const parsedBody = parsedOutput.body;
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
$metadata,
|
|
905
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
906
|
+
output,
|
|
907
|
+
parsedBody,
|
|
908
|
+
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
909
|
+
errorCode,
|
|
960
910
|
});
|
|
961
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
962
911
|
}
|
|
963
912
|
};
|
|
964
913
|
const deserializeAws_json1_0StartExecutionCommand = async (output, context) => {
|
|
@@ -980,7 +929,6 @@ const deserializeAws_json1_0StartExecutionCommandError = async (output, context)
|
|
|
980
929
|
...output,
|
|
981
930
|
body: await parseBody(output.body, context),
|
|
982
931
|
};
|
|
983
|
-
let response;
|
|
984
932
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
985
933
|
switch (errorCode) {
|
|
986
934
|
case "ExecutionAlreadyExists":
|
|
@@ -1006,14 +954,12 @@ const deserializeAws_json1_0StartExecutionCommandError = async (output, context)
|
|
|
1006
954
|
throw await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context);
|
|
1007
955
|
default:
|
|
1008
956
|
const parsedBody = parsedOutput.body;
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
$metadata,
|
|
957
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
958
|
+
output,
|
|
959
|
+
parsedBody,
|
|
960
|
+
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
961
|
+
errorCode,
|
|
1015
962
|
});
|
|
1016
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1017
963
|
}
|
|
1018
964
|
};
|
|
1019
965
|
const deserializeAws_json1_0StartSyncExecutionCommand = async (output, context) => {
|
|
@@ -1035,7 +981,6 @@ const deserializeAws_json1_0StartSyncExecutionCommandError = async (output, cont
|
|
|
1035
981
|
...output,
|
|
1036
982
|
body: await parseBody(output.body, context),
|
|
1037
983
|
};
|
|
1038
|
-
let response;
|
|
1039
984
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1040
985
|
switch (errorCode) {
|
|
1041
986
|
case "InvalidArn":
|
|
@@ -1058,14 +1003,12 @@ const deserializeAws_json1_0StartSyncExecutionCommandError = async (output, cont
|
|
|
1058
1003
|
throw await deserializeAws_json1_0StateMachineTypeNotSupportedResponse(parsedOutput, context);
|
|
1059
1004
|
default:
|
|
1060
1005
|
const parsedBody = parsedOutput.body;
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
$metadata,
|
|
1006
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1007
|
+
output,
|
|
1008
|
+
parsedBody,
|
|
1009
|
+
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
1010
|
+
errorCode,
|
|
1067
1011
|
});
|
|
1068
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1069
1012
|
}
|
|
1070
1013
|
};
|
|
1071
1014
|
const deserializeAws_json1_0StopExecutionCommand = async (output, context) => {
|
|
@@ -1087,7 +1030,6 @@ const deserializeAws_json1_0StopExecutionCommandError = async (output, context)
|
|
|
1087
1030
|
...output,
|
|
1088
1031
|
body: await parseBody(output.body, context),
|
|
1089
1032
|
};
|
|
1090
|
-
let response;
|
|
1091
1033
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1092
1034
|
switch (errorCode) {
|
|
1093
1035
|
case "ExecutionDoesNotExist":
|
|
@@ -1098,14 +1040,12 @@ const deserializeAws_json1_0StopExecutionCommandError = async (output, context)
|
|
|
1098
1040
|
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
1099
1041
|
default:
|
|
1100
1042
|
const parsedBody = parsedOutput.body;
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
$metadata,
|
|
1043
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1044
|
+
output,
|
|
1045
|
+
parsedBody,
|
|
1046
|
+
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
1047
|
+
errorCode,
|
|
1107
1048
|
});
|
|
1108
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1109
1049
|
}
|
|
1110
1050
|
};
|
|
1111
1051
|
const deserializeAws_json1_0TagResourceCommand = async (output, context) => {
|
|
@@ -1127,7 +1067,6 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1127
1067
|
...output,
|
|
1128
1068
|
body: await parseBody(output.body, context),
|
|
1129
1069
|
};
|
|
1130
|
-
let response;
|
|
1131
1070
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1132
1071
|
switch (errorCode) {
|
|
1133
1072
|
case "InvalidArn":
|
|
@@ -1141,14 +1080,12 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1141
1080
|
throw await deserializeAws_json1_0TooManyTagsResponse(parsedOutput, context);
|
|
1142
1081
|
default:
|
|
1143
1082
|
const parsedBody = parsedOutput.body;
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
$metadata,
|
|
1083
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1084
|
+
output,
|
|
1085
|
+
parsedBody,
|
|
1086
|
+
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
1087
|
+
errorCode,
|
|
1150
1088
|
});
|
|
1151
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1152
1089
|
}
|
|
1153
1090
|
};
|
|
1154
1091
|
const deserializeAws_json1_0UntagResourceCommand = async (output, context) => {
|
|
@@ -1170,7 +1107,6 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1170
1107
|
...output,
|
|
1171
1108
|
body: await parseBody(output.body, context),
|
|
1172
1109
|
};
|
|
1173
|
-
let response;
|
|
1174
1110
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1175
1111
|
switch (errorCode) {
|
|
1176
1112
|
case "InvalidArn":
|
|
@@ -1181,14 +1117,12 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1181
1117
|
throw await deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context);
|
|
1182
1118
|
default:
|
|
1183
1119
|
const parsedBody = parsedOutput.body;
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
$metadata,
|
|
1120
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1121
|
+
output,
|
|
1122
|
+
parsedBody,
|
|
1123
|
+
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
1124
|
+
errorCode,
|
|
1190
1125
|
});
|
|
1191
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1192
1126
|
}
|
|
1193
1127
|
};
|
|
1194
1128
|
const deserializeAws_json1_0UpdateStateMachineCommand = async (output, context) => {
|
|
@@ -1210,7 +1144,6 @@ const deserializeAws_json1_0UpdateStateMachineCommandError = async (output, cont
|
|
|
1210
1144
|
...output,
|
|
1211
1145
|
body: await parseBody(output.body, context),
|
|
1212
1146
|
};
|
|
1213
|
-
let response;
|
|
1214
1147
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1215
1148
|
switch (errorCode) {
|
|
1216
1149
|
case "InvalidArn":
|
|
@@ -1236,14 +1169,12 @@ const deserializeAws_json1_0UpdateStateMachineCommandError = async (output, cont
|
|
|
1236
1169
|
throw await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context);
|
|
1237
1170
|
default:
|
|
1238
1171
|
const parsedBody = parsedOutput.body;
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
$metadata,
|
|
1172
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1173
|
+
output,
|
|
1174
|
+
parsedBody,
|
|
1175
|
+
exceptionCtor: SFNServiceException_1.SFNServiceException,
|
|
1176
|
+
errorCode,
|
|
1245
1177
|
});
|
|
1246
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1247
1178
|
}
|
|
1248
1179
|
};
|
|
1249
1180
|
const deserializeAws_json1_0ActivityDoesNotExistResponse = async (parsedOutput, context) => {
|
|
@@ -1569,9 +1500,6 @@ const serializeAws_json1_0LogDestinationList = (input, context) => {
|
|
|
1569
1500
|
return input
|
|
1570
1501
|
.filter((e) => e != null)
|
|
1571
1502
|
.map((entry) => {
|
|
1572
|
-
if (entry === null) {
|
|
1573
|
-
return null;
|
|
1574
|
-
}
|
|
1575
1503
|
return serializeAws_json1_0LogDestination(entry, context);
|
|
1576
1504
|
});
|
|
1577
1505
|
};
|
|
@@ -1635,9 +1563,6 @@ const serializeAws_json1_0TagKeyList = (input, context) => {
|
|
|
1635
1563
|
return input
|
|
1636
1564
|
.filter((e) => e != null)
|
|
1637
1565
|
.map((entry) => {
|
|
1638
|
-
if (entry === null) {
|
|
1639
|
-
return null;
|
|
1640
|
-
}
|
|
1641
1566
|
return entry;
|
|
1642
1567
|
});
|
|
1643
1568
|
};
|
|
@@ -1645,9 +1570,6 @@ const serializeAws_json1_0TagList = (input, context) => {
|
|
|
1645
1570
|
return input
|
|
1646
1571
|
.filter((e) => e != null)
|
|
1647
1572
|
.map((entry) => {
|
|
1648
|
-
if (entry === null) {
|
|
1649
|
-
return null;
|
|
1650
|
-
}
|
|
1651
1573
|
return serializeAws_json1_0Tag(entry, context);
|
|
1652
1574
|
});
|
|
1653
1575
|
};
|