@aws-sdk/client-swf 3.141.0 → 3.150.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 +27 -0
- package/dist-cjs/protocols/Aws_json1_0.js +185 -308
- package/dist-es/protocols/Aws_json1_0.js +297 -309
- package/package.json +11 -6
|
@@ -395,7 +395,6 @@ const deserializeAws_json1_0CountClosedWorkflowExecutionsCommandError = async (o
|
|
|
395
395
|
...output,
|
|
396
396
|
body: await parseBody(output.body, context),
|
|
397
397
|
};
|
|
398
|
-
let response;
|
|
399
398
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
400
399
|
switch (errorCode) {
|
|
401
400
|
case "OperationNotPermittedFault":
|
|
@@ -406,14 +405,12 @@ const deserializeAws_json1_0CountClosedWorkflowExecutionsCommandError = async (o
|
|
|
406
405
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
407
406
|
default:
|
|
408
407
|
const parsedBody = parsedOutput.body;
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
$metadata,
|
|
408
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
409
|
+
output,
|
|
410
|
+
parsedBody,
|
|
411
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
412
|
+
errorCode,
|
|
415
413
|
});
|
|
416
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
417
414
|
}
|
|
418
415
|
};
|
|
419
416
|
const deserializeAws_json1_0CountOpenWorkflowExecutionsCommand = async (output, context) => {
|
|
@@ -435,7 +432,6 @@ const deserializeAws_json1_0CountOpenWorkflowExecutionsCommandError = async (out
|
|
|
435
432
|
...output,
|
|
436
433
|
body: await parseBody(output.body, context),
|
|
437
434
|
};
|
|
438
|
-
let response;
|
|
439
435
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
440
436
|
switch (errorCode) {
|
|
441
437
|
case "OperationNotPermittedFault":
|
|
@@ -446,14 +442,12 @@ const deserializeAws_json1_0CountOpenWorkflowExecutionsCommandError = async (out
|
|
|
446
442
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
447
443
|
default:
|
|
448
444
|
const parsedBody = parsedOutput.body;
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
$metadata,
|
|
445
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
446
|
+
output,
|
|
447
|
+
parsedBody,
|
|
448
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
449
|
+
errorCode,
|
|
455
450
|
});
|
|
456
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
457
451
|
}
|
|
458
452
|
};
|
|
459
453
|
const deserializeAws_json1_0CountPendingActivityTasksCommand = async (output, context) => {
|
|
@@ -475,7 +469,6 @@ const deserializeAws_json1_0CountPendingActivityTasksCommandError = async (outpu
|
|
|
475
469
|
...output,
|
|
476
470
|
body: await parseBody(output.body, context),
|
|
477
471
|
};
|
|
478
|
-
let response;
|
|
479
472
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
480
473
|
switch (errorCode) {
|
|
481
474
|
case "OperationNotPermittedFault":
|
|
@@ -486,14 +479,12 @@ const deserializeAws_json1_0CountPendingActivityTasksCommandError = async (outpu
|
|
|
486
479
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
487
480
|
default:
|
|
488
481
|
const parsedBody = parsedOutput.body;
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
$metadata,
|
|
482
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
483
|
+
output,
|
|
484
|
+
parsedBody,
|
|
485
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
486
|
+
errorCode,
|
|
495
487
|
});
|
|
496
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
497
488
|
}
|
|
498
489
|
};
|
|
499
490
|
const deserializeAws_json1_0CountPendingDecisionTasksCommand = async (output, context) => {
|
|
@@ -515,7 +506,6 @@ const deserializeAws_json1_0CountPendingDecisionTasksCommandError = async (outpu
|
|
|
515
506
|
...output,
|
|
516
507
|
body: await parseBody(output.body, context),
|
|
517
508
|
};
|
|
518
|
-
let response;
|
|
519
509
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
520
510
|
switch (errorCode) {
|
|
521
511
|
case "OperationNotPermittedFault":
|
|
@@ -526,14 +516,12 @@ const deserializeAws_json1_0CountPendingDecisionTasksCommandError = async (outpu
|
|
|
526
516
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
527
517
|
default:
|
|
528
518
|
const parsedBody = parsedOutput.body;
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
$metadata,
|
|
519
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
520
|
+
output,
|
|
521
|
+
parsedBody,
|
|
522
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
523
|
+
errorCode,
|
|
535
524
|
});
|
|
536
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
537
525
|
}
|
|
538
526
|
};
|
|
539
527
|
const deserializeAws_json1_0DeprecateActivityTypeCommand = async (output, context) => {
|
|
@@ -552,7 +540,6 @@ const deserializeAws_json1_0DeprecateActivityTypeCommandError = async (output, c
|
|
|
552
540
|
...output,
|
|
553
541
|
body: await parseBody(output.body, context),
|
|
554
542
|
};
|
|
555
|
-
let response;
|
|
556
543
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
557
544
|
switch (errorCode) {
|
|
558
545
|
case "OperationNotPermittedFault":
|
|
@@ -566,14 +553,12 @@ const deserializeAws_json1_0DeprecateActivityTypeCommandError = async (output, c
|
|
|
566
553
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
567
554
|
default:
|
|
568
555
|
const parsedBody = parsedOutput.body;
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
$metadata,
|
|
556
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
557
|
+
output,
|
|
558
|
+
parsedBody,
|
|
559
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
560
|
+
errorCode,
|
|
575
561
|
});
|
|
576
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
577
562
|
}
|
|
578
563
|
};
|
|
579
564
|
const deserializeAws_json1_0DeprecateDomainCommand = async (output, context) => {
|
|
@@ -592,7 +577,6 @@ const deserializeAws_json1_0DeprecateDomainCommandError = async (output, context
|
|
|
592
577
|
...output,
|
|
593
578
|
body: await parseBody(output.body, context),
|
|
594
579
|
};
|
|
595
|
-
let response;
|
|
596
580
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
597
581
|
switch (errorCode) {
|
|
598
582
|
case "DomainDeprecatedFault":
|
|
@@ -606,14 +590,12 @@ const deserializeAws_json1_0DeprecateDomainCommandError = async (output, context
|
|
|
606
590
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
607
591
|
default:
|
|
608
592
|
const parsedBody = parsedOutput.body;
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
$metadata,
|
|
593
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
594
|
+
output,
|
|
595
|
+
parsedBody,
|
|
596
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
597
|
+
errorCode,
|
|
615
598
|
});
|
|
616
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
617
599
|
}
|
|
618
600
|
};
|
|
619
601
|
const deserializeAws_json1_0DeprecateWorkflowTypeCommand = async (output, context) => {
|
|
@@ -632,7 +614,6 @@ const deserializeAws_json1_0DeprecateWorkflowTypeCommandError = async (output, c
|
|
|
632
614
|
...output,
|
|
633
615
|
body: await parseBody(output.body, context),
|
|
634
616
|
};
|
|
635
|
-
let response;
|
|
636
617
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
637
618
|
switch (errorCode) {
|
|
638
619
|
case "OperationNotPermittedFault":
|
|
@@ -646,14 +627,12 @@ const deserializeAws_json1_0DeprecateWorkflowTypeCommandError = async (output, c
|
|
|
646
627
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
647
628
|
default:
|
|
648
629
|
const parsedBody = parsedOutput.body;
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
$metadata,
|
|
630
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
631
|
+
output,
|
|
632
|
+
parsedBody,
|
|
633
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
634
|
+
errorCode,
|
|
655
635
|
});
|
|
656
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
657
636
|
}
|
|
658
637
|
};
|
|
659
638
|
const deserializeAws_json1_0DescribeActivityTypeCommand = async (output, context) => {
|
|
@@ -675,7 +654,6 @@ const deserializeAws_json1_0DescribeActivityTypeCommandError = async (output, co
|
|
|
675
654
|
...output,
|
|
676
655
|
body: await parseBody(output.body, context),
|
|
677
656
|
};
|
|
678
|
-
let response;
|
|
679
657
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
680
658
|
switch (errorCode) {
|
|
681
659
|
case "OperationNotPermittedFault":
|
|
@@ -686,14 +664,12 @@ const deserializeAws_json1_0DescribeActivityTypeCommandError = async (output, co
|
|
|
686
664
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
687
665
|
default:
|
|
688
666
|
const parsedBody = parsedOutput.body;
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
$metadata,
|
|
667
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
668
|
+
output,
|
|
669
|
+
parsedBody,
|
|
670
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
671
|
+
errorCode,
|
|
695
672
|
});
|
|
696
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
697
673
|
}
|
|
698
674
|
};
|
|
699
675
|
const deserializeAws_json1_0DescribeDomainCommand = async (output, context) => {
|
|
@@ -715,7 +691,6 @@ const deserializeAws_json1_0DescribeDomainCommandError = async (output, context)
|
|
|
715
691
|
...output,
|
|
716
692
|
body: await parseBody(output.body, context),
|
|
717
693
|
};
|
|
718
|
-
let response;
|
|
719
694
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
720
695
|
switch (errorCode) {
|
|
721
696
|
case "OperationNotPermittedFault":
|
|
@@ -726,14 +701,12 @@ const deserializeAws_json1_0DescribeDomainCommandError = async (output, context)
|
|
|
726
701
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
727
702
|
default:
|
|
728
703
|
const parsedBody = parsedOutput.body;
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
$metadata,
|
|
704
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
705
|
+
output,
|
|
706
|
+
parsedBody,
|
|
707
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
708
|
+
errorCode,
|
|
735
709
|
});
|
|
736
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
737
710
|
}
|
|
738
711
|
};
|
|
739
712
|
const deserializeAws_json1_0DescribeWorkflowExecutionCommand = async (output, context) => {
|
|
@@ -755,7 +728,6 @@ const deserializeAws_json1_0DescribeWorkflowExecutionCommandError = async (outpu
|
|
|
755
728
|
...output,
|
|
756
729
|
body: await parseBody(output.body, context),
|
|
757
730
|
};
|
|
758
|
-
let response;
|
|
759
731
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
760
732
|
switch (errorCode) {
|
|
761
733
|
case "OperationNotPermittedFault":
|
|
@@ -766,14 +738,12 @@ const deserializeAws_json1_0DescribeWorkflowExecutionCommandError = async (outpu
|
|
|
766
738
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
767
739
|
default:
|
|
768
740
|
const parsedBody = parsedOutput.body;
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
$metadata,
|
|
741
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
742
|
+
output,
|
|
743
|
+
parsedBody,
|
|
744
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
745
|
+
errorCode,
|
|
775
746
|
});
|
|
776
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
777
747
|
}
|
|
778
748
|
};
|
|
779
749
|
const deserializeAws_json1_0DescribeWorkflowTypeCommand = async (output, context) => {
|
|
@@ -795,7 +765,6 @@ const deserializeAws_json1_0DescribeWorkflowTypeCommandError = async (output, co
|
|
|
795
765
|
...output,
|
|
796
766
|
body: await parseBody(output.body, context),
|
|
797
767
|
};
|
|
798
|
-
let response;
|
|
799
768
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
800
769
|
switch (errorCode) {
|
|
801
770
|
case "OperationNotPermittedFault":
|
|
@@ -806,14 +775,12 @@ const deserializeAws_json1_0DescribeWorkflowTypeCommandError = async (output, co
|
|
|
806
775
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
807
776
|
default:
|
|
808
777
|
const parsedBody = parsedOutput.body;
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
$metadata,
|
|
778
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
779
|
+
output,
|
|
780
|
+
parsedBody,
|
|
781
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
782
|
+
errorCode,
|
|
815
783
|
});
|
|
816
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
817
784
|
}
|
|
818
785
|
};
|
|
819
786
|
const deserializeAws_json1_0GetWorkflowExecutionHistoryCommand = async (output, context) => {
|
|
@@ -835,7 +802,6 @@ const deserializeAws_json1_0GetWorkflowExecutionHistoryCommandError = async (out
|
|
|
835
802
|
...output,
|
|
836
803
|
body: await parseBody(output.body, context),
|
|
837
804
|
};
|
|
838
|
-
let response;
|
|
839
805
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
840
806
|
switch (errorCode) {
|
|
841
807
|
case "OperationNotPermittedFault":
|
|
@@ -846,14 +812,12 @@ const deserializeAws_json1_0GetWorkflowExecutionHistoryCommandError = async (out
|
|
|
846
812
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
847
813
|
default:
|
|
848
814
|
const parsedBody = parsedOutput.body;
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
$metadata,
|
|
815
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
816
|
+
output,
|
|
817
|
+
parsedBody,
|
|
818
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
819
|
+
errorCode,
|
|
855
820
|
});
|
|
856
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
857
821
|
}
|
|
858
822
|
};
|
|
859
823
|
const deserializeAws_json1_0ListActivityTypesCommand = async (output, context) => {
|
|
@@ -875,7 +839,6 @@ const deserializeAws_json1_0ListActivityTypesCommandError = async (output, conte
|
|
|
875
839
|
...output,
|
|
876
840
|
body: await parseBody(output.body, context),
|
|
877
841
|
};
|
|
878
|
-
let response;
|
|
879
842
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
880
843
|
switch (errorCode) {
|
|
881
844
|
case "OperationNotPermittedFault":
|
|
@@ -886,14 +849,12 @@ const deserializeAws_json1_0ListActivityTypesCommandError = async (output, conte
|
|
|
886
849
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
887
850
|
default:
|
|
888
851
|
const parsedBody = parsedOutput.body;
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
$metadata,
|
|
852
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
853
|
+
output,
|
|
854
|
+
parsedBody,
|
|
855
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
856
|
+
errorCode,
|
|
895
857
|
});
|
|
896
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
897
858
|
}
|
|
898
859
|
};
|
|
899
860
|
const deserializeAws_json1_0ListClosedWorkflowExecutionsCommand = async (output, context) => {
|
|
@@ -915,7 +876,6 @@ const deserializeAws_json1_0ListClosedWorkflowExecutionsCommandError = async (ou
|
|
|
915
876
|
...output,
|
|
916
877
|
body: await parseBody(output.body, context),
|
|
917
878
|
};
|
|
918
|
-
let response;
|
|
919
879
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
920
880
|
switch (errorCode) {
|
|
921
881
|
case "OperationNotPermittedFault":
|
|
@@ -926,14 +886,12 @@ const deserializeAws_json1_0ListClosedWorkflowExecutionsCommandError = async (ou
|
|
|
926
886
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
927
887
|
default:
|
|
928
888
|
const parsedBody = parsedOutput.body;
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
$metadata,
|
|
889
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
890
|
+
output,
|
|
891
|
+
parsedBody,
|
|
892
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
893
|
+
errorCode,
|
|
935
894
|
});
|
|
936
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
937
895
|
}
|
|
938
896
|
};
|
|
939
897
|
const deserializeAws_json1_0ListDomainsCommand = async (output, context) => {
|
|
@@ -955,7 +913,6 @@ const deserializeAws_json1_0ListDomainsCommandError = async (output, context) =>
|
|
|
955
913
|
...output,
|
|
956
914
|
body: await parseBody(output.body, context),
|
|
957
915
|
};
|
|
958
|
-
let response;
|
|
959
916
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
960
917
|
switch (errorCode) {
|
|
961
918
|
case "OperationNotPermittedFault":
|
|
@@ -963,14 +920,12 @@ const deserializeAws_json1_0ListDomainsCommandError = async (output, context) =>
|
|
|
963
920
|
throw await deserializeAws_json1_0OperationNotPermittedFaultResponse(parsedOutput, context);
|
|
964
921
|
default:
|
|
965
922
|
const parsedBody = parsedOutput.body;
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
$metadata,
|
|
923
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
924
|
+
output,
|
|
925
|
+
parsedBody,
|
|
926
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
927
|
+
errorCode,
|
|
972
928
|
});
|
|
973
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
974
929
|
}
|
|
975
930
|
};
|
|
976
931
|
const deserializeAws_json1_0ListOpenWorkflowExecutionsCommand = async (output, context) => {
|
|
@@ -992,7 +947,6 @@ const deserializeAws_json1_0ListOpenWorkflowExecutionsCommandError = async (outp
|
|
|
992
947
|
...output,
|
|
993
948
|
body: await parseBody(output.body, context),
|
|
994
949
|
};
|
|
995
|
-
let response;
|
|
996
950
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
997
951
|
switch (errorCode) {
|
|
998
952
|
case "OperationNotPermittedFault":
|
|
@@ -1003,14 +957,12 @@ const deserializeAws_json1_0ListOpenWorkflowExecutionsCommandError = async (outp
|
|
|
1003
957
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
1004
958
|
default:
|
|
1005
959
|
const parsedBody = parsedOutput.body;
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
$metadata,
|
|
960
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
961
|
+
output,
|
|
962
|
+
parsedBody,
|
|
963
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
964
|
+
errorCode,
|
|
1012
965
|
});
|
|
1013
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1014
966
|
}
|
|
1015
967
|
};
|
|
1016
968
|
const deserializeAws_json1_0ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -1032,7 +984,6 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
1032
984
|
...output,
|
|
1033
985
|
body: await parseBody(output.body, context),
|
|
1034
986
|
};
|
|
1035
|
-
let response;
|
|
1036
987
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1037
988
|
switch (errorCode) {
|
|
1038
989
|
case "LimitExceededFault":
|
|
@@ -1046,14 +997,12 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
1046
997
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
1047
998
|
default:
|
|
1048
999
|
const parsedBody = parsedOutput.body;
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
$metadata,
|
|
1000
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1001
|
+
output,
|
|
1002
|
+
parsedBody,
|
|
1003
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1004
|
+
errorCode,
|
|
1055
1005
|
});
|
|
1056
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1057
1006
|
}
|
|
1058
1007
|
};
|
|
1059
1008
|
const deserializeAws_json1_0ListWorkflowTypesCommand = async (output, context) => {
|
|
@@ -1075,7 +1024,6 @@ const deserializeAws_json1_0ListWorkflowTypesCommandError = async (output, conte
|
|
|
1075
1024
|
...output,
|
|
1076
1025
|
body: await parseBody(output.body, context),
|
|
1077
1026
|
};
|
|
1078
|
-
let response;
|
|
1079
1027
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1080
1028
|
switch (errorCode) {
|
|
1081
1029
|
case "OperationNotPermittedFault":
|
|
@@ -1086,14 +1034,12 @@ const deserializeAws_json1_0ListWorkflowTypesCommandError = async (output, conte
|
|
|
1086
1034
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
1087
1035
|
default:
|
|
1088
1036
|
const parsedBody = parsedOutput.body;
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
$metadata,
|
|
1037
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1038
|
+
output,
|
|
1039
|
+
parsedBody,
|
|
1040
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1041
|
+
errorCode,
|
|
1095
1042
|
});
|
|
1096
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1097
1043
|
}
|
|
1098
1044
|
};
|
|
1099
1045
|
const deserializeAws_json1_0PollForActivityTaskCommand = async (output, context) => {
|
|
@@ -1115,7 +1061,6 @@ const deserializeAws_json1_0PollForActivityTaskCommandError = async (output, con
|
|
|
1115
1061
|
...output,
|
|
1116
1062
|
body: await parseBody(output.body, context),
|
|
1117
1063
|
};
|
|
1118
|
-
let response;
|
|
1119
1064
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1120
1065
|
switch (errorCode) {
|
|
1121
1066
|
case "LimitExceededFault":
|
|
@@ -1129,14 +1074,12 @@ const deserializeAws_json1_0PollForActivityTaskCommandError = async (output, con
|
|
|
1129
1074
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
1130
1075
|
default:
|
|
1131
1076
|
const parsedBody = parsedOutput.body;
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
$metadata,
|
|
1077
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1078
|
+
output,
|
|
1079
|
+
parsedBody,
|
|
1080
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1081
|
+
errorCode,
|
|
1138
1082
|
});
|
|
1139
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1140
1083
|
}
|
|
1141
1084
|
};
|
|
1142
1085
|
const deserializeAws_json1_0PollForDecisionTaskCommand = async (output, context) => {
|
|
@@ -1158,7 +1101,6 @@ const deserializeAws_json1_0PollForDecisionTaskCommandError = async (output, con
|
|
|
1158
1101
|
...output,
|
|
1159
1102
|
body: await parseBody(output.body, context),
|
|
1160
1103
|
};
|
|
1161
|
-
let response;
|
|
1162
1104
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1163
1105
|
switch (errorCode) {
|
|
1164
1106
|
case "LimitExceededFault":
|
|
@@ -1172,14 +1114,12 @@ const deserializeAws_json1_0PollForDecisionTaskCommandError = async (output, con
|
|
|
1172
1114
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
1173
1115
|
default:
|
|
1174
1116
|
const parsedBody = parsedOutput.body;
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
$metadata,
|
|
1117
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1118
|
+
output,
|
|
1119
|
+
parsedBody,
|
|
1120
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1121
|
+
errorCode,
|
|
1181
1122
|
});
|
|
1182
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1183
1123
|
}
|
|
1184
1124
|
};
|
|
1185
1125
|
const deserializeAws_json1_0RecordActivityTaskHeartbeatCommand = async (output, context) => {
|
|
@@ -1201,7 +1141,6 @@ const deserializeAws_json1_0RecordActivityTaskHeartbeatCommandError = async (out
|
|
|
1201
1141
|
...output,
|
|
1202
1142
|
body: await parseBody(output.body, context),
|
|
1203
1143
|
};
|
|
1204
|
-
let response;
|
|
1205
1144
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1206
1145
|
switch (errorCode) {
|
|
1207
1146
|
case "OperationNotPermittedFault":
|
|
@@ -1212,14 +1151,12 @@ const deserializeAws_json1_0RecordActivityTaskHeartbeatCommandError = async (out
|
|
|
1212
1151
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
1213
1152
|
default:
|
|
1214
1153
|
const parsedBody = parsedOutput.body;
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
$metadata,
|
|
1154
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1155
|
+
output,
|
|
1156
|
+
parsedBody,
|
|
1157
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1158
|
+
errorCode,
|
|
1221
1159
|
});
|
|
1222
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1223
1160
|
}
|
|
1224
1161
|
};
|
|
1225
1162
|
const deserializeAws_json1_0RegisterActivityTypeCommand = async (output, context) => {
|
|
@@ -1238,7 +1175,6 @@ const deserializeAws_json1_0RegisterActivityTypeCommandError = async (output, co
|
|
|
1238
1175
|
...output,
|
|
1239
1176
|
body: await parseBody(output.body, context),
|
|
1240
1177
|
};
|
|
1241
|
-
let response;
|
|
1242
1178
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1243
1179
|
switch (errorCode) {
|
|
1244
1180
|
case "LimitExceededFault":
|
|
@@ -1255,14 +1191,12 @@ const deserializeAws_json1_0RegisterActivityTypeCommandError = async (output, co
|
|
|
1255
1191
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
1256
1192
|
default:
|
|
1257
1193
|
const parsedBody = parsedOutput.body;
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
$metadata,
|
|
1194
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1195
|
+
output,
|
|
1196
|
+
parsedBody,
|
|
1197
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1198
|
+
errorCode,
|
|
1264
1199
|
});
|
|
1265
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1266
1200
|
}
|
|
1267
1201
|
};
|
|
1268
1202
|
const deserializeAws_json1_0RegisterDomainCommand = async (output, context) => {
|
|
@@ -1281,7 +1215,6 @@ const deserializeAws_json1_0RegisterDomainCommandError = async (output, context)
|
|
|
1281
1215
|
...output,
|
|
1282
1216
|
body: await parseBody(output.body, context),
|
|
1283
1217
|
};
|
|
1284
|
-
let response;
|
|
1285
1218
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1286
1219
|
switch (errorCode) {
|
|
1287
1220
|
case "DomainAlreadyExistsFault":
|
|
@@ -1298,14 +1231,12 @@ const deserializeAws_json1_0RegisterDomainCommandError = async (output, context)
|
|
|
1298
1231
|
throw await deserializeAws_json1_0TooManyTagsFaultResponse(parsedOutput, context);
|
|
1299
1232
|
default:
|
|
1300
1233
|
const parsedBody = parsedOutput.body;
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
$metadata,
|
|
1234
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1235
|
+
output,
|
|
1236
|
+
parsedBody,
|
|
1237
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1238
|
+
errorCode,
|
|
1307
1239
|
});
|
|
1308
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1309
1240
|
}
|
|
1310
1241
|
};
|
|
1311
1242
|
const deserializeAws_json1_0RegisterWorkflowTypeCommand = async (output, context) => {
|
|
@@ -1324,7 +1255,6 @@ const deserializeAws_json1_0RegisterWorkflowTypeCommandError = async (output, co
|
|
|
1324
1255
|
...output,
|
|
1325
1256
|
body: await parseBody(output.body, context),
|
|
1326
1257
|
};
|
|
1327
|
-
let response;
|
|
1328
1258
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1329
1259
|
switch (errorCode) {
|
|
1330
1260
|
case "LimitExceededFault":
|
|
@@ -1341,14 +1271,12 @@ const deserializeAws_json1_0RegisterWorkflowTypeCommandError = async (output, co
|
|
|
1341
1271
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
1342
1272
|
default:
|
|
1343
1273
|
const parsedBody = parsedOutput.body;
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
$metadata,
|
|
1274
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1275
|
+
output,
|
|
1276
|
+
parsedBody,
|
|
1277
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1278
|
+
errorCode,
|
|
1350
1279
|
});
|
|
1351
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1352
1280
|
}
|
|
1353
1281
|
};
|
|
1354
1282
|
const deserializeAws_json1_0RequestCancelWorkflowExecutionCommand = async (output, context) => {
|
|
@@ -1367,7 +1295,6 @@ const deserializeAws_json1_0RequestCancelWorkflowExecutionCommandError = async (
|
|
|
1367
1295
|
...output,
|
|
1368
1296
|
body: await parseBody(output.body, context),
|
|
1369
1297
|
};
|
|
1370
|
-
let response;
|
|
1371
1298
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1372
1299
|
switch (errorCode) {
|
|
1373
1300
|
case "OperationNotPermittedFault":
|
|
@@ -1378,14 +1305,12 @@ const deserializeAws_json1_0RequestCancelWorkflowExecutionCommandError = async (
|
|
|
1378
1305
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
1379
1306
|
default:
|
|
1380
1307
|
const parsedBody = parsedOutput.body;
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
$metadata,
|
|
1308
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1309
|
+
output,
|
|
1310
|
+
parsedBody,
|
|
1311
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1312
|
+
errorCode,
|
|
1387
1313
|
});
|
|
1388
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1389
1314
|
}
|
|
1390
1315
|
};
|
|
1391
1316
|
const deserializeAws_json1_0RespondActivityTaskCanceledCommand = async (output, context) => {
|
|
@@ -1404,7 +1329,6 @@ const deserializeAws_json1_0RespondActivityTaskCanceledCommandError = async (out
|
|
|
1404
1329
|
...output,
|
|
1405
1330
|
body: await parseBody(output.body, context),
|
|
1406
1331
|
};
|
|
1407
|
-
let response;
|
|
1408
1332
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1409
1333
|
switch (errorCode) {
|
|
1410
1334
|
case "OperationNotPermittedFault":
|
|
@@ -1415,14 +1339,12 @@ const deserializeAws_json1_0RespondActivityTaskCanceledCommandError = async (out
|
|
|
1415
1339
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
1416
1340
|
default:
|
|
1417
1341
|
const parsedBody = parsedOutput.body;
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
$metadata,
|
|
1342
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1343
|
+
output,
|
|
1344
|
+
parsedBody,
|
|
1345
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1346
|
+
errorCode,
|
|
1424
1347
|
});
|
|
1425
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1426
1348
|
}
|
|
1427
1349
|
};
|
|
1428
1350
|
const deserializeAws_json1_0RespondActivityTaskCompletedCommand = async (output, context) => {
|
|
@@ -1441,7 +1363,6 @@ const deserializeAws_json1_0RespondActivityTaskCompletedCommandError = async (ou
|
|
|
1441
1363
|
...output,
|
|
1442
1364
|
body: await parseBody(output.body, context),
|
|
1443
1365
|
};
|
|
1444
|
-
let response;
|
|
1445
1366
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1446
1367
|
switch (errorCode) {
|
|
1447
1368
|
case "OperationNotPermittedFault":
|
|
@@ -1452,14 +1373,12 @@ const deserializeAws_json1_0RespondActivityTaskCompletedCommandError = async (ou
|
|
|
1452
1373
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
1453
1374
|
default:
|
|
1454
1375
|
const parsedBody = parsedOutput.body;
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
$metadata,
|
|
1376
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1377
|
+
output,
|
|
1378
|
+
parsedBody,
|
|
1379
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1380
|
+
errorCode,
|
|
1461
1381
|
});
|
|
1462
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1463
1382
|
}
|
|
1464
1383
|
};
|
|
1465
1384
|
const deserializeAws_json1_0RespondActivityTaskFailedCommand = async (output, context) => {
|
|
@@ -1478,7 +1397,6 @@ const deserializeAws_json1_0RespondActivityTaskFailedCommandError = async (outpu
|
|
|
1478
1397
|
...output,
|
|
1479
1398
|
body: await parseBody(output.body, context),
|
|
1480
1399
|
};
|
|
1481
|
-
let response;
|
|
1482
1400
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1483
1401
|
switch (errorCode) {
|
|
1484
1402
|
case "OperationNotPermittedFault":
|
|
@@ -1489,14 +1407,12 @@ const deserializeAws_json1_0RespondActivityTaskFailedCommandError = async (outpu
|
|
|
1489
1407
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
1490
1408
|
default:
|
|
1491
1409
|
const parsedBody = parsedOutput.body;
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
$metadata,
|
|
1410
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1411
|
+
output,
|
|
1412
|
+
parsedBody,
|
|
1413
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1414
|
+
errorCode,
|
|
1498
1415
|
});
|
|
1499
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1500
1416
|
}
|
|
1501
1417
|
};
|
|
1502
1418
|
const deserializeAws_json1_0RespondDecisionTaskCompletedCommand = async (output, context) => {
|
|
@@ -1515,7 +1431,6 @@ const deserializeAws_json1_0RespondDecisionTaskCompletedCommandError = async (ou
|
|
|
1515
1431
|
...output,
|
|
1516
1432
|
body: await parseBody(output.body, context),
|
|
1517
1433
|
};
|
|
1518
|
-
let response;
|
|
1519
1434
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1520
1435
|
switch (errorCode) {
|
|
1521
1436
|
case "OperationNotPermittedFault":
|
|
@@ -1526,14 +1441,12 @@ const deserializeAws_json1_0RespondDecisionTaskCompletedCommandError = async (ou
|
|
|
1526
1441
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
1527
1442
|
default:
|
|
1528
1443
|
const parsedBody = parsedOutput.body;
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
$metadata,
|
|
1444
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1445
|
+
output,
|
|
1446
|
+
parsedBody,
|
|
1447
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1448
|
+
errorCode,
|
|
1535
1449
|
});
|
|
1536
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1537
1450
|
}
|
|
1538
1451
|
};
|
|
1539
1452
|
const deserializeAws_json1_0SignalWorkflowExecutionCommand = async (output, context) => {
|
|
@@ -1552,7 +1465,6 @@ const deserializeAws_json1_0SignalWorkflowExecutionCommandError = async (output,
|
|
|
1552
1465
|
...output,
|
|
1553
1466
|
body: await parseBody(output.body, context),
|
|
1554
1467
|
};
|
|
1555
|
-
let response;
|
|
1556
1468
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1557
1469
|
switch (errorCode) {
|
|
1558
1470
|
case "OperationNotPermittedFault":
|
|
@@ -1563,14 +1475,12 @@ const deserializeAws_json1_0SignalWorkflowExecutionCommandError = async (output,
|
|
|
1563
1475
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
1564
1476
|
default:
|
|
1565
1477
|
const parsedBody = parsedOutput.body;
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
$metadata,
|
|
1478
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1479
|
+
output,
|
|
1480
|
+
parsedBody,
|
|
1481
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1482
|
+
errorCode,
|
|
1572
1483
|
});
|
|
1573
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1574
1484
|
}
|
|
1575
1485
|
};
|
|
1576
1486
|
const deserializeAws_json1_0StartWorkflowExecutionCommand = async (output, context) => {
|
|
@@ -1592,7 +1502,6 @@ const deserializeAws_json1_0StartWorkflowExecutionCommandError = async (output,
|
|
|
1592
1502
|
...output,
|
|
1593
1503
|
body: await parseBody(output.body, context),
|
|
1594
1504
|
};
|
|
1595
|
-
let response;
|
|
1596
1505
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1597
1506
|
switch (errorCode) {
|
|
1598
1507
|
case "DefaultUndefinedFault":
|
|
@@ -1615,14 +1524,12 @@ const deserializeAws_json1_0StartWorkflowExecutionCommandError = async (output,
|
|
|
1615
1524
|
throw await deserializeAws_json1_0WorkflowExecutionAlreadyStartedFaultResponse(parsedOutput, context);
|
|
1616
1525
|
default:
|
|
1617
1526
|
const parsedBody = parsedOutput.body;
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
$metadata,
|
|
1527
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1528
|
+
output,
|
|
1529
|
+
parsedBody,
|
|
1530
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1531
|
+
errorCode,
|
|
1624
1532
|
});
|
|
1625
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1626
1533
|
}
|
|
1627
1534
|
};
|
|
1628
1535
|
const deserializeAws_json1_0TagResourceCommand = async (output, context) => {
|
|
@@ -1641,7 +1548,6 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1641
1548
|
...output,
|
|
1642
1549
|
body: await parseBody(output.body, context),
|
|
1643
1550
|
};
|
|
1644
|
-
let response;
|
|
1645
1551
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1646
1552
|
switch (errorCode) {
|
|
1647
1553
|
case "LimitExceededFault":
|
|
@@ -1658,14 +1564,12 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1658
1564
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
1659
1565
|
default:
|
|
1660
1566
|
const parsedBody = parsedOutput.body;
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
$metadata,
|
|
1567
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1568
|
+
output,
|
|
1569
|
+
parsedBody,
|
|
1570
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1571
|
+
errorCode,
|
|
1667
1572
|
});
|
|
1668
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1669
1573
|
}
|
|
1670
1574
|
};
|
|
1671
1575
|
const deserializeAws_json1_0TerminateWorkflowExecutionCommand = async (output, context) => {
|
|
@@ -1684,7 +1588,6 @@ const deserializeAws_json1_0TerminateWorkflowExecutionCommandError = async (outp
|
|
|
1684
1588
|
...output,
|
|
1685
1589
|
body: await parseBody(output.body, context),
|
|
1686
1590
|
};
|
|
1687
|
-
let response;
|
|
1688
1591
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1689
1592
|
switch (errorCode) {
|
|
1690
1593
|
case "OperationNotPermittedFault":
|
|
@@ -1695,14 +1598,12 @@ const deserializeAws_json1_0TerminateWorkflowExecutionCommandError = async (outp
|
|
|
1695
1598
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
1696
1599
|
default:
|
|
1697
1600
|
const parsedBody = parsedOutput.body;
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
$metadata,
|
|
1601
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1602
|
+
output,
|
|
1603
|
+
parsedBody,
|
|
1604
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1605
|
+
errorCode,
|
|
1704
1606
|
});
|
|
1705
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1706
1607
|
}
|
|
1707
1608
|
};
|
|
1708
1609
|
const deserializeAws_json1_0UndeprecateActivityTypeCommand = async (output, context) => {
|
|
@@ -1721,7 +1622,6 @@ const deserializeAws_json1_0UndeprecateActivityTypeCommandError = async (output,
|
|
|
1721
1622
|
...output,
|
|
1722
1623
|
body: await parseBody(output.body, context),
|
|
1723
1624
|
};
|
|
1724
|
-
let response;
|
|
1725
1625
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1726
1626
|
switch (errorCode) {
|
|
1727
1627
|
case "OperationNotPermittedFault":
|
|
@@ -1735,14 +1635,12 @@ const deserializeAws_json1_0UndeprecateActivityTypeCommandError = async (output,
|
|
|
1735
1635
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
1736
1636
|
default:
|
|
1737
1637
|
const parsedBody = parsedOutput.body;
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
$metadata,
|
|
1638
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1639
|
+
output,
|
|
1640
|
+
parsedBody,
|
|
1641
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1642
|
+
errorCode,
|
|
1744
1643
|
});
|
|
1745
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1746
1644
|
}
|
|
1747
1645
|
};
|
|
1748
1646
|
const deserializeAws_json1_0UndeprecateDomainCommand = async (output, context) => {
|
|
@@ -1761,7 +1659,6 @@ const deserializeAws_json1_0UndeprecateDomainCommandError = async (output, conte
|
|
|
1761
1659
|
...output,
|
|
1762
1660
|
body: await parseBody(output.body, context),
|
|
1763
1661
|
};
|
|
1764
|
-
let response;
|
|
1765
1662
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1766
1663
|
switch (errorCode) {
|
|
1767
1664
|
case "DomainAlreadyExistsFault":
|
|
@@ -1775,14 +1672,12 @@ const deserializeAws_json1_0UndeprecateDomainCommandError = async (output, conte
|
|
|
1775
1672
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
1776
1673
|
default:
|
|
1777
1674
|
const parsedBody = parsedOutput.body;
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
$metadata,
|
|
1675
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1676
|
+
output,
|
|
1677
|
+
parsedBody,
|
|
1678
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1679
|
+
errorCode,
|
|
1784
1680
|
});
|
|
1785
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1786
1681
|
}
|
|
1787
1682
|
};
|
|
1788
1683
|
const deserializeAws_json1_0UndeprecateWorkflowTypeCommand = async (output, context) => {
|
|
@@ -1801,7 +1696,6 @@ const deserializeAws_json1_0UndeprecateWorkflowTypeCommandError = async (output,
|
|
|
1801
1696
|
...output,
|
|
1802
1697
|
body: await parseBody(output.body, context),
|
|
1803
1698
|
};
|
|
1804
|
-
let response;
|
|
1805
1699
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1806
1700
|
switch (errorCode) {
|
|
1807
1701
|
case "OperationNotPermittedFault":
|
|
@@ -1815,14 +1709,12 @@ const deserializeAws_json1_0UndeprecateWorkflowTypeCommandError = async (output,
|
|
|
1815
1709
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
1816
1710
|
default:
|
|
1817
1711
|
const parsedBody = parsedOutput.body;
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
$metadata,
|
|
1712
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1713
|
+
output,
|
|
1714
|
+
parsedBody,
|
|
1715
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1716
|
+
errorCode,
|
|
1824
1717
|
});
|
|
1825
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1826
1718
|
}
|
|
1827
1719
|
};
|
|
1828
1720
|
const deserializeAws_json1_0UntagResourceCommand = async (output, context) => {
|
|
@@ -1841,7 +1733,6 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1841
1733
|
...output,
|
|
1842
1734
|
body: await parseBody(output.body, context),
|
|
1843
1735
|
};
|
|
1844
|
-
let response;
|
|
1845
1736
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1846
1737
|
switch (errorCode) {
|
|
1847
1738
|
case "LimitExceededFault":
|
|
@@ -1855,14 +1746,12 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1855
1746
|
throw await deserializeAws_json1_0UnknownResourceFaultResponse(parsedOutput, context);
|
|
1856
1747
|
default:
|
|
1857
1748
|
const parsedBody = parsedOutput.body;
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
$metadata,
|
|
1749
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1750
|
+
output,
|
|
1751
|
+
parsedBody,
|
|
1752
|
+
exceptionCtor: SWFServiceException_1.SWFServiceException,
|
|
1753
|
+
errorCode,
|
|
1864
1754
|
});
|
|
1865
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1866
1755
|
}
|
|
1867
1756
|
};
|
|
1868
1757
|
const deserializeAws_json1_0DefaultUndefinedFaultResponse = async (parsedOutput, context) => {
|
|
@@ -2088,9 +1977,6 @@ const serializeAws_json1_0DecisionList = (input, context) => {
|
|
|
2088
1977
|
return input
|
|
2089
1978
|
.filter((e) => e != null)
|
|
2090
1979
|
.map((entry) => {
|
|
2091
|
-
if (entry === null) {
|
|
2092
|
-
return null;
|
|
2093
|
-
}
|
|
2094
1980
|
return serializeAws_json1_0Decision(entry, context);
|
|
2095
1981
|
});
|
|
2096
1982
|
};
|
|
@@ -2338,9 +2224,6 @@ const serializeAws_json1_0ResourceTagKeyList = (input, context) => {
|
|
|
2338
2224
|
return input
|
|
2339
2225
|
.filter((e) => e != null)
|
|
2340
2226
|
.map((entry) => {
|
|
2341
|
-
if (entry === null) {
|
|
2342
|
-
return null;
|
|
2343
|
-
}
|
|
2344
2227
|
return entry;
|
|
2345
2228
|
});
|
|
2346
2229
|
};
|
|
@@ -2348,9 +2231,6 @@ const serializeAws_json1_0ResourceTagList = (input, context) => {
|
|
|
2348
2231
|
return input
|
|
2349
2232
|
.filter((e) => e != null)
|
|
2350
2233
|
.map((entry) => {
|
|
2351
|
-
if (entry === null) {
|
|
2352
|
-
return null;
|
|
2353
|
-
}
|
|
2354
2234
|
return serializeAws_json1_0ResourceTag(entry, context);
|
|
2355
2235
|
});
|
|
2356
2236
|
};
|
|
@@ -2471,9 +2351,6 @@ const serializeAws_json1_0TagList = (input, context) => {
|
|
|
2471
2351
|
return input
|
|
2472
2352
|
.filter((e) => e != null)
|
|
2473
2353
|
.map((entry) => {
|
|
2474
|
-
if (entry === null) {
|
|
2475
|
-
return null;
|
|
2476
|
-
}
|
|
2477
2354
|
return entry;
|
|
2478
2355
|
});
|
|
2479
2356
|
};
|