@aws-sdk/client-global-accelerator 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 +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/GlobalAcceleratorServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +256 -3
- package/dist-cjs/protocols/Aws_json1_1.js +476 -1721
- package/dist-es/index.js +1 -0
- package/dist-es/models/GlobalAcceleratorServiceException.js +12 -0
- package/dist-es/models/models_0.js +236 -1
- package/dist-es/protocols/Aws_json1_1.js +1043 -1874
- package/dist-types/GlobalAcceleratorClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/GlobalAcceleratorServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +128 -55
- 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/GlobalAcceleratorClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/GlobalAcceleratorServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +92 -55
- 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_1WithdrawByoipCidrCommand = exports.deserializeAws_
|
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
|
+
const GlobalAcceleratorServiceException_1 = require("../models/GlobalAcceleratorServiceException");
|
|
9
|
+
const models_0_1 = require("../models/models_0");
|
|
8
10
|
const serializeAws_json1_1AddCustomRoutingEndpointsCommand = async (input, context) => {
|
|
9
11
|
const headers = {
|
|
10
12
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -500,75 +502,34 @@ const deserializeAws_json1_1AddCustomRoutingEndpointsCommandError = async (outpu
|
|
|
500
502
|
switch (errorCode) {
|
|
501
503
|
case "AccessDeniedException":
|
|
502
504
|
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
503
|
-
|
|
504
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
505
|
-
name: errorCode,
|
|
506
|
-
$metadata: deserializeMetadata(output),
|
|
507
|
-
};
|
|
508
|
-
break;
|
|
505
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
509
506
|
case "ConflictException":
|
|
510
507
|
case "com.amazonaws.globalaccelerator#ConflictException":
|
|
511
|
-
|
|
512
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
513
|
-
name: errorCode,
|
|
514
|
-
$metadata: deserializeMetadata(output),
|
|
515
|
-
};
|
|
516
|
-
break;
|
|
508
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
517
509
|
case "EndpointAlreadyExistsException":
|
|
518
510
|
case "com.amazonaws.globalaccelerator#EndpointAlreadyExistsException":
|
|
519
|
-
|
|
520
|
-
...(await deserializeAws_json1_1EndpointAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
521
|
-
name: errorCode,
|
|
522
|
-
$metadata: deserializeMetadata(output),
|
|
523
|
-
};
|
|
524
|
-
break;
|
|
511
|
+
throw await deserializeAws_json1_1EndpointAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
525
512
|
case "EndpointGroupNotFoundException":
|
|
526
513
|
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
527
|
-
|
|
528
|
-
...(await deserializeAws_json1_1EndpointGroupNotFoundExceptionResponse(parsedOutput, context)),
|
|
529
|
-
name: errorCode,
|
|
530
|
-
$metadata: deserializeMetadata(output),
|
|
531
|
-
};
|
|
532
|
-
break;
|
|
514
|
+
throw await deserializeAws_json1_1EndpointGroupNotFoundExceptionResponse(parsedOutput, context);
|
|
533
515
|
case "InternalServiceErrorException":
|
|
534
516
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
535
|
-
|
|
536
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
537
|
-
name: errorCode,
|
|
538
|
-
$metadata: deserializeMetadata(output),
|
|
539
|
-
};
|
|
540
|
-
break;
|
|
517
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
541
518
|
case "InvalidArgumentException":
|
|
542
519
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
543
|
-
|
|
544
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
545
|
-
name: errorCode,
|
|
546
|
-
$metadata: deserializeMetadata(output),
|
|
547
|
-
};
|
|
548
|
-
break;
|
|
520
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
549
521
|
case "LimitExceededException":
|
|
550
522
|
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
551
|
-
|
|
552
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
553
|
-
name: errorCode,
|
|
554
|
-
$metadata: deserializeMetadata(output),
|
|
555
|
-
};
|
|
556
|
-
break;
|
|
523
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
557
524
|
default:
|
|
558
525
|
const parsedBody = parsedOutput.body;
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
...parsedBody,
|
|
562
|
-
name: `${errorCode}`,
|
|
563
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
526
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
527
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
564
528
|
$fault: "client",
|
|
565
529
|
$metadata: deserializeMetadata(output),
|
|
566
|
-
};
|
|
530
|
+
});
|
|
531
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
567
532
|
}
|
|
568
|
-
const message = response.message || response.Message || errorCode;
|
|
569
|
-
response.message = message;
|
|
570
|
-
delete response.Message;
|
|
571
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
572
533
|
};
|
|
573
534
|
const deserializeAws_json1_1AdvertiseByoipCidrCommand = async (output, context) => {
|
|
574
535
|
if (output.statusCode >= 300) {
|
|
@@ -595,59 +556,28 @@ const deserializeAws_json1_1AdvertiseByoipCidrCommandError = async (output, cont
|
|
|
595
556
|
switch (errorCode) {
|
|
596
557
|
case "AccessDeniedException":
|
|
597
558
|
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
598
|
-
|
|
599
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
600
|
-
name: errorCode,
|
|
601
|
-
$metadata: deserializeMetadata(output),
|
|
602
|
-
};
|
|
603
|
-
break;
|
|
559
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
604
560
|
case "ByoipCidrNotFoundException":
|
|
605
561
|
case "com.amazonaws.globalaccelerator#ByoipCidrNotFoundException":
|
|
606
|
-
|
|
607
|
-
...(await deserializeAws_json1_1ByoipCidrNotFoundExceptionResponse(parsedOutput, context)),
|
|
608
|
-
name: errorCode,
|
|
609
|
-
$metadata: deserializeMetadata(output),
|
|
610
|
-
};
|
|
611
|
-
break;
|
|
562
|
+
throw await deserializeAws_json1_1ByoipCidrNotFoundExceptionResponse(parsedOutput, context);
|
|
612
563
|
case "IncorrectCidrStateException":
|
|
613
564
|
case "com.amazonaws.globalaccelerator#IncorrectCidrStateException":
|
|
614
|
-
|
|
615
|
-
...(await deserializeAws_json1_1IncorrectCidrStateExceptionResponse(parsedOutput, context)),
|
|
616
|
-
name: errorCode,
|
|
617
|
-
$metadata: deserializeMetadata(output),
|
|
618
|
-
};
|
|
619
|
-
break;
|
|
565
|
+
throw await deserializeAws_json1_1IncorrectCidrStateExceptionResponse(parsedOutput, context);
|
|
620
566
|
case "InternalServiceErrorException":
|
|
621
567
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
622
|
-
|
|
623
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
624
|
-
name: errorCode,
|
|
625
|
-
$metadata: deserializeMetadata(output),
|
|
626
|
-
};
|
|
627
|
-
break;
|
|
568
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
628
569
|
case "InvalidArgumentException":
|
|
629
570
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
630
|
-
|
|
631
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
632
|
-
name: errorCode,
|
|
633
|
-
$metadata: deserializeMetadata(output),
|
|
634
|
-
};
|
|
635
|
-
break;
|
|
571
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
636
572
|
default:
|
|
637
573
|
const parsedBody = parsedOutput.body;
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
...parsedBody,
|
|
641
|
-
name: `${errorCode}`,
|
|
642
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
574
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
575
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
643
576
|
$fault: "client",
|
|
644
577
|
$metadata: deserializeMetadata(output),
|
|
645
|
-
};
|
|
578
|
+
});
|
|
579
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
646
580
|
}
|
|
647
|
-
const message = response.message || response.Message || errorCode;
|
|
648
|
-
response.message = message;
|
|
649
|
-
delete response.Message;
|
|
650
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
651
581
|
};
|
|
652
582
|
const deserializeAws_json1_1AllowCustomRoutingTrafficCommand = async (output, context) => {
|
|
653
583
|
if (output.statusCode >= 300) {
|
|
@@ -671,35 +601,19 @@ const deserializeAws_json1_1AllowCustomRoutingTrafficCommandError = async (outpu
|
|
|
671
601
|
switch (errorCode) {
|
|
672
602
|
case "InternalServiceErrorException":
|
|
673
603
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
674
|
-
|
|
675
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
676
|
-
name: errorCode,
|
|
677
|
-
$metadata: deserializeMetadata(output),
|
|
678
|
-
};
|
|
679
|
-
break;
|
|
604
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
680
605
|
case "InvalidArgumentException":
|
|
681
606
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
682
|
-
|
|
683
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
684
|
-
name: errorCode,
|
|
685
|
-
$metadata: deserializeMetadata(output),
|
|
686
|
-
};
|
|
687
|
-
break;
|
|
607
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
688
608
|
default:
|
|
689
609
|
const parsedBody = parsedOutput.body;
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
...parsedBody,
|
|
693
|
-
name: `${errorCode}`,
|
|
694
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
610
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
611
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
695
612
|
$fault: "client",
|
|
696
613
|
$metadata: deserializeMetadata(output),
|
|
697
|
-
};
|
|
614
|
+
});
|
|
615
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
698
616
|
}
|
|
699
|
-
const message = response.message || response.Message || errorCode;
|
|
700
|
-
response.message = message;
|
|
701
|
-
delete response.Message;
|
|
702
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
703
617
|
};
|
|
704
618
|
const deserializeAws_json1_1CreateAcceleratorCommand = async (output, context) => {
|
|
705
619
|
if (output.statusCode >= 300) {
|
|
@@ -726,43 +640,22 @@ const deserializeAws_json1_1CreateAcceleratorCommandError = async (output, conte
|
|
|
726
640
|
switch (errorCode) {
|
|
727
641
|
case "InternalServiceErrorException":
|
|
728
642
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
729
|
-
|
|
730
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
731
|
-
name: errorCode,
|
|
732
|
-
$metadata: deserializeMetadata(output),
|
|
733
|
-
};
|
|
734
|
-
break;
|
|
643
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
735
644
|
case "InvalidArgumentException":
|
|
736
645
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
737
|
-
|
|
738
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
739
|
-
name: errorCode,
|
|
740
|
-
$metadata: deserializeMetadata(output),
|
|
741
|
-
};
|
|
742
|
-
break;
|
|
646
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
743
647
|
case "LimitExceededException":
|
|
744
648
|
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
745
|
-
|
|
746
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
747
|
-
name: errorCode,
|
|
748
|
-
$metadata: deserializeMetadata(output),
|
|
749
|
-
};
|
|
750
|
-
break;
|
|
649
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
751
650
|
default:
|
|
752
651
|
const parsedBody = parsedOutput.body;
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
...parsedBody,
|
|
756
|
-
name: `${errorCode}`,
|
|
757
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
652
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
653
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
758
654
|
$fault: "client",
|
|
759
655
|
$metadata: deserializeMetadata(output),
|
|
760
|
-
};
|
|
656
|
+
});
|
|
657
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
761
658
|
}
|
|
762
|
-
const message = response.message || response.Message || errorCode;
|
|
763
|
-
response.message = message;
|
|
764
|
-
delete response.Message;
|
|
765
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
766
659
|
};
|
|
767
660
|
const deserializeAws_json1_1CreateCustomRoutingAcceleratorCommand = async (output, context) => {
|
|
768
661
|
if (output.statusCode >= 300) {
|
|
@@ -789,51 +682,25 @@ const deserializeAws_json1_1CreateCustomRoutingAcceleratorCommandError = async (
|
|
|
789
682
|
switch (errorCode) {
|
|
790
683
|
case "AccessDeniedException":
|
|
791
684
|
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
792
|
-
|
|
793
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
794
|
-
name: errorCode,
|
|
795
|
-
$metadata: deserializeMetadata(output),
|
|
796
|
-
};
|
|
797
|
-
break;
|
|
685
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
798
686
|
case "InternalServiceErrorException":
|
|
799
687
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
800
|
-
|
|
801
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
802
|
-
name: errorCode,
|
|
803
|
-
$metadata: deserializeMetadata(output),
|
|
804
|
-
};
|
|
805
|
-
break;
|
|
688
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
806
689
|
case "InvalidArgumentException":
|
|
807
690
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
808
|
-
|
|
809
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
810
|
-
name: errorCode,
|
|
811
|
-
$metadata: deserializeMetadata(output),
|
|
812
|
-
};
|
|
813
|
-
break;
|
|
691
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
814
692
|
case "LimitExceededException":
|
|
815
693
|
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
816
|
-
|
|
817
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
818
|
-
name: errorCode,
|
|
819
|
-
$metadata: deserializeMetadata(output),
|
|
820
|
-
};
|
|
821
|
-
break;
|
|
694
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
822
695
|
default:
|
|
823
696
|
const parsedBody = parsedOutput.body;
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
...parsedBody,
|
|
827
|
-
name: `${errorCode}`,
|
|
828
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
697
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
698
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
829
699
|
$fault: "client",
|
|
830
700
|
$metadata: deserializeMetadata(output),
|
|
831
|
-
};
|
|
701
|
+
});
|
|
702
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
832
703
|
}
|
|
833
|
-
const message = response.message || response.Message || errorCode;
|
|
834
|
-
response.message = message;
|
|
835
|
-
delete response.Message;
|
|
836
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
837
704
|
};
|
|
838
705
|
const deserializeAws_json1_1CreateCustomRoutingEndpointGroupCommand = async (output, context) => {
|
|
839
706
|
if (output.statusCode >= 300) {
|
|
@@ -860,83 +727,37 @@ const deserializeAws_json1_1CreateCustomRoutingEndpointGroupCommandError = async
|
|
|
860
727
|
switch (errorCode) {
|
|
861
728
|
case "AcceleratorNotFoundException":
|
|
862
729
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
863
|
-
|
|
864
|
-
...(await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context)),
|
|
865
|
-
name: errorCode,
|
|
866
|
-
$metadata: deserializeMetadata(output),
|
|
867
|
-
};
|
|
868
|
-
break;
|
|
730
|
+
throw await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context);
|
|
869
731
|
case "AccessDeniedException":
|
|
870
732
|
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
871
|
-
|
|
872
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
873
|
-
name: errorCode,
|
|
874
|
-
$metadata: deserializeMetadata(output),
|
|
875
|
-
};
|
|
876
|
-
break;
|
|
733
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
877
734
|
case "EndpointGroupAlreadyExistsException":
|
|
878
735
|
case "com.amazonaws.globalaccelerator#EndpointGroupAlreadyExistsException":
|
|
879
|
-
|
|
880
|
-
...(await deserializeAws_json1_1EndpointGroupAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
881
|
-
name: errorCode,
|
|
882
|
-
$metadata: deserializeMetadata(output),
|
|
883
|
-
};
|
|
884
|
-
break;
|
|
736
|
+
throw await deserializeAws_json1_1EndpointGroupAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
885
737
|
case "InternalServiceErrorException":
|
|
886
738
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
887
|
-
|
|
888
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
889
|
-
name: errorCode,
|
|
890
|
-
$metadata: deserializeMetadata(output),
|
|
891
|
-
};
|
|
892
|
-
break;
|
|
739
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
893
740
|
case "InvalidArgumentException":
|
|
894
741
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
895
|
-
|
|
896
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
897
|
-
name: errorCode,
|
|
898
|
-
$metadata: deserializeMetadata(output),
|
|
899
|
-
};
|
|
900
|
-
break;
|
|
742
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
901
743
|
case "InvalidPortRangeException":
|
|
902
744
|
case "com.amazonaws.globalaccelerator#InvalidPortRangeException":
|
|
903
|
-
|
|
904
|
-
...(await deserializeAws_json1_1InvalidPortRangeExceptionResponse(parsedOutput, context)),
|
|
905
|
-
name: errorCode,
|
|
906
|
-
$metadata: deserializeMetadata(output),
|
|
907
|
-
};
|
|
908
|
-
break;
|
|
745
|
+
throw await deserializeAws_json1_1InvalidPortRangeExceptionResponse(parsedOutput, context);
|
|
909
746
|
case "LimitExceededException":
|
|
910
747
|
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
911
|
-
|
|
912
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
913
|
-
name: errorCode,
|
|
914
|
-
$metadata: deserializeMetadata(output),
|
|
915
|
-
};
|
|
916
|
-
break;
|
|
748
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
917
749
|
case "ListenerNotFoundException":
|
|
918
750
|
case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
|
|
919
|
-
|
|
920
|
-
...(await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context)),
|
|
921
|
-
name: errorCode,
|
|
922
|
-
$metadata: deserializeMetadata(output),
|
|
923
|
-
};
|
|
924
|
-
break;
|
|
751
|
+
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
925
752
|
default:
|
|
926
753
|
const parsedBody = parsedOutput.body;
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
...parsedBody,
|
|
930
|
-
name: `${errorCode}`,
|
|
931
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
754
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
755
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
932
756
|
$fault: "client",
|
|
933
757
|
$metadata: deserializeMetadata(output),
|
|
934
|
-
};
|
|
758
|
+
});
|
|
759
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
935
760
|
}
|
|
936
|
-
const message = response.message || response.Message || errorCode;
|
|
937
|
-
response.message = message;
|
|
938
|
-
delete response.Message;
|
|
939
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
940
761
|
};
|
|
941
762
|
const deserializeAws_json1_1CreateCustomRoutingListenerCommand = async (output, context) => {
|
|
942
763
|
if (output.statusCode >= 300) {
|
|
@@ -963,59 +784,28 @@ const deserializeAws_json1_1CreateCustomRoutingListenerCommandError = async (out
|
|
|
963
784
|
switch (errorCode) {
|
|
964
785
|
case "AcceleratorNotFoundException":
|
|
965
786
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
966
|
-
|
|
967
|
-
...(await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context)),
|
|
968
|
-
name: errorCode,
|
|
969
|
-
$metadata: deserializeMetadata(output),
|
|
970
|
-
};
|
|
971
|
-
break;
|
|
787
|
+
throw await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context);
|
|
972
788
|
case "InternalServiceErrorException":
|
|
973
789
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
974
|
-
|
|
975
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
976
|
-
name: errorCode,
|
|
977
|
-
$metadata: deserializeMetadata(output),
|
|
978
|
-
};
|
|
979
|
-
break;
|
|
790
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
980
791
|
case "InvalidArgumentException":
|
|
981
792
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
982
|
-
|
|
983
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
984
|
-
name: errorCode,
|
|
985
|
-
$metadata: deserializeMetadata(output),
|
|
986
|
-
};
|
|
987
|
-
break;
|
|
793
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
988
794
|
case "InvalidPortRangeException":
|
|
989
795
|
case "com.amazonaws.globalaccelerator#InvalidPortRangeException":
|
|
990
|
-
|
|
991
|
-
...(await deserializeAws_json1_1InvalidPortRangeExceptionResponse(parsedOutput, context)),
|
|
992
|
-
name: errorCode,
|
|
993
|
-
$metadata: deserializeMetadata(output),
|
|
994
|
-
};
|
|
995
|
-
break;
|
|
796
|
+
throw await deserializeAws_json1_1InvalidPortRangeExceptionResponse(parsedOutput, context);
|
|
996
797
|
case "LimitExceededException":
|
|
997
798
|
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
998
|
-
|
|
999
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1000
|
-
name: errorCode,
|
|
1001
|
-
$metadata: deserializeMetadata(output),
|
|
1002
|
-
};
|
|
1003
|
-
break;
|
|
799
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1004
800
|
default:
|
|
1005
801
|
const parsedBody = parsedOutput.body;
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
...parsedBody,
|
|
1009
|
-
name: `${errorCode}`,
|
|
1010
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
802
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
803
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1011
804
|
$fault: "client",
|
|
1012
805
|
$metadata: deserializeMetadata(output),
|
|
1013
|
-
};
|
|
806
|
+
});
|
|
807
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1014
808
|
}
|
|
1015
|
-
const message = response.message || response.Message || errorCode;
|
|
1016
|
-
response.message = message;
|
|
1017
|
-
delete response.Message;
|
|
1018
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1019
809
|
};
|
|
1020
810
|
const deserializeAws_json1_1CreateEndpointGroupCommand = async (output, context) => {
|
|
1021
811
|
if (output.statusCode >= 300) {
|
|
@@ -1042,75 +832,34 @@ const deserializeAws_json1_1CreateEndpointGroupCommandError = async (output, con
|
|
|
1042
832
|
switch (errorCode) {
|
|
1043
833
|
case "AcceleratorNotFoundException":
|
|
1044
834
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
1045
|
-
|
|
1046
|
-
...(await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context)),
|
|
1047
|
-
name: errorCode,
|
|
1048
|
-
$metadata: deserializeMetadata(output),
|
|
1049
|
-
};
|
|
1050
|
-
break;
|
|
835
|
+
throw await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context);
|
|
1051
836
|
case "AccessDeniedException":
|
|
1052
837
|
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
1053
|
-
|
|
1054
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1055
|
-
name: errorCode,
|
|
1056
|
-
$metadata: deserializeMetadata(output),
|
|
1057
|
-
};
|
|
1058
|
-
break;
|
|
838
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1059
839
|
case "EndpointGroupAlreadyExistsException":
|
|
1060
840
|
case "com.amazonaws.globalaccelerator#EndpointGroupAlreadyExistsException":
|
|
1061
|
-
|
|
1062
|
-
...(await deserializeAws_json1_1EndpointGroupAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1063
|
-
name: errorCode,
|
|
1064
|
-
$metadata: deserializeMetadata(output),
|
|
1065
|
-
};
|
|
1066
|
-
break;
|
|
841
|
+
throw await deserializeAws_json1_1EndpointGroupAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1067
842
|
case "InternalServiceErrorException":
|
|
1068
843
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1069
|
-
|
|
1070
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
1071
|
-
name: errorCode,
|
|
1072
|
-
$metadata: deserializeMetadata(output),
|
|
1073
|
-
};
|
|
1074
|
-
break;
|
|
844
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1075
845
|
case "InvalidArgumentException":
|
|
1076
846
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1077
|
-
|
|
1078
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1079
|
-
name: errorCode,
|
|
1080
|
-
$metadata: deserializeMetadata(output),
|
|
1081
|
-
};
|
|
1082
|
-
break;
|
|
847
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1083
848
|
case "LimitExceededException":
|
|
1084
849
|
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
1085
|
-
|
|
1086
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1087
|
-
name: errorCode,
|
|
1088
|
-
$metadata: deserializeMetadata(output),
|
|
1089
|
-
};
|
|
1090
|
-
break;
|
|
850
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1091
851
|
case "ListenerNotFoundException":
|
|
1092
852
|
case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
|
|
1093
|
-
|
|
1094
|
-
...(await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context)),
|
|
1095
|
-
name: errorCode,
|
|
1096
|
-
$metadata: deserializeMetadata(output),
|
|
1097
|
-
};
|
|
1098
|
-
break;
|
|
853
|
+
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
1099
854
|
default:
|
|
1100
855
|
const parsedBody = parsedOutput.body;
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
...parsedBody,
|
|
1104
|
-
name: `${errorCode}`,
|
|
1105
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
856
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
857
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1106
858
|
$fault: "client",
|
|
1107
859
|
$metadata: deserializeMetadata(output),
|
|
1108
|
-
};
|
|
860
|
+
});
|
|
861
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1109
862
|
}
|
|
1110
|
-
const message = response.message || response.Message || errorCode;
|
|
1111
|
-
response.message = message;
|
|
1112
|
-
delete response.Message;
|
|
1113
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1114
863
|
};
|
|
1115
864
|
const deserializeAws_json1_1CreateListenerCommand = async (output, context) => {
|
|
1116
865
|
if (output.statusCode >= 300) {
|
|
@@ -1137,59 +886,28 @@ const deserializeAws_json1_1CreateListenerCommandError = async (output, context)
|
|
|
1137
886
|
switch (errorCode) {
|
|
1138
887
|
case "AcceleratorNotFoundException":
|
|
1139
888
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
1140
|
-
|
|
1141
|
-
...(await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context)),
|
|
1142
|
-
name: errorCode,
|
|
1143
|
-
$metadata: deserializeMetadata(output),
|
|
1144
|
-
};
|
|
1145
|
-
break;
|
|
889
|
+
throw await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context);
|
|
1146
890
|
case "InternalServiceErrorException":
|
|
1147
891
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1148
|
-
|
|
1149
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
1150
|
-
name: errorCode,
|
|
1151
|
-
$metadata: deserializeMetadata(output),
|
|
1152
|
-
};
|
|
1153
|
-
break;
|
|
892
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1154
893
|
case "InvalidArgumentException":
|
|
1155
894
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1156
|
-
|
|
1157
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1158
|
-
name: errorCode,
|
|
1159
|
-
$metadata: deserializeMetadata(output),
|
|
1160
|
-
};
|
|
1161
|
-
break;
|
|
895
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1162
896
|
case "InvalidPortRangeException":
|
|
1163
897
|
case "com.amazonaws.globalaccelerator#InvalidPortRangeException":
|
|
1164
|
-
|
|
1165
|
-
...(await deserializeAws_json1_1InvalidPortRangeExceptionResponse(parsedOutput, context)),
|
|
1166
|
-
name: errorCode,
|
|
1167
|
-
$metadata: deserializeMetadata(output),
|
|
1168
|
-
};
|
|
1169
|
-
break;
|
|
898
|
+
throw await deserializeAws_json1_1InvalidPortRangeExceptionResponse(parsedOutput, context);
|
|
1170
899
|
case "LimitExceededException":
|
|
1171
900
|
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
1172
|
-
|
|
1173
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1174
|
-
name: errorCode,
|
|
1175
|
-
$metadata: deserializeMetadata(output),
|
|
1176
|
-
};
|
|
1177
|
-
break;
|
|
901
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1178
902
|
default:
|
|
1179
903
|
const parsedBody = parsedOutput.body;
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
...parsedBody,
|
|
1183
|
-
name: `${errorCode}`,
|
|
1184
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
904
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
905
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1185
906
|
$fault: "client",
|
|
1186
907
|
$metadata: deserializeMetadata(output),
|
|
1187
|
-
};
|
|
908
|
+
});
|
|
909
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1188
910
|
}
|
|
1189
|
-
const message = response.message || response.Message || errorCode;
|
|
1190
|
-
response.message = message;
|
|
1191
|
-
delete response.Message;
|
|
1192
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1193
911
|
};
|
|
1194
912
|
const deserializeAws_json1_1DeleteAcceleratorCommand = async (output, context) => {
|
|
1195
913
|
if (output.statusCode >= 300) {
|
|
@@ -1213,59 +931,28 @@ const deserializeAws_json1_1DeleteAcceleratorCommandError = async (output, conte
|
|
|
1213
931
|
switch (errorCode) {
|
|
1214
932
|
case "AcceleratorNotDisabledException":
|
|
1215
933
|
case "com.amazonaws.globalaccelerator#AcceleratorNotDisabledException":
|
|
1216
|
-
|
|
1217
|
-
...(await deserializeAws_json1_1AcceleratorNotDisabledExceptionResponse(parsedOutput, context)),
|
|
1218
|
-
name: errorCode,
|
|
1219
|
-
$metadata: deserializeMetadata(output),
|
|
1220
|
-
};
|
|
1221
|
-
break;
|
|
934
|
+
throw await deserializeAws_json1_1AcceleratorNotDisabledExceptionResponse(parsedOutput, context);
|
|
1222
935
|
case "AcceleratorNotFoundException":
|
|
1223
936
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
1224
|
-
|
|
1225
|
-
...(await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context)),
|
|
1226
|
-
name: errorCode,
|
|
1227
|
-
$metadata: deserializeMetadata(output),
|
|
1228
|
-
};
|
|
1229
|
-
break;
|
|
937
|
+
throw await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context);
|
|
1230
938
|
case "AssociatedListenerFoundException":
|
|
1231
939
|
case "com.amazonaws.globalaccelerator#AssociatedListenerFoundException":
|
|
1232
|
-
|
|
1233
|
-
...(await deserializeAws_json1_1AssociatedListenerFoundExceptionResponse(parsedOutput, context)),
|
|
1234
|
-
name: errorCode,
|
|
1235
|
-
$metadata: deserializeMetadata(output),
|
|
1236
|
-
};
|
|
1237
|
-
break;
|
|
940
|
+
throw await deserializeAws_json1_1AssociatedListenerFoundExceptionResponse(parsedOutput, context);
|
|
1238
941
|
case "InternalServiceErrorException":
|
|
1239
942
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1240
|
-
|
|
1241
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
1242
|
-
name: errorCode,
|
|
1243
|
-
$metadata: deserializeMetadata(output),
|
|
1244
|
-
};
|
|
1245
|
-
break;
|
|
943
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1246
944
|
case "InvalidArgumentException":
|
|
1247
945
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1248
|
-
|
|
1249
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1250
|
-
name: errorCode,
|
|
1251
|
-
$metadata: deserializeMetadata(output),
|
|
1252
|
-
};
|
|
1253
|
-
break;
|
|
946
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1254
947
|
default:
|
|
1255
948
|
const parsedBody = parsedOutput.body;
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
...parsedBody,
|
|
1259
|
-
name: `${errorCode}`,
|
|
1260
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
949
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
950
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1261
951
|
$fault: "client",
|
|
1262
952
|
$metadata: deserializeMetadata(output),
|
|
1263
|
-
};
|
|
953
|
+
});
|
|
954
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1264
955
|
}
|
|
1265
|
-
const message = response.message || response.Message || errorCode;
|
|
1266
|
-
response.message = message;
|
|
1267
|
-
delete response.Message;
|
|
1268
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1269
956
|
};
|
|
1270
957
|
const deserializeAws_json1_1DeleteCustomRoutingAcceleratorCommand = async (output, context) => {
|
|
1271
958
|
if (output.statusCode >= 300) {
|
|
@@ -1289,59 +976,28 @@ const deserializeAws_json1_1DeleteCustomRoutingAcceleratorCommandError = async (
|
|
|
1289
976
|
switch (errorCode) {
|
|
1290
977
|
case "AcceleratorNotDisabledException":
|
|
1291
978
|
case "com.amazonaws.globalaccelerator#AcceleratorNotDisabledException":
|
|
1292
|
-
|
|
1293
|
-
...(await deserializeAws_json1_1AcceleratorNotDisabledExceptionResponse(parsedOutput, context)),
|
|
1294
|
-
name: errorCode,
|
|
1295
|
-
$metadata: deserializeMetadata(output),
|
|
1296
|
-
};
|
|
1297
|
-
break;
|
|
979
|
+
throw await deserializeAws_json1_1AcceleratorNotDisabledExceptionResponse(parsedOutput, context);
|
|
1298
980
|
case "AcceleratorNotFoundException":
|
|
1299
981
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
1300
|
-
|
|
1301
|
-
...(await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context)),
|
|
1302
|
-
name: errorCode,
|
|
1303
|
-
$metadata: deserializeMetadata(output),
|
|
1304
|
-
};
|
|
1305
|
-
break;
|
|
982
|
+
throw await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context);
|
|
1306
983
|
case "AssociatedListenerFoundException":
|
|
1307
984
|
case "com.amazonaws.globalaccelerator#AssociatedListenerFoundException":
|
|
1308
|
-
|
|
1309
|
-
...(await deserializeAws_json1_1AssociatedListenerFoundExceptionResponse(parsedOutput, context)),
|
|
1310
|
-
name: errorCode,
|
|
1311
|
-
$metadata: deserializeMetadata(output),
|
|
1312
|
-
};
|
|
1313
|
-
break;
|
|
985
|
+
throw await deserializeAws_json1_1AssociatedListenerFoundExceptionResponse(parsedOutput, context);
|
|
1314
986
|
case "InternalServiceErrorException":
|
|
1315
987
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1316
|
-
|
|
1317
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
1318
|
-
name: errorCode,
|
|
1319
|
-
$metadata: deserializeMetadata(output),
|
|
1320
|
-
};
|
|
1321
|
-
break;
|
|
988
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1322
989
|
case "InvalidArgumentException":
|
|
1323
990
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1324
|
-
|
|
1325
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1326
|
-
name: errorCode,
|
|
1327
|
-
$metadata: deserializeMetadata(output),
|
|
1328
|
-
};
|
|
1329
|
-
break;
|
|
991
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1330
992
|
default:
|
|
1331
993
|
const parsedBody = parsedOutput.body;
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
...parsedBody,
|
|
1335
|
-
name: `${errorCode}`,
|
|
1336
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
994
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
995
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1337
996
|
$fault: "client",
|
|
1338
997
|
$metadata: deserializeMetadata(output),
|
|
1339
|
-
};
|
|
998
|
+
});
|
|
999
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1340
1000
|
}
|
|
1341
|
-
const message = response.message || response.Message || errorCode;
|
|
1342
|
-
response.message = message;
|
|
1343
|
-
delete response.Message;
|
|
1344
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1345
1001
|
};
|
|
1346
1002
|
const deserializeAws_json1_1DeleteCustomRoutingEndpointGroupCommand = async (output, context) => {
|
|
1347
1003
|
if (output.statusCode >= 300) {
|
|
@@ -1365,43 +1021,22 @@ const deserializeAws_json1_1DeleteCustomRoutingEndpointGroupCommandError = async
|
|
|
1365
1021
|
switch (errorCode) {
|
|
1366
1022
|
case "EndpointGroupNotFoundException":
|
|
1367
1023
|
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
1368
|
-
|
|
1369
|
-
...(await deserializeAws_json1_1EndpointGroupNotFoundExceptionResponse(parsedOutput, context)),
|
|
1370
|
-
name: errorCode,
|
|
1371
|
-
$metadata: deserializeMetadata(output),
|
|
1372
|
-
};
|
|
1373
|
-
break;
|
|
1024
|
+
throw await deserializeAws_json1_1EndpointGroupNotFoundExceptionResponse(parsedOutput, context);
|
|
1374
1025
|
case "InternalServiceErrorException":
|
|
1375
1026
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1376
|
-
|
|
1377
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
1378
|
-
name: errorCode,
|
|
1379
|
-
$metadata: deserializeMetadata(output),
|
|
1380
|
-
};
|
|
1381
|
-
break;
|
|
1027
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1382
1028
|
case "InvalidArgumentException":
|
|
1383
1029
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1384
|
-
|
|
1385
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1386
|
-
name: errorCode,
|
|
1387
|
-
$metadata: deserializeMetadata(output),
|
|
1388
|
-
};
|
|
1389
|
-
break;
|
|
1030
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1390
1031
|
default:
|
|
1391
1032
|
const parsedBody = parsedOutput.body;
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
...parsedBody,
|
|
1395
|
-
name: `${errorCode}`,
|
|
1396
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1033
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1034
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1397
1035
|
$fault: "client",
|
|
1398
1036
|
$metadata: deserializeMetadata(output),
|
|
1399
|
-
};
|
|
1037
|
+
});
|
|
1038
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1400
1039
|
}
|
|
1401
|
-
const message = response.message || response.Message || errorCode;
|
|
1402
|
-
response.message = message;
|
|
1403
|
-
delete response.Message;
|
|
1404
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1405
1040
|
};
|
|
1406
1041
|
const deserializeAws_json1_1DeleteCustomRoutingListenerCommand = async (output, context) => {
|
|
1407
1042
|
if (output.statusCode >= 300) {
|
|
@@ -1425,51 +1060,25 @@ const deserializeAws_json1_1DeleteCustomRoutingListenerCommandError = async (out
|
|
|
1425
1060
|
switch (errorCode) {
|
|
1426
1061
|
case "AssociatedEndpointGroupFoundException":
|
|
1427
1062
|
case "com.amazonaws.globalaccelerator#AssociatedEndpointGroupFoundException":
|
|
1428
|
-
|
|
1429
|
-
...(await deserializeAws_json1_1AssociatedEndpointGroupFoundExceptionResponse(parsedOutput, context)),
|
|
1430
|
-
name: errorCode,
|
|
1431
|
-
$metadata: deserializeMetadata(output),
|
|
1432
|
-
};
|
|
1433
|
-
break;
|
|
1063
|
+
throw await deserializeAws_json1_1AssociatedEndpointGroupFoundExceptionResponse(parsedOutput, context);
|
|
1434
1064
|
case "InternalServiceErrorException":
|
|
1435
1065
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1436
|
-
|
|
1437
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
1438
|
-
name: errorCode,
|
|
1439
|
-
$metadata: deserializeMetadata(output),
|
|
1440
|
-
};
|
|
1441
|
-
break;
|
|
1066
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1442
1067
|
case "InvalidArgumentException":
|
|
1443
1068
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1444
|
-
|
|
1445
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1446
|
-
name: errorCode,
|
|
1447
|
-
$metadata: deserializeMetadata(output),
|
|
1448
|
-
};
|
|
1449
|
-
break;
|
|
1069
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1450
1070
|
case "ListenerNotFoundException":
|
|
1451
1071
|
case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
|
|
1452
|
-
|
|
1453
|
-
...(await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context)),
|
|
1454
|
-
name: errorCode,
|
|
1455
|
-
$metadata: deserializeMetadata(output),
|
|
1456
|
-
};
|
|
1457
|
-
break;
|
|
1072
|
+
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
1458
1073
|
default:
|
|
1459
1074
|
const parsedBody = parsedOutput.body;
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
...parsedBody,
|
|
1463
|
-
name: `${errorCode}`,
|
|
1464
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1075
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1076
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1465
1077
|
$fault: "client",
|
|
1466
1078
|
$metadata: deserializeMetadata(output),
|
|
1467
|
-
};
|
|
1079
|
+
});
|
|
1080
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1468
1081
|
}
|
|
1469
|
-
const message = response.message || response.Message || errorCode;
|
|
1470
|
-
response.message = message;
|
|
1471
|
-
delete response.Message;
|
|
1472
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1473
1082
|
};
|
|
1474
1083
|
const deserializeAws_json1_1DeleteEndpointGroupCommand = async (output, context) => {
|
|
1475
1084
|
if (output.statusCode >= 300) {
|
|
@@ -1493,43 +1102,22 @@ const deserializeAws_json1_1DeleteEndpointGroupCommandError = async (output, con
|
|
|
1493
1102
|
switch (errorCode) {
|
|
1494
1103
|
case "EndpointGroupNotFoundException":
|
|
1495
1104
|
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
1496
|
-
|
|
1497
|
-
...(await deserializeAws_json1_1EndpointGroupNotFoundExceptionResponse(parsedOutput, context)),
|
|
1498
|
-
name: errorCode,
|
|
1499
|
-
$metadata: deserializeMetadata(output),
|
|
1500
|
-
};
|
|
1501
|
-
break;
|
|
1105
|
+
throw await deserializeAws_json1_1EndpointGroupNotFoundExceptionResponse(parsedOutput, context);
|
|
1502
1106
|
case "InternalServiceErrorException":
|
|
1503
1107
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1504
|
-
|
|
1505
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
1506
|
-
name: errorCode,
|
|
1507
|
-
$metadata: deserializeMetadata(output),
|
|
1508
|
-
};
|
|
1509
|
-
break;
|
|
1108
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1510
1109
|
case "InvalidArgumentException":
|
|
1511
1110
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1512
|
-
|
|
1513
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1514
|
-
name: errorCode,
|
|
1515
|
-
$metadata: deserializeMetadata(output),
|
|
1516
|
-
};
|
|
1517
|
-
break;
|
|
1111
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1518
1112
|
default:
|
|
1519
1113
|
const parsedBody = parsedOutput.body;
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
...parsedBody,
|
|
1523
|
-
name: `${errorCode}`,
|
|
1524
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1114
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1115
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1525
1116
|
$fault: "client",
|
|
1526
1117
|
$metadata: deserializeMetadata(output),
|
|
1527
|
-
};
|
|
1118
|
+
});
|
|
1119
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1528
1120
|
}
|
|
1529
|
-
const message = response.message || response.Message || errorCode;
|
|
1530
|
-
response.message = message;
|
|
1531
|
-
delete response.Message;
|
|
1532
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1533
1121
|
};
|
|
1534
1122
|
const deserializeAws_json1_1DeleteListenerCommand = async (output, context) => {
|
|
1535
1123
|
if (output.statusCode >= 300) {
|
|
@@ -1553,51 +1141,25 @@ const deserializeAws_json1_1DeleteListenerCommandError = async (output, context)
|
|
|
1553
1141
|
switch (errorCode) {
|
|
1554
1142
|
case "AssociatedEndpointGroupFoundException":
|
|
1555
1143
|
case "com.amazonaws.globalaccelerator#AssociatedEndpointGroupFoundException":
|
|
1556
|
-
|
|
1557
|
-
...(await deserializeAws_json1_1AssociatedEndpointGroupFoundExceptionResponse(parsedOutput, context)),
|
|
1558
|
-
name: errorCode,
|
|
1559
|
-
$metadata: deserializeMetadata(output),
|
|
1560
|
-
};
|
|
1561
|
-
break;
|
|
1144
|
+
throw await deserializeAws_json1_1AssociatedEndpointGroupFoundExceptionResponse(parsedOutput, context);
|
|
1562
1145
|
case "InternalServiceErrorException":
|
|
1563
1146
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1564
|
-
|
|
1565
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
1566
|
-
name: errorCode,
|
|
1567
|
-
$metadata: deserializeMetadata(output),
|
|
1568
|
-
};
|
|
1569
|
-
break;
|
|
1147
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1570
1148
|
case "InvalidArgumentException":
|
|
1571
1149
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1572
|
-
|
|
1573
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1574
|
-
name: errorCode,
|
|
1575
|
-
$metadata: deserializeMetadata(output),
|
|
1576
|
-
};
|
|
1577
|
-
break;
|
|
1150
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1578
1151
|
case "ListenerNotFoundException":
|
|
1579
1152
|
case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
|
|
1580
|
-
|
|
1581
|
-
...(await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context)),
|
|
1582
|
-
name: errorCode,
|
|
1583
|
-
$metadata: deserializeMetadata(output),
|
|
1584
|
-
};
|
|
1585
|
-
break;
|
|
1153
|
+
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
1586
1154
|
default:
|
|
1587
1155
|
const parsedBody = parsedOutput.body;
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
...parsedBody,
|
|
1591
|
-
name: `${errorCode}`,
|
|
1592
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1156
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1157
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1593
1158
|
$fault: "client",
|
|
1594
1159
|
$metadata: deserializeMetadata(output),
|
|
1595
|
-
};
|
|
1160
|
+
});
|
|
1161
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1596
1162
|
}
|
|
1597
|
-
const message = response.message || response.Message || errorCode;
|
|
1598
|
-
response.message = message;
|
|
1599
|
-
delete response.Message;
|
|
1600
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1601
1163
|
};
|
|
1602
1164
|
const deserializeAws_json1_1DenyCustomRoutingTrafficCommand = async (output, context) => {
|
|
1603
1165
|
if (output.statusCode >= 300) {
|
|
@@ -1621,35 +1183,19 @@ const deserializeAws_json1_1DenyCustomRoutingTrafficCommandError = async (output
|
|
|
1621
1183
|
switch (errorCode) {
|
|
1622
1184
|
case "InternalServiceErrorException":
|
|
1623
1185
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1624
|
-
|
|
1625
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
1626
|
-
name: errorCode,
|
|
1627
|
-
$metadata: deserializeMetadata(output),
|
|
1628
|
-
};
|
|
1629
|
-
break;
|
|
1186
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1630
1187
|
case "InvalidArgumentException":
|
|
1631
1188
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1632
|
-
|
|
1633
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1634
|
-
name: errorCode,
|
|
1635
|
-
$metadata: deserializeMetadata(output),
|
|
1636
|
-
};
|
|
1637
|
-
break;
|
|
1189
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1638
1190
|
default:
|
|
1639
1191
|
const parsedBody = parsedOutput.body;
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
...parsedBody,
|
|
1643
|
-
name: `${errorCode}`,
|
|
1644
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1192
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1193
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1645
1194
|
$fault: "client",
|
|
1646
1195
|
$metadata: deserializeMetadata(output),
|
|
1647
|
-
};
|
|
1196
|
+
});
|
|
1197
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1648
1198
|
}
|
|
1649
|
-
const message = response.message || response.Message || errorCode;
|
|
1650
|
-
response.message = message;
|
|
1651
|
-
delete response.Message;
|
|
1652
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1653
1199
|
};
|
|
1654
1200
|
const deserializeAws_json1_1DeprovisionByoipCidrCommand = async (output, context) => {
|
|
1655
1201
|
if (output.statusCode >= 300) {
|
|
@@ -1676,59 +1222,28 @@ const deserializeAws_json1_1DeprovisionByoipCidrCommandError = async (output, co
|
|
|
1676
1222
|
switch (errorCode) {
|
|
1677
1223
|
case "AccessDeniedException":
|
|
1678
1224
|
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
1679
|
-
|
|
1680
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1681
|
-
name: errorCode,
|
|
1682
|
-
$metadata: deserializeMetadata(output),
|
|
1683
|
-
};
|
|
1684
|
-
break;
|
|
1225
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1685
1226
|
case "ByoipCidrNotFoundException":
|
|
1686
1227
|
case "com.amazonaws.globalaccelerator#ByoipCidrNotFoundException":
|
|
1687
|
-
|
|
1688
|
-
...(await deserializeAws_json1_1ByoipCidrNotFoundExceptionResponse(parsedOutput, context)),
|
|
1689
|
-
name: errorCode,
|
|
1690
|
-
$metadata: deserializeMetadata(output),
|
|
1691
|
-
};
|
|
1692
|
-
break;
|
|
1228
|
+
throw await deserializeAws_json1_1ByoipCidrNotFoundExceptionResponse(parsedOutput, context);
|
|
1693
1229
|
case "IncorrectCidrStateException":
|
|
1694
1230
|
case "com.amazonaws.globalaccelerator#IncorrectCidrStateException":
|
|
1695
|
-
|
|
1696
|
-
...(await deserializeAws_json1_1IncorrectCidrStateExceptionResponse(parsedOutput, context)),
|
|
1697
|
-
name: errorCode,
|
|
1698
|
-
$metadata: deserializeMetadata(output),
|
|
1699
|
-
};
|
|
1700
|
-
break;
|
|
1231
|
+
throw await deserializeAws_json1_1IncorrectCidrStateExceptionResponse(parsedOutput, context);
|
|
1701
1232
|
case "InternalServiceErrorException":
|
|
1702
1233
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1703
|
-
|
|
1704
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
1705
|
-
name: errorCode,
|
|
1706
|
-
$metadata: deserializeMetadata(output),
|
|
1707
|
-
};
|
|
1708
|
-
break;
|
|
1234
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1709
1235
|
case "InvalidArgumentException":
|
|
1710
1236
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1711
|
-
|
|
1712
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1713
|
-
name: errorCode,
|
|
1714
|
-
$metadata: deserializeMetadata(output),
|
|
1715
|
-
};
|
|
1716
|
-
break;
|
|
1237
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1717
1238
|
default:
|
|
1718
1239
|
const parsedBody = parsedOutput.body;
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
...parsedBody,
|
|
1722
|
-
name: `${errorCode}`,
|
|
1723
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1240
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1241
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1724
1242
|
$fault: "client",
|
|
1725
1243
|
$metadata: deserializeMetadata(output),
|
|
1726
|
-
};
|
|
1244
|
+
});
|
|
1245
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1727
1246
|
}
|
|
1728
|
-
const message = response.message || response.Message || errorCode;
|
|
1729
|
-
response.message = message;
|
|
1730
|
-
delete response.Message;
|
|
1731
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1732
1247
|
};
|
|
1733
1248
|
const deserializeAws_json1_1DescribeAcceleratorCommand = async (output, context) => {
|
|
1734
1249
|
if (output.statusCode >= 300) {
|
|
@@ -1755,43 +1270,22 @@ const deserializeAws_json1_1DescribeAcceleratorCommandError = async (output, con
|
|
|
1755
1270
|
switch (errorCode) {
|
|
1756
1271
|
case "AcceleratorNotFoundException":
|
|
1757
1272
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
1758
|
-
|
|
1759
|
-
...(await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context)),
|
|
1760
|
-
name: errorCode,
|
|
1761
|
-
$metadata: deserializeMetadata(output),
|
|
1762
|
-
};
|
|
1763
|
-
break;
|
|
1273
|
+
throw await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context);
|
|
1764
1274
|
case "InternalServiceErrorException":
|
|
1765
1275
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1766
|
-
|
|
1767
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
1768
|
-
name: errorCode,
|
|
1769
|
-
$metadata: deserializeMetadata(output),
|
|
1770
|
-
};
|
|
1771
|
-
break;
|
|
1276
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1772
1277
|
case "InvalidArgumentException":
|
|
1773
1278
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1774
|
-
|
|
1775
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1776
|
-
name: errorCode,
|
|
1777
|
-
$metadata: deserializeMetadata(output),
|
|
1778
|
-
};
|
|
1779
|
-
break;
|
|
1279
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1780
1280
|
default:
|
|
1781
1281
|
const parsedBody = parsedOutput.body;
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
...parsedBody,
|
|
1785
|
-
name: `${errorCode}`,
|
|
1786
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1282
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1283
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1787
1284
|
$fault: "client",
|
|
1788
1285
|
$metadata: deserializeMetadata(output),
|
|
1789
|
-
};
|
|
1286
|
+
});
|
|
1287
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1790
1288
|
}
|
|
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
1289
|
};
|
|
1796
1290
|
const deserializeAws_json1_1DescribeAcceleratorAttributesCommand = async (output, context) => {
|
|
1797
1291
|
if (output.statusCode >= 300) {
|
|
@@ -1818,43 +1312,22 @@ const deserializeAws_json1_1DescribeAcceleratorAttributesCommandError = async (o
|
|
|
1818
1312
|
switch (errorCode) {
|
|
1819
1313
|
case "AcceleratorNotFoundException":
|
|
1820
1314
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
1821
|
-
|
|
1822
|
-
...(await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context)),
|
|
1823
|
-
name: errorCode,
|
|
1824
|
-
$metadata: deserializeMetadata(output),
|
|
1825
|
-
};
|
|
1826
|
-
break;
|
|
1315
|
+
throw await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context);
|
|
1827
1316
|
case "InternalServiceErrorException":
|
|
1828
1317
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1829
|
-
|
|
1830
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
1831
|
-
name: errorCode,
|
|
1832
|
-
$metadata: deserializeMetadata(output),
|
|
1833
|
-
};
|
|
1834
|
-
break;
|
|
1318
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1835
1319
|
case "InvalidArgumentException":
|
|
1836
1320
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1837
|
-
|
|
1838
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1839
|
-
name: errorCode,
|
|
1840
|
-
$metadata: deserializeMetadata(output),
|
|
1841
|
-
};
|
|
1842
|
-
break;
|
|
1321
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1843
1322
|
default:
|
|
1844
1323
|
const parsedBody = parsedOutput.body;
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
...parsedBody,
|
|
1848
|
-
name: `${errorCode}`,
|
|
1849
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1324
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1325
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1850
1326
|
$fault: "client",
|
|
1851
1327
|
$metadata: deserializeMetadata(output),
|
|
1852
|
-
};
|
|
1328
|
+
});
|
|
1329
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1853
1330
|
}
|
|
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
1331
|
};
|
|
1859
1332
|
const deserializeAws_json1_1DescribeCustomRoutingAcceleratorCommand = async (output, context) => {
|
|
1860
1333
|
if (output.statusCode >= 300) {
|
|
@@ -1881,43 +1354,22 @@ const deserializeAws_json1_1DescribeCustomRoutingAcceleratorCommandError = async
|
|
|
1881
1354
|
switch (errorCode) {
|
|
1882
1355
|
case "AcceleratorNotFoundException":
|
|
1883
1356
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
1884
|
-
|
|
1885
|
-
...(await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context)),
|
|
1886
|
-
name: errorCode,
|
|
1887
|
-
$metadata: deserializeMetadata(output),
|
|
1888
|
-
};
|
|
1889
|
-
break;
|
|
1357
|
+
throw await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context);
|
|
1890
1358
|
case "InternalServiceErrorException":
|
|
1891
1359
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1892
|
-
|
|
1893
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
1894
|
-
name: errorCode,
|
|
1895
|
-
$metadata: deserializeMetadata(output),
|
|
1896
|
-
};
|
|
1897
|
-
break;
|
|
1360
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1898
1361
|
case "InvalidArgumentException":
|
|
1899
1362
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1900
|
-
|
|
1901
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1902
|
-
name: errorCode,
|
|
1903
|
-
$metadata: deserializeMetadata(output),
|
|
1904
|
-
};
|
|
1905
|
-
break;
|
|
1363
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1906
1364
|
default:
|
|
1907
1365
|
const parsedBody = parsedOutput.body;
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
...parsedBody,
|
|
1911
|
-
name: `${errorCode}`,
|
|
1912
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1366
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1367
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1913
1368
|
$fault: "client",
|
|
1914
1369
|
$metadata: deserializeMetadata(output),
|
|
1915
|
-
};
|
|
1370
|
+
});
|
|
1371
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1916
1372
|
}
|
|
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
1373
|
};
|
|
1922
1374
|
const deserializeAws_json1_1DescribeCustomRoutingAcceleratorAttributesCommand = async (output, context) => {
|
|
1923
1375
|
if (output.statusCode >= 300) {
|
|
@@ -1944,43 +1396,22 @@ const deserializeAws_json1_1DescribeCustomRoutingAcceleratorAttributesCommandErr
|
|
|
1944
1396
|
switch (errorCode) {
|
|
1945
1397
|
case "AcceleratorNotFoundException":
|
|
1946
1398
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
1947
|
-
|
|
1948
|
-
...(await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context)),
|
|
1949
|
-
name: errorCode,
|
|
1950
|
-
$metadata: deserializeMetadata(output),
|
|
1951
|
-
};
|
|
1952
|
-
break;
|
|
1399
|
+
throw await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context);
|
|
1953
1400
|
case "InternalServiceErrorException":
|
|
1954
1401
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1955
|
-
|
|
1956
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
1957
|
-
name: errorCode,
|
|
1958
|
-
$metadata: deserializeMetadata(output),
|
|
1959
|
-
};
|
|
1960
|
-
break;
|
|
1402
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1961
1403
|
case "InvalidArgumentException":
|
|
1962
1404
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1963
|
-
|
|
1964
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1965
|
-
name: errorCode,
|
|
1966
|
-
$metadata: deserializeMetadata(output),
|
|
1967
|
-
};
|
|
1968
|
-
break;
|
|
1405
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1969
1406
|
default:
|
|
1970
1407
|
const parsedBody = parsedOutput.body;
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
...parsedBody,
|
|
1974
|
-
name: `${errorCode}`,
|
|
1975
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1408
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1409
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1976
1410
|
$fault: "client",
|
|
1977
1411
|
$metadata: deserializeMetadata(output),
|
|
1978
|
-
};
|
|
1412
|
+
});
|
|
1413
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1979
1414
|
}
|
|
1980
|
-
const message = response.message || response.Message || errorCode;
|
|
1981
|
-
response.message = message;
|
|
1982
|
-
delete response.Message;
|
|
1983
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1984
1415
|
};
|
|
1985
1416
|
const deserializeAws_json1_1DescribeCustomRoutingEndpointGroupCommand = async (output, context) => {
|
|
1986
1417
|
if (output.statusCode >= 300) {
|
|
@@ -2007,43 +1438,22 @@ const deserializeAws_json1_1DescribeCustomRoutingEndpointGroupCommandError = asy
|
|
|
2007
1438
|
switch (errorCode) {
|
|
2008
1439
|
case "EndpointGroupNotFoundException":
|
|
2009
1440
|
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
2010
|
-
|
|
2011
|
-
...(await deserializeAws_json1_1EndpointGroupNotFoundExceptionResponse(parsedOutput, context)),
|
|
2012
|
-
name: errorCode,
|
|
2013
|
-
$metadata: deserializeMetadata(output),
|
|
2014
|
-
};
|
|
2015
|
-
break;
|
|
1441
|
+
throw await deserializeAws_json1_1EndpointGroupNotFoundExceptionResponse(parsedOutput, context);
|
|
2016
1442
|
case "InternalServiceErrorException":
|
|
2017
1443
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2018
|
-
|
|
2019
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
2020
|
-
name: errorCode,
|
|
2021
|
-
$metadata: deserializeMetadata(output),
|
|
2022
|
-
};
|
|
2023
|
-
break;
|
|
1444
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
2024
1445
|
case "InvalidArgumentException":
|
|
2025
1446
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2026
|
-
|
|
2027
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
2028
|
-
name: errorCode,
|
|
2029
|
-
$metadata: deserializeMetadata(output),
|
|
2030
|
-
};
|
|
2031
|
-
break;
|
|
1447
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2032
1448
|
default:
|
|
2033
1449
|
const parsedBody = parsedOutput.body;
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
...parsedBody,
|
|
2037
|
-
name: `${errorCode}`,
|
|
2038
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1450
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1451
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2039
1452
|
$fault: "client",
|
|
2040
1453
|
$metadata: deserializeMetadata(output),
|
|
2041
|
-
};
|
|
1454
|
+
});
|
|
1455
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2042
1456
|
}
|
|
2043
|
-
const message = response.message || response.Message || errorCode;
|
|
2044
|
-
response.message = message;
|
|
2045
|
-
delete response.Message;
|
|
2046
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2047
1457
|
};
|
|
2048
1458
|
const deserializeAws_json1_1DescribeCustomRoutingListenerCommand = async (output, context) => {
|
|
2049
1459
|
if (output.statusCode >= 300) {
|
|
@@ -2070,43 +1480,22 @@ const deserializeAws_json1_1DescribeCustomRoutingListenerCommandError = async (o
|
|
|
2070
1480
|
switch (errorCode) {
|
|
2071
1481
|
case "InternalServiceErrorException":
|
|
2072
1482
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2073
|
-
|
|
2074
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
2075
|
-
name: errorCode,
|
|
2076
|
-
$metadata: deserializeMetadata(output),
|
|
2077
|
-
};
|
|
2078
|
-
break;
|
|
1483
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
2079
1484
|
case "InvalidArgumentException":
|
|
2080
1485
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2081
|
-
|
|
2082
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
2083
|
-
name: errorCode,
|
|
2084
|
-
$metadata: deserializeMetadata(output),
|
|
2085
|
-
};
|
|
2086
|
-
break;
|
|
1486
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2087
1487
|
case "ListenerNotFoundException":
|
|
2088
1488
|
case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
|
|
2089
|
-
|
|
2090
|
-
...(await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context)),
|
|
2091
|
-
name: errorCode,
|
|
2092
|
-
$metadata: deserializeMetadata(output),
|
|
2093
|
-
};
|
|
2094
|
-
break;
|
|
1489
|
+
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
2095
1490
|
default:
|
|
2096
1491
|
const parsedBody = parsedOutput.body;
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
...parsedBody,
|
|
2100
|
-
name: `${errorCode}`,
|
|
2101
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1492
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1493
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2102
1494
|
$fault: "client",
|
|
2103
1495
|
$metadata: deserializeMetadata(output),
|
|
2104
|
-
};
|
|
1496
|
+
});
|
|
1497
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2105
1498
|
}
|
|
2106
|
-
const message = response.message || response.Message || errorCode;
|
|
2107
|
-
response.message = message;
|
|
2108
|
-
delete response.Message;
|
|
2109
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2110
1499
|
};
|
|
2111
1500
|
const deserializeAws_json1_1DescribeEndpointGroupCommand = async (output, context) => {
|
|
2112
1501
|
if (output.statusCode >= 300) {
|
|
@@ -2133,43 +1522,22 @@ const deserializeAws_json1_1DescribeEndpointGroupCommandError = async (output, c
|
|
|
2133
1522
|
switch (errorCode) {
|
|
2134
1523
|
case "EndpointGroupNotFoundException":
|
|
2135
1524
|
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
2136
|
-
|
|
2137
|
-
...(await deserializeAws_json1_1EndpointGroupNotFoundExceptionResponse(parsedOutput, context)),
|
|
2138
|
-
name: errorCode,
|
|
2139
|
-
$metadata: deserializeMetadata(output),
|
|
2140
|
-
};
|
|
2141
|
-
break;
|
|
1525
|
+
throw await deserializeAws_json1_1EndpointGroupNotFoundExceptionResponse(parsedOutput, context);
|
|
2142
1526
|
case "InternalServiceErrorException":
|
|
2143
1527
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2144
|
-
|
|
2145
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
2146
|
-
name: errorCode,
|
|
2147
|
-
$metadata: deserializeMetadata(output),
|
|
2148
|
-
};
|
|
2149
|
-
break;
|
|
1528
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
2150
1529
|
case "InvalidArgumentException":
|
|
2151
1530
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2152
|
-
|
|
2153
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
2154
|
-
name: errorCode,
|
|
2155
|
-
$metadata: deserializeMetadata(output),
|
|
2156
|
-
};
|
|
2157
|
-
break;
|
|
1531
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2158
1532
|
default:
|
|
2159
1533
|
const parsedBody = parsedOutput.body;
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
...parsedBody,
|
|
2163
|
-
name: `${errorCode}`,
|
|
2164
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1534
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1535
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2165
1536
|
$fault: "client",
|
|
2166
1537
|
$metadata: deserializeMetadata(output),
|
|
2167
|
-
};
|
|
1538
|
+
});
|
|
1539
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2168
1540
|
}
|
|
2169
|
-
const message = response.message || response.Message || errorCode;
|
|
2170
|
-
response.message = message;
|
|
2171
|
-
delete response.Message;
|
|
2172
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2173
1541
|
};
|
|
2174
1542
|
const deserializeAws_json1_1DescribeListenerCommand = async (output, context) => {
|
|
2175
1543
|
if (output.statusCode >= 300) {
|
|
@@ -2196,43 +1564,22 @@ const deserializeAws_json1_1DescribeListenerCommandError = async (output, contex
|
|
|
2196
1564
|
switch (errorCode) {
|
|
2197
1565
|
case "InternalServiceErrorException":
|
|
2198
1566
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2199
|
-
|
|
2200
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
2201
|
-
name: errorCode,
|
|
2202
|
-
$metadata: deserializeMetadata(output),
|
|
2203
|
-
};
|
|
2204
|
-
break;
|
|
1567
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
2205
1568
|
case "InvalidArgumentException":
|
|
2206
1569
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2207
|
-
|
|
2208
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
2209
|
-
name: errorCode,
|
|
2210
|
-
$metadata: deserializeMetadata(output),
|
|
2211
|
-
};
|
|
2212
|
-
break;
|
|
1570
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2213
1571
|
case "ListenerNotFoundException":
|
|
2214
1572
|
case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
|
|
2215
|
-
|
|
2216
|
-
...(await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context)),
|
|
2217
|
-
name: errorCode,
|
|
2218
|
-
$metadata: deserializeMetadata(output),
|
|
2219
|
-
};
|
|
2220
|
-
break;
|
|
1573
|
+
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
2221
1574
|
default:
|
|
2222
1575
|
const parsedBody = parsedOutput.body;
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
...parsedBody,
|
|
2226
|
-
name: `${errorCode}`,
|
|
2227
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1576
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1577
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2228
1578
|
$fault: "client",
|
|
2229
1579
|
$metadata: deserializeMetadata(output),
|
|
2230
|
-
};
|
|
1580
|
+
});
|
|
1581
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2231
1582
|
}
|
|
2232
|
-
const message = response.message || response.Message || errorCode;
|
|
2233
|
-
response.message = message;
|
|
2234
|
-
delete response.Message;
|
|
2235
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2236
1583
|
};
|
|
2237
1584
|
const deserializeAws_json1_1ListAcceleratorsCommand = async (output, context) => {
|
|
2238
1585
|
if (output.statusCode >= 300) {
|
|
@@ -2259,43 +1606,22 @@ const deserializeAws_json1_1ListAcceleratorsCommandError = async (output, contex
|
|
|
2259
1606
|
switch (errorCode) {
|
|
2260
1607
|
case "InternalServiceErrorException":
|
|
2261
1608
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2262
|
-
|
|
2263
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
2264
|
-
name: errorCode,
|
|
2265
|
-
$metadata: deserializeMetadata(output),
|
|
2266
|
-
};
|
|
2267
|
-
break;
|
|
1609
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
2268
1610
|
case "InvalidArgumentException":
|
|
2269
1611
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2270
|
-
|
|
2271
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
2272
|
-
name: errorCode,
|
|
2273
|
-
$metadata: deserializeMetadata(output),
|
|
2274
|
-
};
|
|
2275
|
-
break;
|
|
1612
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2276
1613
|
case "InvalidNextTokenException":
|
|
2277
1614
|
case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
|
|
2278
|
-
|
|
2279
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
2280
|
-
name: errorCode,
|
|
2281
|
-
$metadata: deserializeMetadata(output),
|
|
2282
|
-
};
|
|
2283
|
-
break;
|
|
1615
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2284
1616
|
default:
|
|
2285
1617
|
const parsedBody = parsedOutput.body;
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
...parsedBody,
|
|
2289
|
-
name: `${errorCode}`,
|
|
2290
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1618
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1619
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2291
1620
|
$fault: "client",
|
|
2292
1621
|
$metadata: deserializeMetadata(output),
|
|
2293
|
-
};
|
|
1622
|
+
});
|
|
1623
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2294
1624
|
}
|
|
2295
|
-
const message = response.message || response.Message || errorCode;
|
|
2296
|
-
response.message = message;
|
|
2297
|
-
delete response.Message;
|
|
2298
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2299
1625
|
};
|
|
2300
1626
|
const deserializeAws_json1_1ListByoipCidrsCommand = async (output, context) => {
|
|
2301
1627
|
if (output.statusCode >= 300) {
|
|
@@ -2322,51 +1648,25 @@ const deserializeAws_json1_1ListByoipCidrsCommandError = async (output, context)
|
|
|
2322
1648
|
switch (errorCode) {
|
|
2323
1649
|
case "AccessDeniedException":
|
|
2324
1650
|
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
2325
|
-
|
|
2326
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2327
|
-
name: errorCode,
|
|
2328
|
-
$metadata: deserializeMetadata(output),
|
|
2329
|
-
};
|
|
2330
|
-
break;
|
|
1651
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2331
1652
|
case "InternalServiceErrorException":
|
|
2332
1653
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2333
|
-
|
|
2334
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
2335
|
-
name: errorCode,
|
|
2336
|
-
$metadata: deserializeMetadata(output),
|
|
2337
|
-
};
|
|
2338
|
-
break;
|
|
1654
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
2339
1655
|
case "InvalidArgumentException":
|
|
2340
1656
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2341
|
-
|
|
2342
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
2343
|
-
name: errorCode,
|
|
2344
|
-
$metadata: deserializeMetadata(output),
|
|
2345
|
-
};
|
|
2346
|
-
break;
|
|
1657
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2347
1658
|
case "InvalidNextTokenException":
|
|
2348
1659
|
case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
|
|
2349
|
-
|
|
2350
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
2351
|
-
name: errorCode,
|
|
2352
|
-
$metadata: deserializeMetadata(output),
|
|
2353
|
-
};
|
|
2354
|
-
break;
|
|
1660
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2355
1661
|
default:
|
|
2356
1662
|
const parsedBody = parsedOutput.body;
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
...parsedBody,
|
|
2360
|
-
name: `${errorCode}`,
|
|
2361
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1663
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1664
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2362
1665
|
$fault: "client",
|
|
2363
1666
|
$metadata: deserializeMetadata(output),
|
|
2364
|
-
};
|
|
1667
|
+
});
|
|
1668
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2365
1669
|
}
|
|
2366
|
-
const message = response.message || response.Message || errorCode;
|
|
2367
|
-
response.message = message;
|
|
2368
|
-
delete response.Message;
|
|
2369
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2370
1670
|
};
|
|
2371
1671
|
const deserializeAws_json1_1ListCustomRoutingAcceleratorsCommand = async (output, context) => {
|
|
2372
1672
|
if (output.statusCode >= 300) {
|
|
@@ -2393,43 +1693,22 @@ const deserializeAws_json1_1ListCustomRoutingAcceleratorsCommandError = async (o
|
|
|
2393
1693
|
switch (errorCode) {
|
|
2394
1694
|
case "InternalServiceErrorException":
|
|
2395
1695
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2396
|
-
|
|
2397
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
2398
|
-
name: errorCode,
|
|
2399
|
-
$metadata: deserializeMetadata(output),
|
|
2400
|
-
};
|
|
2401
|
-
break;
|
|
1696
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
2402
1697
|
case "InvalidArgumentException":
|
|
2403
1698
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2404
|
-
|
|
2405
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
2406
|
-
name: errorCode,
|
|
2407
|
-
$metadata: deserializeMetadata(output),
|
|
2408
|
-
};
|
|
2409
|
-
break;
|
|
1699
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2410
1700
|
case "InvalidNextTokenException":
|
|
2411
1701
|
case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
|
|
2412
|
-
|
|
2413
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
2414
|
-
name: errorCode,
|
|
2415
|
-
$metadata: deserializeMetadata(output),
|
|
2416
|
-
};
|
|
2417
|
-
break;
|
|
1702
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2418
1703
|
default:
|
|
2419
1704
|
const parsedBody = parsedOutput.body;
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
...parsedBody,
|
|
2423
|
-
name: `${errorCode}`,
|
|
2424
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1705
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1706
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2425
1707
|
$fault: "client",
|
|
2426
1708
|
$metadata: deserializeMetadata(output),
|
|
2427
|
-
};
|
|
1709
|
+
});
|
|
1710
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2428
1711
|
}
|
|
2429
|
-
const message = response.message || response.Message || errorCode;
|
|
2430
|
-
response.message = message;
|
|
2431
|
-
delete response.Message;
|
|
2432
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2433
1712
|
};
|
|
2434
1713
|
const deserializeAws_json1_1ListCustomRoutingEndpointGroupsCommand = async (output, context) => {
|
|
2435
1714
|
if (output.statusCode >= 300) {
|
|
@@ -2456,51 +1735,25 @@ const deserializeAws_json1_1ListCustomRoutingEndpointGroupsCommandError = async
|
|
|
2456
1735
|
switch (errorCode) {
|
|
2457
1736
|
case "InternalServiceErrorException":
|
|
2458
1737
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2459
|
-
|
|
2460
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
2461
|
-
name: errorCode,
|
|
2462
|
-
$metadata: deserializeMetadata(output),
|
|
2463
|
-
};
|
|
2464
|
-
break;
|
|
1738
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
2465
1739
|
case "InvalidArgumentException":
|
|
2466
1740
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2467
|
-
|
|
2468
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
2469
|
-
name: errorCode,
|
|
2470
|
-
$metadata: deserializeMetadata(output),
|
|
2471
|
-
};
|
|
2472
|
-
break;
|
|
1741
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2473
1742
|
case "InvalidNextTokenException":
|
|
2474
1743
|
case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
|
|
2475
|
-
|
|
2476
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
2477
|
-
name: errorCode,
|
|
2478
|
-
$metadata: deserializeMetadata(output),
|
|
2479
|
-
};
|
|
2480
|
-
break;
|
|
1744
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2481
1745
|
case "ListenerNotFoundException":
|
|
2482
1746
|
case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
|
|
2483
|
-
|
|
2484
|
-
...(await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context)),
|
|
2485
|
-
name: errorCode,
|
|
2486
|
-
$metadata: deserializeMetadata(output),
|
|
2487
|
-
};
|
|
2488
|
-
break;
|
|
1747
|
+
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
2489
1748
|
default:
|
|
2490
1749
|
const parsedBody = parsedOutput.body;
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
...parsedBody,
|
|
2494
|
-
name: `${errorCode}`,
|
|
2495
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1750
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1751
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2496
1752
|
$fault: "client",
|
|
2497
1753
|
$metadata: deserializeMetadata(output),
|
|
2498
|
-
};
|
|
1754
|
+
});
|
|
1755
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2499
1756
|
}
|
|
2500
|
-
const message = response.message || response.Message || errorCode;
|
|
2501
|
-
response.message = message;
|
|
2502
|
-
delete response.Message;
|
|
2503
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2504
1757
|
};
|
|
2505
1758
|
const deserializeAws_json1_1ListCustomRoutingListenersCommand = async (output, context) => {
|
|
2506
1759
|
if (output.statusCode >= 300) {
|
|
@@ -2527,51 +1780,25 @@ const deserializeAws_json1_1ListCustomRoutingListenersCommandError = async (outp
|
|
|
2527
1780
|
switch (errorCode) {
|
|
2528
1781
|
case "AcceleratorNotFoundException":
|
|
2529
1782
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
2530
|
-
|
|
2531
|
-
...(await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context)),
|
|
2532
|
-
name: errorCode,
|
|
2533
|
-
$metadata: deserializeMetadata(output),
|
|
2534
|
-
};
|
|
2535
|
-
break;
|
|
1783
|
+
throw await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context);
|
|
2536
1784
|
case "InternalServiceErrorException":
|
|
2537
1785
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2538
|
-
|
|
2539
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
2540
|
-
name: errorCode,
|
|
2541
|
-
$metadata: deserializeMetadata(output),
|
|
2542
|
-
};
|
|
2543
|
-
break;
|
|
1786
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
2544
1787
|
case "InvalidArgumentException":
|
|
2545
1788
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2546
|
-
|
|
2547
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
2548
|
-
name: errorCode,
|
|
2549
|
-
$metadata: deserializeMetadata(output),
|
|
2550
|
-
};
|
|
2551
|
-
break;
|
|
1789
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2552
1790
|
case "InvalidNextTokenException":
|
|
2553
1791
|
case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
|
|
2554
|
-
|
|
2555
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
2556
|
-
name: errorCode,
|
|
2557
|
-
$metadata: deserializeMetadata(output),
|
|
2558
|
-
};
|
|
2559
|
-
break;
|
|
1792
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2560
1793
|
default:
|
|
2561
1794
|
const parsedBody = parsedOutput.body;
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
...parsedBody,
|
|
2565
|
-
name: `${errorCode}`,
|
|
2566
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1795
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1796
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2567
1797
|
$fault: "client",
|
|
2568
1798
|
$metadata: deserializeMetadata(output),
|
|
2569
|
-
};
|
|
1799
|
+
});
|
|
1800
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2570
1801
|
}
|
|
2571
|
-
const message = response.message || response.Message || errorCode;
|
|
2572
|
-
response.message = message;
|
|
2573
|
-
delete response.Message;
|
|
2574
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2575
1802
|
};
|
|
2576
1803
|
const deserializeAws_json1_1ListCustomRoutingPortMappingsCommand = async (output, context) => {
|
|
2577
1804
|
if (output.statusCode >= 300) {
|
|
@@ -2598,59 +1825,28 @@ const deserializeAws_json1_1ListCustomRoutingPortMappingsCommandError = async (o
|
|
|
2598
1825
|
switch (errorCode) {
|
|
2599
1826
|
case "AcceleratorNotFoundException":
|
|
2600
1827
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
2601
|
-
|
|
2602
|
-
...(await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context)),
|
|
2603
|
-
name: errorCode,
|
|
2604
|
-
$metadata: deserializeMetadata(output),
|
|
2605
|
-
};
|
|
2606
|
-
break;
|
|
1828
|
+
throw await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context);
|
|
2607
1829
|
case "EndpointGroupNotFoundException":
|
|
2608
1830
|
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
2609
|
-
|
|
2610
|
-
...(await deserializeAws_json1_1EndpointGroupNotFoundExceptionResponse(parsedOutput, context)),
|
|
2611
|
-
name: errorCode,
|
|
2612
|
-
$metadata: deserializeMetadata(output),
|
|
2613
|
-
};
|
|
2614
|
-
break;
|
|
1831
|
+
throw await deserializeAws_json1_1EndpointGroupNotFoundExceptionResponse(parsedOutput, context);
|
|
2615
1832
|
case "InternalServiceErrorException":
|
|
2616
1833
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2617
|
-
|
|
2618
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
2619
|
-
name: errorCode,
|
|
2620
|
-
$metadata: deserializeMetadata(output),
|
|
2621
|
-
};
|
|
2622
|
-
break;
|
|
1834
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
2623
1835
|
case "InvalidArgumentException":
|
|
2624
1836
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2625
|
-
|
|
2626
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
2627
|
-
name: errorCode,
|
|
2628
|
-
$metadata: deserializeMetadata(output),
|
|
2629
|
-
};
|
|
2630
|
-
break;
|
|
1837
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2631
1838
|
case "InvalidNextTokenException":
|
|
2632
1839
|
case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
|
|
2633
|
-
|
|
2634
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
2635
|
-
name: errorCode,
|
|
2636
|
-
$metadata: deserializeMetadata(output),
|
|
2637
|
-
};
|
|
2638
|
-
break;
|
|
1840
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2639
1841
|
default:
|
|
2640
1842
|
const parsedBody = parsedOutput.body;
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
...parsedBody,
|
|
2644
|
-
name: `${errorCode}`,
|
|
2645
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1843
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1844
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2646
1845
|
$fault: "client",
|
|
2647
1846
|
$metadata: deserializeMetadata(output),
|
|
2648
|
-
};
|
|
1847
|
+
});
|
|
1848
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2649
1849
|
}
|
|
2650
|
-
const message = response.message || response.Message || errorCode;
|
|
2651
|
-
response.message = message;
|
|
2652
|
-
delete response.Message;
|
|
2653
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2654
1850
|
};
|
|
2655
1851
|
const deserializeAws_json1_1ListCustomRoutingPortMappingsByDestinationCommand = async (output, context) => {
|
|
2656
1852
|
if (output.statusCode >= 300) {
|
|
@@ -2677,51 +1873,25 @@ const deserializeAws_json1_1ListCustomRoutingPortMappingsByDestinationCommandErr
|
|
|
2677
1873
|
switch (errorCode) {
|
|
2678
1874
|
case "EndpointNotFoundException":
|
|
2679
1875
|
case "com.amazonaws.globalaccelerator#EndpointNotFoundException":
|
|
2680
|
-
|
|
2681
|
-
...(await deserializeAws_json1_1EndpointNotFoundExceptionResponse(parsedOutput, context)),
|
|
2682
|
-
name: errorCode,
|
|
2683
|
-
$metadata: deserializeMetadata(output),
|
|
2684
|
-
};
|
|
2685
|
-
break;
|
|
1876
|
+
throw await deserializeAws_json1_1EndpointNotFoundExceptionResponse(parsedOutput, context);
|
|
2686
1877
|
case "InternalServiceErrorException":
|
|
2687
1878
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2688
|
-
|
|
2689
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
2690
|
-
name: errorCode,
|
|
2691
|
-
$metadata: deserializeMetadata(output),
|
|
2692
|
-
};
|
|
2693
|
-
break;
|
|
1879
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
2694
1880
|
case "InvalidArgumentException":
|
|
2695
1881
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2696
|
-
|
|
2697
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
2698
|
-
name: errorCode,
|
|
2699
|
-
$metadata: deserializeMetadata(output),
|
|
2700
|
-
};
|
|
2701
|
-
break;
|
|
1882
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2702
1883
|
case "InvalidNextTokenException":
|
|
2703
1884
|
case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
|
|
2704
|
-
|
|
2705
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
2706
|
-
name: errorCode,
|
|
2707
|
-
$metadata: deserializeMetadata(output),
|
|
2708
|
-
};
|
|
2709
|
-
break;
|
|
1885
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2710
1886
|
default:
|
|
2711
1887
|
const parsedBody = parsedOutput.body;
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
...parsedBody,
|
|
2715
|
-
name: `${errorCode}`,
|
|
2716
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1888
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1889
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2717
1890
|
$fault: "client",
|
|
2718
1891
|
$metadata: deserializeMetadata(output),
|
|
2719
|
-
};
|
|
1892
|
+
});
|
|
1893
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2720
1894
|
}
|
|
2721
|
-
const message = response.message || response.Message || errorCode;
|
|
2722
|
-
response.message = message;
|
|
2723
|
-
delete response.Message;
|
|
2724
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2725
1895
|
};
|
|
2726
1896
|
const deserializeAws_json1_1ListEndpointGroupsCommand = async (output, context) => {
|
|
2727
1897
|
if (output.statusCode >= 300) {
|
|
@@ -2748,51 +1918,25 @@ const deserializeAws_json1_1ListEndpointGroupsCommandError = async (output, cont
|
|
|
2748
1918
|
switch (errorCode) {
|
|
2749
1919
|
case "InternalServiceErrorException":
|
|
2750
1920
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2751
|
-
|
|
2752
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
2753
|
-
name: errorCode,
|
|
2754
|
-
$metadata: deserializeMetadata(output),
|
|
2755
|
-
};
|
|
2756
|
-
break;
|
|
1921
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
2757
1922
|
case "InvalidArgumentException":
|
|
2758
1923
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2759
|
-
|
|
2760
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
2761
|
-
name: errorCode,
|
|
2762
|
-
$metadata: deserializeMetadata(output),
|
|
2763
|
-
};
|
|
2764
|
-
break;
|
|
1924
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2765
1925
|
case "InvalidNextTokenException":
|
|
2766
1926
|
case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
|
|
2767
|
-
|
|
2768
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
2769
|
-
name: errorCode,
|
|
2770
|
-
$metadata: deserializeMetadata(output),
|
|
2771
|
-
};
|
|
2772
|
-
break;
|
|
1927
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2773
1928
|
case "ListenerNotFoundException":
|
|
2774
1929
|
case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
|
|
2775
|
-
|
|
2776
|
-
...(await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context)),
|
|
2777
|
-
name: errorCode,
|
|
2778
|
-
$metadata: deserializeMetadata(output),
|
|
2779
|
-
};
|
|
2780
|
-
break;
|
|
1930
|
+
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
2781
1931
|
default:
|
|
2782
1932
|
const parsedBody = parsedOutput.body;
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
...parsedBody,
|
|
2786
|
-
name: `${errorCode}`,
|
|
2787
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1933
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1934
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2788
1935
|
$fault: "client",
|
|
2789
1936
|
$metadata: deserializeMetadata(output),
|
|
2790
|
-
};
|
|
1937
|
+
});
|
|
1938
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2791
1939
|
}
|
|
2792
|
-
const message = response.message || response.Message || errorCode;
|
|
2793
|
-
response.message = message;
|
|
2794
|
-
delete response.Message;
|
|
2795
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2796
1940
|
};
|
|
2797
1941
|
const deserializeAws_json1_1ListListenersCommand = async (output, context) => {
|
|
2798
1942
|
if (output.statusCode >= 300) {
|
|
@@ -2819,51 +1963,25 @@ const deserializeAws_json1_1ListListenersCommandError = async (output, context)
|
|
|
2819
1963
|
switch (errorCode) {
|
|
2820
1964
|
case "AcceleratorNotFoundException":
|
|
2821
1965
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
2822
|
-
|
|
2823
|
-
...(await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context)),
|
|
2824
|
-
name: errorCode,
|
|
2825
|
-
$metadata: deserializeMetadata(output),
|
|
2826
|
-
};
|
|
2827
|
-
break;
|
|
1966
|
+
throw await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context);
|
|
2828
1967
|
case "InternalServiceErrorException":
|
|
2829
1968
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2830
|
-
|
|
2831
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
2832
|
-
name: errorCode,
|
|
2833
|
-
$metadata: deserializeMetadata(output),
|
|
2834
|
-
};
|
|
2835
|
-
break;
|
|
1969
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
2836
1970
|
case "InvalidArgumentException":
|
|
2837
1971
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2838
|
-
|
|
2839
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
2840
|
-
name: errorCode,
|
|
2841
|
-
$metadata: deserializeMetadata(output),
|
|
2842
|
-
};
|
|
2843
|
-
break;
|
|
1972
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2844
1973
|
case "InvalidNextTokenException":
|
|
2845
1974
|
case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
|
|
2846
|
-
|
|
2847
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
2848
|
-
name: errorCode,
|
|
2849
|
-
$metadata: deserializeMetadata(output),
|
|
2850
|
-
};
|
|
2851
|
-
break;
|
|
1975
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2852
1976
|
default:
|
|
2853
1977
|
const parsedBody = parsedOutput.body;
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
...parsedBody,
|
|
2857
|
-
name: `${errorCode}`,
|
|
2858
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1978
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1979
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2859
1980
|
$fault: "client",
|
|
2860
1981
|
$metadata: deserializeMetadata(output),
|
|
2861
|
-
};
|
|
1982
|
+
});
|
|
1983
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2862
1984
|
}
|
|
2863
|
-
const message = response.message || response.Message || errorCode;
|
|
2864
|
-
response.message = message;
|
|
2865
|
-
delete response.Message;
|
|
2866
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2867
1985
|
};
|
|
2868
1986
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
2869
1987
|
if (output.statusCode >= 300) {
|
|
@@ -2890,43 +2008,22 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2890
2008
|
switch (errorCode) {
|
|
2891
2009
|
case "AcceleratorNotFoundException":
|
|
2892
2010
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
2893
|
-
|
|
2894
|
-
...(await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context)),
|
|
2895
|
-
name: errorCode,
|
|
2896
|
-
$metadata: deserializeMetadata(output),
|
|
2897
|
-
};
|
|
2898
|
-
break;
|
|
2011
|
+
throw await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context);
|
|
2899
2012
|
case "InternalServiceErrorException":
|
|
2900
2013
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2901
|
-
|
|
2902
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
2903
|
-
name: errorCode,
|
|
2904
|
-
$metadata: deserializeMetadata(output),
|
|
2905
|
-
};
|
|
2906
|
-
break;
|
|
2014
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
2907
2015
|
case "InvalidArgumentException":
|
|
2908
2016
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2909
|
-
|
|
2910
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
2911
|
-
name: errorCode,
|
|
2912
|
-
$metadata: deserializeMetadata(output),
|
|
2913
|
-
};
|
|
2914
|
-
break;
|
|
2017
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2915
2018
|
default:
|
|
2916
2019
|
const parsedBody = parsedOutput.body;
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
...parsedBody,
|
|
2920
|
-
name: `${errorCode}`,
|
|
2921
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2020
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
2021
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2922
2022
|
$fault: "client",
|
|
2923
2023
|
$metadata: deserializeMetadata(output),
|
|
2924
|
-
};
|
|
2024
|
+
});
|
|
2025
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2925
2026
|
}
|
|
2926
|
-
const message = response.message || response.Message || errorCode;
|
|
2927
|
-
response.message = message;
|
|
2928
|
-
delete response.Message;
|
|
2929
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2930
2027
|
};
|
|
2931
2028
|
const deserializeAws_json1_1ProvisionByoipCidrCommand = async (output, context) => {
|
|
2932
2029
|
if (output.statusCode >= 300) {
|
|
@@ -2953,59 +2050,28 @@ const deserializeAws_json1_1ProvisionByoipCidrCommandError = async (output, cont
|
|
|
2953
2050
|
switch (errorCode) {
|
|
2954
2051
|
case "AccessDeniedException":
|
|
2955
2052
|
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
2956
|
-
|
|
2957
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2958
|
-
name: errorCode,
|
|
2959
|
-
$metadata: deserializeMetadata(output),
|
|
2960
|
-
};
|
|
2961
|
-
break;
|
|
2053
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2962
2054
|
case "IncorrectCidrStateException":
|
|
2963
2055
|
case "com.amazonaws.globalaccelerator#IncorrectCidrStateException":
|
|
2964
|
-
|
|
2965
|
-
...(await deserializeAws_json1_1IncorrectCidrStateExceptionResponse(parsedOutput, context)),
|
|
2966
|
-
name: errorCode,
|
|
2967
|
-
$metadata: deserializeMetadata(output),
|
|
2968
|
-
};
|
|
2969
|
-
break;
|
|
2056
|
+
throw await deserializeAws_json1_1IncorrectCidrStateExceptionResponse(parsedOutput, context);
|
|
2970
2057
|
case "InternalServiceErrorException":
|
|
2971
2058
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2972
|
-
|
|
2973
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
2974
|
-
name: errorCode,
|
|
2975
|
-
$metadata: deserializeMetadata(output),
|
|
2976
|
-
};
|
|
2977
|
-
break;
|
|
2059
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
2978
2060
|
case "InvalidArgumentException":
|
|
2979
2061
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2980
|
-
|
|
2981
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
2982
|
-
name: errorCode,
|
|
2983
|
-
$metadata: deserializeMetadata(output),
|
|
2984
|
-
};
|
|
2985
|
-
break;
|
|
2062
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2986
2063
|
case "LimitExceededException":
|
|
2987
2064
|
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
2988
|
-
|
|
2989
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
2990
|
-
name: errorCode,
|
|
2991
|
-
$metadata: deserializeMetadata(output),
|
|
2992
|
-
};
|
|
2993
|
-
break;
|
|
2065
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
2994
2066
|
default:
|
|
2995
2067
|
const parsedBody = parsedOutput.body;
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
...parsedBody,
|
|
2999
|
-
name: `${errorCode}`,
|
|
3000
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2068
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
2069
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3001
2070
|
$fault: "client",
|
|
3002
2071
|
$metadata: deserializeMetadata(output),
|
|
3003
|
-
};
|
|
2072
|
+
});
|
|
2073
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3004
2074
|
}
|
|
3005
|
-
const message = response.message || response.Message || errorCode;
|
|
3006
|
-
response.message = message;
|
|
3007
|
-
delete response.Message;
|
|
3008
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3009
2075
|
};
|
|
3010
2076
|
const deserializeAws_json1_1RemoveCustomRoutingEndpointsCommand = async (output, context) => {
|
|
3011
2077
|
if (output.statusCode >= 300) {
|
|
@@ -3029,67 +2095,31 @@ const deserializeAws_json1_1RemoveCustomRoutingEndpointsCommandError = async (ou
|
|
|
3029
2095
|
switch (errorCode) {
|
|
3030
2096
|
case "AccessDeniedException":
|
|
3031
2097
|
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
3032
|
-
|
|
3033
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3034
|
-
name: errorCode,
|
|
3035
|
-
$metadata: deserializeMetadata(output),
|
|
3036
|
-
};
|
|
3037
|
-
break;
|
|
2098
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3038
2099
|
case "ConflictException":
|
|
3039
2100
|
case "com.amazonaws.globalaccelerator#ConflictException":
|
|
3040
|
-
|
|
3041
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
3042
|
-
name: errorCode,
|
|
3043
|
-
$metadata: deserializeMetadata(output),
|
|
3044
|
-
};
|
|
3045
|
-
break;
|
|
2101
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
3046
2102
|
case "EndpointGroupNotFoundException":
|
|
3047
2103
|
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
3048
|
-
|
|
3049
|
-
...(await deserializeAws_json1_1EndpointGroupNotFoundExceptionResponse(parsedOutput, context)),
|
|
3050
|
-
name: errorCode,
|
|
3051
|
-
$metadata: deserializeMetadata(output),
|
|
3052
|
-
};
|
|
3053
|
-
break;
|
|
2104
|
+
throw await deserializeAws_json1_1EndpointGroupNotFoundExceptionResponse(parsedOutput, context);
|
|
3054
2105
|
case "EndpointNotFoundException":
|
|
3055
2106
|
case "com.amazonaws.globalaccelerator#EndpointNotFoundException":
|
|
3056
|
-
|
|
3057
|
-
...(await deserializeAws_json1_1EndpointNotFoundExceptionResponse(parsedOutput, context)),
|
|
3058
|
-
name: errorCode,
|
|
3059
|
-
$metadata: deserializeMetadata(output),
|
|
3060
|
-
};
|
|
3061
|
-
break;
|
|
2107
|
+
throw await deserializeAws_json1_1EndpointNotFoundExceptionResponse(parsedOutput, context);
|
|
3062
2108
|
case "InternalServiceErrorException":
|
|
3063
2109
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
3064
|
-
|
|
3065
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
3066
|
-
name: errorCode,
|
|
3067
|
-
$metadata: deserializeMetadata(output),
|
|
3068
|
-
};
|
|
3069
|
-
break;
|
|
2110
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
3070
2111
|
case "InvalidArgumentException":
|
|
3071
2112
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
3072
|
-
|
|
3073
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
3074
|
-
name: errorCode,
|
|
3075
|
-
$metadata: deserializeMetadata(output),
|
|
3076
|
-
};
|
|
3077
|
-
break;
|
|
2113
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
3078
2114
|
default:
|
|
3079
2115
|
const parsedBody = parsedOutput.body;
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
...parsedBody,
|
|
3083
|
-
name: `${errorCode}`,
|
|
3084
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2116
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
2117
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3085
2118
|
$fault: "client",
|
|
3086
2119
|
$metadata: deserializeMetadata(output),
|
|
3087
|
-
};
|
|
2120
|
+
});
|
|
2121
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3088
2122
|
}
|
|
3089
|
-
const message = response.message || response.Message || errorCode;
|
|
3090
|
-
response.message = message;
|
|
3091
|
-
delete response.Message;
|
|
3092
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3093
2123
|
};
|
|
3094
2124
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
3095
2125
|
if (output.statusCode >= 300) {
|
|
@@ -3116,43 +2146,22 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3116
2146
|
switch (errorCode) {
|
|
3117
2147
|
case "AcceleratorNotFoundException":
|
|
3118
2148
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
3119
|
-
|
|
3120
|
-
...(await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context)),
|
|
3121
|
-
name: errorCode,
|
|
3122
|
-
$metadata: deserializeMetadata(output),
|
|
3123
|
-
};
|
|
3124
|
-
break;
|
|
2149
|
+
throw await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context);
|
|
3125
2150
|
case "InternalServiceErrorException":
|
|
3126
2151
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
3127
|
-
|
|
3128
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
3129
|
-
name: errorCode,
|
|
3130
|
-
$metadata: deserializeMetadata(output),
|
|
3131
|
-
};
|
|
3132
|
-
break;
|
|
2152
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
3133
2153
|
case "InvalidArgumentException":
|
|
3134
2154
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
3135
|
-
|
|
3136
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
3137
|
-
name: errorCode,
|
|
3138
|
-
$metadata: deserializeMetadata(output),
|
|
3139
|
-
};
|
|
3140
|
-
break;
|
|
2155
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
3141
2156
|
default:
|
|
3142
2157
|
const parsedBody = parsedOutput.body;
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
...parsedBody,
|
|
3146
|
-
name: `${errorCode}`,
|
|
3147
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2158
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
2159
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3148
2160
|
$fault: "client",
|
|
3149
2161
|
$metadata: deserializeMetadata(output),
|
|
3150
|
-
};
|
|
2162
|
+
});
|
|
2163
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3151
2164
|
}
|
|
3152
|
-
const message = response.message || response.Message || errorCode;
|
|
3153
|
-
response.message = message;
|
|
3154
|
-
delete response.Message;
|
|
3155
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3156
2165
|
};
|
|
3157
2166
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
3158
2167
|
if (output.statusCode >= 300) {
|
|
@@ -3179,43 +2188,22 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3179
2188
|
switch (errorCode) {
|
|
3180
2189
|
case "AcceleratorNotFoundException":
|
|
3181
2190
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
3182
|
-
|
|
3183
|
-
...(await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context)),
|
|
3184
|
-
name: errorCode,
|
|
3185
|
-
$metadata: deserializeMetadata(output),
|
|
3186
|
-
};
|
|
3187
|
-
break;
|
|
2191
|
+
throw await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context);
|
|
3188
2192
|
case "InternalServiceErrorException":
|
|
3189
2193
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
3190
|
-
|
|
3191
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
3192
|
-
name: errorCode,
|
|
3193
|
-
$metadata: deserializeMetadata(output),
|
|
3194
|
-
};
|
|
3195
|
-
break;
|
|
2194
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
3196
2195
|
case "InvalidArgumentException":
|
|
3197
2196
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
3198
|
-
|
|
3199
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
3200
|
-
name: errorCode,
|
|
3201
|
-
$metadata: deserializeMetadata(output),
|
|
3202
|
-
};
|
|
3203
|
-
break;
|
|
2197
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
3204
2198
|
default:
|
|
3205
2199
|
const parsedBody = parsedOutput.body;
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
...parsedBody,
|
|
3209
|
-
name: `${errorCode}`,
|
|
3210
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2200
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
2201
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3211
2202
|
$fault: "client",
|
|
3212
2203
|
$metadata: deserializeMetadata(output),
|
|
3213
|
-
};
|
|
2204
|
+
});
|
|
2205
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3214
2206
|
}
|
|
3215
|
-
const message = response.message || response.Message || errorCode;
|
|
3216
|
-
response.message = message;
|
|
3217
|
-
delete response.Message;
|
|
3218
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3219
2207
|
};
|
|
3220
2208
|
const deserializeAws_json1_1UpdateAcceleratorCommand = async (output, context) => {
|
|
3221
2209
|
if (output.statusCode >= 300) {
|
|
@@ -3242,43 +2230,22 @@ const deserializeAws_json1_1UpdateAcceleratorCommandError = async (output, conte
|
|
|
3242
2230
|
switch (errorCode) {
|
|
3243
2231
|
case "AcceleratorNotFoundException":
|
|
3244
2232
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
3245
|
-
|
|
3246
|
-
...(await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context)),
|
|
3247
|
-
name: errorCode,
|
|
3248
|
-
$metadata: deserializeMetadata(output),
|
|
3249
|
-
};
|
|
3250
|
-
break;
|
|
2233
|
+
throw await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context);
|
|
3251
2234
|
case "InternalServiceErrorException":
|
|
3252
2235
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
3253
|
-
|
|
3254
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
3255
|
-
name: errorCode,
|
|
3256
|
-
$metadata: deserializeMetadata(output),
|
|
3257
|
-
};
|
|
3258
|
-
break;
|
|
2236
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
3259
2237
|
case "InvalidArgumentException":
|
|
3260
2238
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
3261
|
-
|
|
3262
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
3263
|
-
name: errorCode,
|
|
3264
|
-
$metadata: deserializeMetadata(output),
|
|
3265
|
-
};
|
|
3266
|
-
break;
|
|
2239
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
3267
2240
|
default:
|
|
3268
2241
|
const parsedBody = parsedOutput.body;
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
...parsedBody,
|
|
3272
|
-
name: `${errorCode}`,
|
|
3273
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2242
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
2243
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3274
2244
|
$fault: "client",
|
|
3275
2245
|
$metadata: deserializeMetadata(output),
|
|
3276
|
-
};
|
|
2246
|
+
});
|
|
2247
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3277
2248
|
}
|
|
3278
|
-
const message = response.message || response.Message || errorCode;
|
|
3279
|
-
response.message = message;
|
|
3280
|
-
delete response.Message;
|
|
3281
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3282
2249
|
};
|
|
3283
2250
|
const deserializeAws_json1_1UpdateAcceleratorAttributesCommand = async (output, context) => {
|
|
3284
2251
|
if (output.statusCode >= 300) {
|
|
@@ -3305,51 +2272,25 @@ const deserializeAws_json1_1UpdateAcceleratorAttributesCommandError = async (out
|
|
|
3305
2272
|
switch (errorCode) {
|
|
3306
2273
|
case "AcceleratorNotFoundException":
|
|
3307
2274
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
3308
|
-
|
|
3309
|
-
...(await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context)),
|
|
3310
|
-
name: errorCode,
|
|
3311
|
-
$metadata: deserializeMetadata(output),
|
|
3312
|
-
};
|
|
3313
|
-
break;
|
|
2275
|
+
throw await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context);
|
|
3314
2276
|
case "AccessDeniedException":
|
|
3315
2277
|
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
3316
|
-
|
|
3317
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3318
|
-
name: errorCode,
|
|
3319
|
-
$metadata: deserializeMetadata(output),
|
|
3320
|
-
};
|
|
3321
|
-
break;
|
|
2278
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3322
2279
|
case "InternalServiceErrorException":
|
|
3323
2280
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
3324
|
-
|
|
3325
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
3326
|
-
name: errorCode,
|
|
3327
|
-
$metadata: deserializeMetadata(output),
|
|
3328
|
-
};
|
|
3329
|
-
break;
|
|
2281
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
3330
2282
|
case "InvalidArgumentException":
|
|
3331
2283
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
3332
|
-
|
|
3333
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
3334
|
-
name: errorCode,
|
|
3335
|
-
$metadata: deserializeMetadata(output),
|
|
3336
|
-
};
|
|
3337
|
-
break;
|
|
2284
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
3338
2285
|
default:
|
|
3339
2286
|
const parsedBody = parsedOutput.body;
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
...parsedBody,
|
|
3343
|
-
name: `${errorCode}`,
|
|
3344
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2287
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
2288
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3345
2289
|
$fault: "client",
|
|
3346
2290
|
$metadata: deserializeMetadata(output),
|
|
3347
|
-
};
|
|
2291
|
+
});
|
|
2292
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3348
2293
|
}
|
|
3349
|
-
const message = response.message || response.Message || errorCode;
|
|
3350
|
-
response.message = message;
|
|
3351
|
-
delete response.Message;
|
|
3352
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3353
2294
|
};
|
|
3354
2295
|
const deserializeAws_json1_1UpdateCustomRoutingAcceleratorCommand = async (output, context) => {
|
|
3355
2296
|
if (output.statusCode >= 300) {
|
|
@@ -3376,43 +2317,22 @@ const deserializeAws_json1_1UpdateCustomRoutingAcceleratorCommandError = async (
|
|
|
3376
2317
|
switch (errorCode) {
|
|
3377
2318
|
case "AcceleratorNotFoundException":
|
|
3378
2319
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
3379
|
-
|
|
3380
|
-
...(await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context)),
|
|
3381
|
-
name: errorCode,
|
|
3382
|
-
$metadata: deserializeMetadata(output),
|
|
3383
|
-
};
|
|
3384
|
-
break;
|
|
2320
|
+
throw await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context);
|
|
3385
2321
|
case "InternalServiceErrorException":
|
|
3386
2322
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
3387
|
-
|
|
3388
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
3389
|
-
name: errorCode,
|
|
3390
|
-
$metadata: deserializeMetadata(output),
|
|
3391
|
-
};
|
|
3392
|
-
break;
|
|
2323
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
3393
2324
|
case "InvalidArgumentException":
|
|
3394
2325
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
3395
|
-
|
|
3396
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
3397
|
-
name: errorCode,
|
|
3398
|
-
$metadata: deserializeMetadata(output),
|
|
3399
|
-
};
|
|
3400
|
-
break;
|
|
2326
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
3401
2327
|
default:
|
|
3402
2328
|
const parsedBody = parsedOutput.body;
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
...parsedBody,
|
|
3406
|
-
name: `${errorCode}`,
|
|
3407
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2329
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
2330
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3408
2331
|
$fault: "client",
|
|
3409
2332
|
$metadata: deserializeMetadata(output),
|
|
3410
|
-
};
|
|
2333
|
+
});
|
|
2334
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3411
2335
|
}
|
|
3412
|
-
const message = response.message || response.Message || errorCode;
|
|
3413
|
-
response.message = message;
|
|
3414
|
-
delete response.Message;
|
|
3415
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3416
2336
|
};
|
|
3417
2337
|
const deserializeAws_json1_1UpdateCustomRoutingAcceleratorAttributesCommand = async (output, context) => {
|
|
3418
2338
|
if (output.statusCode >= 300) {
|
|
@@ -3439,51 +2359,25 @@ const deserializeAws_json1_1UpdateCustomRoutingAcceleratorAttributesCommandError
|
|
|
3439
2359
|
switch (errorCode) {
|
|
3440
2360
|
case "AcceleratorNotFoundException":
|
|
3441
2361
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
3442
|
-
|
|
3443
|
-
...(await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context)),
|
|
3444
|
-
name: errorCode,
|
|
3445
|
-
$metadata: deserializeMetadata(output),
|
|
3446
|
-
};
|
|
3447
|
-
break;
|
|
2362
|
+
throw await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context);
|
|
3448
2363
|
case "AccessDeniedException":
|
|
3449
2364
|
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
3450
|
-
|
|
3451
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3452
|
-
name: errorCode,
|
|
3453
|
-
$metadata: deserializeMetadata(output),
|
|
3454
|
-
};
|
|
3455
|
-
break;
|
|
2365
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3456
2366
|
case "InternalServiceErrorException":
|
|
3457
2367
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
3458
|
-
|
|
3459
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
3460
|
-
name: errorCode,
|
|
3461
|
-
$metadata: deserializeMetadata(output),
|
|
3462
|
-
};
|
|
3463
|
-
break;
|
|
2368
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
3464
2369
|
case "InvalidArgumentException":
|
|
3465
2370
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
3466
|
-
|
|
3467
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
3468
|
-
name: errorCode,
|
|
3469
|
-
$metadata: deserializeMetadata(output),
|
|
3470
|
-
};
|
|
3471
|
-
break;
|
|
2371
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
3472
2372
|
default:
|
|
3473
2373
|
const parsedBody = parsedOutput.body;
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
...parsedBody,
|
|
3477
|
-
name: `${errorCode}`,
|
|
3478
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2374
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
2375
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3479
2376
|
$fault: "client",
|
|
3480
2377
|
$metadata: deserializeMetadata(output),
|
|
3481
|
-
};
|
|
2378
|
+
});
|
|
2379
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3482
2380
|
}
|
|
3483
|
-
const message = response.message || response.Message || errorCode;
|
|
3484
|
-
response.message = message;
|
|
3485
|
-
delete response.Message;
|
|
3486
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3487
2381
|
};
|
|
3488
2382
|
const deserializeAws_json1_1UpdateCustomRoutingListenerCommand = async (output, context) => {
|
|
3489
2383
|
if (output.statusCode >= 300) {
|
|
@@ -3510,59 +2404,28 @@ const deserializeAws_json1_1UpdateCustomRoutingListenerCommandError = async (out
|
|
|
3510
2404
|
switch (errorCode) {
|
|
3511
2405
|
case "InternalServiceErrorException":
|
|
3512
2406
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
3513
|
-
|
|
3514
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
3515
|
-
name: errorCode,
|
|
3516
|
-
$metadata: deserializeMetadata(output),
|
|
3517
|
-
};
|
|
3518
|
-
break;
|
|
2407
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
3519
2408
|
case "InvalidArgumentException":
|
|
3520
2409
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
3521
|
-
|
|
3522
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
3523
|
-
name: errorCode,
|
|
3524
|
-
$metadata: deserializeMetadata(output),
|
|
3525
|
-
};
|
|
3526
|
-
break;
|
|
2410
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
3527
2411
|
case "InvalidPortRangeException":
|
|
3528
2412
|
case "com.amazonaws.globalaccelerator#InvalidPortRangeException":
|
|
3529
|
-
|
|
3530
|
-
...(await deserializeAws_json1_1InvalidPortRangeExceptionResponse(parsedOutput, context)),
|
|
3531
|
-
name: errorCode,
|
|
3532
|
-
$metadata: deserializeMetadata(output),
|
|
3533
|
-
};
|
|
3534
|
-
break;
|
|
2413
|
+
throw await deserializeAws_json1_1InvalidPortRangeExceptionResponse(parsedOutput, context);
|
|
3535
2414
|
case "LimitExceededException":
|
|
3536
2415
|
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
3537
|
-
|
|
3538
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
3539
|
-
name: errorCode,
|
|
3540
|
-
$metadata: deserializeMetadata(output),
|
|
3541
|
-
};
|
|
3542
|
-
break;
|
|
2416
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
3543
2417
|
case "ListenerNotFoundException":
|
|
3544
2418
|
case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
|
|
3545
|
-
|
|
3546
|
-
...(await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context)),
|
|
3547
|
-
name: errorCode,
|
|
3548
|
-
$metadata: deserializeMetadata(output),
|
|
3549
|
-
};
|
|
3550
|
-
break;
|
|
2419
|
+
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
3551
2420
|
default:
|
|
3552
2421
|
const parsedBody = parsedOutput.body;
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
...parsedBody,
|
|
3556
|
-
name: `${errorCode}`,
|
|
3557
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2422
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
2423
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3558
2424
|
$fault: "client",
|
|
3559
2425
|
$metadata: deserializeMetadata(output),
|
|
3560
|
-
};
|
|
2426
|
+
});
|
|
2427
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3561
2428
|
}
|
|
3562
|
-
const message = response.message || response.Message || errorCode;
|
|
3563
|
-
response.message = message;
|
|
3564
|
-
delete response.Message;
|
|
3565
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3566
2429
|
};
|
|
3567
2430
|
const deserializeAws_json1_1UpdateEndpointGroupCommand = async (output, context) => {
|
|
3568
2431
|
if (output.statusCode >= 300) {
|
|
@@ -3589,59 +2452,28 @@ const deserializeAws_json1_1UpdateEndpointGroupCommandError = async (output, con
|
|
|
3589
2452
|
switch (errorCode) {
|
|
3590
2453
|
case "AccessDeniedException":
|
|
3591
2454
|
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
3592
|
-
|
|
3593
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3594
|
-
name: errorCode,
|
|
3595
|
-
$metadata: deserializeMetadata(output),
|
|
3596
|
-
};
|
|
3597
|
-
break;
|
|
2455
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3598
2456
|
case "EndpointGroupNotFoundException":
|
|
3599
2457
|
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
3600
|
-
|
|
3601
|
-
...(await deserializeAws_json1_1EndpointGroupNotFoundExceptionResponse(parsedOutput, context)),
|
|
3602
|
-
name: errorCode,
|
|
3603
|
-
$metadata: deserializeMetadata(output),
|
|
3604
|
-
};
|
|
3605
|
-
break;
|
|
2458
|
+
throw await deserializeAws_json1_1EndpointGroupNotFoundExceptionResponse(parsedOutput, context);
|
|
3606
2459
|
case "InternalServiceErrorException":
|
|
3607
2460
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
3608
|
-
|
|
3609
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
3610
|
-
name: errorCode,
|
|
3611
|
-
$metadata: deserializeMetadata(output),
|
|
3612
|
-
};
|
|
3613
|
-
break;
|
|
2461
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
3614
2462
|
case "InvalidArgumentException":
|
|
3615
2463
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
3616
|
-
|
|
3617
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
3618
|
-
name: errorCode,
|
|
3619
|
-
$metadata: deserializeMetadata(output),
|
|
3620
|
-
};
|
|
3621
|
-
break;
|
|
2464
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
3622
2465
|
case "LimitExceededException":
|
|
3623
2466
|
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
3624
|
-
|
|
3625
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
3626
|
-
name: errorCode,
|
|
3627
|
-
$metadata: deserializeMetadata(output),
|
|
3628
|
-
};
|
|
3629
|
-
break;
|
|
2467
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
3630
2468
|
default:
|
|
3631
2469
|
const parsedBody = parsedOutput.body;
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
...parsedBody,
|
|
3635
|
-
name: `${errorCode}`,
|
|
3636
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2470
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
2471
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3637
2472
|
$fault: "client",
|
|
3638
2473
|
$metadata: deserializeMetadata(output),
|
|
3639
|
-
};
|
|
2474
|
+
});
|
|
2475
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3640
2476
|
}
|
|
3641
|
-
const message = response.message || response.Message || errorCode;
|
|
3642
|
-
response.message = message;
|
|
3643
|
-
delete response.Message;
|
|
3644
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3645
2477
|
};
|
|
3646
2478
|
const deserializeAws_json1_1UpdateListenerCommand = async (output, context) => {
|
|
3647
2479
|
if (output.statusCode >= 300) {
|
|
@@ -3668,59 +2500,28 @@ const deserializeAws_json1_1UpdateListenerCommandError = async (output, context)
|
|
|
3668
2500
|
switch (errorCode) {
|
|
3669
2501
|
case "InternalServiceErrorException":
|
|
3670
2502
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
3671
|
-
|
|
3672
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
3673
|
-
name: errorCode,
|
|
3674
|
-
$metadata: deserializeMetadata(output),
|
|
3675
|
-
};
|
|
3676
|
-
break;
|
|
2503
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
3677
2504
|
case "InvalidArgumentException":
|
|
3678
2505
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
3679
|
-
|
|
3680
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
3681
|
-
name: errorCode,
|
|
3682
|
-
$metadata: deserializeMetadata(output),
|
|
3683
|
-
};
|
|
3684
|
-
break;
|
|
2506
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
3685
2507
|
case "InvalidPortRangeException":
|
|
3686
2508
|
case "com.amazonaws.globalaccelerator#InvalidPortRangeException":
|
|
3687
|
-
|
|
3688
|
-
...(await deserializeAws_json1_1InvalidPortRangeExceptionResponse(parsedOutput, context)),
|
|
3689
|
-
name: errorCode,
|
|
3690
|
-
$metadata: deserializeMetadata(output),
|
|
3691
|
-
};
|
|
3692
|
-
break;
|
|
2509
|
+
throw await deserializeAws_json1_1InvalidPortRangeExceptionResponse(parsedOutput, context);
|
|
3693
2510
|
case "LimitExceededException":
|
|
3694
2511
|
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
3695
|
-
|
|
3696
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
3697
|
-
name: errorCode,
|
|
3698
|
-
$metadata: deserializeMetadata(output),
|
|
3699
|
-
};
|
|
3700
|
-
break;
|
|
2512
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
3701
2513
|
case "ListenerNotFoundException":
|
|
3702
2514
|
case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
|
|
3703
|
-
|
|
3704
|
-
...(await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context)),
|
|
3705
|
-
name: errorCode,
|
|
3706
|
-
$metadata: deserializeMetadata(output),
|
|
3707
|
-
};
|
|
3708
|
-
break;
|
|
2515
|
+
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
3709
2516
|
default:
|
|
3710
2517
|
const parsedBody = parsedOutput.body;
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
...parsedBody,
|
|
3714
|
-
name: `${errorCode}`,
|
|
3715
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2518
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
2519
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3716
2520
|
$fault: "client",
|
|
3717
2521
|
$metadata: deserializeMetadata(output),
|
|
3718
|
-
};
|
|
2522
|
+
});
|
|
2523
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3719
2524
|
}
|
|
3720
|
-
const message = response.message || response.Message || errorCode;
|
|
3721
|
-
response.message = message;
|
|
3722
|
-
delete response.Message;
|
|
3723
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3724
2525
|
};
|
|
3725
2526
|
const deserializeAws_json1_1WithdrawByoipCidrCommand = async (output, context) => {
|
|
3726
2527
|
if (output.statusCode >= 300) {
|
|
@@ -3747,257 +2548,190 @@ const deserializeAws_json1_1WithdrawByoipCidrCommandError = async (output, conte
|
|
|
3747
2548
|
switch (errorCode) {
|
|
3748
2549
|
case "AccessDeniedException":
|
|
3749
2550
|
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
3750
|
-
|
|
3751
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3752
|
-
name: errorCode,
|
|
3753
|
-
$metadata: deserializeMetadata(output),
|
|
3754
|
-
};
|
|
3755
|
-
break;
|
|
2551
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3756
2552
|
case "ByoipCidrNotFoundException":
|
|
3757
2553
|
case "com.amazonaws.globalaccelerator#ByoipCidrNotFoundException":
|
|
3758
|
-
|
|
3759
|
-
...(await deserializeAws_json1_1ByoipCidrNotFoundExceptionResponse(parsedOutput, context)),
|
|
3760
|
-
name: errorCode,
|
|
3761
|
-
$metadata: deserializeMetadata(output),
|
|
3762
|
-
};
|
|
3763
|
-
break;
|
|
2554
|
+
throw await deserializeAws_json1_1ByoipCidrNotFoundExceptionResponse(parsedOutput, context);
|
|
3764
2555
|
case "IncorrectCidrStateException":
|
|
3765
2556
|
case "com.amazonaws.globalaccelerator#IncorrectCidrStateException":
|
|
3766
|
-
|
|
3767
|
-
...(await deserializeAws_json1_1IncorrectCidrStateExceptionResponse(parsedOutput, context)),
|
|
3768
|
-
name: errorCode,
|
|
3769
|
-
$metadata: deserializeMetadata(output),
|
|
3770
|
-
};
|
|
3771
|
-
break;
|
|
2557
|
+
throw await deserializeAws_json1_1IncorrectCidrStateExceptionResponse(parsedOutput, context);
|
|
3772
2558
|
case "InternalServiceErrorException":
|
|
3773
2559
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
3774
|
-
|
|
3775
|
-
...(await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
3776
|
-
name: errorCode,
|
|
3777
|
-
$metadata: deserializeMetadata(output),
|
|
3778
|
-
};
|
|
3779
|
-
break;
|
|
2560
|
+
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
3780
2561
|
case "InvalidArgumentException":
|
|
3781
2562
|
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
3782
|
-
|
|
3783
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
3784
|
-
name: errorCode,
|
|
3785
|
-
$metadata: deserializeMetadata(output),
|
|
3786
|
-
};
|
|
3787
|
-
break;
|
|
2563
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
3788
2564
|
default:
|
|
3789
2565
|
const parsedBody = parsedOutput.body;
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
...parsedBody,
|
|
3793
|
-
name: `${errorCode}`,
|
|
3794
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2566
|
+
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
2567
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3795
2568
|
$fault: "client",
|
|
3796
2569
|
$metadata: deserializeMetadata(output),
|
|
3797
|
-
};
|
|
2570
|
+
});
|
|
2571
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3798
2572
|
}
|
|
3799
|
-
const message = response.message || response.Message || errorCode;
|
|
3800
|
-
response.message = message;
|
|
3801
|
-
delete response.Message;
|
|
3802
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3803
2573
|
};
|
|
3804
2574
|
const deserializeAws_json1_1AcceleratorNotDisabledExceptionResponse = async (parsedOutput, context) => {
|
|
3805
2575
|
const body = parsedOutput.body;
|
|
3806
2576
|
const deserialized = deserializeAws_json1_1AcceleratorNotDisabledException(body, context);
|
|
3807
|
-
const
|
|
3808
|
-
name: "AcceleratorNotDisabledException",
|
|
3809
|
-
$fault: "client",
|
|
2577
|
+
const exception = new models_0_1.AcceleratorNotDisabledException({
|
|
3810
2578
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3811
2579
|
...deserialized,
|
|
3812
|
-
};
|
|
3813
|
-
return
|
|
2580
|
+
});
|
|
2581
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3814
2582
|
};
|
|
3815
2583
|
const deserializeAws_json1_1AcceleratorNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3816
2584
|
const body = parsedOutput.body;
|
|
3817
2585
|
const deserialized = deserializeAws_json1_1AcceleratorNotFoundException(body, context);
|
|
3818
|
-
const
|
|
3819
|
-
name: "AcceleratorNotFoundException",
|
|
3820
|
-
$fault: "client",
|
|
2586
|
+
const exception = new models_0_1.AcceleratorNotFoundException({
|
|
3821
2587
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3822
2588
|
...deserialized,
|
|
3823
|
-
};
|
|
3824
|
-
return
|
|
2589
|
+
});
|
|
2590
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3825
2591
|
};
|
|
3826
2592
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
3827
2593
|
const body = parsedOutput.body;
|
|
3828
2594
|
const deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
3829
|
-
const
|
|
3830
|
-
name: "AccessDeniedException",
|
|
3831
|
-
$fault: "client",
|
|
2595
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
3832
2596
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3833
2597
|
...deserialized,
|
|
3834
|
-
};
|
|
3835
|
-
return
|
|
2598
|
+
});
|
|
2599
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3836
2600
|
};
|
|
3837
2601
|
const deserializeAws_json1_1AssociatedEndpointGroupFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3838
2602
|
const body = parsedOutput.body;
|
|
3839
2603
|
const deserialized = deserializeAws_json1_1AssociatedEndpointGroupFoundException(body, context);
|
|
3840
|
-
const
|
|
3841
|
-
name: "AssociatedEndpointGroupFoundException",
|
|
3842
|
-
$fault: "client",
|
|
2604
|
+
const exception = new models_0_1.AssociatedEndpointGroupFoundException({
|
|
3843
2605
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3844
2606
|
...deserialized,
|
|
3845
|
-
};
|
|
3846
|
-
return
|
|
2607
|
+
});
|
|
2608
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3847
2609
|
};
|
|
3848
2610
|
const deserializeAws_json1_1AssociatedListenerFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3849
2611
|
const body = parsedOutput.body;
|
|
3850
2612
|
const deserialized = deserializeAws_json1_1AssociatedListenerFoundException(body, context);
|
|
3851
|
-
const
|
|
3852
|
-
name: "AssociatedListenerFoundException",
|
|
3853
|
-
$fault: "client",
|
|
2613
|
+
const exception = new models_0_1.AssociatedListenerFoundException({
|
|
3854
2614
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3855
2615
|
...deserialized,
|
|
3856
|
-
};
|
|
3857
|
-
return
|
|
2616
|
+
});
|
|
2617
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3858
2618
|
};
|
|
3859
2619
|
const deserializeAws_json1_1ByoipCidrNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3860
2620
|
const body = parsedOutput.body;
|
|
3861
2621
|
const deserialized = deserializeAws_json1_1ByoipCidrNotFoundException(body, context);
|
|
3862
|
-
const
|
|
3863
|
-
name: "ByoipCidrNotFoundException",
|
|
3864
|
-
$fault: "client",
|
|
2622
|
+
const exception = new models_0_1.ByoipCidrNotFoundException({
|
|
3865
2623
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3866
2624
|
...deserialized,
|
|
3867
|
-
};
|
|
3868
|
-
return
|
|
2625
|
+
});
|
|
2626
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3869
2627
|
};
|
|
3870
2628
|
const deserializeAws_json1_1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
3871
2629
|
const body = parsedOutput.body;
|
|
3872
2630
|
const deserialized = deserializeAws_json1_1ConflictException(body, context);
|
|
3873
|
-
const
|
|
3874
|
-
name: "ConflictException",
|
|
3875
|
-
$fault: "client",
|
|
2631
|
+
const exception = new models_0_1.ConflictException({
|
|
3876
2632
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3877
2633
|
...deserialized,
|
|
3878
|
-
};
|
|
3879
|
-
return
|
|
2634
|
+
});
|
|
2635
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3880
2636
|
};
|
|
3881
2637
|
const deserializeAws_json1_1EndpointAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
3882
2638
|
const body = parsedOutput.body;
|
|
3883
2639
|
const deserialized = deserializeAws_json1_1EndpointAlreadyExistsException(body, context);
|
|
3884
|
-
const
|
|
3885
|
-
name: "EndpointAlreadyExistsException",
|
|
3886
|
-
$fault: "client",
|
|
2640
|
+
const exception = new models_0_1.EndpointAlreadyExistsException({
|
|
3887
2641
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3888
2642
|
...deserialized,
|
|
3889
|
-
};
|
|
3890
|
-
return
|
|
2643
|
+
});
|
|
2644
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3891
2645
|
};
|
|
3892
2646
|
const deserializeAws_json1_1EndpointGroupAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
3893
2647
|
const body = parsedOutput.body;
|
|
3894
2648
|
const deserialized = deserializeAws_json1_1EndpointGroupAlreadyExistsException(body, context);
|
|
3895
|
-
const
|
|
3896
|
-
name: "EndpointGroupAlreadyExistsException",
|
|
3897
|
-
$fault: "client",
|
|
2649
|
+
const exception = new models_0_1.EndpointGroupAlreadyExistsException({
|
|
3898
2650
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3899
2651
|
...deserialized,
|
|
3900
|
-
};
|
|
3901
|
-
return
|
|
2652
|
+
});
|
|
2653
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3902
2654
|
};
|
|
3903
2655
|
const deserializeAws_json1_1EndpointGroupNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3904
2656
|
const body = parsedOutput.body;
|
|
3905
2657
|
const deserialized = deserializeAws_json1_1EndpointGroupNotFoundException(body, context);
|
|
3906
|
-
const
|
|
3907
|
-
name: "EndpointGroupNotFoundException",
|
|
3908
|
-
$fault: "client",
|
|
2658
|
+
const exception = new models_0_1.EndpointGroupNotFoundException({
|
|
3909
2659
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3910
2660
|
...deserialized,
|
|
3911
|
-
};
|
|
3912
|
-
return
|
|
2661
|
+
});
|
|
2662
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3913
2663
|
};
|
|
3914
2664
|
const deserializeAws_json1_1EndpointNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3915
2665
|
const body = parsedOutput.body;
|
|
3916
2666
|
const deserialized = deserializeAws_json1_1EndpointNotFoundException(body, context);
|
|
3917
|
-
const
|
|
3918
|
-
name: "EndpointNotFoundException",
|
|
3919
|
-
$fault: "client",
|
|
2667
|
+
const exception = new models_0_1.EndpointNotFoundException({
|
|
3920
2668
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3921
2669
|
...deserialized,
|
|
3922
|
-
};
|
|
3923
|
-
return
|
|
2670
|
+
});
|
|
2671
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3924
2672
|
};
|
|
3925
2673
|
const deserializeAws_json1_1IncorrectCidrStateExceptionResponse = async (parsedOutput, context) => {
|
|
3926
2674
|
const body = parsedOutput.body;
|
|
3927
2675
|
const deserialized = deserializeAws_json1_1IncorrectCidrStateException(body, context);
|
|
3928
|
-
const
|
|
3929
|
-
name: "IncorrectCidrStateException",
|
|
3930
|
-
$fault: "client",
|
|
2676
|
+
const exception = new models_0_1.IncorrectCidrStateException({
|
|
3931
2677
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3932
2678
|
...deserialized,
|
|
3933
|
-
};
|
|
3934
|
-
return
|
|
2679
|
+
});
|
|
2680
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3935
2681
|
};
|
|
3936
2682
|
const deserializeAws_json1_1InternalServiceErrorExceptionResponse = async (parsedOutput, context) => {
|
|
3937
2683
|
const body = parsedOutput.body;
|
|
3938
2684
|
const deserialized = deserializeAws_json1_1InternalServiceErrorException(body, context);
|
|
3939
|
-
const
|
|
3940
|
-
name: "InternalServiceErrorException",
|
|
3941
|
-
$fault: "server",
|
|
2685
|
+
const exception = new models_0_1.InternalServiceErrorException({
|
|
3942
2686
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3943
2687
|
...deserialized,
|
|
3944
|
-
};
|
|
3945
|
-
return
|
|
2688
|
+
});
|
|
2689
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3946
2690
|
};
|
|
3947
2691
|
const deserializeAws_json1_1InvalidArgumentExceptionResponse = async (parsedOutput, context) => {
|
|
3948
2692
|
const body = parsedOutput.body;
|
|
3949
2693
|
const deserialized = deserializeAws_json1_1InvalidArgumentException(body, context);
|
|
3950
|
-
const
|
|
3951
|
-
name: "InvalidArgumentException",
|
|
3952
|
-
$fault: "client",
|
|
2694
|
+
const exception = new models_0_1.InvalidArgumentException({
|
|
3953
2695
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3954
2696
|
...deserialized,
|
|
3955
|
-
};
|
|
3956
|
-
return
|
|
2697
|
+
});
|
|
2698
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3957
2699
|
};
|
|
3958
2700
|
const deserializeAws_json1_1InvalidNextTokenExceptionResponse = async (parsedOutput, context) => {
|
|
3959
2701
|
const body = parsedOutput.body;
|
|
3960
2702
|
const deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
|
|
3961
|
-
const
|
|
3962
|
-
name: "InvalidNextTokenException",
|
|
3963
|
-
$fault: "client",
|
|
2703
|
+
const exception = new models_0_1.InvalidNextTokenException({
|
|
3964
2704
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3965
2705
|
...deserialized,
|
|
3966
|
-
};
|
|
3967
|
-
return
|
|
2706
|
+
});
|
|
2707
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3968
2708
|
};
|
|
3969
2709
|
const deserializeAws_json1_1InvalidPortRangeExceptionResponse = async (parsedOutput, context) => {
|
|
3970
2710
|
const body = parsedOutput.body;
|
|
3971
2711
|
const deserialized = deserializeAws_json1_1InvalidPortRangeException(body, context);
|
|
3972
|
-
const
|
|
3973
|
-
name: "InvalidPortRangeException",
|
|
3974
|
-
$fault: "client",
|
|
2712
|
+
const exception = new models_0_1.InvalidPortRangeException({
|
|
3975
2713
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3976
2714
|
...deserialized,
|
|
3977
|
-
};
|
|
3978
|
-
return
|
|
2715
|
+
});
|
|
2716
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3979
2717
|
};
|
|
3980
2718
|
const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
3981
2719
|
const body = parsedOutput.body;
|
|
3982
2720
|
const deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
3983
|
-
const
|
|
3984
|
-
name: "LimitExceededException",
|
|
3985
|
-
$fault: "client",
|
|
2721
|
+
const exception = new models_0_1.LimitExceededException({
|
|
3986
2722
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3987
2723
|
...deserialized,
|
|
3988
|
-
};
|
|
3989
|
-
return
|
|
2724
|
+
});
|
|
2725
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3990
2726
|
};
|
|
3991
2727
|
const deserializeAws_json1_1ListenerNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3992
2728
|
const body = parsedOutput.body;
|
|
3993
2729
|
const deserialized = deserializeAws_json1_1ListenerNotFoundException(body, context);
|
|
3994
|
-
const
|
|
3995
|
-
name: "ListenerNotFoundException",
|
|
3996
|
-
$fault: "client",
|
|
2730
|
+
const exception = new models_0_1.ListenerNotFoundException({
|
|
3997
2731
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3998
2732
|
...deserialized,
|
|
3999
|
-
};
|
|
4000
|
-
return
|
|
2733
|
+
});
|
|
2734
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4001
2735
|
};
|
|
4002
2736
|
const serializeAws_json1_1AddCustomRoutingEndpointsRequest = (input, context) => {
|
|
4003
2737
|
return {
|
|
@@ -4616,7 +3350,7 @@ const deserializeAws_json1_1AcceleratorNotFoundException = (output, context) =>
|
|
|
4616
3350
|
};
|
|
4617
3351
|
};
|
|
4618
3352
|
const deserializeAws_json1_1Accelerators = (output, context) => {
|
|
4619
|
-
|
|
3353
|
+
const retVal = (output || [])
|
|
4620
3354
|
.filter((e) => e != null)
|
|
4621
3355
|
.map((entry) => {
|
|
4622
3356
|
if (entry === null) {
|
|
@@ -4624,6 +3358,7 @@ const deserializeAws_json1_1Accelerators = (output, context) => {
|
|
|
4624
3358
|
}
|
|
4625
3359
|
return deserializeAws_json1_1Accelerator(entry, context);
|
|
4626
3360
|
});
|
|
3361
|
+
return retVal;
|
|
4627
3362
|
};
|
|
4628
3363
|
const deserializeAws_json1_1AccessDeniedException = (output, context) => {
|
|
4629
3364
|
return {
|
|
@@ -4673,7 +3408,7 @@ const deserializeAws_json1_1ByoipCidrEvent = (output, context) => {
|
|
|
4673
3408
|
};
|
|
4674
3409
|
};
|
|
4675
3410
|
const deserializeAws_json1_1ByoipCidrEvents = (output, context) => {
|
|
4676
|
-
|
|
3411
|
+
const retVal = (output || [])
|
|
4677
3412
|
.filter((e) => e != null)
|
|
4678
3413
|
.map((entry) => {
|
|
4679
3414
|
if (entry === null) {
|
|
@@ -4681,6 +3416,7 @@ const deserializeAws_json1_1ByoipCidrEvents = (output, context) => {
|
|
|
4681
3416
|
}
|
|
4682
3417
|
return deserializeAws_json1_1ByoipCidrEvent(entry, context);
|
|
4683
3418
|
});
|
|
3419
|
+
return retVal;
|
|
4684
3420
|
};
|
|
4685
3421
|
const deserializeAws_json1_1ByoipCidrNotFoundException = (output, context) => {
|
|
4686
3422
|
return {
|
|
@@ -4688,7 +3424,7 @@ const deserializeAws_json1_1ByoipCidrNotFoundException = (output, context) => {
|
|
|
4688
3424
|
};
|
|
4689
3425
|
};
|
|
4690
3426
|
const deserializeAws_json1_1ByoipCidrs = (output, context) => {
|
|
4691
|
-
|
|
3427
|
+
const retVal = (output || [])
|
|
4692
3428
|
.filter((e) => e != null)
|
|
4693
3429
|
.map((entry) => {
|
|
4694
3430
|
if (entry === null) {
|
|
@@ -4696,6 +3432,7 @@ const deserializeAws_json1_1ByoipCidrs = (output, context) => {
|
|
|
4696
3432
|
}
|
|
4697
3433
|
return deserializeAws_json1_1ByoipCidr(entry, context);
|
|
4698
3434
|
});
|
|
3435
|
+
return retVal;
|
|
4699
3436
|
};
|
|
4700
3437
|
const deserializeAws_json1_1ConflictException = (output, context) => {
|
|
4701
3438
|
return {
|
|
@@ -4771,7 +3508,7 @@ const deserializeAws_json1_1CustomRoutingAcceleratorAttributes = (output, contex
|
|
|
4771
3508
|
};
|
|
4772
3509
|
};
|
|
4773
3510
|
const deserializeAws_json1_1CustomRoutingAccelerators = (output, context) => {
|
|
4774
|
-
|
|
3511
|
+
const retVal = (output || [])
|
|
4775
3512
|
.filter((e) => e != null)
|
|
4776
3513
|
.map((entry) => {
|
|
4777
3514
|
if (entry === null) {
|
|
@@ -4779,6 +3516,7 @@ const deserializeAws_json1_1CustomRoutingAccelerators = (output, context) => {
|
|
|
4779
3516
|
}
|
|
4780
3517
|
return deserializeAws_json1_1CustomRoutingAccelerator(entry, context);
|
|
4781
3518
|
});
|
|
3519
|
+
return retVal;
|
|
4782
3520
|
};
|
|
4783
3521
|
const deserializeAws_json1_1CustomRoutingDestinationDescription = (output, context) => {
|
|
4784
3522
|
return {
|
|
@@ -4790,7 +3528,7 @@ const deserializeAws_json1_1CustomRoutingDestinationDescription = (output, conte
|
|
|
4790
3528
|
};
|
|
4791
3529
|
};
|
|
4792
3530
|
const deserializeAws_json1_1CustomRoutingDestinationDescriptions = (output, context) => {
|
|
4793
|
-
|
|
3531
|
+
const retVal = (output || [])
|
|
4794
3532
|
.filter((e) => e != null)
|
|
4795
3533
|
.map((entry) => {
|
|
4796
3534
|
if (entry === null) {
|
|
@@ -4798,6 +3536,7 @@ const deserializeAws_json1_1CustomRoutingDestinationDescriptions = (output, cont
|
|
|
4798
3536
|
}
|
|
4799
3537
|
return deserializeAws_json1_1CustomRoutingDestinationDescription(entry, context);
|
|
4800
3538
|
});
|
|
3539
|
+
return retVal;
|
|
4801
3540
|
};
|
|
4802
3541
|
const deserializeAws_json1_1CustomRoutingEndpointDescription = (output, context) => {
|
|
4803
3542
|
return {
|
|
@@ -4805,7 +3544,7 @@ const deserializeAws_json1_1CustomRoutingEndpointDescription = (output, context)
|
|
|
4805
3544
|
};
|
|
4806
3545
|
};
|
|
4807
3546
|
const deserializeAws_json1_1CustomRoutingEndpointDescriptions = (output, context) => {
|
|
4808
|
-
|
|
3547
|
+
const retVal = (output || [])
|
|
4809
3548
|
.filter((e) => e != null)
|
|
4810
3549
|
.map((entry) => {
|
|
4811
3550
|
if (entry === null) {
|
|
@@ -4813,6 +3552,7 @@ const deserializeAws_json1_1CustomRoutingEndpointDescriptions = (output, context
|
|
|
4813
3552
|
}
|
|
4814
3553
|
return deserializeAws_json1_1CustomRoutingEndpointDescription(entry, context);
|
|
4815
3554
|
});
|
|
3555
|
+
return retVal;
|
|
4816
3556
|
};
|
|
4817
3557
|
const deserializeAws_json1_1CustomRoutingEndpointGroup = (output, context) => {
|
|
4818
3558
|
return {
|
|
@@ -4827,7 +3567,7 @@ const deserializeAws_json1_1CustomRoutingEndpointGroup = (output, context) => {
|
|
|
4827
3567
|
};
|
|
4828
3568
|
};
|
|
4829
3569
|
const deserializeAws_json1_1CustomRoutingEndpointGroups = (output, context) => {
|
|
4830
|
-
|
|
3570
|
+
const retVal = (output || [])
|
|
4831
3571
|
.filter((e) => e != null)
|
|
4832
3572
|
.map((entry) => {
|
|
4833
3573
|
if (entry === null) {
|
|
@@ -4835,6 +3575,7 @@ const deserializeAws_json1_1CustomRoutingEndpointGroups = (output, context) => {
|
|
|
4835
3575
|
}
|
|
4836
3576
|
return deserializeAws_json1_1CustomRoutingEndpointGroup(entry, context);
|
|
4837
3577
|
});
|
|
3578
|
+
return retVal;
|
|
4838
3579
|
};
|
|
4839
3580
|
const deserializeAws_json1_1CustomRoutingListener = (output, context) => {
|
|
4840
3581
|
return {
|
|
@@ -4845,7 +3586,7 @@ const deserializeAws_json1_1CustomRoutingListener = (output, context) => {
|
|
|
4845
3586
|
};
|
|
4846
3587
|
};
|
|
4847
3588
|
const deserializeAws_json1_1CustomRoutingListeners = (output, context) => {
|
|
4848
|
-
|
|
3589
|
+
const retVal = (output || [])
|
|
4849
3590
|
.filter((e) => e != null)
|
|
4850
3591
|
.map((entry) => {
|
|
4851
3592
|
if (entry === null) {
|
|
@@ -4853,9 +3594,10 @@ const deserializeAws_json1_1CustomRoutingListeners = (output, context) => {
|
|
|
4853
3594
|
}
|
|
4854
3595
|
return deserializeAws_json1_1CustomRoutingListener(entry, context);
|
|
4855
3596
|
});
|
|
3597
|
+
return retVal;
|
|
4856
3598
|
};
|
|
4857
3599
|
const deserializeAws_json1_1CustomRoutingProtocols = (output, context) => {
|
|
4858
|
-
|
|
3600
|
+
const retVal = (output || [])
|
|
4859
3601
|
.filter((e) => e != null)
|
|
4860
3602
|
.map((entry) => {
|
|
4861
3603
|
if (entry === null) {
|
|
@@ -4863,6 +3605,7 @@ const deserializeAws_json1_1CustomRoutingProtocols = (output, context) => {
|
|
|
4863
3605
|
}
|
|
4864
3606
|
return smithy_client_1.expectString(entry);
|
|
4865
3607
|
});
|
|
3608
|
+
return retVal;
|
|
4866
3609
|
};
|
|
4867
3610
|
const deserializeAws_json1_1DeprovisionByoipCidrResponse = (output, context) => {
|
|
4868
3611
|
return {
|
|
@@ -4944,7 +3687,7 @@ const deserializeAws_json1_1DestinationPortMapping = (output, context) => {
|
|
|
4944
3687
|
};
|
|
4945
3688
|
};
|
|
4946
3689
|
const deserializeAws_json1_1DestinationPortMappings = (output, context) => {
|
|
4947
|
-
|
|
3690
|
+
const retVal = (output || [])
|
|
4948
3691
|
.filter((e) => e != null)
|
|
4949
3692
|
.map((entry) => {
|
|
4950
3693
|
if (entry === null) {
|
|
@@ -4952,6 +3695,7 @@ const deserializeAws_json1_1DestinationPortMappings = (output, context) => {
|
|
|
4952
3695
|
}
|
|
4953
3696
|
return deserializeAws_json1_1DestinationPortMapping(entry, context);
|
|
4954
3697
|
});
|
|
3698
|
+
return retVal;
|
|
4955
3699
|
};
|
|
4956
3700
|
const deserializeAws_json1_1EndpointAlreadyExistsException = (output, context) => {
|
|
4957
3701
|
return {
|
|
@@ -4968,7 +3712,7 @@ const deserializeAws_json1_1EndpointDescription = (output, context) => {
|
|
|
4968
3712
|
};
|
|
4969
3713
|
};
|
|
4970
3714
|
const deserializeAws_json1_1EndpointDescriptions = (output, context) => {
|
|
4971
|
-
|
|
3715
|
+
const retVal = (output || [])
|
|
4972
3716
|
.filter((e) => e != null)
|
|
4973
3717
|
.map((entry) => {
|
|
4974
3718
|
if (entry === null) {
|
|
@@ -4976,6 +3720,7 @@ const deserializeAws_json1_1EndpointDescriptions = (output, context) => {
|
|
|
4976
3720
|
}
|
|
4977
3721
|
return deserializeAws_json1_1EndpointDescription(entry, context);
|
|
4978
3722
|
});
|
|
3723
|
+
return retVal;
|
|
4979
3724
|
};
|
|
4980
3725
|
const deserializeAws_json1_1EndpointGroup = (output, context) => {
|
|
4981
3726
|
return {
|
|
@@ -5006,7 +3751,7 @@ const deserializeAws_json1_1EndpointGroupNotFoundException = (output, context) =
|
|
|
5006
3751
|
};
|
|
5007
3752
|
};
|
|
5008
3753
|
const deserializeAws_json1_1EndpointGroups = (output, context) => {
|
|
5009
|
-
|
|
3754
|
+
const retVal = (output || [])
|
|
5010
3755
|
.filter((e) => e != null)
|
|
5011
3756
|
.map((entry) => {
|
|
5012
3757
|
if (entry === null) {
|
|
@@ -5014,6 +3759,7 @@ const deserializeAws_json1_1EndpointGroups = (output, context) => {
|
|
|
5014
3759
|
}
|
|
5015
3760
|
return deserializeAws_json1_1EndpointGroup(entry, context);
|
|
5016
3761
|
});
|
|
3762
|
+
return retVal;
|
|
5017
3763
|
};
|
|
5018
3764
|
const deserializeAws_json1_1EndpointNotFoundException = (output, context) => {
|
|
5019
3765
|
return {
|
|
@@ -5046,7 +3792,7 @@ const deserializeAws_json1_1InvalidPortRangeException = (output, context) => {
|
|
|
5046
3792
|
};
|
|
5047
3793
|
};
|
|
5048
3794
|
const deserializeAws_json1_1IpAddresses = (output, context) => {
|
|
5049
|
-
|
|
3795
|
+
const retVal = (output || [])
|
|
5050
3796
|
.filter((e) => e != null)
|
|
5051
3797
|
.map((entry) => {
|
|
5052
3798
|
if (entry === null) {
|
|
@@ -5054,6 +3800,7 @@ const deserializeAws_json1_1IpAddresses = (output, context) => {
|
|
|
5054
3800
|
}
|
|
5055
3801
|
return smithy_client_1.expectString(entry);
|
|
5056
3802
|
});
|
|
3803
|
+
return retVal;
|
|
5057
3804
|
};
|
|
5058
3805
|
const deserializeAws_json1_1IpSet = (output, context) => {
|
|
5059
3806
|
return {
|
|
@@ -5064,7 +3811,7 @@ const deserializeAws_json1_1IpSet = (output, context) => {
|
|
|
5064
3811
|
};
|
|
5065
3812
|
};
|
|
5066
3813
|
const deserializeAws_json1_1IpSets = (output, context) => {
|
|
5067
|
-
|
|
3814
|
+
const retVal = (output || [])
|
|
5068
3815
|
.filter((e) => e != null)
|
|
5069
3816
|
.map((entry) => {
|
|
5070
3817
|
if (entry === null) {
|
|
@@ -5072,6 +3819,7 @@ const deserializeAws_json1_1IpSets = (output, context) => {
|
|
|
5072
3819
|
}
|
|
5073
3820
|
return deserializeAws_json1_1IpSet(entry, context);
|
|
5074
3821
|
});
|
|
3822
|
+
return retVal;
|
|
5075
3823
|
};
|
|
5076
3824
|
const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
5077
3825
|
return {
|
|
@@ -5158,7 +3906,7 @@ const deserializeAws_json1_1ListenerNotFoundException = (output, context) => {
|
|
|
5158
3906
|
};
|
|
5159
3907
|
};
|
|
5160
3908
|
const deserializeAws_json1_1Listeners = (output, context) => {
|
|
5161
|
-
|
|
3909
|
+
const retVal = (output || [])
|
|
5162
3910
|
.filter((e) => e != null)
|
|
5163
3911
|
.map((entry) => {
|
|
5164
3912
|
if (entry === null) {
|
|
@@ -5166,6 +3914,7 @@ const deserializeAws_json1_1Listeners = (output, context) => {
|
|
|
5166
3914
|
}
|
|
5167
3915
|
return deserializeAws_json1_1Listener(entry, context);
|
|
5168
3916
|
});
|
|
3917
|
+
return retVal;
|
|
5169
3918
|
};
|
|
5170
3919
|
const deserializeAws_json1_1ListListenersResponse = (output, context) => {
|
|
5171
3920
|
return {
|
|
@@ -5195,7 +3944,7 @@ const deserializeAws_json1_1PortMapping = (output, context) => {
|
|
|
5195
3944
|
};
|
|
5196
3945
|
};
|
|
5197
3946
|
const deserializeAws_json1_1PortMappings = (output, context) => {
|
|
5198
|
-
|
|
3947
|
+
const retVal = (output || [])
|
|
5199
3948
|
.filter((e) => e != null)
|
|
5200
3949
|
.map((entry) => {
|
|
5201
3950
|
if (entry === null) {
|
|
@@ -5203,6 +3952,7 @@ const deserializeAws_json1_1PortMappings = (output, context) => {
|
|
|
5203
3952
|
}
|
|
5204
3953
|
return deserializeAws_json1_1PortMapping(entry, context);
|
|
5205
3954
|
});
|
|
3955
|
+
return retVal;
|
|
5206
3956
|
};
|
|
5207
3957
|
const deserializeAws_json1_1PortOverride = (output, context) => {
|
|
5208
3958
|
return {
|
|
@@ -5211,7 +3961,7 @@ const deserializeAws_json1_1PortOverride = (output, context) => {
|
|
|
5211
3961
|
};
|
|
5212
3962
|
};
|
|
5213
3963
|
const deserializeAws_json1_1PortOverrides = (output, context) => {
|
|
5214
|
-
|
|
3964
|
+
const retVal = (output || [])
|
|
5215
3965
|
.filter((e) => e != null)
|
|
5216
3966
|
.map((entry) => {
|
|
5217
3967
|
if (entry === null) {
|
|
@@ -5219,6 +3969,7 @@ const deserializeAws_json1_1PortOverrides = (output, context) => {
|
|
|
5219
3969
|
}
|
|
5220
3970
|
return deserializeAws_json1_1PortOverride(entry, context);
|
|
5221
3971
|
});
|
|
3972
|
+
return retVal;
|
|
5222
3973
|
};
|
|
5223
3974
|
const deserializeAws_json1_1PortRange = (output, context) => {
|
|
5224
3975
|
return {
|
|
@@ -5227,7 +3978,7 @@ const deserializeAws_json1_1PortRange = (output, context) => {
|
|
|
5227
3978
|
};
|
|
5228
3979
|
};
|
|
5229
3980
|
const deserializeAws_json1_1PortRanges = (output, context) => {
|
|
5230
|
-
|
|
3981
|
+
const retVal = (output || [])
|
|
5231
3982
|
.filter((e) => e != null)
|
|
5232
3983
|
.map((entry) => {
|
|
5233
3984
|
if (entry === null) {
|
|
@@ -5235,9 +3986,10 @@ const deserializeAws_json1_1PortRanges = (output, context) => {
|
|
|
5235
3986
|
}
|
|
5236
3987
|
return deserializeAws_json1_1PortRange(entry, context);
|
|
5237
3988
|
});
|
|
3989
|
+
return retVal;
|
|
5238
3990
|
};
|
|
5239
3991
|
const deserializeAws_json1_1Protocols = (output, context) => {
|
|
5240
|
-
|
|
3992
|
+
const retVal = (output || [])
|
|
5241
3993
|
.filter((e) => e != null)
|
|
5242
3994
|
.map((entry) => {
|
|
5243
3995
|
if (entry === null) {
|
|
@@ -5245,6 +3997,7 @@ const deserializeAws_json1_1Protocols = (output, context) => {
|
|
|
5245
3997
|
}
|
|
5246
3998
|
return smithy_client_1.expectString(entry);
|
|
5247
3999
|
});
|
|
4000
|
+
return retVal;
|
|
5248
4001
|
};
|
|
5249
4002
|
const deserializeAws_json1_1ProvisionByoipCidrResponse = (output, context) => {
|
|
5250
4003
|
return {
|
|
@@ -5260,7 +4013,7 @@ const deserializeAws_json1_1SocketAddress = (output, context) => {
|
|
|
5260
4013
|
};
|
|
5261
4014
|
};
|
|
5262
4015
|
const deserializeAws_json1_1SocketAddresses = (output, context) => {
|
|
5263
|
-
|
|
4016
|
+
const retVal = (output || [])
|
|
5264
4017
|
.filter((e) => e != null)
|
|
5265
4018
|
.map((entry) => {
|
|
5266
4019
|
if (entry === null) {
|
|
@@ -5268,6 +4021,7 @@ const deserializeAws_json1_1SocketAddresses = (output, context) => {
|
|
|
5268
4021
|
}
|
|
5269
4022
|
return deserializeAws_json1_1SocketAddress(entry, context);
|
|
5270
4023
|
});
|
|
4024
|
+
return retVal;
|
|
5271
4025
|
};
|
|
5272
4026
|
const deserializeAws_json1_1Tag = (output, context) => {
|
|
5273
4027
|
return {
|
|
@@ -5279,7 +4033,7 @@ const deserializeAws_json1_1TagResourceResponse = (output, context) => {
|
|
|
5279
4033
|
return {};
|
|
5280
4034
|
};
|
|
5281
4035
|
const deserializeAws_json1_1Tags = (output, context) => {
|
|
5282
|
-
|
|
4036
|
+
const retVal = (output || [])
|
|
5283
4037
|
.filter((e) => e != null)
|
|
5284
4038
|
.map((entry) => {
|
|
5285
4039
|
if (entry === null) {
|
|
@@ -5287,6 +4041,7 @@ const deserializeAws_json1_1Tags = (output, context) => {
|
|
|
5287
4041
|
}
|
|
5288
4042
|
return deserializeAws_json1_1Tag(entry, context);
|
|
5289
4043
|
});
|
|
4044
|
+
return retVal;
|
|
5290
4045
|
};
|
|
5291
4046
|
const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
5292
4047
|
return {};
|