@aws-sdk/client-outposts 3.50.0 → 3.53.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/OutpostsServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +89 -2
- package/dist-cjs/protocols/Aws_restJson1.js +244 -859
- package/dist-es/index.js +1 -0
- package/dist-es/models/OutpostsServiceException.js +12 -0
- package/dist-es/models/models_0.js +82 -1
- package/dist-es/protocols/Aws_restJson1.js +513 -958
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/OutpostsServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +44 -19
- package/dist-types/ts3.4/Outposts.d.ts +120 -0
- package/dist-types/ts3.4/OutpostsClient.d.ts +96 -0
- package/dist-types/ts3.4/commands/CancelOrderCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateOrderCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateOutpostCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateSiteCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteOutpostCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteSiteCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetCatalogItemCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetOrderCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetOutpostCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetOutpostInstanceTypesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetSiteAddressCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetSiteCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListCatalogItemsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListOrdersCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListOutpostsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListSitesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateOutpostCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateSiteAddressCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateSiteCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateSiteRackPhysicalPropertiesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +23 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/OutpostsServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +888 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListCatalogItemsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListOrdersPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListOutpostsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListSitesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +71 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommand = exports.deserializeAws_restJson1UpdateSiteAddressCommand = exports.deserializeAws_restJson1UpdateSiteCommand = exports.deserializeAws_restJson1UpdateOutpostCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSitesCommand = exports.deserializeAws_restJson1ListOutpostsCommand = exports.deserializeAws_restJson1ListOrdersCommand = exports.deserializeAws_restJson1ListCatalogItemsCommand = exports.deserializeAws_restJson1GetSiteAddressCommand = exports.deserializeAws_restJson1GetSiteCommand = exports.deserializeAws_restJson1GetOutpostInstanceTypesCommand = exports.deserializeAws_restJson1GetOutpostCommand = exports.deserializeAws_restJson1GetOrderCommand = exports.deserializeAws_restJson1GetCatalogItemCommand = exports.deserializeAws_restJson1DeleteSiteCommand = exports.deserializeAws_restJson1DeleteOutpostCommand = exports.deserializeAws_restJson1CreateSiteCommand = exports.deserializeAws_restJson1CreateOutpostCommand = exports.deserializeAws_restJson1CreateOrderCommand = exports.deserializeAws_restJson1CancelOrderCommand = exports.serializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommand = exports.serializeAws_restJson1UpdateSiteAddressCommand = exports.serializeAws_restJson1UpdateSiteCommand = exports.serializeAws_restJson1UpdateOutpostCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSitesCommand = exports.serializeAws_restJson1ListOutpostsCommand = exports.serializeAws_restJson1ListOrdersCommand = exports.serializeAws_restJson1ListCatalogItemsCommand = exports.serializeAws_restJson1GetSiteAddressCommand = exports.serializeAws_restJson1GetSiteCommand = exports.serializeAws_restJson1GetOutpostInstanceTypesCommand = exports.serializeAws_restJson1GetOutpostCommand = exports.serializeAws_restJson1GetOrderCommand = exports.serializeAws_restJson1GetCatalogItemCommand = exports.serializeAws_restJson1DeleteSiteCommand = exports.serializeAws_restJson1DeleteOutpostCommand = exports.serializeAws_restJson1CreateSiteCommand = exports.serializeAws_restJson1CreateOutpostCommand = exports.serializeAws_restJson1CreateOrderCommand = exports.serializeAws_restJson1CancelOrderCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const OutpostsServiceException_1 = require("../models/OutpostsServiceException");
|
|
6
8
|
const serializeAws_restJson1CancelOrderCommand = async (input, context) => {
|
|
7
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
10
|
const headers = {};
|
|
@@ -695,59 +697,28 @@ const deserializeAws_restJson1CancelOrderCommandError = async (output, context)
|
|
|
695
697
|
switch (errorCode) {
|
|
696
698
|
case "AccessDeniedException":
|
|
697
699
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
698
|
-
|
|
699
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
700
|
-
name: errorCode,
|
|
701
|
-
$metadata: deserializeMetadata(output),
|
|
702
|
-
};
|
|
703
|
-
break;
|
|
700
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
704
701
|
case "ConflictException":
|
|
705
702
|
case "com.amazonaws.outposts#ConflictException":
|
|
706
|
-
|
|
707
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
708
|
-
name: errorCode,
|
|
709
|
-
$metadata: deserializeMetadata(output),
|
|
710
|
-
};
|
|
711
|
-
break;
|
|
703
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
712
704
|
case "InternalServerException":
|
|
713
705
|
case "com.amazonaws.outposts#InternalServerException":
|
|
714
|
-
|
|
715
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
716
|
-
name: errorCode,
|
|
717
|
-
$metadata: deserializeMetadata(output),
|
|
718
|
-
};
|
|
719
|
-
break;
|
|
706
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
720
707
|
case "NotFoundException":
|
|
721
708
|
case "com.amazonaws.outposts#NotFoundException":
|
|
722
|
-
|
|
723
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
724
|
-
name: errorCode,
|
|
725
|
-
$metadata: deserializeMetadata(output),
|
|
726
|
-
};
|
|
727
|
-
break;
|
|
709
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
728
710
|
case "ValidationException":
|
|
729
711
|
case "com.amazonaws.outposts#ValidationException":
|
|
730
|
-
|
|
731
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
732
|
-
name: errorCode,
|
|
733
|
-
$metadata: deserializeMetadata(output),
|
|
734
|
-
};
|
|
735
|
-
break;
|
|
712
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
736
713
|
default:
|
|
737
714
|
const parsedBody = parsedOutput.body;
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
...parsedBody,
|
|
741
|
-
name: `${errorCode}`,
|
|
742
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
715
|
+
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
716
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
743
717
|
$fault: "client",
|
|
744
718
|
$metadata: deserializeMetadata(output),
|
|
745
|
-
};
|
|
719
|
+
});
|
|
720
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
746
721
|
}
|
|
747
|
-
const message = response.message || response.Message || errorCode;
|
|
748
|
-
response.message = message;
|
|
749
|
-
delete response.Message;
|
|
750
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
751
722
|
};
|
|
752
723
|
const deserializeAws_restJson1CreateOrderCommand = async (output, context) => {
|
|
753
724
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -775,67 +746,31 @@ const deserializeAws_restJson1CreateOrderCommandError = async (output, context)
|
|
|
775
746
|
switch (errorCode) {
|
|
776
747
|
case "AccessDeniedException":
|
|
777
748
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
778
|
-
|
|
779
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
780
|
-
name: errorCode,
|
|
781
|
-
$metadata: deserializeMetadata(output),
|
|
782
|
-
};
|
|
783
|
-
break;
|
|
749
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
784
750
|
case "ConflictException":
|
|
785
751
|
case "com.amazonaws.outposts#ConflictException":
|
|
786
|
-
|
|
787
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
788
|
-
name: errorCode,
|
|
789
|
-
$metadata: deserializeMetadata(output),
|
|
790
|
-
};
|
|
791
|
-
break;
|
|
752
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
792
753
|
case "InternalServerException":
|
|
793
754
|
case "com.amazonaws.outposts#InternalServerException":
|
|
794
|
-
|
|
795
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
796
|
-
name: errorCode,
|
|
797
|
-
$metadata: deserializeMetadata(output),
|
|
798
|
-
};
|
|
799
|
-
break;
|
|
755
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
800
756
|
case "NotFoundException":
|
|
801
757
|
case "com.amazonaws.outposts#NotFoundException":
|
|
802
|
-
|
|
803
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
804
|
-
name: errorCode,
|
|
805
|
-
$metadata: deserializeMetadata(output),
|
|
806
|
-
};
|
|
807
|
-
break;
|
|
758
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
808
759
|
case "ServiceQuotaExceededException":
|
|
809
760
|
case "com.amazonaws.outposts#ServiceQuotaExceededException":
|
|
810
|
-
|
|
811
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
812
|
-
name: errorCode,
|
|
813
|
-
$metadata: deserializeMetadata(output),
|
|
814
|
-
};
|
|
815
|
-
break;
|
|
761
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
816
762
|
case "ValidationException":
|
|
817
763
|
case "com.amazonaws.outposts#ValidationException":
|
|
818
|
-
|
|
819
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
820
|
-
name: errorCode,
|
|
821
|
-
$metadata: deserializeMetadata(output),
|
|
822
|
-
};
|
|
823
|
-
break;
|
|
764
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
824
765
|
default:
|
|
825
766
|
const parsedBody = parsedOutput.body;
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
...parsedBody,
|
|
829
|
-
name: `${errorCode}`,
|
|
830
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
767
|
+
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
768
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
831
769
|
$fault: "client",
|
|
832
770
|
$metadata: deserializeMetadata(output),
|
|
833
|
-
};
|
|
771
|
+
});
|
|
772
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
834
773
|
}
|
|
835
|
-
const message = response.message || response.Message || errorCode;
|
|
836
|
-
response.message = message;
|
|
837
|
-
delete response.Message;
|
|
838
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
839
774
|
};
|
|
840
775
|
const deserializeAws_restJson1CreateOutpostCommand = async (output, context) => {
|
|
841
776
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -863,67 +798,31 @@ const deserializeAws_restJson1CreateOutpostCommandError = async (output, context
|
|
|
863
798
|
switch (errorCode) {
|
|
864
799
|
case "AccessDeniedException":
|
|
865
800
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
866
|
-
|
|
867
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
868
|
-
name: errorCode,
|
|
869
|
-
$metadata: deserializeMetadata(output),
|
|
870
|
-
};
|
|
871
|
-
break;
|
|
801
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
872
802
|
case "ConflictException":
|
|
873
803
|
case "com.amazonaws.outposts#ConflictException":
|
|
874
|
-
|
|
875
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
876
|
-
name: errorCode,
|
|
877
|
-
$metadata: deserializeMetadata(output),
|
|
878
|
-
};
|
|
879
|
-
break;
|
|
804
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
880
805
|
case "InternalServerException":
|
|
881
806
|
case "com.amazonaws.outposts#InternalServerException":
|
|
882
|
-
|
|
883
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
884
|
-
name: errorCode,
|
|
885
|
-
$metadata: deserializeMetadata(output),
|
|
886
|
-
};
|
|
887
|
-
break;
|
|
807
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
888
808
|
case "NotFoundException":
|
|
889
809
|
case "com.amazonaws.outposts#NotFoundException":
|
|
890
|
-
|
|
891
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
892
|
-
name: errorCode,
|
|
893
|
-
$metadata: deserializeMetadata(output),
|
|
894
|
-
};
|
|
895
|
-
break;
|
|
810
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
896
811
|
case "ServiceQuotaExceededException":
|
|
897
812
|
case "com.amazonaws.outposts#ServiceQuotaExceededException":
|
|
898
|
-
|
|
899
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
900
|
-
name: errorCode,
|
|
901
|
-
$metadata: deserializeMetadata(output),
|
|
902
|
-
};
|
|
903
|
-
break;
|
|
813
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
904
814
|
case "ValidationException":
|
|
905
815
|
case "com.amazonaws.outposts#ValidationException":
|
|
906
|
-
|
|
907
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
908
|
-
name: errorCode,
|
|
909
|
-
$metadata: deserializeMetadata(output),
|
|
910
|
-
};
|
|
911
|
-
break;
|
|
816
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
912
817
|
default:
|
|
913
818
|
const parsedBody = parsedOutput.body;
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
...parsedBody,
|
|
917
|
-
name: `${errorCode}`,
|
|
918
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
819
|
+
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
820
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
919
821
|
$fault: "client",
|
|
920
822
|
$metadata: deserializeMetadata(output),
|
|
921
|
-
};
|
|
823
|
+
});
|
|
824
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
922
825
|
}
|
|
923
|
-
const message = response.message || response.Message || errorCode;
|
|
924
|
-
response.message = message;
|
|
925
|
-
delete response.Message;
|
|
926
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
927
826
|
};
|
|
928
827
|
const deserializeAws_restJson1CreateSiteCommand = async (output, context) => {
|
|
929
828
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -951,59 +850,28 @@ const deserializeAws_restJson1CreateSiteCommandError = async (output, context) =
|
|
|
951
850
|
switch (errorCode) {
|
|
952
851
|
case "AccessDeniedException":
|
|
953
852
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
954
|
-
|
|
955
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
956
|
-
name: errorCode,
|
|
957
|
-
$metadata: deserializeMetadata(output),
|
|
958
|
-
};
|
|
959
|
-
break;
|
|
853
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
960
854
|
case "ConflictException":
|
|
961
855
|
case "com.amazonaws.outposts#ConflictException":
|
|
962
|
-
|
|
963
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
964
|
-
name: errorCode,
|
|
965
|
-
$metadata: deserializeMetadata(output),
|
|
966
|
-
};
|
|
967
|
-
break;
|
|
856
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
968
857
|
case "InternalServerException":
|
|
969
858
|
case "com.amazonaws.outposts#InternalServerException":
|
|
970
|
-
|
|
971
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
972
|
-
name: errorCode,
|
|
973
|
-
$metadata: deserializeMetadata(output),
|
|
974
|
-
};
|
|
975
|
-
break;
|
|
859
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
976
860
|
case "ServiceQuotaExceededException":
|
|
977
861
|
case "com.amazonaws.outposts#ServiceQuotaExceededException":
|
|
978
|
-
|
|
979
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
980
|
-
name: errorCode,
|
|
981
|
-
$metadata: deserializeMetadata(output),
|
|
982
|
-
};
|
|
983
|
-
break;
|
|
862
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
984
863
|
case "ValidationException":
|
|
985
864
|
case "com.amazonaws.outposts#ValidationException":
|
|
986
|
-
|
|
987
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
988
|
-
name: errorCode,
|
|
989
|
-
$metadata: deserializeMetadata(output),
|
|
990
|
-
};
|
|
991
|
-
break;
|
|
865
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
992
866
|
default:
|
|
993
867
|
const parsedBody = parsedOutput.body;
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
...parsedBody,
|
|
997
|
-
name: `${errorCode}`,
|
|
998
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
868
|
+
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
869
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
999
870
|
$fault: "client",
|
|
1000
871
|
$metadata: deserializeMetadata(output),
|
|
1001
|
-
};
|
|
872
|
+
});
|
|
873
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1002
874
|
}
|
|
1003
|
-
const message = response.message || response.Message || errorCode;
|
|
1004
|
-
response.message = message;
|
|
1005
|
-
delete response.Message;
|
|
1006
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1007
875
|
};
|
|
1008
876
|
const deserializeAws_restJson1DeleteOutpostCommand = async (output, context) => {
|
|
1009
877
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1027,59 +895,28 @@ const deserializeAws_restJson1DeleteOutpostCommandError = async (output, context
|
|
|
1027
895
|
switch (errorCode) {
|
|
1028
896
|
case "AccessDeniedException":
|
|
1029
897
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1030
|
-
|
|
1031
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1032
|
-
name: errorCode,
|
|
1033
|
-
$metadata: deserializeMetadata(output),
|
|
1034
|
-
};
|
|
1035
|
-
break;
|
|
898
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1036
899
|
case "ConflictException":
|
|
1037
900
|
case "com.amazonaws.outposts#ConflictException":
|
|
1038
|
-
|
|
1039
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1040
|
-
name: errorCode,
|
|
1041
|
-
$metadata: deserializeMetadata(output),
|
|
1042
|
-
};
|
|
1043
|
-
break;
|
|
901
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1044
902
|
case "InternalServerException":
|
|
1045
903
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1046
|
-
|
|
1047
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1048
|
-
name: errorCode,
|
|
1049
|
-
$metadata: deserializeMetadata(output),
|
|
1050
|
-
};
|
|
1051
|
-
break;
|
|
904
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1052
905
|
case "NotFoundException":
|
|
1053
906
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1054
|
-
|
|
1055
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1056
|
-
name: errorCode,
|
|
1057
|
-
$metadata: deserializeMetadata(output),
|
|
1058
|
-
};
|
|
1059
|
-
break;
|
|
907
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1060
908
|
case "ValidationException":
|
|
1061
909
|
case "com.amazonaws.outposts#ValidationException":
|
|
1062
|
-
|
|
1063
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1064
|
-
name: errorCode,
|
|
1065
|
-
$metadata: deserializeMetadata(output),
|
|
1066
|
-
};
|
|
1067
|
-
break;
|
|
910
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1068
911
|
default:
|
|
1069
912
|
const parsedBody = parsedOutput.body;
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
...parsedBody,
|
|
1073
|
-
name: `${errorCode}`,
|
|
1074
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
913
|
+
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
914
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1075
915
|
$fault: "client",
|
|
1076
916
|
$metadata: deserializeMetadata(output),
|
|
1077
|
-
};
|
|
917
|
+
});
|
|
918
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1078
919
|
}
|
|
1079
|
-
const message = response.message || response.Message || errorCode;
|
|
1080
|
-
response.message = message;
|
|
1081
|
-
delete response.Message;
|
|
1082
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1083
920
|
};
|
|
1084
921
|
const deserializeAws_restJson1DeleteSiteCommand = async (output, context) => {
|
|
1085
922
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1103,59 +940,28 @@ const deserializeAws_restJson1DeleteSiteCommandError = async (output, context) =
|
|
|
1103
940
|
switch (errorCode) {
|
|
1104
941
|
case "AccessDeniedException":
|
|
1105
942
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1106
|
-
|
|
1107
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1108
|
-
name: errorCode,
|
|
1109
|
-
$metadata: deserializeMetadata(output),
|
|
1110
|
-
};
|
|
1111
|
-
break;
|
|
943
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1112
944
|
case "ConflictException":
|
|
1113
945
|
case "com.amazonaws.outposts#ConflictException":
|
|
1114
|
-
|
|
1115
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1116
|
-
name: errorCode,
|
|
1117
|
-
$metadata: deserializeMetadata(output),
|
|
1118
|
-
};
|
|
1119
|
-
break;
|
|
946
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1120
947
|
case "InternalServerException":
|
|
1121
948
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1122
|
-
|
|
1123
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1124
|
-
name: errorCode,
|
|
1125
|
-
$metadata: deserializeMetadata(output),
|
|
1126
|
-
};
|
|
1127
|
-
break;
|
|
949
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1128
950
|
case "NotFoundException":
|
|
1129
951
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1130
|
-
|
|
1131
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1132
|
-
name: errorCode,
|
|
1133
|
-
$metadata: deserializeMetadata(output),
|
|
1134
|
-
};
|
|
1135
|
-
break;
|
|
952
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1136
953
|
case "ValidationException":
|
|
1137
954
|
case "com.amazonaws.outposts#ValidationException":
|
|
1138
|
-
|
|
1139
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1140
|
-
name: errorCode,
|
|
1141
|
-
$metadata: deserializeMetadata(output),
|
|
1142
|
-
};
|
|
1143
|
-
break;
|
|
955
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1144
956
|
default:
|
|
1145
957
|
const parsedBody = parsedOutput.body;
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
...parsedBody,
|
|
1149
|
-
name: `${errorCode}`,
|
|
1150
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
958
|
+
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
959
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1151
960
|
$fault: "client",
|
|
1152
961
|
$metadata: deserializeMetadata(output),
|
|
1153
|
-
};
|
|
962
|
+
});
|
|
963
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1154
964
|
}
|
|
1155
|
-
const message = response.message || response.Message || errorCode;
|
|
1156
|
-
response.message = message;
|
|
1157
|
-
delete response.Message;
|
|
1158
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1159
965
|
};
|
|
1160
966
|
const deserializeAws_restJson1GetCatalogItemCommand = async (output, context) => {
|
|
1161
967
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1183,43 +989,22 @@ const deserializeAws_restJson1GetCatalogItemCommandError = async (output, contex
|
|
|
1183
989
|
switch (errorCode) {
|
|
1184
990
|
case "InternalServerException":
|
|
1185
991
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1186
|
-
|
|
1187
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1188
|
-
name: errorCode,
|
|
1189
|
-
$metadata: deserializeMetadata(output),
|
|
1190
|
-
};
|
|
1191
|
-
break;
|
|
992
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1192
993
|
case "NotFoundException":
|
|
1193
994
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1194
|
-
|
|
1195
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1196
|
-
name: errorCode,
|
|
1197
|
-
$metadata: deserializeMetadata(output),
|
|
1198
|
-
};
|
|
1199
|
-
break;
|
|
995
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1200
996
|
case "ValidationException":
|
|
1201
997
|
case "com.amazonaws.outposts#ValidationException":
|
|
1202
|
-
|
|
1203
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1204
|
-
name: errorCode,
|
|
1205
|
-
$metadata: deserializeMetadata(output),
|
|
1206
|
-
};
|
|
1207
|
-
break;
|
|
998
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1208
999
|
default:
|
|
1209
1000
|
const parsedBody = parsedOutput.body;
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
...parsedBody,
|
|
1213
|
-
name: `${errorCode}`,
|
|
1214
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1001
|
+
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1002
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1215
1003
|
$fault: "client",
|
|
1216
1004
|
$metadata: deserializeMetadata(output),
|
|
1217
|
-
};
|
|
1005
|
+
});
|
|
1006
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1218
1007
|
}
|
|
1219
|
-
const message = response.message || response.Message || errorCode;
|
|
1220
|
-
response.message = message;
|
|
1221
|
-
delete response.Message;
|
|
1222
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1223
1008
|
};
|
|
1224
1009
|
const deserializeAws_restJson1GetOrderCommand = async (output, context) => {
|
|
1225
1010
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1247,43 +1032,22 @@ const deserializeAws_restJson1GetOrderCommandError = async (output, context) =>
|
|
|
1247
1032
|
switch (errorCode) {
|
|
1248
1033
|
case "InternalServerException":
|
|
1249
1034
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1250
|
-
|
|
1251
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1252
|
-
name: errorCode,
|
|
1253
|
-
$metadata: deserializeMetadata(output),
|
|
1254
|
-
};
|
|
1255
|
-
break;
|
|
1035
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1256
1036
|
case "NotFoundException":
|
|
1257
1037
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1258
|
-
|
|
1259
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1260
|
-
name: errorCode,
|
|
1261
|
-
$metadata: deserializeMetadata(output),
|
|
1262
|
-
};
|
|
1263
|
-
break;
|
|
1038
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1264
1039
|
case "ValidationException":
|
|
1265
1040
|
case "com.amazonaws.outposts#ValidationException":
|
|
1266
|
-
|
|
1267
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1268
|
-
name: errorCode,
|
|
1269
|
-
$metadata: deserializeMetadata(output),
|
|
1270
|
-
};
|
|
1271
|
-
break;
|
|
1041
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1272
1042
|
default:
|
|
1273
1043
|
const parsedBody = parsedOutput.body;
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
...parsedBody,
|
|
1277
|
-
name: `${errorCode}`,
|
|
1278
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1044
|
+
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1045
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1279
1046
|
$fault: "client",
|
|
1280
1047
|
$metadata: deserializeMetadata(output),
|
|
1281
|
-
};
|
|
1048
|
+
});
|
|
1049
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1282
1050
|
}
|
|
1283
|
-
const message = response.message || response.Message || errorCode;
|
|
1284
|
-
response.message = message;
|
|
1285
|
-
delete response.Message;
|
|
1286
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1287
1051
|
};
|
|
1288
1052
|
const deserializeAws_restJson1GetOutpostCommand = async (output, context) => {
|
|
1289
1053
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1311,51 +1075,25 @@ const deserializeAws_restJson1GetOutpostCommandError = async (output, context) =
|
|
|
1311
1075
|
switch (errorCode) {
|
|
1312
1076
|
case "AccessDeniedException":
|
|
1313
1077
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1314
|
-
|
|
1315
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1316
|
-
name: errorCode,
|
|
1317
|
-
$metadata: deserializeMetadata(output),
|
|
1318
|
-
};
|
|
1319
|
-
break;
|
|
1078
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1320
1079
|
case "InternalServerException":
|
|
1321
1080
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1322
|
-
|
|
1323
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1324
|
-
name: errorCode,
|
|
1325
|
-
$metadata: deserializeMetadata(output),
|
|
1326
|
-
};
|
|
1327
|
-
break;
|
|
1081
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1328
1082
|
case "NotFoundException":
|
|
1329
1083
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1330
|
-
|
|
1331
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1332
|
-
name: errorCode,
|
|
1333
|
-
$metadata: deserializeMetadata(output),
|
|
1334
|
-
};
|
|
1335
|
-
break;
|
|
1084
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1336
1085
|
case "ValidationException":
|
|
1337
1086
|
case "com.amazonaws.outposts#ValidationException":
|
|
1338
|
-
|
|
1339
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1340
|
-
name: errorCode,
|
|
1341
|
-
$metadata: deserializeMetadata(output),
|
|
1342
|
-
};
|
|
1343
|
-
break;
|
|
1087
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1344
1088
|
default:
|
|
1345
1089
|
const parsedBody = parsedOutput.body;
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
...parsedBody,
|
|
1349
|
-
name: `${errorCode}`,
|
|
1350
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1090
|
+
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1091
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1351
1092
|
$fault: "client",
|
|
1352
1093
|
$metadata: deserializeMetadata(output),
|
|
1353
|
-
};
|
|
1094
|
+
});
|
|
1095
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1354
1096
|
}
|
|
1355
|
-
const message = response.message || response.Message || errorCode;
|
|
1356
|
-
response.message = message;
|
|
1357
|
-
delete response.Message;
|
|
1358
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1359
1097
|
};
|
|
1360
1098
|
const deserializeAws_restJson1GetOutpostInstanceTypesCommand = async (output, context) => {
|
|
1361
1099
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1395,51 +1133,25 @@ const deserializeAws_restJson1GetOutpostInstanceTypesCommandError = async (outpu
|
|
|
1395
1133
|
switch (errorCode) {
|
|
1396
1134
|
case "AccessDeniedException":
|
|
1397
1135
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1398
|
-
|
|
1399
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1400
|
-
name: errorCode,
|
|
1401
|
-
$metadata: deserializeMetadata(output),
|
|
1402
|
-
};
|
|
1403
|
-
break;
|
|
1136
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1404
1137
|
case "InternalServerException":
|
|
1405
1138
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1406
|
-
|
|
1407
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1408
|
-
name: errorCode,
|
|
1409
|
-
$metadata: deserializeMetadata(output),
|
|
1410
|
-
};
|
|
1411
|
-
break;
|
|
1139
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1412
1140
|
case "NotFoundException":
|
|
1413
1141
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1414
|
-
|
|
1415
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1416
|
-
name: errorCode,
|
|
1417
|
-
$metadata: deserializeMetadata(output),
|
|
1418
|
-
};
|
|
1419
|
-
break;
|
|
1142
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1420
1143
|
case "ValidationException":
|
|
1421
1144
|
case "com.amazonaws.outposts#ValidationException":
|
|
1422
|
-
|
|
1423
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1424
|
-
name: errorCode,
|
|
1425
|
-
$metadata: deserializeMetadata(output),
|
|
1426
|
-
};
|
|
1427
|
-
break;
|
|
1145
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1428
1146
|
default:
|
|
1429
1147
|
const parsedBody = parsedOutput.body;
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
...parsedBody,
|
|
1433
|
-
name: `${errorCode}`,
|
|
1434
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1148
|
+
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1149
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1435
1150
|
$fault: "client",
|
|
1436
1151
|
$metadata: deserializeMetadata(output),
|
|
1437
|
-
};
|
|
1152
|
+
});
|
|
1153
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1438
1154
|
}
|
|
1439
|
-
const message = response.message || response.Message || errorCode;
|
|
1440
|
-
response.message = message;
|
|
1441
|
-
delete response.Message;
|
|
1442
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1443
1155
|
};
|
|
1444
1156
|
const deserializeAws_restJson1GetSiteCommand = async (output, context) => {
|
|
1445
1157
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1467,51 +1179,25 @@ const deserializeAws_restJson1GetSiteCommandError = async (output, context) => {
|
|
|
1467
1179
|
switch (errorCode) {
|
|
1468
1180
|
case "AccessDeniedException":
|
|
1469
1181
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1470
|
-
|
|
1471
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1472
|
-
name: errorCode,
|
|
1473
|
-
$metadata: deserializeMetadata(output),
|
|
1474
|
-
};
|
|
1475
|
-
break;
|
|
1182
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1476
1183
|
case "InternalServerException":
|
|
1477
1184
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1478
|
-
|
|
1479
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1480
|
-
name: errorCode,
|
|
1481
|
-
$metadata: deserializeMetadata(output),
|
|
1482
|
-
};
|
|
1483
|
-
break;
|
|
1185
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1484
1186
|
case "NotFoundException":
|
|
1485
1187
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1486
|
-
|
|
1487
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1488
|
-
name: errorCode,
|
|
1489
|
-
$metadata: deserializeMetadata(output),
|
|
1490
|
-
};
|
|
1491
|
-
break;
|
|
1188
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1492
1189
|
case "ValidationException":
|
|
1493
1190
|
case "com.amazonaws.outposts#ValidationException":
|
|
1494
|
-
|
|
1495
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1496
|
-
name: errorCode,
|
|
1497
|
-
$metadata: deserializeMetadata(output),
|
|
1498
|
-
};
|
|
1499
|
-
break;
|
|
1191
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1500
1192
|
default:
|
|
1501
1193
|
const parsedBody = parsedOutput.body;
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
...parsedBody,
|
|
1505
|
-
name: `${errorCode}`,
|
|
1506
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1194
|
+
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1195
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1507
1196
|
$fault: "client",
|
|
1508
1197
|
$metadata: deserializeMetadata(output),
|
|
1509
|
-
};
|
|
1198
|
+
});
|
|
1199
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1510
1200
|
}
|
|
1511
|
-
const message = response.message || response.Message || errorCode;
|
|
1512
|
-
response.message = message;
|
|
1513
|
-
delete response.Message;
|
|
1514
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1515
1201
|
};
|
|
1516
1202
|
const deserializeAws_restJson1GetSiteAddressCommand = async (output, context) => {
|
|
1517
1203
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1547,51 +1233,25 @@ const deserializeAws_restJson1GetSiteAddressCommandError = async (output, contex
|
|
|
1547
1233
|
switch (errorCode) {
|
|
1548
1234
|
case "AccessDeniedException":
|
|
1549
1235
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1550
|
-
|
|
1551
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1552
|
-
name: errorCode,
|
|
1553
|
-
$metadata: deserializeMetadata(output),
|
|
1554
|
-
};
|
|
1555
|
-
break;
|
|
1236
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1556
1237
|
case "InternalServerException":
|
|
1557
1238
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1558
|
-
|
|
1559
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1560
|
-
name: errorCode,
|
|
1561
|
-
$metadata: deserializeMetadata(output),
|
|
1562
|
-
};
|
|
1563
|
-
break;
|
|
1239
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1564
1240
|
case "NotFoundException":
|
|
1565
1241
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1566
|
-
|
|
1567
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1568
|
-
name: errorCode,
|
|
1569
|
-
$metadata: deserializeMetadata(output),
|
|
1570
|
-
};
|
|
1571
|
-
break;
|
|
1242
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1572
1243
|
case "ValidationException":
|
|
1573
1244
|
case "com.amazonaws.outposts#ValidationException":
|
|
1574
|
-
|
|
1575
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1576
|
-
name: errorCode,
|
|
1577
|
-
$metadata: deserializeMetadata(output),
|
|
1578
|
-
};
|
|
1579
|
-
break;
|
|
1245
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1580
1246
|
default:
|
|
1581
1247
|
const parsedBody = parsedOutput.body;
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
...parsedBody,
|
|
1585
|
-
name: `${errorCode}`,
|
|
1586
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1248
|
+
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1249
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1587
1250
|
$fault: "client",
|
|
1588
1251
|
$metadata: deserializeMetadata(output),
|
|
1589
|
-
};
|
|
1252
|
+
});
|
|
1253
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1590
1254
|
}
|
|
1591
|
-
const message = response.message || response.Message || errorCode;
|
|
1592
|
-
response.message = message;
|
|
1593
|
-
delete response.Message;
|
|
1594
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1595
1255
|
};
|
|
1596
1256
|
const deserializeAws_restJson1ListCatalogItemsCommand = async (output, context) => {
|
|
1597
1257
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1623,43 +1283,22 @@ const deserializeAws_restJson1ListCatalogItemsCommandError = async (output, cont
|
|
|
1623
1283
|
switch (errorCode) {
|
|
1624
1284
|
case "InternalServerException":
|
|
1625
1285
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1626
|
-
|
|
1627
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1628
|
-
name: errorCode,
|
|
1629
|
-
$metadata: deserializeMetadata(output),
|
|
1630
|
-
};
|
|
1631
|
-
break;
|
|
1286
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1632
1287
|
case "NotFoundException":
|
|
1633
1288
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1634
|
-
|
|
1635
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1636
|
-
name: errorCode,
|
|
1637
|
-
$metadata: deserializeMetadata(output),
|
|
1638
|
-
};
|
|
1639
|
-
break;
|
|
1289
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1640
1290
|
case "ValidationException":
|
|
1641
1291
|
case "com.amazonaws.outposts#ValidationException":
|
|
1642
|
-
|
|
1643
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1644
|
-
name: errorCode,
|
|
1645
|
-
$metadata: deserializeMetadata(output),
|
|
1646
|
-
};
|
|
1647
|
-
break;
|
|
1292
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1648
1293
|
default:
|
|
1649
1294
|
const parsedBody = parsedOutput.body;
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
...parsedBody,
|
|
1653
|
-
name: `${errorCode}`,
|
|
1654
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1295
|
+
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1296
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1655
1297
|
$fault: "client",
|
|
1656
1298
|
$metadata: deserializeMetadata(output),
|
|
1657
|
-
};
|
|
1299
|
+
});
|
|
1300
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1658
1301
|
}
|
|
1659
|
-
const message = response.message || response.Message || errorCode;
|
|
1660
|
-
response.message = message;
|
|
1661
|
-
delete response.Message;
|
|
1662
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1663
1302
|
};
|
|
1664
1303
|
const deserializeAws_restJson1ListOrdersCommand = async (output, context) => {
|
|
1665
1304
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1691,51 +1330,25 @@ const deserializeAws_restJson1ListOrdersCommandError = async (output, context) =
|
|
|
1691
1330
|
switch (errorCode) {
|
|
1692
1331
|
case "AccessDeniedException":
|
|
1693
1332
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1694
|
-
|
|
1695
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1696
|
-
name: errorCode,
|
|
1697
|
-
$metadata: deserializeMetadata(output),
|
|
1698
|
-
};
|
|
1699
|
-
break;
|
|
1333
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1700
1334
|
case "InternalServerException":
|
|
1701
1335
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1702
|
-
|
|
1703
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1704
|
-
name: errorCode,
|
|
1705
|
-
$metadata: deserializeMetadata(output),
|
|
1706
|
-
};
|
|
1707
|
-
break;
|
|
1336
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1708
1337
|
case "NotFoundException":
|
|
1709
1338
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1710
|
-
|
|
1711
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1712
|
-
name: errorCode,
|
|
1713
|
-
$metadata: deserializeMetadata(output),
|
|
1714
|
-
};
|
|
1715
|
-
break;
|
|
1339
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1716
1340
|
case "ValidationException":
|
|
1717
1341
|
case "com.amazonaws.outposts#ValidationException":
|
|
1718
|
-
|
|
1719
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1720
|
-
name: errorCode,
|
|
1721
|
-
$metadata: deserializeMetadata(output),
|
|
1722
|
-
};
|
|
1723
|
-
break;
|
|
1342
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1724
1343
|
default:
|
|
1725
1344
|
const parsedBody = parsedOutput.body;
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
...parsedBody,
|
|
1729
|
-
name: `${errorCode}`,
|
|
1730
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1345
|
+
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1346
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1731
1347
|
$fault: "client",
|
|
1732
1348
|
$metadata: deserializeMetadata(output),
|
|
1733
|
-
};
|
|
1349
|
+
});
|
|
1350
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1734
1351
|
}
|
|
1735
|
-
const message = response.message || response.Message || errorCode;
|
|
1736
|
-
response.message = message;
|
|
1737
|
-
delete response.Message;
|
|
1738
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1739
1352
|
};
|
|
1740
1353
|
const deserializeAws_restJson1ListOutpostsCommand = async (output, context) => {
|
|
1741
1354
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1767,43 +1380,22 @@ const deserializeAws_restJson1ListOutpostsCommandError = async (output, context)
|
|
|
1767
1380
|
switch (errorCode) {
|
|
1768
1381
|
case "AccessDeniedException":
|
|
1769
1382
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1770
|
-
|
|
1771
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1772
|
-
name: errorCode,
|
|
1773
|
-
$metadata: deserializeMetadata(output),
|
|
1774
|
-
};
|
|
1775
|
-
break;
|
|
1383
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1776
1384
|
case "InternalServerException":
|
|
1777
1385
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1778
|
-
|
|
1779
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1780
|
-
name: errorCode,
|
|
1781
|
-
$metadata: deserializeMetadata(output),
|
|
1782
|
-
};
|
|
1783
|
-
break;
|
|
1386
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1784
1387
|
case "ValidationException":
|
|
1785
1388
|
case "com.amazonaws.outposts#ValidationException":
|
|
1786
|
-
|
|
1787
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1788
|
-
name: errorCode,
|
|
1789
|
-
$metadata: deserializeMetadata(output),
|
|
1790
|
-
};
|
|
1791
|
-
break;
|
|
1389
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1792
1390
|
default:
|
|
1793
1391
|
const parsedBody = parsedOutput.body;
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
...parsedBody,
|
|
1797
|
-
name: `${errorCode}`,
|
|
1798
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1392
|
+
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1393
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1799
1394
|
$fault: "client",
|
|
1800
1395
|
$metadata: deserializeMetadata(output),
|
|
1801
|
-
};
|
|
1396
|
+
});
|
|
1397
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1802
1398
|
}
|
|
1803
|
-
const message = response.message || response.Message || errorCode;
|
|
1804
|
-
response.message = message;
|
|
1805
|
-
delete response.Message;
|
|
1806
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1807
1399
|
};
|
|
1808
1400
|
const deserializeAws_restJson1ListSitesCommand = async (output, context) => {
|
|
1809
1401
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1835,43 +1427,22 @@ const deserializeAws_restJson1ListSitesCommandError = async (output, context) =>
|
|
|
1835
1427
|
switch (errorCode) {
|
|
1836
1428
|
case "AccessDeniedException":
|
|
1837
1429
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1838
|
-
|
|
1839
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1840
|
-
name: errorCode,
|
|
1841
|
-
$metadata: deserializeMetadata(output),
|
|
1842
|
-
};
|
|
1843
|
-
break;
|
|
1430
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1844
1431
|
case "InternalServerException":
|
|
1845
1432
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1846
|
-
|
|
1847
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1848
|
-
name: errorCode,
|
|
1849
|
-
$metadata: deserializeMetadata(output),
|
|
1850
|
-
};
|
|
1851
|
-
break;
|
|
1433
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1852
1434
|
case "ValidationException":
|
|
1853
1435
|
case "com.amazonaws.outposts#ValidationException":
|
|
1854
|
-
|
|
1855
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1856
|
-
name: errorCode,
|
|
1857
|
-
$metadata: deserializeMetadata(output),
|
|
1858
|
-
};
|
|
1859
|
-
break;
|
|
1436
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1860
1437
|
default:
|
|
1861
1438
|
const parsedBody = parsedOutput.body;
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
...parsedBody,
|
|
1865
|
-
name: `${errorCode}`,
|
|
1866
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1439
|
+
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1440
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1867
1441
|
$fault: "client",
|
|
1868
1442
|
$metadata: deserializeMetadata(output),
|
|
1869
|
-
};
|
|
1443
|
+
});
|
|
1444
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1870
1445
|
}
|
|
1871
|
-
const message = response.message || response.Message || errorCode;
|
|
1872
|
-
response.message = message;
|
|
1873
|
-
delete response.Message;
|
|
1874
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1875
1446
|
};
|
|
1876
1447
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
1877
1448
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1899,43 +1470,22 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1899
1470
|
switch (errorCode) {
|
|
1900
1471
|
case "InternalServerException":
|
|
1901
1472
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1902
|
-
|
|
1903
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1904
|
-
name: errorCode,
|
|
1905
|
-
$metadata: deserializeMetadata(output),
|
|
1906
|
-
};
|
|
1907
|
-
break;
|
|
1473
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1908
1474
|
case "NotFoundException":
|
|
1909
1475
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1910
|
-
|
|
1911
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1912
|
-
name: errorCode,
|
|
1913
|
-
$metadata: deserializeMetadata(output),
|
|
1914
|
-
};
|
|
1915
|
-
break;
|
|
1476
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1916
1477
|
case "ValidationException":
|
|
1917
1478
|
case "com.amazonaws.outposts#ValidationException":
|
|
1918
|
-
|
|
1919
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1920
|
-
name: errorCode,
|
|
1921
|
-
$metadata: deserializeMetadata(output),
|
|
1922
|
-
};
|
|
1923
|
-
break;
|
|
1479
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1924
1480
|
default:
|
|
1925
1481
|
const parsedBody = parsedOutput.body;
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
...parsedBody,
|
|
1929
|
-
name: `${errorCode}`,
|
|
1930
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1482
|
+
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1483
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1931
1484
|
$fault: "client",
|
|
1932
1485
|
$metadata: deserializeMetadata(output),
|
|
1933
|
-
};
|
|
1486
|
+
});
|
|
1487
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1934
1488
|
}
|
|
1935
|
-
const message = response.message || response.Message || errorCode;
|
|
1936
|
-
response.message = message;
|
|
1937
|
-
delete response.Message;
|
|
1938
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1939
1489
|
};
|
|
1940
1490
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
1941
1491
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1959,43 +1509,22 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1959
1509
|
switch (errorCode) {
|
|
1960
1510
|
case "InternalServerException":
|
|
1961
1511
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1962
|
-
|
|
1963
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1964
|
-
name: errorCode,
|
|
1965
|
-
$metadata: deserializeMetadata(output),
|
|
1966
|
-
};
|
|
1967
|
-
break;
|
|
1512
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1968
1513
|
case "NotFoundException":
|
|
1969
1514
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1970
|
-
|
|
1971
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1972
|
-
name: errorCode,
|
|
1973
|
-
$metadata: deserializeMetadata(output),
|
|
1974
|
-
};
|
|
1975
|
-
break;
|
|
1515
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1976
1516
|
case "ValidationException":
|
|
1977
1517
|
case "com.amazonaws.outposts#ValidationException":
|
|
1978
|
-
|
|
1979
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1980
|
-
name: errorCode,
|
|
1981
|
-
$metadata: deserializeMetadata(output),
|
|
1982
|
-
};
|
|
1983
|
-
break;
|
|
1518
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1984
1519
|
default:
|
|
1985
1520
|
const parsedBody = parsedOutput.body;
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
...parsedBody,
|
|
1989
|
-
name: `${errorCode}`,
|
|
1990
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1521
|
+
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1522
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1991
1523
|
$fault: "client",
|
|
1992
1524
|
$metadata: deserializeMetadata(output),
|
|
1993
|
-
};
|
|
1525
|
+
});
|
|
1526
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1994
1527
|
}
|
|
1995
|
-
const message = response.message || response.Message || errorCode;
|
|
1996
|
-
response.message = message;
|
|
1997
|
-
delete response.Message;
|
|
1998
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1999
1528
|
};
|
|
2000
1529
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
2001
1530
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2019,43 +1548,22 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2019
1548
|
switch (errorCode) {
|
|
2020
1549
|
case "InternalServerException":
|
|
2021
1550
|
case "com.amazonaws.outposts#InternalServerException":
|
|
2022
|
-
|
|
2023
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2024
|
-
name: errorCode,
|
|
2025
|
-
$metadata: deserializeMetadata(output),
|
|
2026
|
-
};
|
|
2027
|
-
break;
|
|
1551
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2028
1552
|
case "NotFoundException":
|
|
2029
1553
|
case "com.amazonaws.outposts#NotFoundException":
|
|
2030
|
-
|
|
2031
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
2032
|
-
name: errorCode,
|
|
2033
|
-
$metadata: deserializeMetadata(output),
|
|
2034
|
-
};
|
|
2035
|
-
break;
|
|
1554
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2036
1555
|
case "ValidationException":
|
|
2037
1556
|
case "com.amazonaws.outposts#ValidationException":
|
|
2038
|
-
|
|
2039
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2040
|
-
name: errorCode,
|
|
2041
|
-
$metadata: deserializeMetadata(output),
|
|
2042
|
-
};
|
|
2043
|
-
break;
|
|
1557
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2044
1558
|
default:
|
|
2045
1559
|
const parsedBody = parsedOutput.body;
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
...parsedBody,
|
|
2049
|
-
name: `${errorCode}`,
|
|
2050
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1560
|
+
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1561
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2051
1562
|
$fault: "client",
|
|
2052
1563
|
$metadata: deserializeMetadata(output),
|
|
2053
|
-
};
|
|
1564
|
+
});
|
|
1565
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2054
1566
|
}
|
|
2055
|
-
const message = response.message || response.Message || errorCode;
|
|
2056
|
-
response.message = message;
|
|
2057
|
-
delete response.Message;
|
|
2058
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2059
1567
|
};
|
|
2060
1568
|
const deserializeAws_restJson1UpdateOutpostCommand = async (output, context) => {
|
|
2061
1569
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2083,59 +1591,28 @@ const deserializeAws_restJson1UpdateOutpostCommandError = async (output, context
|
|
|
2083
1591
|
switch (errorCode) {
|
|
2084
1592
|
case "AccessDeniedException":
|
|
2085
1593
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
2086
|
-
|
|
2087
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2088
|
-
name: errorCode,
|
|
2089
|
-
$metadata: deserializeMetadata(output),
|
|
2090
|
-
};
|
|
2091
|
-
break;
|
|
1594
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2092
1595
|
case "ConflictException":
|
|
2093
1596
|
case "com.amazonaws.outposts#ConflictException":
|
|
2094
|
-
|
|
2095
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2096
|
-
name: errorCode,
|
|
2097
|
-
$metadata: deserializeMetadata(output),
|
|
2098
|
-
};
|
|
2099
|
-
break;
|
|
1597
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2100
1598
|
case "InternalServerException":
|
|
2101
1599
|
case "com.amazonaws.outposts#InternalServerException":
|
|
2102
|
-
|
|
2103
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2104
|
-
name: errorCode,
|
|
2105
|
-
$metadata: deserializeMetadata(output),
|
|
2106
|
-
};
|
|
2107
|
-
break;
|
|
1600
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2108
1601
|
case "NotFoundException":
|
|
2109
1602
|
case "com.amazonaws.outposts#NotFoundException":
|
|
2110
|
-
|
|
2111
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
2112
|
-
name: errorCode,
|
|
2113
|
-
$metadata: deserializeMetadata(output),
|
|
2114
|
-
};
|
|
2115
|
-
break;
|
|
1603
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2116
1604
|
case "ValidationException":
|
|
2117
1605
|
case "com.amazonaws.outposts#ValidationException":
|
|
2118
|
-
|
|
2119
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2120
|
-
name: errorCode,
|
|
2121
|
-
$metadata: deserializeMetadata(output),
|
|
2122
|
-
};
|
|
2123
|
-
break;
|
|
1606
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2124
1607
|
default:
|
|
2125
1608
|
const parsedBody = parsedOutput.body;
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
...parsedBody,
|
|
2129
|
-
name: `${errorCode}`,
|
|
2130
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1609
|
+
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1610
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2131
1611
|
$fault: "client",
|
|
2132
1612
|
$metadata: deserializeMetadata(output),
|
|
2133
|
-
};
|
|
1613
|
+
});
|
|
1614
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2134
1615
|
}
|
|
2135
|
-
const message = response.message || response.Message || errorCode;
|
|
2136
|
-
response.message = message;
|
|
2137
|
-
delete response.Message;
|
|
2138
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2139
1616
|
};
|
|
2140
1617
|
const deserializeAws_restJson1UpdateSiteCommand = async (output, context) => {
|
|
2141
1618
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2163,59 +1640,28 @@ const deserializeAws_restJson1UpdateSiteCommandError = async (output, context) =
|
|
|
2163
1640
|
switch (errorCode) {
|
|
2164
1641
|
case "AccessDeniedException":
|
|
2165
1642
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
2166
|
-
|
|
2167
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2168
|
-
name: errorCode,
|
|
2169
|
-
$metadata: deserializeMetadata(output),
|
|
2170
|
-
};
|
|
2171
|
-
break;
|
|
1643
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2172
1644
|
case "ConflictException":
|
|
2173
1645
|
case "com.amazonaws.outposts#ConflictException":
|
|
2174
|
-
|
|
2175
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2176
|
-
name: errorCode,
|
|
2177
|
-
$metadata: deserializeMetadata(output),
|
|
2178
|
-
};
|
|
2179
|
-
break;
|
|
1646
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2180
1647
|
case "InternalServerException":
|
|
2181
1648
|
case "com.amazonaws.outposts#InternalServerException":
|
|
2182
|
-
|
|
2183
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2184
|
-
name: errorCode,
|
|
2185
|
-
$metadata: deserializeMetadata(output),
|
|
2186
|
-
};
|
|
2187
|
-
break;
|
|
1649
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2188
1650
|
case "NotFoundException":
|
|
2189
1651
|
case "com.amazonaws.outposts#NotFoundException":
|
|
2190
|
-
|
|
2191
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
2192
|
-
name: errorCode,
|
|
2193
|
-
$metadata: deserializeMetadata(output),
|
|
2194
|
-
};
|
|
2195
|
-
break;
|
|
1652
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2196
1653
|
case "ValidationException":
|
|
2197
1654
|
case "com.amazonaws.outposts#ValidationException":
|
|
2198
|
-
|
|
2199
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2200
|
-
name: errorCode,
|
|
2201
|
-
$metadata: deserializeMetadata(output),
|
|
2202
|
-
};
|
|
2203
|
-
break;
|
|
1655
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2204
1656
|
default:
|
|
2205
1657
|
const parsedBody = parsedOutput.body;
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
...parsedBody,
|
|
2209
|
-
name: `${errorCode}`,
|
|
2210
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1658
|
+
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1659
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2211
1660
|
$fault: "client",
|
|
2212
1661
|
$metadata: deserializeMetadata(output),
|
|
2213
|
-
};
|
|
1662
|
+
});
|
|
1663
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2214
1664
|
}
|
|
2215
|
-
const message = response.message || response.Message || errorCode;
|
|
2216
|
-
response.message = message;
|
|
2217
|
-
delete response.Message;
|
|
2218
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2219
1665
|
};
|
|
2220
1666
|
const deserializeAws_restJson1UpdateSiteAddressCommand = async (output, context) => {
|
|
2221
1667
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2247,59 +1693,28 @@ const deserializeAws_restJson1UpdateSiteAddressCommandError = async (output, con
|
|
|
2247
1693
|
switch (errorCode) {
|
|
2248
1694
|
case "AccessDeniedException":
|
|
2249
1695
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
2250
|
-
|
|
2251
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2252
|
-
name: errorCode,
|
|
2253
|
-
$metadata: deserializeMetadata(output),
|
|
2254
|
-
};
|
|
2255
|
-
break;
|
|
1696
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2256
1697
|
case "ConflictException":
|
|
2257
1698
|
case "com.amazonaws.outposts#ConflictException":
|
|
2258
|
-
|
|
2259
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2260
|
-
name: errorCode,
|
|
2261
|
-
$metadata: deserializeMetadata(output),
|
|
2262
|
-
};
|
|
2263
|
-
break;
|
|
1699
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2264
1700
|
case "InternalServerException":
|
|
2265
1701
|
case "com.amazonaws.outposts#InternalServerException":
|
|
2266
|
-
|
|
2267
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2268
|
-
name: errorCode,
|
|
2269
|
-
$metadata: deserializeMetadata(output),
|
|
2270
|
-
};
|
|
2271
|
-
break;
|
|
1702
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2272
1703
|
case "NotFoundException":
|
|
2273
1704
|
case "com.amazonaws.outposts#NotFoundException":
|
|
2274
|
-
|
|
2275
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
2276
|
-
name: errorCode,
|
|
2277
|
-
$metadata: deserializeMetadata(output),
|
|
2278
|
-
};
|
|
2279
|
-
break;
|
|
1705
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2280
1706
|
case "ValidationException":
|
|
2281
1707
|
case "com.amazonaws.outposts#ValidationException":
|
|
2282
|
-
|
|
2283
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2284
|
-
name: errorCode,
|
|
2285
|
-
$metadata: deserializeMetadata(output),
|
|
2286
|
-
};
|
|
2287
|
-
break;
|
|
1708
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2288
1709
|
default:
|
|
2289
1710
|
const parsedBody = parsedOutput.body;
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
...parsedBody,
|
|
2293
|
-
name: `${errorCode}`,
|
|
2294
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1711
|
+
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1712
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2295
1713
|
$fault: "client",
|
|
2296
1714
|
$metadata: deserializeMetadata(output),
|
|
2297
|
-
};
|
|
1715
|
+
});
|
|
1716
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2298
1717
|
}
|
|
2299
|
-
const message = response.message || response.Message || errorCode;
|
|
2300
|
-
response.message = message;
|
|
2301
|
-
delete response.Message;
|
|
2302
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2303
1718
|
};
|
|
2304
1719
|
const deserializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommand = async (output, context) => {
|
|
2305
1720
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2327,82 +1742,43 @@ const deserializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommandError = asy
|
|
|
2327
1742
|
switch (errorCode) {
|
|
2328
1743
|
case "AccessDeniedException":
|
|
2329
1744
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
2330
|
-
|
|
2331
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2332
|
-
name: errorCode,
|
|
2333
|
-
$metadata: deserializeMetadata(output),
|
|
2334
|
-
};
|
|
2335
|
-
break;
|
|
1745
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2336
1746
|
case "ConflictException":
|
|
2337
1747
|
case "com.amazonaws.outposts#ConflictException":
|
|
2338
|
-
|
|
2339
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2340
|
-
name: errorCode,
|
|
2341
|
-
$metadata: deserializeMetadata(output),
|
|
2342
|
-
};
|
|
2343
|
-
break;
|
|
1748
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2344
1749
|
case "InternalServerException":
|
|
2345
1750
|
case "com.amazonaws.outposts#InternalServerException":
|
|
2346
|
-
|
|
2347
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2348
|
-
name: errorCode,
|
|
2349
|
-
$metadata: deserializeMetadata(output),
|
|
2350
|
-
};
|
|
2351
|
-
break;
|
|
1751
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2352
1752
|
case "NotFoundException":
|
|
2353
1753
|
case "com.amazonaws.outposts#NotFoundException":
|
|
2354
|
-
|
|
2355
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
2356
|
-
name: errorCode,
|
|
2357
|
-
$metadata: deserializeMetadata(output),
|
|
2358
|
-
};
|
|
2359
|
-
break;
|
|
1754
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2360
1755
|
case "ValidationException":
|
|
2361
1756
|
case "com.amazonaws.outposts#ValidationException":
|
|
2362
|
-
|
|
2363
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2364
|
-
name: errorCode,
|
|
2365
|
-
$metadata: deserializeMetadata(output),
|
|
2366
|
-
};
|
|
2367
|
-
break;
|
|
1757
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2368
1758
|
default:
|
|
2369
1759
|
const parsedBody = parsedOutput.body;
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
...parsedBody,
|
|
2373
|
-
name: `${errorCode}`,
|
|
2374
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1760
|
+
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1761
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2375
1762
|
$fault: "client",
|
|
2376
1763
|
$metadata: deserializeMetadata(output),
|
|
2377
|
-
};
|
|
1764
|
+
});
|
|
1765
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2378
1766
|
}
|
|
2379
|
-
const message = response.message || response.Message || errorCode;
|
|
2380
|
-
response.message = message;
|
|
2381
|
-
delete response.Message;
|
|
2382
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2383
1767
|
};
|
|
2384
1768
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
2385
|
-
const contents = {
|
|
2386
|
-
name: "AccessDeniedException",
|
|
2387
|
-
$fault: "client",
|
|
2388
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2389
|
-
Message: undefined,
|
|
2390
|
-
};
|
|
1769
|
+
const contents = {};
|
|
2391
1770
|
const data = parsedOutput.body;
|
|
2392
1771
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2393
1772
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
2394
1773
|
}
|
|
2395
|
-
|
|
1774
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
1775
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1776
|
+
...contents,
|
|
1777
|
+
});
|
|
1778
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2396
1779
|
};
|
|
2397
1780
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
2398
|
-
const contents = {
|
|
2399
|
-
name: "ConflictException",
|
|
2400
|
-
$fault: "client",
|
|
2401
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2402
|
-
Message: undefined,
|
|
2403
|
-
ResourceId: undefined,
|
|
2404
|
-
ResourceType: undefined,
|
|
2405
|
-
};
|
|
1781
|
+
const contents = {};
|
|
2406
1782
|
const data = parsedOutput.body;
|
|
2407
1783
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2408
1784
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
@@ -2413,59 +1789,59 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
2413
1789
|
if (data.ResourceType !== undefined && data.ResourceType !== null) {
|
|
2414
1790
|
contents.ResourceType = smithy_client_1.expectString(data.ResourceType);
|
|
2415
1791
|
}
|
|
2416
|
-
|
|
1792
|
+
const exception = new models_0_1.ConflictException({
|
|
1793
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1794
|
+
...contents,
|
|
1795
|
+
});
|
|
1796
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2417
1797
|
};
|
|
2418
1798
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
2419
|
-
const contents = {
|
|
2420
|
-
name: "InternalServerException",
|
|
2421
|
-
$fault: "server",
|
|
2422
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2423
|
-
Message: undefined,
|
|
2424
|
-
};
|
|
1799
|
+
const contents = {};
|
|
2425
1800
|
const data = parsedOutput.body;
|
|
2426
1801
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2427
1802
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
2428
1803
|
}
|
|
2429
|
-
|
|
1804
|
+
const exception = new models_0_1.InternalServerException({
|
|
1805
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1806
|
+
...contents,
|
|
1807
|
+
});
|
|
1808
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2430
1809
|
};
|
|
2431
1810
|
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2432
|
-
const contents = {
|
|
2433
|
-
name: "NotFoundException",
|
|
2434
|
-
$fault: "client",
|
|
2435
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2436
|
-
Message: undefined,
|
|
2437
|
-
};
|
|
1811
|
+
const contents = {};
|
|
2438
1812
|
const data = parsedOutput.body;
|
|
2439
1813
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2440
1814
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
2441
1815
|
}
|
|
2442
|
-
|
|
1816
|
+
const exception = new models_0_1.NotFoundException({
|
|
1817
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1818
|
+
...contents,
|
|
1819
|
+
});
|
|
1820
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2443
1821
|
};
|
|
2444
1822
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2445
|
-
const contents = {
|
|
2446
|
-
name: "ServiceQuotaExceededException",
|
|
2447
|
-
$fault: "client",
|
|
2448
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2449
|
-
Message: undefined,
|
|
2450
|
-
};
|
|
1823
|
+
const contents = {};
|
|
2451
1824
|
const data = parsedOutput.body;
|
|
2452
1825
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2453
1826
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
2454
1827
|
}
|
|
2455
|
-
|
|
1828
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1829
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1830
|
+
...contents,
|
|
1831
|
+
});
|
|
1832
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2456
1833
|
};
|
|
2457
1834
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
2458
|
-
const contents = {
|
|
2459
|
-
name: "ValidationException",
|
|
2460
|
-
$fault: "client",
|
|
2461
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2462
|
-
Message: undefined,
|
|
2463
|
-
};
|
|
1835
|
+
const contents = {};
|
|
2464
1836
|
const data = parsedOutput.body;
|
|
2465
1837
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2466
1838
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
2467
1839
|
}
|
|
2468
|
-
|
|
1840
|
+
const exception = new models_0_1.ValidationException({
|
|
1841
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1842
|
+
...contents,
|
|
1843
|
+
});
|
|
1844
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2469
1845
|
};
|
|
2470
1846
|
const serializeAws_restJson1Address = (input, context) => {
|
|
2471
1847
|
return {
|
|
@@ -2561,7 +1937,7 @@ const deserializeAws_restJson1CatalogItem = (output, context) => {
|
|
|
2561
1937
|
};
|
|
2562
1938
|
};
|
|
2563
1939
|
const deserializeAws_restJson1CatalogItemListDefinition = (output, context) => {
|
|
2564
|
-
|
|
1940
|
+
const retVal = (output || [])
|
|
2565
1941
|
.filter((e) => e != null)
|
|
2566
1942
|
.map((entry) => {
|
|
2567
1943
|
if (entry === null) {
|
|
@@ -2569,6 +1945,7 @@ const deserializeAws_restJson1CatalogItemListDefinition = (output, context) => {
|
|
|
2569
1945
|
}
|
|
2570
1946
|
return deserializeAws_restJson1CatalogItem(entry, context);
|
|
2571
1947
|
});
|
|
1948
|
+
return retVal;
|
|
2572
1949
|
};
|
|
2573
1950
|
const deserializeAws_restJson1EC2Capacity = (output, context) => {
|
|
2574
1951
|
return {
|
|
@@ -2578,7 +1955,7 @@ const deserializeAws_restJson1EC2Capacity = (output, context) => {
|
|
|
2578
1955
|
};
|
|
2579
1956
|
};
|
|
2580
1957
|
const deserializeAws_restJson1EC2CapacityListDefinition = (output, context) => {
|
|
2581
|
-
|
|
1958
|
+
const retVal = (output || [])
|
|
2582
1959
|
.filter((e) => e != null)
|
|
2583
1960
|
.map((entry) => {
|
|
2584
1961
|
if (entry === null) {
|
|
@@ -2586,6 +1963,7 @@ const deserializeAws_restJson1EC2CapacityListDefinition = (output, context) => {
|
|
|
2586
1963
|
}
|
|
2587
1964
|
return deserializeAws_restJson1EC2Capacity(entry, context);
|
|
2588
1965
|
});
|
|
1966
|
+
return retVal;
|
|
2589
1967
|
};
|
|
2590
1968
|
const deserializeAws_restJson1InstanceTypeItem = (output, context) => {
|
|
2591
1969
|
return {
|
|
@@ -2593,7 +1971,7 @@ const deserializeAws_restJson1InstanceTypeItem = (output, context) => {
|
|
|
2593
1971
|
};
|
|
2594
1972
|
};
|
|
2595
1973
|
const deserializeAws_restJson1InstanceTypeListDefinition = (output, context) => {
|
|
2596
|
-
|
|
1974
|
+
const retVal = (output || [])
|
|
2597
1975
|
.filter((e) => e != null)
|
|
2598
1976
|
.map((entry) => {
|
|
2599
1977
|
if (entry === null) {
|
|
@@ -2601,6 +1979,7 @@ const deserializeAws_restJson1InstanceTypeListDefinition = (output, context) =>
|
|
|
2601
1979
|
}
|
|
2602
1980
|
return deserializeAws_restJson1InstanceTypeItem(entry, context);
|
|
2603
1981
|
});
|
|
1982
|
+
return retVal;
|
|
2604
1983
|
};
|
|
2605
1984
|
const deserializeAws_restJson1LineItem = (output, context) => {
|
|
2606
1985
|
return {
|
|
@@ -2611,7 +1990,7 @@ const deserializeAws_restJson1LineItem = (output, context) => {
|
|
|
2611
1990
|
};
|
|
2612
1991
|
};
|
|
2613
1992
|
const deserializeAws_restJson1LineItemListDefinition = (output, context) => {
|
|
2614
|
-
|
|
1993
|
+
const retVal = (output || [])
|
|
2615
1994
|
.filter((e) => e != null)
|
|
2616
1995
|
.map((entry) => {
|
|
2617
1996
|
if (entry === null) {
|
|
@@ -2619,6 +1998,7 @@ const deserializeAws_restJson1LineItemListDefinition = (output, context) => {
|
|
|
2619
1998
|
}
|
|
2620
1999
|
return deserializeAws_restJson1LineItem(entry, context);
|
|
2621
2000
|
});
|
|
2001
|
+
return retVal;
|
|
2622
2002
|
};
|
|
2623
2003
|
const deserializeAws_restJson1LineItemStatusCounts = (output, context) => {
|
|
2624
2004
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -2666,7 +2046,7 @@ const deserializeAws_restJson1OrderSummary = (output, context) => {
|
|
|
2666
2046
|
};
|
|
2667
2047
|
};
|
|
2668
2048
|
const deserializeAws_restJson1OrderSummaryListDefinition = (output, context) => {
|
|
2669
|
-
|
|
2049
|
+
const retVal = (output || [])
|
|
2670
2050
|
.filter((e) => e != null)
|
|
2671
2051
|
.map((entry) => {
|
|
2672
2052
|
if (entry === null) {
|
|
@@ -2674,6 +2054,7 @@ const deserializeAws_restJson1OrderSummaryListDefinition = (output, context) =>
|
|
|
2674
2054
|
}
|
|
2675
2055
|
return deserializeAws_restJson1OrderSummary(entry, context);
|
|
2676
2056
|
});
|
|
2057
|
+
return retVal;
|
|
2677
2058
|
};
|
|
2678
2059
|
const deserializeAws_restJson1Outpost = (output, context) => {
|
|
2679
2060
|
return {
|
|
@@ -2694,7 +2075,7 @@ const deserializeAws_restJson1Outpost = (output, context) => {
|
|
|
2694
2075
|
};
|
|
2695
2076
|
};
|
|
2696
2077
|
const deserializeAws_restJson1outpostListDefinition = (output, context) => {
|
|
2697
|
-
|
|
2078
|
+
const retVal = (output || [])
|
|
2698
2079
|
.filter((e) => e != null)
|
|
2699
2080
|
.map((entry) => {
|
|
2700
2081
|
if (entry === null) {
|
|
@@ -2702,6 +2083,7 @@ const deserializeAws_restJson1outpostListDefinition = (output, context) => {
|
|
|
2702
2083
|
}
|
|
2703
2084
|
return deserializeAws_restJson1Outpost(entry, context);
|
|
2704
2085
|
});
|
|
2086
|
+
return retVal;
|
|
2705
2087
|
};
|
|
2706
2088
|
const deserializeAws_restJson1RackPhysicalProperties = (output, context) => {
|
|
2707
2089
|
return {
|
|
@@ -2736,7 +2118,7 @@ const deserializeAws_restJson1Site = (output, context) => {
|
|
|
2736
2118
|
};
|
|
2737
2119
|
};
|
|
2738
2120
|
const deserializeAws_restJson1siteListDefinition = (output, context) => {
|
|
2739
|
-
|
|
2121
|
+
const retVal = (output || [])
|
|
2740
2122
|
.filter((e) => e != null)
|
|
2741
2123
|
.map((entry) => {
|
|
2742
2124
|
if (entry === null) {
|
|
@@ -2744,9 +2126,10 @@ const deserializeAws_restJson1siteListDefinition = (output, context) => {
|
|
|
2744
2126
|
}
|
|
2745
2127
|
return deserializeAws_restJson1Site(entry, context);
|
|
2746
2128
|
});
|
|
2129
|
+
return retVal;
|
|
2747
2130
|
};
|
|
2748
2131
|
const deserializeAws_restJson1SupportedStorageList = (output, context) => {
|
|
2749
|
-
|
|
2132
|
+
const retVal = (output || [])
|
|
2750
2133
|
.filter((e) => e != null)
|
|
2751
2134
|
.map((entry) => {
|
|
2752
2135
|
if (entry === null) {
|
|
@@ -2754,9 +2137,10 @@ const deserializeAws_restJson1SupportedStorageList = (output, context) => {
|
|
|
2754
2137
|
}
|
|
2755
2138
|
return smithy_client_1.expectString(entry);
|
|
2756
2139
|
});
|
|
2140
|
+
return retVal;
|
|
2757
2141
|
};
|
|
2758
2142
|
const deserializeAws_restJson1SupportedUplinkGbpsListDefinition = (output, context) => {
|
|
2759
|
-
|
|
2143
|
+
const retVal = (output || [])
|
|
2760
2144
|
.filter((e) => e != null)
|
|
2761
2145
|
.map((entry) => {
|
|
2762
2146
|
if (entry === null) {
|
|
@@ -2764,6 +2148,7 @@ const deserializeAws_restJson1SupportedUplinkGbpsListDefinition = (output, conte
|
|
|
2764
2148
|
}
|
|
2765
2149
|
return smithy_client_1.expectInt32(entry);
|
|
2766
2150
|
});
|
|
2151
|
+
return retVal;
|
|
2767
2152
|
};
|
|
2768
2153
|
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
2769
2154
|
return Object.entries(output).reduce((acc, [key, value]) => {
|