@aws-sdk/client-cloudwatch-events 3.51.0 → 3.54.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 +30 -0
- package/dist-cjs/endpoints.js +3 -5
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/CloudWatchEventsServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +148 -4
- package/dist-cjs/protocols/Aws_json1_1.js +458 -1571
- package/dist-es/endpoints.js +3 -5
- package/dist-es/index.js +1 -0
- package/dist-es/models/CloudWatchEventsServiceException.js +12 -0
- package/dist-es/models/models_0.js +134 -1
- package/dist-es/protocols/Aws_json1_1.js +1030 -1754
- package/dist-types/CloudWatchEventsClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/CloudWatchEventsServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +79 -45
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/CloudWatchEventsClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/CloudWatchEventsServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +57 -45
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +33 -33
|
@@ -5,6 +5,8 @@ exports.deserializeAws_json1_1UpdateApiDestinationCommand = exports.deserializeA
|
|
|
5
5
|
exports.deserializeAws_json1_1UpdateConnectionCommand = exports.deserializeAws_json1_1UpdateArchiveCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
+
const CloudWatchEventsServiceException_1 = require("../models/CloudWatchEventsServiceException");
|
|
9
|
+
const models_0_1 = require("../models/models_0");
|
|
8
10
|
const serializeAws_json1_1ActivateEventSourceCommand = async (input, context) => {
|
|
9
11
|
const headers = {
|
|
10
12
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -537,59 +539,28 @@ const deserializeAws_json1_1ActivateEventSourceCommandError = async (output, con
|
|
|
537
539
|
switch (errorCode) {
|
|
538
540
|
case "ConcurrentModificationException":
|
|
539
541
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
540
|
-
|
|
541
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
542
|
-
name: errorCode,
|
|
543
|
-
$metadata: deserializeMetadata(output),
|
|
544
|
-
};
|
|
545
|
-
break;
|
|
542
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
546
543
|
case "InternalException":
|
|
547
544
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
548
|
-
|
|
549
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
550
|
-
name: errorCode,
|
|
551
|
-
$metadata: deserializeMetadata(output),
|
|
552
|
-
};
|
|
553
|
-
break;
|
|
545
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
554
546
|
case "InvalidStateException":
|
|
555
547
|
case "com.amazonaws.cloudwatchevents#InvalidStateException":
|
|
556
|
-
|
|
557
|
-
...(await deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)),
|
|
558
|
-
name: errorCode,
|
|
559
|
-
$metadata: deserializeMetadata(output),
|
|
560
|
-
};
|
|
561
|
-
break;
|
|
548
|
+
throw await deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context);
|
|
562
549
|
case "OperationDisabledException":
|
|
563
550
|
case "com.amazonaws.cloudwatchevents#OperationDisabledException":
|
|
564
|
-
|
|
565
|
-
...(await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context)),
|
|
566
|
-
name: errorCode,
|
|
567
|
-
$metadata: deserializeMetadata(output),
|
|
568
|
-
};
|
|
569
|
-
break;
|
|
551
|
+
throw await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context);
|
|
570
552
|
case "ResourceNotFoundException":
|
|
571
553
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
572
|
-
|
|
573
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
574
|
-
name: errorCode,
|
|
575
|
-
$metadata: deserializeMetadata(output),
|
|
576
|
-
};
|
|
577
|
-
break;
|
|
554
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
578
555
|
default:
|
|
579
556
|
const parsedBody = parsedOutput.body;
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
...parsedBody,
|
|
583
|
-
name: `${errorCode}`,
|
|
584
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
557
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
558
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
585
559
|
$fault: "client",
|
|
586
560
|
$metadata: deserializeMetadata(output),
|
|
587
|
-
};
|
|
561
|
+
});
|
|
562
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
588
563
|
}
|
|
589
|
-
const message = response.message || response.Message || errorCode;
|
|
590
|
-
response.message = message;
|
|
591
|
-
delete response.Message;
|
|
592
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
593
564
|
};
|
|
594
565
|
const deserializeAws_json1_1CancelReplayCommand = async (output, context) => {
|
|
595
566
|
if (output.statusCode >= 300) {
|
|
@@ -616,51 +587,25 @@ const deserializeAws_json1_1CancelReplayCommandError = async (output, context) =
|
|
|
616
587
|
switch (errorCode) {
|
|
617
588
|
case "ConcurrentModificationException":
|
|
618
589
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
619
|
-
|
|
620
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
621
|
-
name: errorCode,
|
|
622
|
-
$metadata: deserializeMetadata(output),
|
|
623
|
-
};
|
|
624
|
-
break;
|
|
590
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
625
591
|
case "IllegalStatusException":
|
|
626
592
|
case "com.amazonaws.cloudwatchevents#IllegalStatusException":
|
|
627
|
-
|
|
628
|
-
...(await deserializeAws_json1_1IllegalStatusExceptionResponse(parsedOutput, context)),
|
|
629
|
-
name: errorCode,
|
|
630
|
-
$metadata: deserializeMetadata(output),
|
|
631
|
-
};
|
|
632
|
-
break;
|
|
593
|
+
throw await deserializeAws_json1_1IllegalStatusExceptionResponse(parsedOutput, context);
|
|
633
594
|
case "InternalException":
|
|
634
595
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
635
|
-
|
|
636
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
637
|
-
name: errorCode,
|
|
638
|
-
$metadata: deserializeMetadata(output),
|
|
639
|
-
};
|
|
640
|
-
break;
|
|
596
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
641
597
|
case "ResourceNotFoundException":
|
|
642
598
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
643
|
-
|
|
644
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
645
|
-
name: errorCode,
|
|
646
|
-
$metadata: deserializeMetadata(output),
|
|
647
|
-
};
|
|
648
|
-
break;
|
|
599
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
649
600
|
default:
|
|
650
601
|
const parsedBody = parsedOutput.body;
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
...parsedBody,
|
|
654
|
-
name: `${errorCode}`,
|
|
655
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
602
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
603
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
656
604
|
$fault: "client",
|
|
657
605
|
$metadata: deserializeMetadata(output),
|
|
658
|
-
};
|
|
606
|
+
});
|
|
607
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
659
608
|
}
|
|
660
|
-
const message = response.message || response.Message || errorCode;
|
|
661
|
-
response.message = message;
|
|
662
|
-
delete response.Message;
|
|
663
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
664
609
|
};
|
|
665
610
|
const deserializeAws_json1_1CreateApiDestinationCommand = async (output, context) => {
|
|
666
611
|
if (output.statusCode >= 300) {
|
|
@@ -687,51 +632,25 @@ const deserializeAws_json1_1CreateApiDestinationCommandError = async (output, co
|
|
|
687
632
|
switch (errorCode) {
|
|
688
633
|
case "InternalException":
|
|
689
634
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
690
|
-
|
|
691
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
692
|
-
name: errorCode,
|
|
693
|
-
$metadata: deserializeMetadata(output),
|
|
694
|
-
};
|
|
695
|
-
break;
|
|
635
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
696
636
|
case "LimitExceededException":
|
|
697
637
|
case "com.amazonaws.cloudwatchevents#LimitExceededException":
|
|
698
|
-
|
|
699
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
700
|
-
name: errorCode,
|
|
701
|
-
$metadata: deserializeMetadata(output),
|
|
702
|
-
};
|
|
703
|
-
break;
|
|
638
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
704
639
|
case "ResourceAlreadyExistsException":
|
|
705
640
|
case "com.amazonaws.cloudwatchevents#ResourceAlreadyExistsException":
|
|
706
|
-
|
|
707
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
708
|
-
name: errorCode,
|
|
709
|
-
$metadata: deserializeMetadata(output),
|
|
710
|
-
};
|
|
711
|
-
break;
|
|
641
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
712
642
|
case "ResourceNotFoundException":
|
|
713
643
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
714
|
-
|
|
715
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
716
|
-
name: errorCode,
|
|
717
|
-
$metadata: deserializeMetadata(output),
|
|
718
|
-
};
|
|
719
|
-
break;
|
|
644
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
720
645
|
default:
|
|
721
646
|
const parsedBody = parsedOutput.body;
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
...parsedBody,
|
|
725
|
-
name: `${errorCode}`,
|
|
726
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
647
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
648
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
727
649
|
$fault: "client",
|
|
728
650
|
$metadata: deserializeMetadata(output),
|
|
729
|
-
};
|
|
651
|
+
});
|
|
652
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
730
653
|
}
|
|
731
|
-
const message = response.message || response.Message || errorCode;
|
|
732
|
-
response.message = message;
|
|
733
|
-
delete response.Message;
|
|
734
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
735
654
|
};
|
|
736
655
|
const deserializeAws_json1_1CreateArchiveCommand = async (output, context) => {
|
|
737
656
|
if (output.statusCode >= 300) {
|
|
@@ -758,67 +677,31 @@ const deserializeAws_json1_1CreateArchiveCommandError = async (output, context)
|
|
|
758
677
|
switch (errorCode) {
|
|
759
678
|
case "ConcurrentModificationException":
|
|
760
679
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
761
|
-
|
|
762
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
763
|
-
name: errorCode,
|
|
764
|
-
$metadata: deserializeMetadata(output),
|
|
765
|
-
};
|
|
766
|
-
break;
|
|
680
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
767
681
|
case "InternalException":
|
|
768
682
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
769
|
-
|
|
770
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
771
|
-
name: errorCode,
|
|
772
|
-
$metadata: deserializeMetadata(output),
|
|
773
|
-
};
|
|
774
|
-
break;
|
|
683
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
775
684
|
case "InvalidEventPatternException":
|
|
776
685
|
case "com.amazonaws.cloudwatchevents#InvalidEventPatternException":
|
|
777
|
-
|
|
778
|
-
...(await deserializeAws_json1_1InvalidEventPatternExceptionResponse(parsedOutput, context)),
|
|
779
|
-
name: errorCode,
|
|
780
|
-
$metadata: deserializeMetadata(output),
|
|
781
|
-
};
|
|
782
|
-
break;
|
|
686
|
+
throw await deserializeAws_json1_1InvalidEventPatternExceptionResponse(parsedOutput, context);
|
|
783
687
|
case "LimitExceededException":
|
|
784
688
|
case "com.amazonaws.cloudwatchevents#LimitExceededException":
|
|
785
|
-
|
|
786
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
787
|
-
name: errorCode,
|
|
788
|
-
$metadata: deserializeMetadata(output),
|
|
789
|
-
};
|
|
790
|
-
break;
|
|
689
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
791
690
|
case "ResourceAlreadyExistsException":
|
|
792
691
|
case "com.amazonaws.cloudwatchevents#ResourceAlreadyExistsException":
|
|
793
|
-
|
|
794
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
795
|
-
name: errorCode,
|
|
796
|
-
$metadata: deserializeMetadata(output),
|
|
797
|
-
};
|
|
798
|
-
break;
|
|
692
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
799
693
|
case "ResourceNotFoundException":
|
|
800
694
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
801
|
-
|
|
802
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
803
|
-
name: errorCode,
|
|
804
|
-
$metadata: deserializeMetadata(output),
|
|
805
|
-
};
|
|
806
|
-
break;
|
|
695
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
807
696
|
default:
|
|
808
697
|
const parsedBody = parsedOutput.body;
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
...parsedBody,
|
|
812
|
-
name: `${errorCode}`,
|
|
813
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
698
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
699
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
814
700
|
$fault: "client",
|
|
815
701
|
$metadata: deserializeMetadata(output),
|
|
816
|
-
};
|
|
702
|
+
});
|
|
703
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
817
704
|
}
|
|
818
|
-
const message = response.message || response.Message || errorCode;
|
|
819
|
-
response.message = message;
|
|
820
|
-
delete response.Message;
|
|
821
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
822
705
|
};
|
|
823
706
|
const deserializeAws_json1_1CreateConnectionCommand = async (output, context) => {
|
|
824
707
|
if (output.statusCode >= 300) {
|
|
@@ -845,43 +728,22 @@ const deserializeAws_json1_1CreateConnectionCommandError = async (output, contex
|
|
|
845
728
|
switch (errorCode) {
|
|
846
729
|
case "InternalException":
|
|
847
730
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
848
|
-
|
|
849
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
850
|
-
name: errorCode,
|
|
851
|
-
$metadata: deserializeMetadata(output),
|
|
852
|
-
};
|
|
853
|
-
break;
|
|
731
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
854
732
|
case "LimitExceededException":
|
|
855
733
|
case "com.amazonaws.cloudwatchevents#LimitExceededException":
|
|
856
|
-
|
|
857
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
858
|
-
name: errorCode,
|
|
859
|
-
$metadata: deserializeMetadata(output),
|
|
860
|
-
};
|
|
861
|
-
break;
|
|
734
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
862
735
|
case "ResourceAlreadyExistsException":
|
|
863
736
|
case "com.amazonaws.cloudwatchevents#ResourceAlreadyExistsException":
|
|
864
|
-
|
|
865
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
866
|
-
name: errorCode,
|
|
867
|
-
$metadata: deserializeMetadata(output),
|
|
868
|
-
};
|
|
869
|
-
break;
|
|
737
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
870
738
|
default:
|
|
871
739
|
const parsedBody = parsedOutput.body;
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
...parsedBody,
|
|
875
|
-
name: `${errorCode}`,
|
|
876
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
740
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
741
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
877
742
|
$fault: "client",
|
|
878
743
|
$metadata: deserializeMetadata(output),
|
|
879
|
-
};
|
|
744
|
+
});
|
|
745
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
880
746
|
}
|
|
881
|
-
const message = response.message || response.Message || errorCode;
|
|
882
|
-
response.message = message;
|
|
883
|
-
delete response.Message;
|
|
884
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
885
747
|
};
|
|
886
748
|
const deserializeAws_json1_1CreateEventBusCommand = async (output, context) => {
|
|
887
749
|
if (output.statusCode >= 300) {
|
|
@@ -908,75 +770,34 @@ const deserializeAws_json1_1CreateEventBusCommandError = async (output, context)
|
|
|
908
770
|
switch (errorCode) {
|
|
909
771
|
case "ConcurrentModificationException":
|
|
910
772
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
911
|
-
|
|
912
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
913
|
-
name: errorCode,
|
|
914
|
-
$metadata: deserializeMetadata(output),
|
|
915
|
-
};
|
|
916
|
-
break;
|
|
773
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
917
774
|
case "InternalException":
|
|
918
775
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
919
|
-
|
|
920
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
921
|
-
name: errorCode,
|
|
922
|
-
$metadata: deserializeMetadata(output),
|
|
923
|
-
};
|
|
924
|
-
break;
|
|
776
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
925
777
|
case "InvalidStateException":
|
|
926
778
|
case "com.amazonaws.cloudwatchevents#InvalidStateException":
|
|
927
|
-
|
|
928
|
-
...(await deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)),
|
|
929
|
-
name: errorCode,
|
|
930
|
-
$metadata: deserializeMetadata(output),
|
|
931
|
-
};
|
|
932
|
-
break;
|
|
779
|
+
throw await deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context);
|
|
933
780
|
case "LimitExceededException":
|
|
934
781
|
case "com.amazonaws.cloudwatchevents#LimitExceededException":
|
|
935
|
-
|
|
936
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
937
|
-
name: errorCode,
|
|
938
|
-
$metadata: deserializeMetadata(output),
|
|
939
|
-
};
|
|
940
|
-
break;
|
|
782
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
941
783
|
case "OperationDisabledException":
|
|
942
784
|
case "com.amazonaws.cloudwatchevents#OperationDisabledException":
|
|
943
|
-
|
|
944
|
-
...(await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context)),
|
|
945
|
-
name: errorCode,
|
|
946
|
-
$metadata: deserializeMetadata(output),
|
|
947
|
-
};
|
|
948
|
-
break;
|
|
785
|
+
throw await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context);
|
|
949
786
|
case "ResourceAlreadyExistsException":
|
|
950
787
|
case "com.amazonaws.cloudwatchevents#ResourceAlreadyExistsException":
|
|
951
|
-
|
|
952
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
953
|
-
name: errorCode,
|
|
954
|
-
$metadata: deserializeMetadata(output),
|
|
955
|
-
};
|
|
956
|
-
break;
|
|
788
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
957
789
|
case "ResourceNotFoundException":
|
|
958
790
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
959
|
-
|
|
960
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
961
|
-
name: errorCode,
|
|
962
|
-
$metadata: deserializeMetadata(output),
|
|
963
|
-
};
|
|
964
|
-
break;
|
|
791
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
965
792
|
default:
|
|
966
793
|
const parsedBody = parsedOutput.body;
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
...parsedBody,
|
|
970
|
-
name: `${errorCode}`,
|
|
971
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
794
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
795
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
972
796
|
$fault: "client",
|
|
973
797
|
$metadata: deserializeMetadata(output),
|
|
974
|
-
};
|
|
798
|
+
});
|
|
799
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
975
800
|
}
|
|
976
|
-
const message = response.message || response.Message || errorCode;
|
|
977
|
-
response.message = message;
|
|
978
|
-
delete response.Message;
|
|
979
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
980
801
|
};
|
|
981
802
|
const deserializeAws_json1_1CreatePartnerEventSourceCommand = async (output, context) => {
|
|
982
803
|
if (output.statusCode >= 300) {
|
|
@@ -1003,59 +824,28 @@ const deserializeAws_json1_1CreatePartnerEventSourceCommandError = async (output
|
|
|
1003
824
|
switch (errorCode) {
|
|
1004
825
|
case "ConcurrentModificationException":
|
|
1005
826
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
1006
|
-
|
|
1007
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1008
|
-
name: errorCode,
|
|
1009
|
-
$metadata: deserializeMetadata(output),
|
|
1010
|
-
};
|
|
1011
|
-
break;
|
|
827
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
1012
828
|
case "InternalException":
|
|
1013
829
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
1014
|
-
|
|
1015
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1016
|
-
name: errorCode,
|
|
1017
|
-
$metadata: deserializeMetadata(output),
|
|
1018
|
-
};
|
|
1019
|
-
break;
|
|
830
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1020
831
|
case "LimitExceededException":
|
|
1021
832
|
case "com.amazonaws.cloudwatchevents#LimitExceededException":
|
|
1022
|
-
|
|
1023
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1024
|
-
name: errorCode,
|
|
1025
|
-
$metadata: deserializeMetadata(output),
|
|
1026
|
-
};
|
|
1027
|
-
break;
|
|
833
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1028
834
|
case "OperationDisabledException":
|
|
1029
835
|
case "com.amazonaws.cloudwatchevents#OperationDisabledException":
|
|
1030
|
-
|
|
1031
|
-
...(await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context)),
|
|
1032
|
-
name: errorCode,
|
|
1033
|
-
$metadata: deserializeMetadata(output),
|
|
1034
|
-
};
|
|
1035
|
-
break;
|
|
836
|
+
throw await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context);
|
|
1036
837
|
case "ResourceAlreadyExistsException":
|
|
1037
838
|
case "com.amazonaws.cloudwatchevents#ResourceAlreadyExistsException":
|
|
1038
|
-
|
|
1039
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1040
|
-
name: errorCode,
|
|
1041
|
-
$metadata: deserializeMetadata(output),
|
|
1042
|
-
};
|
|
1043
|
-
break;
|
|
839
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1044
840
|
default:
|
|
1045
841
|
const parsedBody = parsedOutput.body;
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
...parsedBody,
|
|
1049
|
-
name: `${errorCode}`,
|
|
1050
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
842
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
843
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1051
844
|
$fault: "client",
|
|
1052
845
|
$metadata: deserializeMetadata(output),
|
|
1053
|
-
};
|
|
846
|
+
});
|
|
847
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1054
848
|
}
|
|
1055
|
-
const message = response.message || response.Message || errorCode;
|
|
1056
|
-
response.message = message;
|
|
1057
|
-
delete response.Message;
|
|
1058
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1059
849
|
};
|
|
1060
850
|
const deserializeAws_json1_1DeactivateEventSourceCommand = async (output, context) => {
|
|
1061
851
|
if (output.statusCode >= 300) {
|
|
@@ -1079,59 +869,28 @@ const deserializeAws_json1_1DeactivateEventSourceCommandError = async (output, c
|
|
|
1079
869
|
switch (errorCode) {
|
|
1080
870
|
case "ConcurrentModificationException":
|
|
1081
871
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
1082
|
-
|
|
1083
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1084
|
-
name: errorCode,
|
|
1085
|
-
$metadata: deserializeMetadata(output),
|
|
1086
|
-
};
|
|
1087
|
-
break;
|
|
872
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
1088
873
|
case "InternalException":
|
|
1089
874
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
1090
|
-
|
|
1091
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1092
|
-
name: errorCode,
|
|
1093
|
-
$metadata: deserializeMetadata(output),
|
|
1094
|
-
};
|
|
1095
|
-
break;
|
|
875
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1096
876
|
case "InvalidStateException":
|
|
1097
877
|
case "com.amazonaws.cloudwatchevents#InvalidStateException":
|
|
1098
|
-
|
|
1099
|
-
...(await deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context)),
|
|
1100
|
-
name: errorCode,
|
|
1101
|
-
$metadata: deserializeMetadata(output),
|
|
1102
|
-
};
|
|
1103
|
-
break;
|
|
878
|
+
throw await deserializeAws_json1_1InvalidStateExceptionResponse(parsedOutput, context);
|
|
1104
879
|
case "OperationDisabledException":
|
|
1105
880
|
case "com.amazonaws.cloudwatchevents#OperationDisabledException":
|
|
1106
|
-
|
|
1107
|
-
...(await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context)),
|
|
1108
|
-
name: errorCode,
|
|
1109
|
-
$metadata: deserializeMetadata(output),
|
|
1110
|
-
};
|
|
1111
|
-
break;
|
|
881
|
+
throw await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context);
|
|
1112
882
|
case "ResourceNotFoundException":
|
|
1113
883
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
1114
|
-
|
|
1115
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1116
|
-
name: errorCode,
|
|
1117
|
-
$metadata: deserializeMetadata(output),
|
|
1118
|
-
};
|
|
1119
|
-
break;
|
|
884
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1120
885
|
default:
|
|
1121
886
|
const parsedBody = parsedOutput.body;
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
...parsedBody,
|
|
1125
|
-
name: `${errorCode}`,
|
|
1126
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
887
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
888
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1127
889
|
$fault: "client",
|
|
1128
890
|
$metadata: deserializeMetadata(output),
|
|
1129
|
-
};
|
|
891
|
+
});
|
|
892
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1130
893
|
}
|
|
1131
|
-
const message = response.message || response.Message || errorCode;
|
|
1132
|
-
response.message = message;
|
|
1133
|
-
delete response.Message;
|
|
1134
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1135
894
|
};
|
|
1136
895
|
const deserializeAws_json1_1DeauthorizeConnectionCommand = async (output, context) => {
|
|
1137
896
|
if (output.statusCode >= 300) {
|
|
@@ -1158,43 +917,22 @@ const deserializeAws_json1_1DeauthorizeConnectionCommandError = async (output, c
|
|
|
1158
917
|
switch (errorCode) {
|
|
1159
918
|
case "ConcurrentModificationException":
|
|
1160
919
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
1161
|
-
|
|
1162
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1163
|
-
name: errorCode,
|
|
1164
|
-
$metadata: deserializeMetadata(output),
|
|
1165
|
-
};
|
|
1166
|
-
break;
|
|
920
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
1167
921
|
case "InternalException":
|
|
1168
922
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
1169
|
-
|
|
1170
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1171
|
-
name: errorCode,
|
|
1172
|
-
$metadata: deserializeMetadata(output),
|
|
1173
|
-
};
|
|
1174
|
-
break;
|
|
923
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1175
924
|
case "ResourceNotFoundException":
|
|
1176
925
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
1177
|
-
|
|
1178
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1179
|
-
name: errorCode,
|
|
1180
|
-
$metadata: deserializeMetadata(output),
|
|
1181
|
-
};
|
|
1182
|
-
break;
|
|
926
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1183
927
|
default:
|
|
1184
928
|
const parsedBody = parsedOutput.body;
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
...parsedBody,
|
|
1188
|
-
name: `${errorCode}`,
|
|
1189
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
929
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
930
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1190
931
|
$fault: "client",
|
|
1191
932
|
$metadata: deserializeMetadata(output),
|
|
1192
|
-
};
|
|
933
|
+
});
|
|
934
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1193
935
|
}
|
|
1194
|
-
const message = response.message || response.Message || errorCode;
|
|
1195
|
-
response.message = message;
|
|
1196
|
-
delete response.Message;
|
|
1197
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1198
936
|
};
|
|
1199
937
|
const deserializeAws_json1_1DeleteApiDestinationCommand = async (output, context) => {
|
|
1200
938
|
if (output.statusCode >= 300) {
|
|
@@ -1221,43 +959,22 @@ const deserializeAws_json1_1DeleteApiDestinationCommandError = async (output, co
|
|
|
1221
959
|
switch (errorCode) {
|
|
1222
960
|
case "ConcurrentModificationException":
|
|
1223
961
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
1224
|
-
|
|
1225
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1226
|
-
name: errorCode,
|
|
1227
|
-
$metadata: deserializeMetadata(output),
|
|
1228
|
-
};
|
|
1229
|
-
break;
|
|
962
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
1230
963
|
case "InternalException":
|
|
1231
964
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
1232
|
-
|
|
1233
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1234
|
-
name: errorCode,
|
|
1235
|
-
$metadata: deserializeMetadata(output),
|
|
1236
|
-
};
|
|
1237
|
-
break;
|
|
965
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1238
966
|
case "ResourceNotFoundException":
|
|
1239
967
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
1240
|
-
|
|
1241
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1242
|
-
name: errorCode,
|
|
1243
|
-
$metadata: deserializeMetadata(output),
|
|
1244
|
-
};
|
|
1245
|
-
break;
|
|
968
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1246
969
|
default:
|
|
1247
970
|
const parsedBody = parsedOutput.body;
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
...parsedBody,
|
|
1251
|
-
name: `${errorCode}`,
|
|
1252
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
971
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
972
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1253
973
|
$fault: "client",
|
|
1254
974
|
$metadata: deserializeMetadata(output),
|
|
1255
|
-
};
|
|
975
|
+
});
|
|
976
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1256
977
|
}
|
|
1257
|
-
const message = response.message || response.Message || errorCode;
|
|
1258
|
-
response.message = message;
|
|
1259
|
-
delete response.Message;
|
|
1260
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1261
978
|
};
|
|
1262
979
|
const deserializeAws_json1_1DeleteArchiveCommand = async (output, context) => {
|
|
1263
980
|
if (output.statusCode >= 300) {
|
|
@@ -1284,43 +1001,22 @@ const deserializeAws_json1_1DeleteArchiveCommandError = async (output, context)
|
|
|
1284
1001
|
switch (errorCode) {
|
|
1285
1002
|
case "ConcurrentModificationException":
|
|
1286
1003
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
1287
|
-
|
|
1288
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1289
|
-
name: errorCode,
|
|
1290
|
-
$metadata: deserializeMetadata(output),
|
|
1291
|
-
};
|
|
1292
|
-
break;
|
|
1004
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
1293
1005
|
case "InternalException":
|
|
1294
1006
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
1295
|
-
|
|
1296
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1297
|
-
name: errorCode,
|
|
1298
|
-
$metadata: deserializeMetadata(output),
|
|
1299
|
-
};
|
|
1300
|
-
break;
|
|
1007
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1301
1008
|
case "ResourceNotFoundException":
|
|
1302
1009
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
1303
|
-
|
|
1304
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1305
|
-
name: errorCode,
|
|
1306
|
-
$metadata: deserializeMetadata(output),
|
|
1307
|
-
};
|
|
1308
|
-
break;
|
|
1010
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1309
1011
|
default:
|
|
1310
1012
|
const parsedBody = parsedOutput.body;
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
...parsedBody,
|
|
1314
|
-
name: `${errorCode}`,
|
|
1315
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1013
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1014
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1316
1015
|
$fault: "client",
|
|
1317
1016
|
$metadata: deserializeMetadata(output),
|
|
1318
|
-
};
|
|
1017
|
+
});
|
|
1018
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1319
1019
|
}
|
|
1320
|
-
const message = response.message || response.Message || errorCode;
|
|
1321
|
-
response.message = message;
|
|
1322
|
-
delete response.Message;
|
|
1323
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1324
1020
|
};
|
|
1325
1021
|
const deserializeAws_json1_1DeleteConnectionCommand = async (output, context) => {
|
|
1326
1022
|
if (output.statusCode >= 300) {
|
|
@@ -1347,43 +1043,22 @@ const deserializeAws_json1_1DeleteConnectionCommandError = async (output, contex
|
|
|
1347
1043
|
switch (errorCode) {
|
|
1348
1044
|
case "ConcurrentModificationException":
|
|
1349
1045
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
1350
|
-
|
|
1351
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1352
|
-
name: errorCode,
|
|
1353
|
-
$metadata: deserializeMetadata(output),
|
|
1354
|
-
};
|
|
1355
|
-
break;
|
|
1046
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
1356
1047
|
case "InternalException":
|
|
1357
1048
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
1358
|
-
|
|
1359
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1360
|
-
name: errorCode,
|
|
1361
|
-
$metadata: deserializeMetadata(output),
|
|
1362
|
-
};
|
|
1363
|
-
break;
|
|
1049
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1364
1050
|
case "ResourceNotFoundException":
|
|
1365
1051
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
1366
|
-
|
|
1367
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1368
|
-
name: errorCode,
|
|
1369
|
-
$metadata: deserializeMetadata(output),
|
|
1370
|
-
};
|
|
1371
|
-
break;
|
|
1052
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1372
1053
|
default:
|
|
1373
1054
|
const parsedBody = parsedOutput.body;
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
...parsedBody,
|
|
1377
|
-
name: `${errorCode}`,
|
|
1378
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1055
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1056
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1379
1057
|
$fault: "client",
|
|
1380
1058
|
$metadata: deserializeMetadata(output),
|
|
1381
|
-
};
|
|
1059
|
+
});
|
|
1060
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1382
1061
|
}
|
|
1383
|
-
const message = response.message || response.Message || errorCode;
|
|
1384
|
-
response.message = message;
|
|
1385
|
-
delete response.Message;
|
|
1386
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1387
1062
|
};
|
|
1388
1063
|
const deserializeAws_json1_1DeleteEventBusCommand = async (output, context) => {
|
|
1389
1064
|
if (output.statusCode >= 300) {
|
|
@@ -1407,35 +1082,19 @@ const deserializeAws_json1_1DeleteEventBusCommandError = async (output, context)
|
|
|
1407
1082
|
switch (errorCode) {
|
|
1408
1083
|
case "ConcurrentModificationException":
|
|
1409
1084
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
1410
|
-
|
|
1411
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1412
|
-
name: errorCode,
|
|
1413
|
-
$metadata: deserializeMetadata(output),
|
|
1414
|
-
};
|
|
1415
|
-
break;
|
|
1085
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
1416
1086
|
case "InternalException":
|
|
1417
1087
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
1418
|
-
|
|
1419
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1420
|
-
name: errorCode,
|
|
1421
|
-
$metadata: deserializeMetadata(output),
|
|
1422
|
-
};
|
|
1423
|
-
break;
|
|
1088
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1424
1089
|
default:
|
|
1425
1090
|
const parsedBody = parsedOutput.body;
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
...parsedBody,
|
|
1429
|
-
name: `${errorCode}`,
|
|
1430
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1091
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1092
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1431
1093
|
$fault: "client",
|
|
1432
1094
|
$metadata: deserializeMetadata(output),
|
|
1433
|
-
};
|
|
1095
|
+
});
|
|
1096
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1434
1097
|
}
|
|
1435
|
-
const message = response.message || response.Message || errorCode;
|
|
1436
|
-
response.message = message;
|
|
1437
|
-
delete response.Message;
|
|
1438
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1439
1098
|
};
|
|
1440
1099
|
const deserializeAws_json1_1DeletePartnerEventSourceCommand = async (output, context) => {
|
|
1441
1100
|
if (output.statusCode >= 300) {
|
|
@@ -1459,43 +1118,22 @@ const deserializeAws_json1_1DeletePartnerEventSourceCommandError = async (output
|
|
|
1459
1118
|
switch (errorCode) {
|
|
1460
1119
|
case "ConcurrentModificationException":
|
|
1461
1120
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
1462
|
-
|
|
1463
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1464
|
-
name: errorCode,
|
|
1465
|
-
$metadata: deserializeMetadata(output),
|
|
1466
|
-
};
|
|
1467
|
-
break;
|
|
1121
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
1468
1122
|
case "InternalException":
|
|
1469
1123
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
1470
|
-
|
|
1471
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1472
|
-
name: errorCode,
|
|
1473
|
-
$metadata: deserializeMetadata(output),
|
|
1474
|
-
};
|
|
1475
|
-
break;
|
|
1124
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1476
1125
|
case "OperationDisabledException":
|
|
1477
1126
|
case "com.amazonaws.cloudwatchevents#OperationDisabledException":
|
|
1478
|
-
|
|
1479
|
-
...(await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context)),
|
|
1480
|
-
name: errorCode,
|
|
1481
|
-
$metadata: deserializeMetadata(output),
|
|
1482
|
-
};
|
|
1483
|
-
break;
|
|
1127
|
+
throw await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context);
|
|
1484
1128
|
default:
|
|
1485
1129
|
const parsedBody = parsedOutput.body;
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
...parsedBody,
|
|
1489
|
-
name: `${errorCode}`,
|
|
1490
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1130
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1131
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1491
1132
|
$fault: "client",
|
|
1492
1133
|
$metadata: deserializeMetadata(output),
|
|
1493
|
-
};
|
|
1134
|
+
});
|
|
1135
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1494
1136
|
}
|
|
1495
|
-
const message = response.message || response.Message || errorCode;
|
|
1496
|
-
response.message = message;
|
|
1497
|
-
delete response.Message;
|
|
1498
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1499
1137
|
};
|
|
1500
1138
|
const deserializeAws_json1_1DeleteRuleCommand = async (output, context) => {
|
|
1501
1139
|
if (output.statusCode >= 300) {
|
|
@@ -1519,51 +1157,25 @@ const deserializeAws_json1_1DeleteRuleCommandError = async (output, context) =>
|
|
|
1519
1157
|
switch (errorCode) {
|
|
1520
1158
|
case "ConcurrentModificationException":
|
|
1521
1159
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
1522
|
-
|
|
1523
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1524
|
-
name: errorCode,
|
|
1525
|
-
$metadata: deserializeMetadata(output),
|
|
1526
|
-
};
|
|
1527
|
-
break;
|
|
1160
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
1528
1161
|
case "InternalException":
|
|
1529
1162
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
1530
|
-
|
|
1531
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1532
|
-
name: errorCode,
|
|
1533
|
-
$metadata: deserializeMetadata(output),
|
|
1534
|
-
};
|
|
1535
|
-
break;
|
|
1163
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1536
1164
|
case "ManagedRuleException":
|
|
1537
1165
|
case "com.amazonaws.cloudwatchevents#ManagedRuleException":
|
|
1538
|
-
|
|
1539
|
-
...(await deserializeAws_json1_1ManagedRuleExceptionResponse(parsedOutput, context)),
|
|
1540
|
-
name: errorCode,
|
|
1541
|
-
$metadata: deserializeMetadata(output),
|
|
1542
|
-
};
|
|
1543
|
-
break;
|
|
1166
|
+
throw await deserializeAws_json1_1ManagedRuleExceptionResponse(parsedOutput, context);
|
|
1544
1167
|
case "ResourceNotFoundException":
|
|
1545
1168
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
1546
|
-
|
|
1547
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1548
|
-
name: errorCode,
|
|
1549
|
-
$metadata: deserializeMetadata(output),
|
|
1550
|
-
};
|
|
1551
|
-
break;
|
|
1169
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1552
1170
|
default:
|
|
1553
1171
|
const parsedBody = parsedOutput.body;
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
...parsedBody,
|
|
1557
|
-
name: `${errorCode}`,
|
|
1558
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1172
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1173
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1559
1174
|
$fault: "client",
|
|
1560
1175
|
$metadata: deserializeMetadata(output),
|
|
1561
|
-
};
|
|
1176
|
+
});
|
|
1177
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1562
1178
|
}
|
|
1563
|
-
const message = response.message || response.Message || errorCode;
|
|
1564
|
-
response.message = message;
|
|
1565
|
-
delete response.Message;
|
|
1566
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1567
1179
|
};
|
|
1568
1180
|
const deserializeAws_json1_1DescribeApiDestinationCommand = async (output, context) => {
|
|
1569
1181
|
if (output.statusCode >= 300) {
|
|
@@ -1590,35 +1202,19 @@ const deserializeAws_json1_1DescribeApiDestinationCommandError = async (output,
|
|
|
1590
1202
|
switch (errorCode) {
|
|
1591
1203
|
case "InternalException":
|
|
1592
1204
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
1593
|
-
|
|
1594
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1595
|
-
name: errorCode,
|
|
1596
|
-
$metadata: deserializeMetadata(output),
|
|
1597
|
-
};
|
|
1598
|
-
break;
|
|
1205
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1599
1206
|
case "ResourceNotFoundException":
|
|
1600
1207
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
1601
|
-
|
|
1602
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1603
|
-
name: errorCode,
|
|
1604
|
-
$metadata: deserializeMetadata(output),
|
|
1605
|
-
};
|
|
1606
|
-
break;
|
|
1208
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1607
1209
|
default:
|
|
1608
1210
|
const parsedBody = parsedOutput.body;
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
...parsedBody,
|
|
1612
|
-
name: `${errorCode}`,
|
|
1613
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1211
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1212
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1614
1213
|
$fault: "client",
|
|
1615
1214
|
$metadata: deserializeMetadata(output),
|
|
1616
|
-
};
|
|
1215
|
+
});
|
|
1216
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1617
1217
|
}
|
|
1618
|
-
const message = response.message || response.Message || errorCode;
|
|
1619
|
-
response.message = message;
|
|
1620
|
-
delete response.Message;
|
|
1621
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1622
1218
|
};
|
|
1623
1219
|
const deserializeAws_json1_1DescribeArchiveCommand = async (output, context) => {
|
|
1624
1220
|
if (output.statusCode >= 300) {
|
|
@@ -1645,43 +1241,22 @@ const deserializeAws_json1_1DescribeArchiveCommandError = async (output, context
|
|
|
1645
1241
|
switch (errorCode) {
|
|
1646
1242
|
case "InternalException":
|
|
1647
1243
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
1648
|
-
|
|
1649
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1650
|
-
name: errorCode,
|
|
1651
|
-
$metadata: deserializeMetadata(output),
|
|
1652
|
-
};
|
|
1653
|
-
break;
|
|
1244
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1654
1245
|
case "ResourceAlreadyExistsException":
|
|
1655
1246
|
case "com.amazonaws.cloudwatchevents#ResourceAlreadyExistsException":
|
|
1656
|
-
|
|
1657
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1658
|
-
name: errorCode,
|
|
1659
|
-
$metadata: deserializeMetadata(output),
|
|
1660
|
-
};
|
|
1661
|
-
break;
|
|
1247
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1662
1248
|
case "ResourceNotFoundException":
|
|
1663
1249
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
1664
|
-
|
|
1665
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1666
|
-
name: errorCode,
|
|
1667
|
-
$metadata: deserializeMetadata(output),
|
|
1668
|
-
};
|
|
1669
|
-
break;
|
|
1250
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1670
1251
|
default:
|
|
1671
1252
|
const parsedBody = parsedOutput.body;
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
...parsedBody,
|
|
1675
|
-
name: `${errorCode}`,
|
|
1676
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1253
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1254
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1677
1255
|
$fault: "client",
|
|
1678
1256
|
$metadata: deserializeMetadata(output),
|
|
1679
|
-
};
|
|
1257
|
+
});
|
|
1258
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1680
1259
|
}
|
|
1681
|
-
const message = response.message || response.Message || errorCode;
|
|
1682
|
-
response.message = message;
|
|
1683
|
-
delete response.Message;
|
|
1684
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1685
1260
|
};
|
|
1686
1261
|
const deserializeAws_json1_1DescribeConnectionCommand = async (output, context) => {
|
|
1687
1262
|
if (output.statusCode >= 300) {
|
|
@@ -1708,35 +1283,19 @@ const deserializeAws_json1_1DescribeConnectionCommandError = async (output, cont
|
|
|
1708
1283
|
switch (errorCode) {
|
|
1709
1284
|
case "InternalException":
|
|
1710
1285
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
1711
|
-
|
|
1712
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1713
|
-
name: errorCode,
|
|
1714
|
-
$metadata: deserializeMetadata(output),
|
|
1715
|
-
};
|
|
1716
|
-
break;
|
|
1286
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1717
1287
|
case "ResourceNotFoundException":
|
|
1718
1288
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
1719
|
-
|
|
1720
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1721
|
-
name: errorCode,
|
|
1722
|
-
$metadata: deserializeMetadata(output),
|
|
1723
|
-
};
|
|
1724
|
-
break;
|
|
1289
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1725
1290
|
default:
|
|
1726
1291
|
const parsedBody = parsedOutput.body;
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
...parsedBody,
|
|
1730
|
-
name: `${errorCode}`,
|
|
1731
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1292
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1293
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1732
1294
|
$fault: "client",
|
|
1733
1295
|
$metadata: deserializeMetadata(output),
|
|
1734
|
-
};
|
|
1296
|
+
});
|
|
1297
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1735
1298
|
}
|
|
1736
|
-
const message = response.message || response.Message || errorCode;
|
|
1737
|
-
response.message = message;
|
|
1738
|
-
delete response.Message;
|
|
1739
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1740
1299
|
};
|
|
1741
1300
|
const deserializeAws_json1_1DescribeEventBusCommand = async (output, context) => {
|
|
1742
1301
|
if (output.statusCode >= 300) {
|
|
@@ -1763,35 +1322,19 @@ const deserializeAws_json1_1DescribeEventBusCommandError = async (output, contex
|
|
|
1763
1322
|
switch (errorCode) {
|
|
1764
1323
|
case "InternalException":
|
|
1765
1324
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
1766
|
-
|
|
1767
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1768
|
-
name: errorCode,
|
|
1769
|
-
$metadata: deserializeMetadata(output),
|
|
1770
|
-
};
|
|
1771
|
-
break;
|
|
1325
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1772
1326
|
case "ResourceNotFoundException":
|
|
1773
1327
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
1774
|
-
|
|
1775
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1776
|
-
name: errorCode,
|
|
1777
|
-
$metadata: deserializeMetadata(output),
|
|
1778
|
-
};
|
|
1779
|
-
break;
|
|
1328
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1780
1329
|
default:
|
|
1781
1330
|
const parsedBody = parsedOutput.body;
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
...parsedBody,
|
|
1785
|
-
name: `${errorCode}`,
|
|
1786
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1331
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1332
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1787
1333
|
$fault: "client",
|
|
1788
1334
|
$metadata: deserializeMetadata(output),
|
|
1789
|
-
};
|
|
1335
|
+
});
|
|
1336
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1790
1337
|
}
|
|
1791
|
-
const message = response.message || response.Message || errorCode;
|
|
1792
|
-
response.message = message;
|
|
1793
|
-
delete response.Message;
|
|
1794
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1795
1338
|
};
|
|
1796
1339
|
const deserializeAws_json1_1DescribeEventSourceCommand = async (output, context) => {
|
|
1797
1340
|
if (output.statusCode >= 300) {
|
|
@@ -1818,43 +1361,22 @@ const deserializeAws_json1_1DescribeEventSourceCommandError = async (output, con
|
|
|
1818
1361
|
switch (errorCode) {
|
|
1819
1362
|
case "InternalException":
|
|
1820
1363
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
1821
|
-
|
|
1822
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1823
|
-
name: errorCode,
|
|
1824
|
-
$metadata: deserializeMetadata(output),
|
|
1825
|
-
};
|
|
1826
|
-
break;
|
|
1364
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1827
1365
|
case "OperationDisabledException":
|
|
1828
1366
|
case "com.amazonaws.cloudwatchevents#OperationDisabledException":
|
|
1829
|
-
|
|
1830
|
-
...(await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context)),
|
|
1831
|
-
name: errorCode,
|
|
1832
|
-
$metadata: deserializeMetadata(output),
|
|
1833
|
-
};
|
|
1834
|
-
break;
|
|
1367
|
+
throw await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context);
|
|
1835
1368
|
case "ResourceNotFoundException":
|
|
1836
1369
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
1837
|
-
|
|
1838
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1839
|
-
name: errorCode,
|
|
1840
|
-
$metadata: deserializeMetadata(output),
|
|
1841
|
-
};
|
|
1842
|
-
break;
|
|
1370
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1843
1371
|
default:
|
|
1844
1372
|
const parsedBody = parsedOutput.body;
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
...parsedBody,
|
|
1848
|
-
name: `${errorCode}`,
|
|
1849
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1373
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1374
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1850
1375
|
$fault: "client",
|
|
1851
1376
|
$metadata: deserializeMetadata(output),
|
|
1852
|
-
};
|
|
1377
|
+
});
|
|
1378
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1853
1379
|
}
|
|
1854
|
-
const message = response.message || response.Message || errorCode;
|
|
1855
|
-
response.message = message;
|
|
1856
|
-
delete response.Message;
|
|
1857
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1858
1380
|
};
|
|
1859
1381
|
const deserializeAws_json1_1DescribePartnerEventSourceCommand = async (output, context) => {
|
|
1860
1382
|
if (output.statusCode >= 300) {
|
|
@@ -1881,43 +1403,22 @@ const deserializeAws_json1_1DescribePartnerEventSourceCommandError = async (outp
|
|
|
1881
1403
|
switch (errorCode) {
|
|
1882
1404
|
case "InternalException":
|
|
1883
1405
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
1884
|
-
|
|
1885
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1886
|
-
name: errorCode,
|
|
1887
|
-
$metadata: deserializeMetadata(output),
|
|
1888
|
-
};
|
|
1889
|
-
break;
|
|
1406
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1890
1407
|
case "OperationDisabledException":
|
|
1891
1408
|
case "com.amazonaws.cloudwatchevents#OperationDisabledException":
|
|
1892
|
-
|
|
1893
|
-
...(await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context)),
|
|
1894
|
-
name: errorCode,
|
|
1895
|
-
$metadata: deserializeMetadata(output),
|
|
1896
|
-
};
|
|
1897
|
-
break;
|
|
1409
|
+
throw await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context);
|
|
1898
1410
|
case "ResourceNotFoundException":
|
|
1899
1411
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
1900
|
-
|
|
1901
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1902
|
-
name: errorCode,
|
|
1903
|
-
$metadata: deserializeMetadata(output),
|
|
1904
|
-
};
|
|
1905
|
-
break;
|
|
1412
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1906
1413
|
default:
|
|
1907
1414
|
const parsedBody = parsedOutput.body;
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
...parsedBody,
|
|
1911
|
-
name: `${errorCode}`,
|
|
1912
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1415
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1416
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1913
1417
|
$fault: "client",
|
|
1914
1418
|
$metadata: deserializeMetadata(output),
|
|
1915
|
-
};
|
|
1419
|
+
});
|
|
1420
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1916
1421
|
}
|
|
1917
|
-
const message = response.message || response.Message || errorCode;
|
|
1918
|
-
response.message = message;
|
|
1919
|
-
delete response.Message;
|
|
1920
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1921
1422
|
};
|
|
1922
1423
|
const deserializeAws_json1_1DescribeReplayCommand = async (output, context) => {
|
|
1923
1424
|
if (output.statusCode >= 300) {
|
|
@@ -1944,35 +1445,19 @@ const deserializeAws_json1_1DescribeReplayCommandError = async (output, context)
|
|
|
1944
1445
|
switch (errorCode) {
|
|
1945
1446
|
case "InternalException":
|
|
1946
1447
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
1947
|
-
|
|
1948
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1949
|
-
name: errorCode,
|
|
1950
|
-
$metadata: deserializeMetadata(output),
|
|
1951
|
-
};
|
|
1952
|
-
break;
|
|
1448
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1953
1449
|
case "ResourceNotFoundException":
|
|
1954
1450
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
1955
|
-
|
|
1956
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1957
|
-
name: errorCode,
|
|
1958
|
-
$metadata: deserializeMetadata(output),
|
|
1959
|
-
};
|
|
1960
|
-
break;
|
|
1451
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1961
1452
|
default:
|
|
1962
1453
|
const parsedBody = parsedOutput.body;
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
...parsedBody,
|
|
1966
|
-
name: `${errorCode}`,
|
|
1967
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1454
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1455
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1968
1456
|
$fault: "client",
|
|
1969
1457
|
$metadata: deserializeMetadata(output),
|
|
1970
|
-
};
|
|
1458
|
+
});
|
|
1459
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1971
1460
|
}
|
|
1972
|
-
const message = response.message || response.Message || errorCode;
|
|
1973
|
-
response.message = message;
|
|
1974
|
-
delete response.Message;
|
|
1975
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1976
1461
|
};
|
|
1977
1462
|
const deserializeAws_json1_1DescribeRuleCommand = async (output, context) => {
|
|
1978
1463
|
if (output.statusCode >= 300) {
|
|
@@ -1999,35 +1484,19 @@ const deserializeAws_json1_1DescribeRuleCommandError = async (output, context) =
|
|
|
1999
1484
|
switch (errorCode) {
|
|
2000
1485
|
case "InternalException":
|
|
2001
1486
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
2002
|
-
|
|
2003
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2004
|
-
name: errorCode,
|
|
2005
|
-
$metadata: deserializeMetadata(output),
|
|
2006
|
-
};
|
|
2007
|
-
break;
|
|
1487
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2008
1488
|
case "ResourceNotFoundException":
|
|
2009
1489
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
2010
|
-
|
|
2011
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2012
|
-
name: errorCode,
|
|
2013
|
-
$metadata: deserializeMetadata(output),
|
|
2014
|
-
};
|
|
2015
|
-
break;
|
|
1490
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2016
1491
|
default:
|
|
2017
1492
|
const parsedBody = parsedOutput.body;
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
...parsedBody,
|
|
2021
|
-
name: `${errorCode}`,
|
|
2022
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1493
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1494
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2023
1495
|
$fault: "client",
|
|
2024
1496
|
$metadata: deserializeMetadata(output),
|
|
2025
|
-
};
|
|
1497
|
+
});
|
|
1498
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2026
1499
|
}
|
|
2027
|
-
const message = response.message || response.Message || errorCode;
|
|
2028
|
-
response.message = message;
|
|
2029
|
-
delete response.Message;
|
|
2030
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2031
1500
|
};
|
|
2032
1501
|
const deserializeAws_json1_1DisableRuleCommand = async (output, context) => {
|
|
2033
1502
|
if (output.statusCode >= 300) {
|
|
@@ -2051,51 +1520,25 @@ const deserializeAws_json1_1DisableRuleCommandError = async (output, context) =>
|
|
|
2051
1520
|
switch (errorCode) {
|
|
2052
1521
|
case "ConcurrentModificationException":
|
|
2053
1522
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
2054
|
-
|
|
2055
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
2056
|
-
name: errorCode,
|
|
2057
|
-
$metadata: deserializeMetadata(output),
|
|
2058
|
-
};
|
|
2059
|
-
break;
|
|
1523
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
2060
1524
|
case "InternalException":
|
|
2061
1525
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
2062
|
-
|
|
2063
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2064
|
-
name: errorCode,
|
|
2065
|
-
$metadata: deserializeMetadata(output),
|
|
2066
|
-
};
|
|
2067
|
-
break;
|
|
1526
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2068
1527
|
case "ManagedRuleException":
|
|
2069
1528
|
case "com.amazonaws.cloudwatchevents#ManagedRuleException":
|
|
2070
|
-
|
|
2071
|
-
...(await deserializeAws_json1_1ManagedRuleExceptionResponse(parsedOutput, context)),
|
|
2072
|
-
name: errorCode,
|
|
2073
|
-
$metadata: deserializeMetadata(output),
|
|
2074
|
-
};
|
|
2075
|
-
break;
|
|
1529
|
+
throw await deserializeAws_json1_1ManagedRuleExceptionResponse(parsedOutput, context);
|
|
2076
1530
|
case "ResourceNotFoundException":
|
|
2077
1531
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
2078
|
-
|
|
2079
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2080
|
-
name: errorCode,
|
|
2081
|
-
$metadata: deserializeMetadata(output),
|
|
2082
|
-
};
|
|
2083
|
-
break;
|
|
1532
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2084
1533
|
default:
|
|
2085
1534
|
const parsedBody = parsedOutput.body;
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
...parsedBody,
|
|
2089
|
-
name: `${errorCode}`,
|
|
2090
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1535
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1536
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2091
1537
|
$fault: "client",
|
|
2092
1538
|
$metadata: deserializeMetadata(output),
|
|
2093
|
-
};
|
|
1539
|
+
});
|
|
1540
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2094
1541
|
}
|
|
2095
|
-
const message = response.message || response.Message || errorCode;
|
|
2096
|
-
response.message = message;
|
|
2097
|
-
delete response.Message;
|
|
2098
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2099
1542
|
};
|
|
2100
1543
|
const deserializeAws_json1_1EnableRuleCommand = async (output, context) => {
|
|
2101
1544
|
if (output.statusCode >= 300) {
|
|
@@ -2119,51 +1562,25 @@ const deserializeAws_json1_1EnableRuleCommandError = async (output, context) =>
|
|
|
2119
1562
|
switch (errorCode) {
|
|
2120
1563
|
case "ConcurrentModificationException":
|
|
2121
1564
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
2122
|
-
|
|
2123
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
2124
|
-
name: errorCode,
|
|
2125
|
-
$metadata: deserializeMetadata(output),
|
|
2126
|
-
};
|
|
2127
|
-
break;
|
|
1565
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
2128
1566
|
case "InternalException":
|
|
2129
1567
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
2130
|
-
|
|
2131
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2132
|
-
name: errorCode,
|
|
2133
|
-
$metadata: deserializeMetadata(output),
|
|
2134
|
-
};
|
|
2135
|
-
break;
|
|
1568
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2136
1569
|
case "ManagedRuleException":
|
|
2137
1570
|
case "com.amazonaws.cloudwatchevents#ManagedRuleException":
|
|
2138
|
-
|
|
2139
|
-
...(await deserializeAws_json1_1ManagedRuleExceptionResponse(parsedOutput, context)),
|
|
2140
|
-
name: errorCode,
|
|
2141
|
-
$metadata: deserializeMetadata(output),
|
|
2142
|
-
};
|
|
2143
|
-
break;
|
|
1571
|
+
throw await deserializeAws_json1_1ManagedRuleExceptionResponse(parsedOutput, context);
|
|
2144
1572
|
case "ResourceNotFoundException":
|
|
2145
1573
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
2146
|
-
|
|
2147
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2148
|
-
name: errorCode,
|
|
2149
|
-
$metadata: deserializeMetadata(output),
|
|
2150
|
-
};
|
|
2151
|
-
break;
|
|
1574
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2152
1575
|
default:
|
|
2153
1576
|
const parsedBody = parsedOutput.body;
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
...parsedBody,
|
|
2157
|
-
name: `${errorCode}`,
|
|
2158
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1577
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1578
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2159
1579
|
$fault: "client",
|
|
2160
1580
|
$metadata: deserializeMetadata(output),
|
|
2161
|
-
};
|
|
1581
|
+
});
|
|
1582
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2162
1583
|
}
|
|
2163
|
-
const message = response.message || response.Message || errorCode;
|
|
2164
|
-
response.message = message;
|
|
2165
|
-
delete response.Message;
|
|
2166
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2167
1584
|
};
|
|
2168
1585
|
const deserializeAws_json1_1ListApiDestinationsCommand = async (output, context) => {
|
|
2169
1586
|
if (output.statusCode >= 300) {
|
|
@@ -2190,27 +1607,16 @@ const deserializeAws_json1_1ListApiDestinationsCommandError = async (output, con
|
|
|
2190
1607
|
switch (errorCode) {
|
|
2191
1608
|
case "InternalException":
|
|
2192
1609
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
2193
|
-
|
|
2194
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2195
|
-
name: errorCode,
|
|
2196
|
-
$metadata: deserializeMetadata(output),
|
|
2197
|
-
};
|
|
2198
|
-
break;
|
|
1610
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2199
1611
|
default:
|
|
2200
1612
|
const parsedBody = parsedOutput.body;
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
...parsedBody,
|
|
2204
|
-
name: `${errorCode}`,
|
|
2205
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1613
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1614
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2206
1615
|
$fault: "client",
|
|
2207
1616
|
$metadata: deserializeMetadata(output),
|
|
2208
|
-
};
|
|
1617
|
+
});
|
|
1618
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2209
1619
|
}
|
|
2210
|
-
const message = response.message || response.Message || errorCode;
|
|
2211
|
-
response.message = message;
|
|
2212
|
-
delete response.Message;
|
|
2213
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2214
1620
|
};
|
|
2215
1621
|
const deserializeAws_json1_1ListArchivesCommand = async (output, context) => {
|
|
2216
1622
|
if (output.statusCode >= 300) {
|
|
@@ -2237,35 +1643,19 @@ const deserializeAws_json1_1ListArchivesCommandError = async (output, context) =
|
|
|
2237
1643
|
switch (errorCode) {
|
|
2238
1644
|
case "InternalException":
|
|
2239
1645
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
2240
|
-
|
|
2241
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2242
|
-
name: errorCode,
|
|
2243
|
-
$metadata: deserializeMetadata(output),
|
|
2244
|
-
};
|
|
2245
|
-
break;
|
|
1646
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2246
1647
|
case "ResourceNotFoundException":
|
|
2247
1648
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
2248
|
-
|
|
2249
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2250
|
-
name: errorCode,
|
|
2251
|
-
$metadata: deserializeMetadata(output),
|
|
2252
|
-
};
|
|
2253
|
-
break;
|
|
1649
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2254
1650
|
default:
|
|
2255
1651
|
const parsedBody = parsedOutput.body;
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
...parsedBody,
|
|
2259
|
-
name: `${errorCode}`,
|
|
2260
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1652
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1653
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2261
1654
|
$fault: "client",
|
|
2262
1655
|
$metadata: deserializeMetadata(output),
|
|
2263
|
-
};
|
|
1656
|
+
});
|
|
1657
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2264
1658
|
}
|
|
2265
|
-
const message = response.message || response.Message || errorCode;
|
|
2266
|
-
response.message = message;
|
|
2267
|
-
delete response.Message;
|
|
2268
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2269
1659
|
};
|
|
2270
1660
|
const deserializeAws_json1_1ListConnectionsCommand = async (output, context) => {
|
|
2271
1661
|
if (output.statusCode >= 300) {
|
|
@@ -2292,27 +1682,16 @@ const deserializeAws_json1_1ListConnectionsCommandError = async (output, context
|
|
|
2292
1682
|
switch (errorCode) {
|
|
2293
1683
|
case "InternalException":
|
|
2294
1684
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
2295
|
-
|
|
2296
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2297
|
-
name: errorCode,
|
|
2298
|
-
$metadata: deserializeMetadata(output),
|
|
2299
|
-
};
|
|
2300
|
-
break;
|
|
1685
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2301
1686
|
default:
|
|
2302
1687
|
const parsedBody = parsedOutput.body;
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
...parsedBody,
|
|
2306
|
-
name: `${errorCode}`,
|
|
2307
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1688
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1689
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2308
1690
|
$fault: "client",
|
|
2309
1691
|
$metadata: deserializeMetadata(output),
|
|
2310
|
-
};
|
|
1692
|
+
});
|
|
1693
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2311
1694
|
}
|
|
2312
|
-
const message = response.message || response.Message || errorCode;
|
|
2313
|
-
response.message = message;
|
|
2314
|
-
delete response.Message;
|
|
2315
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2316
1695
|
};
|
|
2317
1696
|
const deserializeAws_json1_1ListEventBusesCommand = async (output, context) => {
|
|
2318
1697
|
if (output.statusCode >= 300) {
|
|
@@ -2339,27 +1718,16 @@ const deserializeAws_json1_1ListEventBusesCommandError = async (output, context)
|
|
|
2339
1718
|
switch (errorCode) {
|
|
2340
1719
|
case "InternalException":
|
|
2341
1720
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
2342
|
-
|
|
2343
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2344
|
-
name: errorCode,
|
|
2345
|
-
$metadata: deserializeMetadata(output),
|
|
2346
|
-
};
|
|
2347
|
-
break;
|
|
1721
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2348
1722
|
default:
|
|
2349
1723
|
const parsedBody = parsedOutput.body;
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
...parsedBody,
|
|
2353
|
-
name: `${errorCode}`,
|
|
2354
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1724
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1725
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2355
1726
|
$fault: "client",
|
|
2356
1727
|
$metadata: deserializeMetadata(output),
|
|
2357
|
-
};
|
|
1728
|
+
});
|
|
1729
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2358
1730
|
}
|
|
2359
|
-
const message = response.message || response.Message || errorCode;
|
|
2360
|
-
response.message = message;
|
|
2361
|
-
delete response.Message;
|
|
2362
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2363
1731
|
};
|
|
2364
1732
|
const deserializeAws_json1_1ListEventSourcesCommand = async (output, context) => {
|
|
2365
1733
|
if (output.statusCode >= 300) {
|
|
@@ -2386,35 +1754,19 @@ const deserializeAws_json1_1ListEventSourcesCommandError = async (output, contex
|
|
|
2386
1754
|
switch (errorCode) {
|
|
2387
1755
|
case "InternalException":
|
|
2388
1756
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
2389
|
-
|
|
2390
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2391
|
-
name: errorCode,
|
|
2392
|
-
$metadata: deserializeMetadata(output),
|
|
2393
|
-
};
|
|
2394
|
-
break;
|
|
1757
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2395
1758
|
case "OperationDisabledException":
|
|
2396
1759
|
case "com.amazonaws.cloudwatchevents#OperationDisabledException":
|
|
2397
|
-
|
|
2398
|
-
...(await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context)),
|
|
2399
|
-
name: errorCode,
|
|
2400
|
-
$metadata: deserializeMetadata(output),
|
|
2401
|
-
};
|
|
2402
|
-
break;
|
|
1760
|
+
throw await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context);
|
|
2403
1761
|
default:
|
|
2404
1762
|
const parsedBody = parsedOutput.body;
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
...parsedBody,
|
|
2408
|
-
name: `${errorCode}`,
|
|
2409
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1763
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1764
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2410
1765
|
$fault: "client",
|
|
2411
1766
|
$metadata: deserializeMetadata(output),
|
|
2412
|
-
};
|
|
1767
|
+
});
|
|
1768
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2413
1769
|
}
|
|
2414
|
-
const message = response.message || response.Message || errorCode;
|
|
2415
|
-
response.message = message;
|
|
2416
|
-
delete response.Message;
|
|
2417
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2418
1770
|
};
|
|
2419
1771
|
const deserializeAws_json1_1ListPartnerEventSourceAccountsCommand = async (output, context) => {
|
|
2420
1772
|
if (output.statusCode >= 300) {
|
|
@@ -2441,43 +1793,22 @@ const deserializeAws_json1_1ListPartnerEventSourceAccountsCommandError = async (
|
|
|
2441
1793
|
switch (errorCode) {
|
|
2442
1794
|
case "InternalException":
|
|
2443
1795
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
2444
|
-
|
|
2445
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2446
|
-
name: errorCode,
|
|
2447
|
-
$metadata: deserializeMetadata(output),
|
|
2448
|
-
};
|
|
2449
|
-
break;
|
|
1796
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2450
1797
|
case "OperationDisabledException":
|
|
2451
1798
|
case "com.amazonaws.cloudwatchevents#OperationDisabledException":
|
|
2452
|
-
|
|
2453
|
-
...(await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context)),
|
|
2454
|
-
name: errorCode,
|
|
2455
|
-
$metadata: deserializeMetadata(output),
|
|
2456
|
-
};
|
|
2457
|
-
break;
|
|
1799
|
+
throw await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context);
|
|
2458
1800
|
case "ResourceNotFoundException":
|
|
2459
1801
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
2460
|
-
|
|
2461
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2462
|
-
name: errorCode,
|
|
2463
|
-
$metadata: deserializeMetadata(output),
|
|
2464
|
-
};
|
|
2465
|
-
break;
|
|
1802
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2466
1803
|
default:
|
|
2467
1804
|
const parsedBody = parsedOutput.body;
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
...parsedBody,
|
|
2471
|
-
name: `${errorCode}`,
|
|
2472
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1805
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1806
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2473
1807
|
$fault: "client",
|
|
2474
1808
|
$metadata: deserializeMetadata(output),
|
|
2475
|
-
};
|
|
1809
|
+
});
|
|
1810
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2476
1811
|
}
|
|
2477
|
-
const message = response.message || response.Message || errorCode;
|
|
2478
|
-
response.message = message;
|
|
2479
|
-
delete response.Message;
|
|
2480
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2481
1812
|
};
|
|
2482
1813
|
const deserializeAws_json1_1ListPartnerEventSourcesCommand = async (output, context) => {
|
|
2483
1814
|
if (output.statusCode >= 300) {
|
|
@@ -2504,35 +1835,19 @@ const deserializeAws_json1_1ListPartnerEventSourcesCommandError = async (output,
|
|
|
2504
1835
|
switch (errorCode) {
|
|
2505
1836
|
case "InternalException":
|
|
2506
1837
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
2507
|
-
|
|
2508
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2509
|
-
name: errorCode,
|
|
2510
|
-
$metadata: deserializeMetadata(output),
|
|
2511
|
-
};
|
|
2512
|
-
break;
|
|
1838
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2513
1839
|
case "OperationDisabledException":
|
|
2514
1840
|
case "com.amazonaws.cloudwatchevents#OperationDisabledException":
|
|
2515
|
-
|
|
2516
|
-
...(await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context)),
|
|
2517
|
-
name: errorCode,
|
|
2518
|
-
$metadata: deserializeMetadata(output),
|
|
2519
|
-
};
|
|
2520
|
-
break;
|
|
1841
|
+
throw await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context);
|
|
2521
1842
|
default:
|
|
2522
1843
|
const parsedBody = parsedOutput.body;
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
...parsedBody,
|
|
2526
|
-
name: `${errorCode}`,
|
|
2527
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1844
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1845
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2528
1846
|
$fault: "client",
|
|
2529
1847
|
$metadata: deserializeMetadata(output),
|
|
2530
|
-
};
|
|
1848
|
+
});
|
|
1849
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2531
1850
|
}
|
|
2532
|
-
const message = response.message || response.Message || errorCode;
|
|
2533
|
-
response.message = message;
|
|
2534
|
-
delete response.Message;
|
|
2535
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2536
1851
|
};
|
|
2537
1852
|
const deserializeAws_json1_1ListReplaysCommand = async (output, context) => {
|
|
2538
1853
|
if (output.statusCode >= 300) {
|
|
@@ -2559,27 +1874,16 @@ const deserializeAws_json1_1ListReplaysCommandError = async (output, context) =>
|
|
|
2559
1874
|
switch (errorCode) {
|
|
2560
1875
|
case "InternalException":
|
|
2561
1876
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
2562
|
-
|
|
2563
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2564
|
-
name: errorCode,
|
|
2565
|
-
$metadata: deserializeMetadata(output),
|
|
2566
|
-
};
|
|
2567
|
-
break;
|
|
1877
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2568
1878
|
default:
|
|
2569
1879
|
const parsedBody = parsedOutput.body;
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
...parsedBody,
|
|
2573
|
-
name: `${errorCode}`,
|
|
2574
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1880
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1881
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2575
1882
|
$fault: "client",
|
|
2576
1883
|
$metadata: deserializeMetadata(output),
|
|
2577
|
-
};
|
|
1884
|
+
});
|
|
1885
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2578
1886
|
}
|
|
2579
|
-
const message = response.message || response.Message || errorCode;
|
|
2580
|
-
response.message = message;
|
|
2581
|
-
delete response.Message;
|
|
2582
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2583
1887
|
};
|
|
2584
1888
|
const deserializeAws_json1_1ListRuleNamesByTargetCommand = async (output, context) => {
|
|
2585
1889
|
if (output.statusCode >= 300) {
|
|
@@ -2606,35 +1910,19 @@ const deserializeAws_json1_1ListRuleNamesByTargetCommandError = async (output, c
|
|
|
2606
1910
|
switch (errorCode) {
|
|
2607
1911
|
case "InternalException":
|
|
2608
1912
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
2609
|
-
|
|
2610
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2611
|
-
name: errorCode,
|
|
2612
|
-
$metadata: deserializeMetadata(output),
|
|
2613
|
-
};
|
|
2614
|
-
break;
|
|
1913
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2615
1914
|
case "ResourceNotFoundException":
|
|
2616
1915
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
2617
|
-
|
|
2618
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2619
|
-
name: errorCode,
|
|
2620
|
-
$metadata: deserializeMetadata(output),
|
|
2621
|
-
};
|
|
2622
|
-
break;
|
|
1916
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2623
1917
|
default:
|
|
2624
1918
|
const parsedBody = parsedOutput.body;
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
...parsedBody,
|
|
2628
|
-
name: `${errorCode}`,
|
|
2629
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1919
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1920
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2630
1921
|
$fault: "client",
|
|
2631
1922
|
$metadata: deserializeMetadata(output),
|
|
2632
|
-
};
|
|
1923
|
+
});
|
|
1924
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2633
1925
|
}
|
|
2634
|
-
const message = response.message || response.Message || errorCode;
|
|
2635
|
-
response.message = message;
|
|
2636
|
-
delete response.Message;
|
|
2637
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2638
1926
|
};
|
|
2639
1927
|
const deserializeAws_json1_1ListRulesCommand = async (output, context) => {
|
|
2640
1928
|
if (output.statusCode >= 300) {
|
|
@@ -2661,35 +1949,19 @@ const deserializeAws_json1_1ListRulesCommandError = async (output, context) => {
|
|
|
2661
1949
|
switch (errorCode) {
|
|
2662
1950
|
case "InternalException":
|
|
2663
1951
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
2664
|
-
|
|
2665
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2666
|
-
name: errorCode,
|
|
2667
|
-
$metadata: deserializeMetadata(output),
|
|
2668
|
-
};
|
|
2669
|
-
break;
|
|
1952
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2670
1953
|
case "ResourceNotFoundException":
|
|
2671
1954
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
2672
|
-
|
|
2673
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2674
|
-
name: errorCode,
|
|
2675
|
-
$metadata: deserializeMetadata(output),
|
|
2676
|
-
};
|
|
2677
|
-
break;
|
|
1955
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2678
1956
|
default:
|
|
2679
1957
|
const parsedBody = parsedOutput.body;
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
...parsedBody,
|
|
2683
|
-
name: `${errorCode}`,
|
|
2684
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1958
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1959
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2685
1960
|
$fault: "client",
|
|
2686
1961
|
$metadata: deserializeMetadata(output),
|
|
2687
|
-
};
|
|
1962
|
+
});
|
|
1963
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2688
1964
|
}
|
|
2689
|
-
const message = response.message || response.Message || errorCode;
|
|
2690
|
-
response.message = message;
|
|
2691
|
-
delete response.Message;
|
|
2692
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2693
1965
|
};
|
|
2694
1966
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
2695
1967
|
if (output.statusCode >= 300) {
|
|
@@ -2716,35 +1988,19 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2716
1988
|
switch (errorCode) {
|
|
2717
1989
|
case "InternalException":
|
|
2718
1990
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
2719
|
-
|
|
2720
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2721
|
-
name: errorCode,
|
|
2722
|
-
$metadata: deserializeMetadata(output),
|
|
2723
|
-
};
|
|
2724
|
-
break;
|
|
1991
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2725
1992
|
case "ResourceNotFoundException":
|
|
2726
1993
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
2727
|
-
|
|
2728
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2729
|
-
name: errorCode,
|
|
2730
|
-
$metadata: deserializeMetadata(output),
|
|
2731
|
-
};
|
|
2732
|
-
break;
|
|
1994
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2733
1995
|
default:
|
|
2734
1996
|
const parsedBody = parsedOutput.body;
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
...parsedBody,
|
|
2738
|
-
name: `${errorCode}`,
|
|
2739
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1997
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
1998
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2740
1999
|
$fault: "client",
|
|
2741
2000
|
$metadata: deserializeMetadata(output),
|
|
2742
|
-
};
|
|
2001
|
+
});
|
|
2002
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2743
2003
|
}
|
|
2744
|
-
const message = response.message || response.Message || errorCode;
|
|
2745
|
-
response.message = message;
|
|
2746
|
-
delete response.Message;
|
|
2747
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2748
2004
|
};
|
|
2749
2005
|
const deserializeAws_json1_1ListTargetsByRuleCommand = async (output, context) => {
|
|
2750
2006
|
if (output.statusCode >= 300) {
|
|
@@ -2771,35 +2027,19 @@ const deserializeAws_json1_1ListTargetsByRuleCommandError = async (output, conte
|
|
|
2771
2027
|
switch (errorCode) {
|
|
2772
2028
|
case "InternalException":
|
|
2773
2029
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
2774
|
-
|
|
2775
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2776
|
-
name: errorCode,
|
|
2777
|
-
$metadata: deserializeMetadata(output),
|
|
2778
|
-
};
|
|
2779
|
-
break;
|
|
2030
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2780
2031
|
case "ResourceNotFoundException":
|
|
2781
2032
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
2782
|
-
|
|
2783
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2784
|
-
name: errorCode,
|
|
2785
|
-
$metadata: deserializeMetadata(output),
|
|
2786
|
-
};
|
|
2787
|
-
break;
|
|
2033
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2788
2034
|
default:
|
|
2789
2035
|
const parsedBody = parsedOutput.body;
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
...parsedBody,
|
|
2793
|
-
name: `${errorCode}`,
|
|
2794
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2036
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2037
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2795
2038
|
$fault: "client",
|
|
2796
2039
|
$metadata: deserializeMetadata(output),
|
|
2797
|
-
};
|
|
2040
|
+
});
|
|
2041
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2798
2042
|
}
|
|
2799
|
-
const message = response.message || response.Message || errorCode;
|
|
2800
|
-
response.message = message;
|
|
2801
|
-
delete response.Message;
|
|
2802
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2803
2043
|
};
|
|
2804
2044
|
const deserializeAws_json1_1PutEventsCommand = async (output, context) => {
|
|
2805
2045
|
if (output.statusCode >= 300) {
|
|
@@ -2826,27 +2066,16 @@ const deserializeAws_json1_1PutEventsCommandError = async (output, context) => {
|
|
|
2826
2066
|
switch (errorCode) {
|
|
2827
2067
|
case "InternalException":
|
|
2828
2068
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
2829
|
-
|
|
2830
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2831
|
-
name: errorCode,
|
|
2832
|
-
$metadata: deserializeMetadata(output),
|
|
2833
|
-
};
|
|
2834
|
-
break;
|
|
2069
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2835
2070
|
default:
|
|
2836
2071
|
const parsedBody = parsedOutput.body;
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
...parsedBody,
|
|
2840
|
-
name: `${errorCode}`,
|
|
2841
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2072
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2073
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2842
2074
|
$fault: "client",
|
|
2843
2075
|
$metadata: deserializeMetadata(output),
|
|
2844
|
-
};
|
|
2076
|
+
});
|
|
2077
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2845
2078
|
}
|
|
2846
|
-
const message = response.message || response.Message || errorCode;
|
|
2847
|
-
response.message = message;
|
|
2848
|
-
delete response.Message;
|
|
2849
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2850
2079
|
};
|
|
2851
2080
|
const deserializeAws_json1_1PutPartnerEventsCommand = async (output, context) => {
|
|
2852
2081
|
if (output.statusCode >= 300) {
|
|
@@ -2873,35 +2102,19 @@ const deserializeAws_json1_1PutPartnerEventsCommandError = async (output, contex
|
|
|
2873
2102
|
switch (errorCode) {
|
|
2874
2103
|
case "InternalException":
|
|
2875
2104
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
2876
|
-
|
|
2877
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2878
|
-
name: errorCode,
|
|
2879
|
-
$metadata: deserializeMetadata(output),
|
|
2880
|
-
};
|
|
2881
|
-
break;
|
|
2105
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2882
2106
|
case "OperationDisabledException":
|
|
2883
2107
|
case "com.amazonaws.cloudwatchevents#OperationDisabledException":
|
|
2884
|
-
|
|
2885
|
-
...(await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context)),
|
|
2886
|
-
name: errorCode,
|
|
2887
|
-
$metadata: deserializeMetadata(output),
|
|
2888
|
-
};
|
|
2889
|
-
break;
|
|
2108
|
+
throw await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context);
|
|
2890
2109
|
default:
|
|
2891
2110
|
const parsedBody = parsedOutput.body;
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
...parsedBody,
|
|
2895
|
-
name: `${errorCode}`,
|
|
2896
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2111
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2112
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2897
2113
|
$fault: "client",
|
|
2898
2114
|
$metadata: deserializeMetadata(output),
|
|
2899
|
-
};
|
|
2115
|
+
});
|
|
2116
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2900
2117
|
}
|
|
2901
|
-
const message = response.message || response.Message || errorCode;
|
|
2902
|
-
response.message = message;
|
|
2903
|
-
delete response.Message;
|
|
2904
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2905
2118
|
};
|
|
2906
2119
|
const deserializeAws_json1_1PutPermissionCommand = async (output, context) => {
|
|
2907
2120
|
if (output.statusCode >= 300) {
|
|
@@ -2925,59 +2138,28 @@ const deserializeAws_json1_1PutPermissionCommandError = async (output, context)
|
|
|
2925
2138
|
switch (errorCode) {
|
|
2926
2139
|
case "ConcurrentModificationException":
|
|
2927
2140
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
2928
|
-
|
|
2929
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
2930
|
-
name: errorCode,
|
|
2931
|
-
$metadata: deserializeMetadata(output),
|
|
2932
|
-
};
|
|
2933
|
-
break;
|
|
2141
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
2934
2142
|
case "InternalException":
|
|
2935
2143
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
2936
|
-
|
|
2937
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2938
|
-
name: errorCode,
|
|
2939
|
-
$metadata: deserializeMetadata(output),
|
|
2940
|
-
};
|
|
2941
|
-
break;
|
|
2144
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
2942
2145
|
case "OperationDisabledException":
|
|
2943
2146
|
case "com.amazonaws.cloudwatchevents#OperationDisabledException":
|
|
2944
|
-
|
|
2945
|
-
...(await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context)),
|
|
2946
|
-
name: errorCode,
|
|
2947
|
-
$metadata: deserializeMetadata(output),
|
|
2948
|
-
};
|
|
2949
|
-
break;
|
|
2147
|
+
throw await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context);
|
|
2950
2148
|
case "PolicyLengthExceededException":
|
|
2951
2149
|
case "com.amazonaws.cloudwatchevents#PolicyLengthExceededException":
|
|
2952
|
-
|
|
2953
|
-
...(await deserializeAws_json1_1PolicyLengthExceededExceptionResponse(parsedOutput, context)),
|
|
2954
|
-
name: errorCode,
|
|
2955
|
-
$metadata: deserializeMetadata(output),
|
|
2956
|
-
};
|
|
2957
|
-
break;
|
|
2150
|
+
throw await deserializeAws_json1_1PolicyLengthExceededExceptionResponse(parsedOutput, context);
|
|
2958
2151
|
case "ResourceNotFoundException":
|
|
2959
2152
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
2960
|
-
|
|
2961
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2962
|
-
name: errorCode,
|
|
2963
|
-
$metadata: deserializeMetadata(output),
|
|
2964
|
-
};
|
|
2965
|
-
break;
|
|
2153
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2966
2154
|
default:
|
|
2967
2155
|
const parsedBody = parsedOutput.body;
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
...parsedBody,
|
|
2971
|
-
name: `${errorCode}`,
|
|
2972
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2156
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2157
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2973
2158
|
$fault: "client",
|
|
2974
2159
|
$metadata: deserializeMetadata(output),
|
|
2975
|
-
};
|
|
2160
|
+
});
|
|
2161
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2976
2162
|
}
|
|
2977
|
-
const message = response.message || response.Message || errorCode;
|
|
2978
|
-
response.message = message;
|
|
2979
|
-
delete response.Message;
|
|
2980
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2981
2163
|
};
|
|
2982
2164
|
const deserializeAws_json1_1PutRuleCommand = async (output, context) => {
|
|
2983
2165
|
if (output.statusCode >= 300) {
|
|
@@ -3004,67 +2186,31 @@ const deserializeAws_json1_1PutRuleCommandError = async (output, context) => {
|
|
|
3004
2186
|
switch (errorCode) {
|
|
3005
2187
|
case "ConcurrentModificationException":
|
|
3006
2188
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
3007
|
-
|
|
3008
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
3009
|
-
name: errorCode,
|
|
3010
|
-
$metadata: deserializeMetadata(output),
|
|
3011
|
-
};
|
|
3012
|
-
break;
|
|
2189
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
3013
2190
|
case "InternalException":
|
|
3014
2191
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
3015
|
-
|
|
3016
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
3017
|
-
name: errorCode,
|
|
3018
|
-
$metadata: deserializeMetadata(output),
|
|
3019
|
-
};
|
|
3020
|
-
break;
|
|
2192
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
3021
2193
|
case "InvalidEventPatternException":
|
|
3022
2194
|
case "com.amazonaws.cloudwatchevents#InvalidEventPatternException":
|
|
3023
|
-
|
|
3024
|
-
...(await deserializeAws_json1_1InvalidEventPatternExceptionResponse(parsedOutput, context)),
|
|
3025
|
-
name: errorCode,
|
|
3026
|
-
$metadata: deserializeMetadata(output),
|
|
3027
|
-
};
|
|
3028
|
-
break;
|
|
2195
|
+
throw await deserializeAws_json1_1InvalidEventPatternExceptionResponse(parsedOutput, context);
|
|
3029
2196
|
case "LimitExceededException":
|
|
3030
2197
|
case "com.amazonaws.cloudwatchevents#LimitExceededException":
|
|
3031
|
-
|
|
3032
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
3033
|
-
name: errorCode,
|
|
3034
|
-
$metadata: deserializeMetadata(output),
|
|
3035
|
-
};
|
|
3036
|
-
break;
|
|
2198
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
3037
2199
|
case "ManagedRuleException":
|
|
3038
2200
|
case "com.amazonaws.cloudwatchevents#ManagedRuleException":
|
|
3039
|
-
|
|
3040
|
-
...(await deserializeAws_json1_1ManagedRuleExceptionResponse(parsedOutput, context)),
|
|
3041
|
-
name: errorCode,
|
|
3042
|
-
$metadata: deserializeMetadata(output),
|
|
3043
|
-
};
|
|
3044
|
-
break;
|
|
2201
|
+
throw await deserializeAws_json1_1ManagedRuleExceptionResponse(parsedOutput, context);
|
|
3045
2202
|
case "ResourceNotFoundException":
|
|
3046
2203
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
3047
|
-
|
|
3048
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3049
|
-
name: errorCode,
|
|
3050
|
-
$metadata: deserializeMetadata(output),
|
|
3051
|
-
};
|
|
3052
|
-
break;
|
|
2204
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3053
2205
|
default:
|
|
3054
2206
|
const parsedBody = parsedOutput.body;
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
...parsedBody,
|
|
3058
|
-
name: `${errorCode}`,
|
|
3059
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2207
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2208
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3060
2209
|
$fault: "client",
|
|
3061
2210
|
$metadata: deserializeMetadata(output),
|
|
3062
|
-
};
|
|
2211
|
+
});
|
|
2212
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3063
2213
|
}
|
|
3064
|
-
const message = response.message || response.Message || errorCode;
|
|
3065
|
-
response.message = message;
|
|
3066
|
-
delete response.Message;
|
|
3067
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3068
2214
|
};
|
|
3069
2215
|
const deserializeAws_json1_1PutTargetsCommand = async (output, context) => {
|
|
3070
2216
|
if (output.statusCode >= 300) {
|
|
@@ -3091,59 +2237,28 @@ const deserializeAws_json1_1PutTargetsCommandError = async (output, context) =>
|
|
|
3091
2237
|
switch (errorCode) {
|
|
3092
2238
|
case "ConcurrentModificationException":
|
|
3093
2239
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
3094
|
-
|
|
3095
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
3096
|
-
name: errorCode,
|
|
3097
|
-
$metadata: deserializeMetadata(output),
|
|
3098
|
-
};
|
|
3099
|
-
break;
|
|
2240
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
3100
2241
|
case "InternalException":
|
|
3101
2242
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
3102
|
-
|
|
3103
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
3104
|
-
name: errorCode,
|
|
3105
|
-
$metadata: deserializeMetadata(output),
|
|
3106
|
-
};
|
|
3107
|
-
break;
|
|
2243
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
3108
2244
|
case "LimitExceededException":
|
|
3109
2245
|
case "com.amazonaws.cloudwatchevents#LimitExceededException":
|
|
3110
|
-
|
|
3111
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
3112
|
-
name: errorCode,
|
|
3113
|
-
$metadata: deserializeMetadata(output),
|
|
3114
|
-
};
|
|
3115
|
-
break;
|
|
2246
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
3116
2247
|
case "ManagedRuleException":
|
|
3117
2248
|
case "com.amazonaws.cloudwatchevents#ManagedRuleException":
|
|
3118
|
-
|
|
3119
|
-
...(await deserializeAws_json1_1ManagedRuleExceptionResponse(parsedOutput, context)),
|
|
3120
|
-
name: errorCode,
|
|
3121
|
-
$metadata: deserializeMetadata(output),
|
|
3122
|
-
};
|
|
3123
|
-
break;
|
|
2249
|
+
throw await deserializeAws_json1_1ManagedRuleExceptionResponse(parsedOutput, context);
|
|
3124
2250
|
case "ResourceNotFoundException":
|
|
3125
2251
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
3126
|
-
|
|
3127
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3128
|
-
name: errorCode,
|
|
3129
|
-
$metadata: deserializeMetadata(output),
|
|
3130
|
-
};
|
|
3131
|
-
break;
|
|
2252
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3132
2253
|
default:
|
|
3133
2254
|
const parsedBody = parsedOutput.body;
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
...parsedBody,
|
|
3137
|
-
name: `${errorCode}`,
|
|
3138
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2255
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2256
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3139
2257
|
$fault: "client",
|
|
3140
2258
|
$metadata: deserializeMetadata(output),
|
|
3141
|
-
};
|
|
2259
|
+
});
|
|
2260
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3142
2261
|
}
|
|
3143
|
-
const message = response.message || response.Message || errorCode;
|
|
3144
|
-
response.message = message;
|
|
3145
|
-
delete response.Message;
|
|
3146
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3147
2262
|
};
|
|
3148
2263
|
const deserializeAws_json1_1RemovePermissionCommand = async (output, context) => {
|
|
3149
2264
|
if (output.statusCode >= 300) {
|
|
@@ -3167,51 +2282,25 @@ const deserializeAws_json1_1RemovePermissionCommandError = async (output, contex
|
|
|
3167
2282
|
switch (errorCode) {
|
|
3168
2283
|
case "ConcurrentModificationException":
|
|
3169
2284
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
3170
|
-
|
|
3171
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
3172
|
-
name: errorCode,
|
|
3173
|
-
$metadata: deserializeMetadata(output),
|
|
3174
|
-
};
|
|
3175
|
-
break;
|
|
2285
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
3176
2286
|
case "InternalException":
|
|
3177
2287
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
3178
|
-
|
|
3179
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
3180
|
-
name: errorCode,
|
|
3181
|
-
$metadata: deserializeMetadata(output),
|
|
3182
|
-
};
|
|
3183
|
-
break;
|
|
2288
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
3184
2289
|
case "OperationDisabledException":
|
|
3185
2290
|
case "com.amazonaws.cloudwatchevents#OperationDisabledException":
|
|
3186
|
-
|
|
3187
|
-
...(await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context)),
|
|
3188
|
-
name: errorCode,
|
|
3189
|
-
$metadata: deserializeMetadata(output),
|
|
3190
|
-
};
|
|
3191
|
-
break;
|
|
2291
|
+
throw await deserializeAws_json1_1OperationDisabledExceptionResponse(parsedOutput, context);
|
|
3192
2292
|
case "ResourceNotFoundException":
|
|
3193
2293
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
3194
|
-
|
|
3195
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3196
|
-
name: errorCode,
|
|
3197
|
-
$metadata: deserializeMetadata(output),
|
|
3198
|
-
};
|
|
3199
|
-
break;
|
|
2294
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3200
2295
|
default:
|
|
3201
2296
|
const parsedBody = parsedOutput.body;
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
...parsedBody,
|
|
3205
|
-
name: `${errorCode}`,
|
|
3206
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2297
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2298
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3207
2299
|
$fault: "client",
|
|
3208
2300
|
$metadata: deserializeMetadata(output),
|
|
3209
|
-
};
|
|
2301
|
+
});
|
|
2302
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3210
2303
|
}
|
|
3211
|
-
const message = response.message || response.Message || errorCode;
|
|
3212
|
-
response.message = message;
|
|
3213
|
-
delete response.Message;
|
|
3214
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3215
2304
|
};
|
|
3216
2305
|
const deserializeAws_json1_1RemoveTargetsCommand = async (output, context) => {
|
|
3217
2306
|
if (output.statusCode >= 300) {
|
|
@@ -3238,51 +2327,25 @@ const deserializeAws_json1_1RemoveTargetsCommandError = async (output, context)
|
|
|
3238
2327
|
switch (errorCode) {
|
|
3239
2328
|
case "ConcurrentModificationException":
|
|
3240
2329
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
3241
|
-
|
|
3242
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
3243
|
-
name: errorCode,
|
|
3244
|
-
$metadata: deserializeMetadata(output),
|
|
3245
|
-
};
|
|
3246
|
-
break;
|
|
2330
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
3247
2331
|
case "InternalException":
|
|
3248
2332
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
3249
|
-
|
|
3250
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
3251
|
-
name: errorCode,
|
|
3252
|
-
$metadata: deserializeMetadata(output),
|
|
3253
|
-
};
|
|
3254
|
-
break;
|
|
2333
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
3255
2334
|
case "ManagedRuleException":
|
|
3256
2335
|
case "com.amazonaws.cloudwatchevents#ManagedRuleException":
|
|
3257
|
-
|
|
3258
|
-
...(await deserializeAws_json1_1ManagedRuleExceptionResponse(parsedOutput, context)),
|
|
3259
|
-
name: errorCode,
|
|
3260
|
-
$metadata: deserializeMetadata(output),
|
|
3261
|
-
};
|
|
3262
|
-
break;
|
|
2336
|
+
throw await deserializeAws_json1_1ManagedRuleExceptionResponse(parsedOutput, context);
|
|
3263
2337
|
case "ResourceNotFoundException":
|
|
3264
2338
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
3265
|
-
|
|
3266
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3267
|
-
name: errorCode,
|
|
3268
|
-
$metadata: deserializeMetadata(output),
|
|
3269
|
-
};
|
|
3270
|
-
break;
|
|
2339
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3271
2340
|
default:
|
|
3272
2341
|
const parsedBody = parsedOutput.body;
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
...parsedBody,
|
|
3276
|
-
name: `${errorCode}`,
|
|
3277
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2342
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2343
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3278
2344
|
$fault: "client",
|
|
3279
2345
|
$metadata: deserializeMetadata(output),
|
|
3280
|
-
};
|
|
2346
|
+
});
|
|
2347
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3281
2348
|
}
|
|
3282
|
-
const message = response.message || response.Message || errorCode;
|
|
3283
|
-
response.message = message;
|
|
3284
|
-
delete response.Message;
|
|
3285
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3286
2349
|
};
|
|
3287
2350
|
const deserializeAws_json1_1StartReplayCommand = async (output, context) => {
|
|
3288
2351
|
if (output.statusCode >= 300) {
|
|
@@ -3309,59 +2372,28 @@ const deserializeAws_json1_1StartReplayCommandError = async (output, context) =>
|
|
|
3309
2372
|
switch (errorCode) {
|
|
3310
2373
|
case "InternalException":
|
|
3311
2374
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
3312
|
-
|
|
3313
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
3314
|
-
name: errorCode,
|
|
3315
|
-
$metadata: deserializeMetadata(output),
|
|
3316
|
-
};
|
|
3317
|
-
break;
|
|
2375
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
3318
2376
|
case "InvalidEventPatternException":
|
|
3319
2377
|
case "com.amazonaws.cloudwatchevents#InvalidEventPatternException":
|
|
3320
|
-
|
|
3321
|
-
...(await deserializeAws_json1_1InvalidEventPatternExceptionResponse(parsedOutput, context)),
|
|
3322
|
-
name: errorCode,
|
|
3323
|
-
$metadata: deserializeMetadata(output),
|
|
3324
|
-
};
|
|
3325
|
-
break;
|
|
2378
|
+
throw await deserializeAws_json1_1InvalidEventPatternExceptionResponse(parsedOutput, context);
|
|
3326
2379
|
case "LimitExceededException":
|
|
3327
2380
|
case "com.amazonaws.cloudwatchevents#LimitExceededException":
|
|
3328
|
-
|
|
3329
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
3330
|
-
name: errorCode,
|
|
3331
|
-
$metadata: deserializeMetadata(output),
|
|
3332
|
-
};
|
|
3333
|
-
break;
|
|
2381
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
3334
2382
|
case "ResourceAlreadyExistsException":
|
|
3335
2383
|
case "com.amazonaws.cloudwatchevents#ResourceAlreadyExistsException":
|
|
3336
|
-
|
|
3337
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
3338
|
-
name: errorCode,
|
|
3339
|
-
$metadata: deserializeMetadata(output),
|
|
3340
|
-
};
|
|
3341
|
-
break;
|
|
2384
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
3342
2385
|
case "ResourceNotFoundException":
|
|
3343
2386
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
3344
|
-
|
|
3345
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3346
|
-
name: errorCode,
|
|
3347
|
-
$metadata: deserializeMetadata(output),
|
|
3348
|
-
};
|
|
3349
|
-
break;
|
|
2387
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3350
2388
|
default:
|
|
3351
2389
|
const parsedBody = parsedOutput.body;
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
...parsedBody,
|
|
3355
|
-
name: `${errorCode}`,
|
|
3356
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2390
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2391
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3357
2392
|
$fault: "client",
|
|
3358
2393
|
$metadata: deserializeMetadata(output),
|
|
3359
|
-
};
|
|
2394
|
+
});
|
|
2395
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3360
2396
|
}
|
|
3361
|
-
const message = response.message || response.Message || errorCode;
|
|
3362
|
-
response.message = message;
|
|
3363
|
-
delete response.Message;
|
|
3364
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3365
2397
|
};
|
|
3366
2398
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
3367
2399
|
if (output.statusCode >= 300) {
|
|
@@ -3388,51 +2420,25 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3388
2420
|
switch (errorCode) {
|
|
3389
2421
|
case "ConcurrentModificationException":
|
|
3390
2422
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
3391
|
-
|
|
3392
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
3393
|
-
name: errorCode,
|
|
3394
|
-
$metadata: deserializeMetadata(output),
|
|
3395
|
-
};
|
|
3396
|
-
break;
|
|
2423
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
3397
2424
|
case "InternalException":
|
|
3398
2425
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
3399
|
-
|
|
3400
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
3401
|
-
name: errorCode,
|
|
3402
|
-
$metadata: deserializeMetadata(output),
|
|
3403
|
-
};
|
|
3404
|
-
break;
|
|
2426
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
3405
2427
|
case "ManagedRuleException":
|
|
3406
2428
|
case "com.amazonaws.cloudwatchevents#ManagedRuleException":
|
|
3407
|
-
|
|
3408
|
-
...(await deserializeAws_json1_1ManagedRuleExceptionResponse(parsedOutput, context)),
|
|
3409
|
-
name: errorCode,
|
|
3410
|
-
$metadata: deserializeMetadata(output),
|
|
3411
|
-
};
|
|
3412
|
-
break;
|
|
2429
|
+
throw await deserializeAws_json1_1ManagedRuleExceptionResponse(parsedOutput, context);
|
|
3413
2430
|
case "ResourceNotFoundException":
|
|
3414
2431
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
3415
|
-
|
|
3416
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3417
|
-
name: errorCode,
|
|
3418
|
-
$metadata: deserializeMetadata(output),
|
|
3419
|
-
};
|
|
3420
|
-
break;
|
|
2432
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3421
2433
|
default:
|
|
3422
2434
|
const parsedBody = parsedOutput.body;
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
...parsedBody,
|
|
3426
|
-
name: `${errorCode}`,
|
|
3427
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2435
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2436
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3428
2437
|
$fault: "client",
|
|
3429
2438
|
$metadata: deserializeMetadata(output),
|
|
3430
|
-
};
|
|
2439
|
+
});
|
|
2440
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3431
2441
|
}
|
|
3432
|
-
const message = response.message || response.Message || errorCode;
|
|
3433
|
-
response.message = message;
|
|
3434
|
-
delete response.Message;
|
|
3435
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3436
2442
|
};
|
|
3437
2443
|
const deserializeAws_json1_1TestEventPatternCommand = async (output, context) => {
|
|
3438
2444
|
if (output.statusCode >= 300) {
|
|
@@ -3459,35 +2465,19 @@ const deserializeAws_json1_1TestEventPatternCommandError = async (output, contex
|
|
|
3459
2465
|
switch (errorCode) {
|
|
3460
2466
|
case "InternalException":
|
|
3461
2467
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
3462
|
-
|
|
3463
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
3464
|
-
name: errorCode,
|
|
3465
|
-
$metadata: deserializeMetadata(output),
|
|
3466
|
-
};
|
|
3467
|
-
break;
|
|
2468
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
3468
2469
|
case "InvalidEventPatternException":
|
|
3469
2470
|
case "com.amazonaws.cloudwatchevents#InvalidEventPatternException":
|
|
3470
|
-
|
|
3471
|
-
...(await deserializeAws_json1_1InvalidEventPatternExceptionResponse(parsedOutput, context)),
|
|
3472
|
-
name: errorCode,
|
|
3473
|
-
$metadata: deserializeMetadata(output),
|
|
3474
|
-
};
|
|
3475
|
-
break;
|
|
2471
|
+
throw await deserializeAws_json1_1InvalidEventPatternExceptionResponse(parsedOutput, context);
|
|
3476
2472
|
default:
|
|
3477
2473
|
const parsedBody = parsedOutput.body;
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
...parsedBody,
|
|
3481
|
-
name: `${errorCode}`,
|
|
3482
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2474
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2475
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3483
2476
|
$fault: "client",
|
|
3484
2477
|
$metadata: deserializeMetadata(output),
|
|
3485
|
-
};
|
|
2478
|
+
});
|
|
2479
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3486
2480
|
}
|
|
3487
|
-
const message = response.message || response.Message || errorCode;
|
|
3488
|
-
response.message = message;
|
|
3489
|
-
delete response.Message;
|
|
3490
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3491
2481
|
};
|
|
3492
2482
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
3493
2483
|
if (output.statusCode >= 300) {
|
|
@@ -3514,51 +2504,25 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3514
2504
|
switch (errorCode) {
|
|
3515
2505
|
case "ConcurrentModificationException":
|
|
3516
2506
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
3517
|
-
|
|
3518
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
3519
|
-
name: errorCode,
|
|
3520
|
-
$metadata: deserializeMetadata(output),
|
|
3521
|
-
};
|
|
3522
|
-
break;
|
|
2507
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
3523
2508
|
case "InternalException":
|
|
3524
2509
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
3525
|
-
|
|
3526
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
3527
|
-
name: errorCode,
|
|
3528
|
-
$metadata: deserializeMetadata(output),
|
|
3529
|
-
};
|
|
3530
|
-
break;
|
|
2510
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
3531
2511
|
case "ManagedRuleException":
|
|
3532
2512
|
case "com.amazonaws.cloudwatchevents#ManagedRuleException":
|
|
3533
|
-
|
|
3534
|
-
...(await deserializeAws_json1_1ManagedRuleExceptionResponse(parsedOutput, context)),
|
|
3535
|
-
name: errorCode,
|
|
3536
|
-
$metadata: deserializeMetadata(output),
|
|
3537
|
-
};
|
|
3538
|
-
break;
|
|
2513
|
+
throw await deserializeAws_json1_1ManagedRuleExceptionResponse(parsedOutput, context);
|
|
3539
2514
|
case "ResourceNotFoundException":
|
|
3540
2515
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
3541
|
-
|
|
3542
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3543
|
-
name: errorCode,
|
|
3544
|
-
$metadata: deserializeMetadata(output),
|
|
3545
|
-
};
|
|
3546
|
-
break;
|
|
2516
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3547
2517
|
default:
|
|
3548
2518
|
const parsedBody = parsedOutput.body;
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
...parsedBody,
|
|
3552
|
-
name: `${errorCode}`,
|
|
3553
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2519
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2520
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3554
2521
|
$fault: "client",
|
|
3555
2522
|
$metadata: deserializeMetadata(output),
|
|
3556
|
-
};
|
|
2523
|
+
});
|
|
2524
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3557
2525
|
}
|
|
3558
|
-
const message = response.message || response.Message || errorCode;
|
|
3559
|
-
response.message = message;
|
|
3560
|
-
delete response.Message;
|
|
3561
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3562
2526
|
};
|
|
3563
2527
|
const deserializeAws_json1_1UpdateApiDestinationCommand = async (output, context) => {
|
|
3564
2528
|
if (output.statusCode >= 300) {
|
|
@@ -3585,51 +2549,25 @@ const deserializeAws_json1_1UpdateApiDestinationCommandError = async (output, co
|
|
|
3585
2549
|
switch (errorCode) {
|
|
3586
2550
|
case "ConcurrentModificationException":
|
|
3587
2551
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
3588
|
-
|
|
3589
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
3590
|
-
name: errorCode,
|
|
3591
|
-
$metadata: deserializeMetadata(output),
|
|
3592
|
-
};
|
|
3593
|
-
break;
|
|
2552
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
3594
2553
|
case "InternalException":
|
|
3595
2554
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
3596
|
-
|
|
3597
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
3598
|
-
name: errorCode,
|
|
3599
|
-
$metadata: deserializeMetadata(output),
|
|
3600
|
-
};
|
|
3601
|
-
break;
|
|
2555
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
3602
2556
|
case "LimitExceededException":
|
|
3603
2557
|
case "com.amazonaws.cloudwatchevents#LimitExceededException":
|
|
3604
|
-
|
|
3605
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
3606
|
-
name: errorCode,
|
|
3607
|
-
$metadata: deserializeMetadata(output),
|
|
3608
|
-
};
|
|
3609
|
-
break;
|
|
2558
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
3610
2559
|
case "ResourceNotFoundException":
|
|
3611
2560
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
3612
|
-
|
|
3613
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3614
|
-
name: errorCode,
|
|
3615
|
-
$metadata: deserializeMetadata(output),
|
|
3616
|
-
};
|
|
3617
|
-
break;
|
|
2561
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3618
2562
|
default:
|
|
3619
2563
|
const parsedBody = parsedOutput.body;
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
...parsedBody,
|
|
3623
|
-
name: `${errorCode}`,
|
|
3624
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2564
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2565
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3625
2566
|
$fault: "client",
|
|
3626
2567
|
$metadata: deserializeMetadata(output),
|
|
3627
|
-
};
|
|
2568
|
+
});
|
|
2569
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3628
2570
|
}
|
|
3629
|
-
const message = response.message || response.Message || errorCode;
|
|
3630
|
-
response.message = message;
|
|
3631
|
-
delete response.Message;
|
|
3632
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3633
2571
|
};
|
|
3634
2572
|
const deserializeAws_json1_1UpdateArchiveCommand = async (output, context) => {
|
|
3635
2573
|
if (output.statusCode >= 300) {
|
|
@@ -3656,59 +2594,28 @@ const deserializeAws_json1_1UpdateArchiveCommandError = async (output, context)
|
|
|
3656
2594
|
switch (errorCode) {
|
|
3657
2595
|
case "ConcurrentModificationException":
|
|
3658
2596
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
3659
|
-
|
|
3660
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
3661
|
-
name: errorCode,
|
|
3662
|
-
$metadata: deserializeMetadata(output),
|
|
3663
|
-
};
|
|
3664
|
-
break;
|
|
2597
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
3665
2598
|
case "InternalException":
|
|
3666
2599
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
3667
|
-
|
|
3668
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
3669
|
-
name: errorCode,
|
|
3670
|
-
$metadata: deserializeMetadata(output),
|
|
3671
|
-
};
|
|
3672
|
-
break;
|
|
2600
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
3673
2601
|
case "InvalidEventPatternException":
|
|
3674
2602
|
case "com.amazonaws.cloudwatchevents#InvalidEventPatternException":
|
|
3675
|
-
|
|
3676
|
-
...(await deserializeAws_json1_1InvalidEventPatternExceptionResponse(parsedOutput, context)),
|
|
3677
|
-
name: errorCode,
|
|
3678
|
-
$metadata: deserializeMetadata(output),
|
|
3679
|
-
};
|
|
3680
|
-
break;
|
|
2603
|
+
throw await deserializeAws_json1_1InvalidEventPatternExceptionResponse(parsedOutput, context);
|
|
3681
2604
|
case "LimitExceededException":
|
|
3682
2605
|
case "com.amazonaws.cloudwatchevents#LimitExceededException":
|
|
3683
|
-
|
|
3684
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
3685
|
-
name: errorCode,
|
|
3686
|
-
$metadata: deserializeMetadata(output),
|
|
3687
|
-
};
|
|
3688
|
-
break;
|
|
2606
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
3689
2607
|
case "ResourceNotFoundException":
|
|
3690
2608
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
3691
|
-
|
|
3692
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3693
|
-
name: errorCode,
|
|
3694
|
-
$metadata: deserializeMetadata(output),
|
|
3695
|
-
};
|
|
3696
|
-
break;
|
|
2609
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3697
2610
|
default:
|
|
3698
2611
|
const parsedBody = parsedOutput.body;
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
...parsedBody,
|
|
3702
|
-
name: `${errorCode}`,
|
|
3703
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2612
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2613
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3704
2614
|
$fault: "client",
|
|
3705
2615
|
$metadata: deserializeMetadata(output),
|
|
3706
|
-
};
|
|
2616
|
+
});
|
|
2617
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3707
2618
|
}
|
|
3708
|
-
const message = response.message || response.Message || errorCode;
|
|
3709
|
-
response.message = message;
|
|
3710
|
-
delete response.Message;
|
|
3711
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3712
2619
|
};
|
|
3713
2620
|
const deserializeAws_json1_1UpdateConnectionCommand = async (output, context) => {
|
|
3714
2621
|
if (output.statusCode >= 300) {
|
|
@@ -3735,172 +2642,124 @@ const deserializeAws_json1_1UpdateConnectionCommandError = async (output, contex
|
|
|
3735
2642
|
switch (errorCode) {
|
|
3736
2643
|
case "ConcurrentModificationException":
|
|
3737
2644
|
case "com.amazonaws.cloudwatchevents#ConcurrentModificationException":
|
|
3738
|
-
|
|
3739
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
3740
|
-
name: errorCode,
|
|
3741
|
-
$metadata: deserializeMetadata(output),
|
|
3742
|
-
};
|
|
3743
|
-
break;
|
|
2645
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
3744
2646
|
case "InternalException":
|
|
3745
2647
|
case "com.amazonaws.cloudwatchevents#InternalException":
|
|
3746
|
-
|
|
3747
|
-
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
3748
|
-
name: errorCode,
|
|
3749
|
-
$metadata: deserializeMetadata(output),
|
|
3750
|
-
};
|
|
3751
|
-
break;
|
|
2648
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
3752
2649
|
case "LimitExceededException":
|
|
3753
2650
|
case "com.amazonaws.cloudwatchevents#LimitExceededException":
|
|
3754
|
-
|
|
3755
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
3756
|
-
name: errorCode,
|
|
3757
|
-
$metadata: deserializeMetadata(output),
|
|
3758
|
-
};
|
|
3759
|
-
break;
|
|
2651
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
3760
2652
|
case "ResourceNotFoundException":
|
|
3761
2653
|
case "com.amazonaws.cloudwatchevents#ResourceNotFoundException":
|
|
3762
|
-
|
|
3763
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3764
|
-
name: errorCode,
|
|
3765
|
-
$metadata: deserializeMetadata(output),
|
|
3766
|
-
};
|
|
3767
|
-
break;
|
|
2654
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3768
2655
|
default:
|
|
3769
2656
|
const parsedBody = parsedOutput.body;
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
...parsedBody,
|
|
3773
|
-
name: `${errorCode}`,
|
|
3774
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2657
|
+
response = new CloudWatchEventsServiceException_1.CloudWatchEventsServiceException({
|
|
2658
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3775
2659
|
$fault: "client",
|
|
3776
2660
|
$metadata: deserializeMetadata(output),
|
|
3777
|
-
};
|
|
2661
|
+
});
|
|
2662
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3778
2663
|
}
|
|
3779
|
-
const message = response.message || response.Message || errorCode;
|
|
3780
|
-
response.message = message;
|
|
3781
|
-
delete response.Message;
|
|
3782
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3783
2664
|
};
|
|
3784
2665
|
const deserializeAws_json1_1ConcurrentModificationExceptionResponse = async (parsedOutput, context) => {
|
|
3785
2666
|
const body = parsedOutput.body;
|
|
3786
2667
|
const deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context);
|
|
3787
|
-
const
|
|
3788
|
-
name: "ConcurrentModificationException",
|
|
3789
|
-
$fault: "client",
|
|
2668
|
+
const exception = new models_0_1.ConcurrentModificationException({
|
|
3790
2669
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3791
2670
|
...deserialized,
|
|
3792
|
-
};
|
|
3793
|
-
return
|
|
2671
|
+
});
|
|
2672
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3794
2673
|
};
|
|
3795
2674
|
const deserializeAws_json1_1IllegalStatusExceptionResponse = async (parsedOutput, context) => {
|
|
3796
2675
|
const body = parsedOutput.body;
|
|
3797
2676
|
const deserialized = deserializeAws_json1_1IllegalStatusException(body, context);
|
|
3798
|
-
const
|
|
3799
|
-
name: "IllegalStatusException",
|
|
3800
|
-
$fault: "client",
|
|
2677
|
+
const exception = new models_0_1.IllegalStatusException({
|
|
3801
2678
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3802
2679
|
...deserialized,
|
|
3803
|
-
};
|
|
3804
|
-
return
|
|
2680
|
+
});
|
|
2681
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3805
2682
|
};
|
|
3806
2683
|
const deserializeAws_json1_1InternalExceptionResponse = async (parsedOutput, context) => {
|
|
3807
2684
|
const body = parsedOutput.body;
|
|
3808
2685
|
const deserialized = deserializeAws_json1_1InternalException(body, context);
|
|
3809
|
-
const
|
|
3810
|
-
name: "InternalException",
|
|
3811
|
-
$fault: "server",
|
|
2686
|
+
const exception = new models_0_1.InternalException({
|
|
3812
2687
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3813
2688
|
...deserialized,
|
|
3814
|
-
};
|
|
3815
|
-
return
|
|
2689
|
+
});
|
|
2690
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3816
2691
|
};
|
|
3817
2692
|
const deserializeAws_json1_1InvalidEventPatternExceptionResponse = async (parsedOutput, context) => {
|
|
3818
2693
|
const body = parsedOutput.body;
|
|
3819
2694
|
const deserialized = deserializeAws_json1_1InvalidEventPatternException(body, context);
|
|
3820
|
-
const
|
|
3821
|
-
name: "InvalidEventPatternException",
|
|
3822
|
-
$fault: "client",
|
|
2695
|
+
const exception = new models_0_1.InvalidEventPatternException({
|
|
3823
2696
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3824
2697
|
...deserialized,
|
|
3825
|
-
};
|
|
3826
|
-
return
|
|
2698
|
+
});
|
|
2699
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3827
2700
|
};
|
|
3828
2701
|
const deserializeAws_json1_1InvalidStateExceptionResponse = async (parsedOutput, context) => {
|
|
3829
2702
|
const body = parsedOutput.body;
|
|
3830
2703
|
const deserialized = deserializeAws_json1_1InvalidStateException(body, context);
|
|
3831
|
-
const
|
|
3832
|
-
name: "InvalidStateException",
|
|
3833
|
-
$fault: "client",
|
|
2704
|
+
const exception = new models_0_1.InvalidStateException({
|
|
3834
2705
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3835
2706
|
...deserialized,
|
|
3836
|
-
};
|
|
3837
|
-
return
|
|
2707
|
+
});
|
|
2708
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3838
2709
|
};
|
|
3839
2710
|
const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
3840
2711
|
const body = parsedOutput.body;
|
|
3841
2712
|
const deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
3842
|
-
const
|
|
3843
|
-
name: "LimitExceededException",
|
|
3844
|
-
$fault: "client",
|
|
2713
|
+
const exception = new models_0_1.LimitExceededException({
|
|
3845
2714
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3846
2715
|
...deserialized,
|
|
3847
|
-
};
|
|
3848
|
-
return
|
|
2716
|
+
});
|
|
2717
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3849
2718
|
};
|
|
3850
2719
|
const deserializeAws_json1_1ManagedRuleExceptionResponse = async (parsedOutput, context) => {
|
|
3851
2720
|
const body = parsedOutput.body;
|
|
3852
2721
|
const deserialized = deserializeAws_json1_1ManagedRuleException(body, context);
|
|
3853
|
-
const
|
|
3854
|
-
name: "ManagedRuleException",
|
|
3855
|
-
$fault: "client",
|
|
2722
|
+
const exception = new models_0_1.ManagedRuleException({
|
|
3856
2723
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3857
2724
|
...deserialized,
|
|
3858
|
-
};
|
|
3859
|
-
return
|
|
2725
|
+
});
|
|
2726
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3860
2727
|
};
|
|
3861
2728
|
const deserializeAws_json1_1OperationDisabledExceptionResponse = async (parsedOutput, context) => {
|
|
3862
2729
|
const body = parsedOutput.body;
|
|
3863
2730
|
const deserialized = deserializeAws_json1_1OperationDisabledException(body, context);
|
|
3864
|
-
const
|
|
3865
|
-
name: "OperationDisabledException",
|
|
3866
|
-
$fault: "client",
|
|
2731
|
+
const exception = new models_0_1.OperationDisabledException({
|
|
3867
2732
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3868
2733
|
...deserialized,
|
|
3869
|
-
};
|
|
3870
|
-
return
|
|
2734
|
+
});
|
|
2735
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3871
2736
|
};
|
|
3872
2737
|
const deserializeAws_json1_1PolicyLengthExceededExceptionResponse = async (parsedOutput, context) => {
|
|
3873
2738
|
const body = parsedOutput.body;
|
|
3874
2739
|
const deserialized = deserializeAws_json1_1PolicyLengthExceededException(body, context);
|
|
3875
|
-
const
|
|
3876
|
-
name: "PolicyLengthExceededException",
|
|
3877
|
-
$fault: "client",
|
|
2740
|
+
const exception = new models_0_1.PolicyLengthExceededException({
|
|
3878
2741
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3879
2742
|
...deserialized,
|
|
3880
|
-
};
|
|
3881
|
-
return
|
|
2743
|
+
});
|
|
2744
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3882
2745
|
};
|
|
3883
2746
|
const deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
3884
2747
|
const body = parsedOutput.body;
|
|
3885
2748
|
const deserialized = deserializeAws_json1_1ResourceAlreadyExistsException(body, context);
|
|
3886
|
-
const
|
|
3887
|
-
name: "ResourceAlreadyExistsException",
|
|
3888
|
-
$fault: "client",
|
|
2749
|
+
const exception = new models_0_1.ResourceAlreadyExistsException({
|
|
3889
2750
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3890
2751
|
...deserialized,
|
|
3891
|
-
};
|
|
3892
|
-
return
|
|
2752
|
+
});
|
|
2753
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3893
2754
|
};
|
|
3894
2755
|
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3895
2756
|
const body = parsedOutput.body;
|
|
3896
2757
|
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
3897
|
-
const
|
|
3898
|
-
name: "ResourceNotFoundException",
|
|
3899
|
-
$fault: "client",
|
|
2758
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
3900
2759
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3901
2760
|
...deserialized,
|
|
3902
|
-
};
|
|
3903
|
-
return
|
|
2761
|
+
});
|
|
2762
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3904
2763
|
};
|
|
3905
2764
|
const serializeAws_json1_1ActivateEventSourceRequest = (input, context) => {
|
|
3906
2765
|
return {
|
|
@@ -4949,7 +3808,7 @@ const deserializeAws_json1_1ApiDestination = (output, context) => {
|
|
|
4949
3808
|
};
|
|
4950
3809
|
};
|
|
4951
3810
|
const deserializeAws_json1_1ApiDestinationResponseList = (output, context) => {
|
|
4952
|
-
|
|
3811
|
+
const retVal = (output || [])
|
|
4953
3812
|
.filter((e) => e != null)
|
|
4954
3813
|
.map((entry) => {
|
|
4955
3814
|
if (entry === null) {
|
|
@@ -4957,6 +3816,7 @@ const deserializeAws_json1_1ApiDestinationResponseList = (output, context) => {
|
|
|
4957
3816
|
}
|
|
4958
3817
|
return deserializeAws_json1_1ApiDestination(entry, context);
|
|
4959
3818
|
});
|
|
3819
|
+
return retVal;
|
|
4960
3820
|
};
|
|
4961
3821
|
const deserializeAws_json1_1Archive = (output, context) => {
|
|
4962
3822
|
return {
|
|
@@ -4973,7 +3833,7 @@ const deserializeAws_json1_1Archive = (output, context) => {
|
|
|
4973
3833
|
};
|
|
4974
3834
|
};
|
|
4975
3835
|
const deserializeAws_json1_1ArchiveResponseList = (output, context) => {
|
|
4976
|
-
|
|
3836
|
+
const retVal = (output || [])
|
|
4977
3837
|
.filter((e) => e != null)
|
|
4978
3838
|
.map((entry) => {
|
|
4979
3839
|
if (entry === null) {
|
|
@@ -4981,6 +3841,7 @@ const deserializeAws_json1_1ArchiveResponseList = (output, context) => {
|
|
|
4981
3841
|
}
|
|
4982
3842
|
return deserializeAws_json1_1Archive(entry, context);
|
|
4983
3843
|
});
|
|
3844
|
+
return retVal;
|
|
4984
3845
|
};
|
|
4985
3846
|
const deserializeAws_json1_1AwsVpcConfiguration = (output, context) => {
|
|
4986
3847
|
return {
|
|
@@ -5023,7 +3884,7 @@ const deserializeAws_json1_1CancelReplayResponse = (output, context) => {
|
|
|
5023
3884
|
};
|
|
5024
3885
|
};
|
|
5025
3886
|
const deserializeAws_json1_1CapacityProviderStrategy = (output, context) => {
|
|
5026
|
-
|
|
3887
|
+
const retVal = (output || [])
|
|
5027
3888
|
.filter((e) => e != null)
|
|
5028
3889
|
.map((entry) => {
|
|
5029
3890
|
if (entry === null) {
|
|
@@ -5031,6 +3892,7 @@ const deserializeAws_json1_1CapacityProviderStrategy = (output, context) => {
|
|
|
5031
3892
|
}
|
|
5032
3893
|
return deserializeAws_json1_1CapacityProviderStrategyItem(entry, context);
|
|
5033
3894
|
});
|
|
3895
|
+
return retVal;
|
|
5034
3896
|
};
|
|
5035
3897
|
const deserializeAws_json1_1CapacityProviderStrategyItem = (output, context) => {
|
|
5036
3898
|
return {
|
|
@@ -5096,7 +3958,7 @@ const deserializeAws_json1_1ConnectionBodyParameter = (output, context) => {
|
|
|
5096
3958
|
};
|
|
5097
3959
|
};
|
|
5098
3960
|
const deserializeAws_json1_1ConnectionBodyParametersList = (output, context) => {
|
|
5099
|
-
|
|
3961
|
+
const retVal = (output || [])
|
|
5100
3962
|
.filter((e) => e != null)
|
|
5101
3963
|
.map((entry) => {
|
|
5102
3964
|
if (entry === null) {
|
|
@@ -5104,6 +3966,7 @@ const deserializeAws_json1_1ConnectionBodyParametersList = (output, context) =>
|
|
|
5104
3966
|
}
|
|
5105
3967
|
return deserializeAws_json1_1ConnectionBodyParameter(entry, context);
|
|
5106
3968
|
});
|
|
3969
|
+
return retVal;
|
|
5107
3970
|
};
|
|
5108
3971
|
const deserializeAws_json1_1ConnectionHeaderParameter = (output, context) => {
|
|
5109
3972
|
return {
|
|
@@ -5113,7 +3976,7 @@ const deserializeAws_json1_1ConnectionHeaderParameter = (output, context) => {
|
|
|
5113
3976
|
};
|
|
5114
3977
|
};
|
|
5115
3978
|
const deserializeAws_json1_1ConnectionHeaderParametersList = (output, context) => {
|
|
5116
|
-
|
|
3979
|
+
const retVal = (output || [])
|
|
5117
3980
|
.filter((e) => e != null)
|
|
5118
3981
|
.map((entry) => {
|
|
5119
3982
|
if (entry === null) {
|
|
@@ -5121,6 +3984,7 @@ const deserializeAws_json1_1ConnectionHeaderParametersList = (output, context) =
|
|
|
5121
3984
|
}
|
|
5122
3985
|
return deserializeAws_json1_1ConnectionHeaderParameter(entry, context);
|
|
5123
3986
|
});
|
|
3987
|
+
return retVal;
|
|
5124
3988
|
};
|
|
5125
3989
|
const deserializeAws_json1_1ConnectionHttpParameters = (output, context) => {
|
|
5126
3990
|
return {
|
|
@@ -5160,7 +4024,7 @@ const deserializeAws_json1_1ConnectionQueryStringParameter = (output, context) =
|
|
|
5160
4024
|
};
|
|
5161
4025
|
};
|
|
5162
4026
|
const deserializeAws_json1_1ConnectionQueryStringParametersList = (output, context) => {
|
|
5163
|
-
|
|
4027
|
+
const retVal = (output || [])
|
|
5164
4028
|
.filter((e) => e != null)
|
|
5165
4029
|
.map((entry) => {
|
|
5166
4030
|
if (entry === null) {
|
|
@@ -5168,9 +4032,10 @@ const deserializeAws_json1_1ConnectionQueryStringParametersList = (output, conte
|
|
|
5168
4032
|
}
|
|
5169
4033
|
return deserializeAws_json1_1ConnectionQueryStringParameter(entry, context);
|
|
5170
4034
|
});
|
|
4035
|
+
return retVal;
|
|
5171
4036
|
};
|
|
5172
4037
|
const deserializeAws_json1_1ConnectionResponseList = (output, context) => {
|
|
5173
|
-
|
|
4038
|
+
const retVal = (output || [])
|
|
5174
4039
|
.filter((e) => e != null)
|
|
5175
4040
|
.map((entry) => {
|
|
5176
4041
|
if (entry === null) {
|
|
@@ -5178,6 +4043,7 @@ const deserializeAws_json1_1ConnectionResponseList = (output, context) => {
|
|
|
5178
4043
|
}
|
|
5179
4044
|
return deserializeAws_json1_1Connection(entry, context);
|
|
5180
4045
|
});
|
|
4046
|
+
return retVal;
|
|
5181
4047
|
};
|
|
5182
4048
|
const deserializeAws_json1_1CreateApiDestinationResponse = (output, context) => {
|
|
5183
4049
|
return {
|
|
@@ -5427,7 +4293,7 @@ const deserializeAws_json1_1EventBus = (output, context) => {
|
|
|
5427
4293
|
};
|
|
5428
4294
|
};
|
|
5429
4295
|
const deserializeAws_json1_1EventBusList = (output, context) => {
|
|
5430
|
-
|
|
4296
|
+
const retVal = (output || [])
|
|
5431
4297
|
.filter((e) => e != null)
|
|
5432
4298
|
.map((entry) => {
|
|
5433
4299
|
if (entry === null) {
|
|
@@ -5435,6 +4301,7 @@ const deserializeAws_json1_1EventBusList = (output, context) => {
|
|
|
5435
4301
|
}
|
|
5436
4302
|
return deserializeAws_json1_1EventBus(entry, context);
|
|
5437
4303
|
});
|
|
4304
|
+
return retVal;
|
|
5438
4305
|
};
|
|
5439
4306
|
const deserializeAws_json1_1EventSource = (output, context) => {
|
|
5440
4307
|
return {
|
|
@@ -5451,7 +4318,7 @@ const deserializeAws_json1_1EventSource = (output, context) => {
|
|
|
5451
4318
|
};
|
|
5452
4319
|
};
|
|
5453
4320
|
const deserializeAws_json1_1EventSourceList = (output, context) => {
|
|
5454
|
-
|
|
4321
|
+
const retVal = (output || [])
|
|
5455
4322
|
.filter((e) => e != null)
|
|
5456
4323
|
.map((entry) => {
|
|
5457
4324
|
if (entry === null) {
|
|
@@ -5459,6 +4326,7 @@ const deserializeAws_json1_1EventSourceList = (output, context) => {
|
|
|
5459
4326
|
}
|
|
5460
4327
|
return deserializeAws_json1_1EventSource(entry, context);
|
|
5461
4328
|
});
|
|
4329
|
+
return retVal;
|
|
5462
4330
|
};
|
|
5463
4331
|
const deserializeAws_json1_1HeaderParametersMap = (output, context) => {
|
|
5464
4332
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -5653,7 +4521,7 @@ const deserializeAws_json1_1PartnerEventSourceAccount = (output, context) => {
|
|
|
5653
4521
|
};
|
|
5654
4522
|
};
|
|
5655
4523
|
const deserializeAws_json1_1PartnerEventSourceAccountList = (output, context) => {
|
|
5656
|
-
|
|
4524
|
+
const retVal = (output || [])
|
|
5657
4525
|
.filter((e) => e != null)
|
|
5658
4526
|
.map((entry) => {
|
|
5659
4527
|
if (entry === null) {
|
|
@@ -5661,9 +4529,10 @@ const deserializeAws_json1_1PartnerEventSourceAccountList = (output, context) =>
|
|
|
5661
4529
|
}
|
|
5662
4530
|
return deserializeAws_json1_1PartnerEventSourceAccount(entry, context);
|
|
5663
4531
|
});
|
|
4532
|
+
return retVal;
|
|
5664
4533
|
};
|
|
5665
4534
|
const deserializeAws_json1_1PartnerEventSourceList = (output, context) => {
|
|
5666
|
-
|
|
4535
|
+
const retVal = (output || [])
|
|
5667
4536
|
.filter((e) => e != null)
|
|
5668
4537
|
.map((entry) => {
|
|
5669
4538
|
if (entry === null) {
|
|
@@ -5671,9 +4540,10 @@ const deserializeAws_json1_1PartnerEventSourceList = (output, context) => {
|
|
|
5671
4540
|
}
|
|
5672
4541
|
return deserializeAws_json1_1PartnerEventSource(entry, context);
|
|
5673
4542
|
});
|
|
4543
|
+
return retVal;
|
|
5674
4544
|
};
|
|
5675
4545
|
const deserializeAws_json1_1PathParameterList = (output, context) => {
|
|
5676
|
-
|
|
4546
|
+
const retVal = (output || [])
|
|
5677
4547
|
.filter((e) => e != null)
|
|
5678
4548
|
.map((entry) => {
|
|
5679
4549
|
if (entry === null) {
|
|
@@ -5681,6 +4551,7 @@ const deserializeAws_json1_1PathParameterList = (output, context) => {
|
|
|
5681
4551
|
}
|
|
5682
4552
|
return smithy_client_1.expectString(entry);
|
|
5683
4553
|
});
|
|
4554
|
+
return retVal;
|
|
5684
4555
|
};
|
|
5685
4556
|
const deserializeAws_json1_1PlacementConstraint = (output, context) => {
|
|
5686
4557
|
return {
|
|
@@ -5689,7 +4560,7 @@ const deserializeAws_json1_1PlacementConstraint = (output, context) => {
|
|
|
5689
4560
|
};
|
|
5690
4561
|
};
|
|
5691
4562
|
const deserializeAws_json1_1PlacementConstraints = (output, context) => {
|
|
5692
|
-
|
|
4563
|
+
const retVal = (output || [])
|
|
5693
4564
|
.filter((e) => e != null)
|
|
5694
4565
|
.map((entry) => {
|
|
5695
4566
|
if (entry === null) {
|
|
@@ -5697,9 +4568,10 @@ const deserializeAws_json1_1PlacementConstraints = (output, context) => {
|
|
|
5697
4568
|
}
|
|
5698
4569
|
return deserializeAws_json1_1PlacementConstraint(entry, context);
|
|
5699
4570
|
});
|
|
4571
|
+
return retVal;
|
|
5700
4572
|
};
|
|
5701
4573
|
const deserializeAws_json1_1PlacementStrategies = (output, context) => {
|
|
5702
|
-
|
|
4574
|
+
const retVal = (output || [])
|
|
5703
4575
|
.filter((e) => e != null)
|
|
5704
4576
|
.map((entry) => {
|
|
5705
4577
|
if (entry === null) {
|
|
@@ -5707,6 +4579,7 @@ const deserializeAws_json1_1PlacementStrategies = (output, context) => {
|
|
|
5707
4579
|
}
|
|
5708
4580
|
return deserializeAws_json1_1PlacementStrategy(entry, context);
|
|
5709
4581
|
});
|
|
4582
|
+
return retVal;
|
|
5710
4583
|
};
|
|
5711
4584
|
const deserializeAws_json1_1PlacementStrategy = (output, context) => {
|
|
5712
4585
|
return {
|
|
@@ -5735,7 +4608,7 @@ const deserializeAws_json1_1PutEventsResultEntry = (output, context) => {
|
|
|
5735
4608
|
};
|
|
5736
4609
|
};
|
|
5737
4610
|
const deserializeAws_json1_1PutEventsResultEntryList = (output, context) => {
|
|
5738
|
-
|
|
4611
|
+
const retVal = (output || [])
|
|
5739
4612
|
.filter((e) => e != null)
|
|
5740
4613
|
.map((entry) => {
|
|
5741
4614
|
if (entry === null) {
|
|
@@ -5743,6 +4616,7 @@ const deserializeAws_json1_1PutEventsResultEntryList = (output, context) => {
|
|
|
5743
4616
|
}
|
|
5744
4617
|
return deserializeAws_json1_1PutEventsResultEntry(entry, context);
|
|
5745
4618
|
});
|
|
4619
|
+
return retVal;
|
|
5746
4620
|
};
|
|
5747
4621
|
const deserializeAws_json1_1PutPartnerEventsResponse = (output, context) => {
|
|
5748
4622
|
return {
|
|
@@ -5760,7 +4634,7 @@ const deserializeAws_json1_1PutPartnerEventsResultEntry = (output, context) => {
|
|
|
5760
4634
|
};
|
|
5761
4635
|
};
|
|
5762
4636
|
const deserializeAws_json1_1PutPartnerEventsResultEntryList = (output, context) => {
|
|
5763
|
-
|
|
4637
|
+
const retVal = (output || [])
|
|
5764
4638
|
.filter((e) => e != null)
|
|
5765
4639
|
.map((entry) => {
|
|
5766
4640
|
if (entry === null) {
|
|
@@ -5768,6 +4642,7 @@ const deserializeAws_json1_1PutPartnerEventsResultEntryList = (output, context)
|
|
|
5768
4642
|
}
|
|
5769
4643
|
return deserializeAws_json1_1PutPartnerEventsResultEntry(entry, context);
|
|
5770
4644
|
});
|
|
4645
|
+
return retVal;
|
|
5771
4646
|
};
|
|
5772
4647
|
const deserializeAws_json1_1PutRuleResponse = (output, context) => {
|
|
5773
4648
|
return {
|
|
@@ -5790,7 +4665,7 @@ const deserializeAws_json1_1PutTargetsResultEntry = (output, context) => {
|
|
|
5790
4665
|
};
|
|
5791
4666
|
};
|
|
5792
4667
|
const deserializeAws_json1_1PutTargetsResultEntryList = (output, context) => {
|
|
5793
|
-
|
|
4668
|
+
const retVal = (output || [])
|
|
5794
4669
|
.filter((e) => e != null)
|
|
5795
4670
|
.map((entry) => {
|
|
5796
4671
|
if (entry === null) {
|
|
@@ -5798,6 +4673,7 @@ const deserializeAws_json1_1PutTargetsResultEntryList = (output, context) => {
|
|
|
5798
4673
|
}
|
|
5799
4674
|
return deserializeAws_json1_1PutTargetsResultEntry(entry, context);
|
|
5800
4675
|
});
|
|
4676
|
+
return retVal;
|
|
5801
4677
|
};
|
|
5802
4678
|
const deserializeAws_json1_1QueryStringParametersMap = (output, context) => {
|
|
5803
4679
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -5836,7 +4712,7 @@ const deserializeAws_json1_1RemoveTargetsResultEntry = (output, context) => {
|
|
|
5836
4712
|
};
|
|
5837
4713
|
};
|
|
5838
4714
|
const deserializeAws_json1_1RemoveTargetsResultEntryList = (output, context) => {
|
|
5839
|
-
|
|
4715
|
+
const retVal = (output || [])
|
|
5840
4716
|
.filter((e) => e != null)
|
|
5841
4717
|
.map((entry) => {
|
|
5842
4718
|
if (entry === null) {
|
|
@@ -5844,6 +4720,7 @@ const deserializeAws_json1_1RemoveTargetsResultEntryList = (output, context) =>
|
|
|
5844
4720
|
}
|
|
5845
4721
|
return deserializeAws_json1_1RemoveTargetsResultEntry(entry, context);
|
|
5846
4722
|
});
|
|
4723
|
+
return retVal;
|
|
5847
4724
|
};
|
|
5848
4725
|
const deserializeAws_json1_1Replay = (output, context) => {
|
|
5849
4726
|
return {
|
|
@@ -5877,7 +4754,7 @@ const deserializeAws_json1_1ReplayDestination = (output, context) => {
|
|
|
5877
4754
|
};
|
|
5878
4755
|
};
|
|
5879
4756
|
const deserializeAws_json1_1ReplayDestinationFilters = (output, context) => {
|
|
5880
|
-
|
|
4757
|
+
const retVal = (output || [])
|
|
5881
4758
|
.filter((e) => e != null)
|
|
5882
4759
|
.map((entry) => {
|
|
5883
4760
|
if (entry === null) {
|
|
@@ -5885,9 +4762,10 @@ const deserializeAws_json1_1ReplayDestinationFilters = (output, context) => {
|
|
|
5885
4762
|
}
|
|
5886
4763
|
return smithy_client_1.expectString(entry);
|
|
5887
4764
|
});
|
|
4765
|
+
return retVal;
|
|
5888
4766
|
};
|
|
5889
4767
|
const deserializeAws_json1_1ReplayList = (output, context) => {
|
|
5890
|
-
|
|
4768
|
+
const retVal = (output || [])
|
|
5891
4769
|
.filter((e) => e != null)
|
|
5892
4770
|
.map((entry) => {
|
|
5893
4771
|
if (entry === null) {
|
|
@@ -5895,6 +4773,7 @@ const deserializeAws_json1_1ReplayList = (output, context) => {
|
|
|
5895
4773
|
}
|
|
5896
4774
|
return deserializeAws_json1_1Replay(entry, context);
|
|
5897
4775
|
});
|
|
4776
|
+
return retVal;
|
|
5898
4777
|
};
|
|
5899
4778
|
const deserializeAws_json1_1ResourceAlreadyExistsException = (output, context) => {
|
|
5900
4779
|
return {
|
|
@@ -5926,7 +4805,7 @@ const deserializeAws_json1_1Rule = (output, context) => {
|
|
|
5926
4805
|
};
|
|
5927
4806
|
};
|
|
5928
4807
|
const deserializeAws_json1_1RuleNameList = (output, context) => {
|
|
5929
|
-
|
|
4808
|
+
const retVal = (output || [])
|
|
5930
4809
|
.filter((e) => e != null)
|
|
5931
4810
|
.map((entry) => {
|
|
5932
4811
|
if (entry === null) {
|
|
@@ -5934,9 +4813,10 @@ const deserializeAws_json1_1RuleNameList = (output, context) => {
|
|
|
5934
4813
|
}
|
|
5935
4814
|
return smithy_client_1.expectString(entry);
|
|
5936
4815
|
});
|
|
4816
|
+
return retVal;
|
|
5937
4817
|
};
|
|
5938
4818
|
const deserializeAws_json1_1RuleResponseList = (output, context) => {
|
|
5939
|
-
|
|
4819
|
+
const retVal = (output || [])
|
|
5940
4820
|
.filter((e) => e != null)
|
|
5941
4821
|
.map((entry) => {
|
|
5942
4822
|
if (entry === null) {
|
|
@@ -5944,6 +4824,7 @@ const deserializeAws_json1_1RuleResponseList = (output, context) => {
|
|
|
5944
4824
|
}
|
|
5945
4825
|
return deserializeAws_json1_1Rule(entry, context);
|
|
5946
4826
|
});
|
|
4827
|
+
return retVal;
|
|
5947
4828
|
};
|
|
5948
4829
|
const deserializeAws_json1_1RunCommandParameters = (output, context) => {
|
|
5949
4830
|
return {
|
|
@@ -5961,7 +4842,7 @@ const deserializeAws_json1_1RunCommandTarget = (output, context) => {
|
|
|
5961
4842
|
};
|
|
5962
4843
|
};
|
|
5963
4844
|
const deserializeAws_json1_1RunCommandTargets = (output, context) => {
|
|
5964
|
-
|
|
4845
|
+
const retVal = (output || [])
|
|
5965
4846
|
.filter((e) => e != null)
|
|
5966
4847
|
.map((entry) => {
|
|
5967
4848
|
if (entry === null) {
|
|
@@ -5969,9 +4850,10 @@ const deserializeAws_json1_1RunCommandTargets = (output, context) => {
|
|
|
5969
4850
|
}
|
|
5970
4851
|
return deserializeAws_json1_1RunCommandTarget(entry, context);
|
|
5971
4852
|
});
|
|
4853
|
+
return retVal;
|
|
5972
4854
|
};
|
|
5973
4855
|
const deserializeAws_json1_1RunCommandTargetValues = (output, context) => {
|
|
5974
|
-
|
|
4856
|
+
const retVal = (output || [])
|
|
5975
4857
|
.filter((e) => e != null)
|
|
5976
4858
|
.map((entry) => {
|
|
5977
4859
|
if (entry === null) {
|
|
@@ -5979,6 +4861,7 @@ const deserializeAws_json1_1RunCommandTargetValues = (output, context) => {
|
|
|
5979
4861
|
}
|
|
5980
4862
|
return smithy_client_1.expectString(entry);
|
|
5981
4863
|
});
|
|
4864
|
+
return retVal;
|
|
5982
4865
|
};
|
|
5983
4866
|
const deserializeAws_json1_1SageMakerPipelineParameter = (output, context) => {
|
|
5984
4867
|
return {
|
|
@@ -5987,7 +4870,7 @@ const deserializeAws_json1_1SageMakerPipelineParameter = (output, context) => {
|
|
|
5987
4870
|
};
|
|
5988
4871
|
};
|
|
5989
4872
|
const deserializeAws_json1_1SageMakerPipelineParameterList = (output, context) => {
|
|
5990
|
-
|
|
4873
|
+
const retVal = (output || [])
|
|
5991
4874
|
.filter((e) => e != null)
|
|
5992
4875
|
.map((entry) => {
|
|
5993
4876
|
if (entry === null) {
|
|
@@ -5995,6 +4878,7 @@ const deserializeAws_json1_1SageMakerPipelineParameterList = (output, context) =
|
|
|
5995
4878
|
}
|
|
5996
4879
|
return deserializeAws_json1_1SageMakerPipelineParameter(entry, context);
|
|
5997
4880
|
});
|
|
4881
|
+
return retVal;
|
|
5998
4882
|
};
|
|
5999
4883
|
const deserializeAws_json1_1SageMakerPipelineParameters = (output, context) => {
|
|
6000
4884
|
return {
|
|
@@ -6019,7 +4903,7 @@ const deserializeAws_json1_1StartReplayResponse = (output, context) => {
|
|
|
6019
4903
|
};
|
|
6020
4904
|
};
|
|
6021
4905
|
const deserializeAws_json1_1StringList = (output, context) => {
|
|
6022
|
-
|
|
4906
|
+
const retVal = (output || [])
|
|
6023
4907
|
.filter((e) => e != null)
|
|
6024
4908
|
.map((entry) => {
|
|
6025
4909
|
if (entry === null) {
|
|
@@ -6027,6 +4911,7 @@ const deserializeAws_json1_1StringList = (output, context) => {
|
|
|
6027
4911
|
}
|
|
6028
4912
|
return smithy_client_1.expectString(entry);
|
|
6029
4913
|
});
|
|
4914
|
+
return retVal;
|
|
6030
4915
|
};
|
|
6031
4916
|
const deserializeAws_json1_1Tag = (output, context) => {
|
|
6032
4917
|
return {
|
|
@@ -6035,7 +4920,7 @@ const deserializeAws_json1_1Tag = (output, context) => {
|
|
|
6035
4920
|
};
|
|
6036
4921
|
};
|
|
6037
4922
|
const deserializeAws_json1_1TagList = (output, context) => {
|
|
6038
|
-
|
|
4923
|
+
const retVal = (output || [])
|
|
6039
4924
|
.filter((e) => e != null)
|
|
6040
4925
|
.map((entry) => {
|
|
6041
4926
|
if (entry === null) {
|
|
@@ -6043,6 +4928,7 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
6043
4928
|
}
|
|
6044
4929
|
return deserializeAws_json1_1Tag(entry, context);
|
|
6045
4930
|
});
|
|
4931
|
+
return retVal;
|
|
6046
4932
|
};
|
|
6047
4933
|
const deserializeAws_json1_1TagResourceResponse = (output, context) => {
|
|
6048
4934
|
return {};
|
|
@@ -6090,7 +4976,7 @@ const deserializeAws_json1_1Target = (output, context) => {
|
|
|
6090
4976
|
};
|
|
6091
4977
|
};
|
|
6092
4978
|
const deserializeAws_json1_1TargetList = (output, context) => {
|
|
6093
|
-
|
|
4979
|
+
const retVal = (output || [])
|
|
6094
4980
|
.filter((e) => e != null)
|
|
6095
4981
|
.map((entry) => {
|
|
6096
4982
|
if (entry === null) {
|
|
@@ -6098,6 +4984,7 @@ const deserializeAws_json1_1TargetList = (output, context) => {
|
|
|
6098
4984
|
}
|
|
6099
4985
|
return deserializeAws_json1_1Target(entry, context);
|
|
6100
4986
|
});
|
|
4987
|
+
return retVal;
|
|
6101
4988
|
};
|
|
6102
4989
|
const deserializeAws_json1_1TestEventPatternResponse = (output, context) => {
|
|
6103
4990
|
return {
|