@aws-sdk/client-outposts 3.118.0 → 3.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +209 -215
- package/dist-es/protocols/Aws_restJson1.js +163 -169
- package/package.json +26 -26
|
@@ -40,14 +40,12 @@ const serializeAws_restJson1CreateOrderCommand = async (input, context) => {
|
|
|
40
40
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/orders";
|
|
41
41
|
let body;
|
|
42
42
|
body = JSON.stringify({
|
|
43
|
-
...(input.LineItems
|
|
44
|
-
input.LineItems !== null && {
|
|
43
|
+
...(input.LineItems != null && {
|
|
45
44
|
LineItems: serializeAws_restJson1LineItemRequestListDefinition(input.LineItems, context),
|
|
46
45
|
}),
|
|
47
|
-
...(input.OutpostIdentifier
|
|
48
|
-
|
|
49
|
-
...(input.
|
|
50
|
-
...(input.PaymentTerm !== undefined && input.PaymentTerm !== null && { PaymentTerm: input.PaymentTerm }),
|
|
46
|
+
...(input.OutpostIdentifier != null && { OutpostIdentifier: input.OutpostIdentifier }),
|
|
47
|
+
...(input.PaymentOption != null && { PaymentOption: input.PaymentOption }),
|
|
48
|
+
...(input.PaymentTerm != null && { PaymentTerm: input.PaymentTerm }),
|
|
51
49
|
});
|
|
52
50
|
return new protocol_http_1.HttpRequest({
|
|
53
51
|
protocol,
|
|
@@ -68,16 +66,13 @@ const serializeAws_restJson1CreateOutpostCommand = async (input, context) => {
|
|
|
68
66
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/outposts";
|
|
69
67
|
let body;
|
|
70
68
|
body = JSON.stringify({
|
|
71
|
-
...(input.AvailabilityZone
|
|
72
|
-
|
|
73
|
-
...(input.
|
|
74
|
-
|
|
75
|
-
...(input.
|
|
76
|
-
...(input.
|
|
77
|
-
...(input.
|
|
78
|
-
...(input.SupportedHardwareType !== undefined &&
|
|
79
|
-
input.SupportedHardwareType !== null && { SupportedHardwareType: input.SupportedHardwareType }),
|
|
80
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
69
|
+
...(input.AvailabilityZone != null && { AvailabilityZone: input.AvailabilityZone }),
|
|
70
|
+
...(input.AvailabilityZoneId != null && { AvailabilityZoneId: input.AvailabilityZoneId }),
|
|
71
|
+
...(input.Description != null && { Description: input.Description }),
|
|
72
|
+
...(input.Name != null && { Name: input.Name }),
|
|
73
|
+
...(input.SiteId != null && { SiteId: input.SiteId }),
|
|
74
|
+
...(input.SupportedHardwareType != null && { SupportedHardwareType: input.SupportedHardwareType }),
|
|
75
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
81
76
|
});
|
|
82
77
|
return new protocol_http_1.HttpRequest({
|
|
83
78
|
protocol,
|
|
@@ -98,22 +93,19 @@ const serializeAws_restJson1CreateSiteCommand = async (input, context) => {
|
|
|
98
93
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/sites";
|
|
99
94
|
let body;
|
|
100
95
|
body = JSON.stringify({
|
|
101
|
-
...(input.Description
|
|
102
|
-
...(input.Name
|
|
103
|
-
...(input.Notes
|
|
104
|
-
...(input.OperatingAddress
|
|
105
|
-
input.OperatingAddress !== null && {
|
|
96
|
+
...(input.Description != null && { Description: input.Description }),
|
|
97
|
+
...(input.Name != null && { Name: input.Name }),
|
|
98
|
+
...(input.Notes != null && { Notes: input.Notes }),
|
|
99
|
+
...(input.OperatingAddress != null && {
|
|
106
100
|
OperatingAddress: serializeAws_restJson1Address(input.OperatingAddress, context),
|
|
107
101
|
}),
|
|
108
|
-
...(input.RackPhysicalProperties
|
|
109
|
-
input.RackPhysicalProperties !== null && {
|
|
102
|
+
...(input.RackPhysicalProperties != null && {
|
|
110
103
|
RackPhysicalProperties: serializeAws_restJson1RackPhysicalProperties(input.RackPhysicalProperties, context),
|
|
111
104
|
}),
|
|
112
|
-
...(input.ShippingAddress
|
|
113
|
-
input.ShippingAddress !== null && {
|
|
105
|
+
...(input.ShippingAddress != null && {
|
|
114
106
|
ShippingAddress: serializeAws_restJson1Address(input.ShippingAddress, context),
|
|
115
107
|
}),
|
|
116
|
-
...(input.Tags
|
|
108
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
117
109
|
});
|
|
118
110
|
return new protocol_http_1.HttpRequest({
|
|
119
111
|
protocol,
|
|
@@ -549,13 +541,12 @@ const serializeAws_restJson1StartConnectionCommand = async (input, context) => {
|
|
|
549
541
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/connections";
|
|
550
542
|
let body;
|
|
551
543
|
body = JSON.stringify({
|
|
552
|
-
...(input.AssetId
|
|
553
|
-
...(input.ClientPublicKey
|
|
554
|
-
|
|
555
|
-
...(input.
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
input.NetworkInterfaceDeviceIndex !== null && { NetworkInterfaceDeviceIndex: input.NetworkInterfaceDeviceIndex }),
|
|
544
|
+
...(input.AssetId != null && { AssetId: input.AssetId }),
|
|
545
|
+
...(input.ClientPublicKey != null && { ClientPublicKey: input.ClientPublicKey }),
|
|
546
|
+
...(input.DeviceSerialNumber != null && { DeviceSerialNumber: input.DeviceSerialNumber }),
|
|
547
|
+
...(input.NetworkInterfaceDeviceIndex != null && {
|
|
548
|
+
NetworkInterfaceDeviceIndex: input.NetworkInterfaceDeviceIndex,
|
|
549
|
+
}),
|
|
559
550
|
});
|
|
560
551
|
return new protocol_http_1.HttpRequest({
|
|
561
552
|
protocol,
|
|
@@ -586,7 +577,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
586
577
|
}
|
|
587
578
|
let body;
|
|
588
579
|
body = JSON.stringify({
|
|
589
|
-
...(input.Tags
|
|
580
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
590
581
|
});
|
|
591
582
|
return new protocol_http_1.HttpRequest({
|
|
592
583
|
protocol,
|
|
@@ -647,10 +638,9 @@ const serializeAws_restJson1UpdateOutpostCommand = async (input, context) => {
|
|
|
647
638
|
}
|
|
648
639
|
let body;
|
|
649
640
|
body = JSON.stringify({
|
|
650
|
-
...(input.Description
|
|
651
|
-
...(input.Name
|
|
652
|
-
...(input.SupportedHardwareType
|
|
653
|
-
input.SupportedHardwareType !== null && { SupportedHardwareType: input.SupportedHardwareType }),
|
|
641
|
+
...(input.Description != null && { Description: input.Description }),
|
|
642
|
+
...(input.Name != null && { Name: input.Name }),
|
|
643
|
+
...(input.SupportedHardwareType != null && { SupportedHardwareType: input.SupportedHardwareType }),
|
|
654
644
|
});
|
|
655
645
|
return new protocol_http_1.HttpRequest({
|
|
656
646
|
protocol,
|
|
@@ -681,9 +671,9 @@ const serializeAws_restJson1UpdateSiteCommand = async (input, context) => {
|
|
|
681
671
|
}
|
|
682
672
|
let body;
|
|
683
673
|
body = JSON.stringify({
|
|
684
|
-
...(input.Description
|
|
685
|
-
...(input.Name
|
|
686
|
-
...(input.Notes
|
|
674
|
+
...(input.Description != null && { Description: input.Description }),
|
|
675
|
+
...(input.Name != null && { Name: input.Name }),
|
|
676
|
+
...(input.Notes != null && { Notes: input.Notes }),
|
|
687
677
|
});
|
|
688
678
|
return new protocol_http_1.HttpRequest({
|
|
689
679
|
protocol,
|
|
@@ -714,9 +704,8 @@ const serializeAws_restJson1UpdateSiteAddressCommand = async (input, context) =>
|
|
|
714
704
|
}
|
|
715
705
|
let body;
|
|
716
706
|
body = JSON.stringify({
|
|
717
|
-
...(input.Address
|
|
718
|
-
|
|
719
|
-
...(input.AddressType !== undefined && input.AddressType !== null && { AddressType: input.AddressType }),
|
|
707
|
+
...(input.Address != null && { Address: serializeAws_restJson1Address(input.Address, context) }),
|
|
708
|
+
...(input.AddressType != null && { AddressType: input.AddressType }),
|
|
720
709
|
});
|
|
721
710
|
return new protocol_http_1.HttpRequest({
|
|
722
711
|
protocol,
|
|
@@ -747,19 +736,15 @@ const serializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommand = async (inp
|
|
|
747
736
|
}
|
|
748
737
|
let body;
|
|
749
738
|
body = JSON.stringify({
|
|
750
|
-
...(input.FiberOpticCableType
|
|
751
|
-
|
|
752
|
-
...(input.
|
|
753
|
-
|
|
754
|
-
...(input.
|
|
755
|
-
|
|
756
|
-
...(input.
|
|
757
|
-
|
|
758
|
-
...(input.
|
|
759
|
-
...(input.PowerFeedDrop !== undefined && input.PowerFeedDrop !== null && { PowerFeedDrop: input.PowerFeedDrop }),
|
|
760
|
-
...(input.PowerPhase !== undefined && input.PowerPhase !== null && { PowerPhase: input.PowerPhase }),
|
|
761
|
-
...(input.UplinkCount !== undefined && input.UplinkCount !== null && { UplinkCount: input.UplinkCount }),
|
|
762
|
-
...(input.UplinkGbps !== undefined && input.UplinkGbps !== null && { UplinkGbps: input.UplinkGbps }),
|
|
739
|
+
...(input.FiberOpticCableType != null && { FiberOpticCableType: input.FiberOpticCableType }),
|
|
740
|
+
...(input.MaximumSupportedWeightLbs != null && { MaximumSupportedWeightLbs: input.MaximumSupportedWeightLbs }),
|
|
741
|
+
...(input.OpticalStandard != null && { OpticalStandard: input.OpticalStandard }),
|
|
742
|
+
...(input.PowerConnector != null && { PowerConnector: input.PowerConnector }),
|
|
743
|
+
...(input.PowerDrawKva != null && { PowerDrawKva: input.PowerDrawKva }),
|
|
744
|
+
...(input.PowerFeedDrop != null && { PowerFeedDrop: input.PowerFeedDrop }),
|
|
745
|
+
...(input.PowerPhase != null && { PowerPhase: input.PowerPhase }),
|
|
746
|
+
...(input.UplinkCount != null && { UplinkCount: input.UplinkCount }),
|
|
747
|
+
...(input.UplinkGbps != null && { UplinkGbps: input.UplinkGbps }),
|
|
763
748
|
});
|
|
764
749
|
return new protocol_http_1.HttpRequest({
|
|
765
750
|
protocol,
|
|
@@ -789,8 +774,7 @@ const deserializeAws_restJson1CancelOrderCommandError = async (output, context)
|
|
|
789
774
|
body: await parseBody(output.body, context),
|
|
790
775
|
};
|
|
791
776
|
let response;
|
|
792
|
-
|
|
793
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
777
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
794
778
|
switch (errorCode) {
|
|
795
779
|
case "AccessDeniedException":
|
|
796
780
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
@@ -809,10 +793,12 @@ const deserializeAws_restJson1CancelOrderCommandError = async (output, context)
|
|
|
809
793
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
810
794
|
default:
|
|
811
795
|
const parsedBody = parsedOutput.body;
|
|
796
|
+
const $metadata = deserializeMetadata(output);
|
|
797
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
812
798
|
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
813
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
799
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
814
800
|
$fault: "client",
|
|
815
|
-
$metadata
|
|
801
|
+
$metadata,
|
|
816
802
|
});
|
|
817
803
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
818
804
|
}
|
|
@@ -838,8 +824,7 @@ const deserializeAws_restJson1CreateOrderCommandError = async (output, context)
|
|
|
838
824
|
body: await parseBody(output.body, context),
|
|
839
825
|
};
|
|
840
826
|
let response;
|
|
841
|
-
|
|
842
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
827
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
843
828
|
switch (errorCode) {
|
|
844
829
|
case "AccessDeniedException":
|
|
845
830
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
@@ -861,10 +846,12 @@ const deserializeAws_restJson1CreateOrderCommandError = async (output, context)
|
|
|
861
846
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
862
847
|
default:
|
|
863
848
|
const parsedBody = parsedOutput.body;
|
|
849
|
+
const $metadata = deserializeMetadata(output);
|
|
850
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
864
851
|
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
865
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
852
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
866
853
|
$fault: "client",
|
|
867
|
-
$metadata
|
|
854
|
+
$metadata,
|
|
868
855
|
});
|
|
869
856
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
870
857
|
}
|
|
@@ -890,8 +877,7 @@ const deserializeAws_restJson1CreateOutpostCommandError = async (output, context
|
|
|
890
877
|
body: await parseBody(output.body, context),
|
|
891
878
|
};
|
|
892
879
|
let response;
|
|
893
|
-
|
|
894
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
880
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
895
881
|
switch (errorCode) {
|
|
896
882
|
case "AccessDeniedException":
|
|
897
883
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
@@ -913,10 +899,12 @@ const deserializeAws_restJson1CreateOutpostCommandError = async (output, context
|
|
|
913
899
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
914
900
|
default:
|
|
915
901
|
const parsedBody = parsedOutput.body;
|
|
902
|
+
const $metadata = deserializeMetadata(output);
|
|
903
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
916
904
|
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
917
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
905
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
918
906
|
$fault: "client",
|
|
919
|
-
$metadata
|
|
907
|
+
$metadata,
|
|
920
908
|
});
|
|
921
909
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
922
910
|
}
|
|
@@ -942,8 +930,7 @@ const deserializeAws_restJson1CreateSiteCommandError = async (output, context) =
|
|
|
942
930
|
body: await parseBody(output.body, context),
|
|
943
931
|
};
|
|
944
932
|
let response;
|
|
945
|
-
|
|
946
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
933
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
947
934
|
switch (errorCode) {
|
|
948
935
|
case "AccessDeniedException":
|
|
949
936
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
@@ -962,10 +949,12 @@ const deserializeAws_restJson1CreateSiteCommandError = async (output, context) =
|
|
|
962
949
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
963
950
|
default:
|
|
964
951
|
const parsedBody = parsedOutput.body;
|
|
952
|
+
const $metadata = deserializeMetadata(output);
|
|
953
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
965
954
|
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
966
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
955
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
967
956
|
$fault: "client",
|
|
968
|
-
$metadata
|
|
957
|
+
$metadata,
|
|
969
958
|
});
|
|
970
959
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
971
960
|
}
|
|
@@ -987,8 +976,7 @@ const deserializeAws_restJson1DeleteOutpostCommandError = async (output, context
|
|
|
987
976
|
body: await parseBody(output.body, context),
|
|
988
977
|
};
|
|
989
978
|
let response;
|
|
990
|
-
|
|
991
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
979
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
992
980
|
switch (errorCode) {
|
|
993
981
|
case "AccessDeniedException":
|
|
994
982
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
@@ -1007,10 +995,12 @@ const deserializeAws_restJson1DeleteOutpostCommandError = async (output, context
|
|
|
1007
995
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1008
996
|
default:
|
|
1009
997
|
const parsedBody = parsedOutput.body;
|
|
998
|
+
const $metadata = deserializeMetadata(output);
|
|
999
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1010
1000
|
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1011
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1001
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1012
1002
|
$fault: "client",
|
|
1013
|
-
$metadata
|
|
1003
|
+
$metadata,
|
|
1014
1004
|
});
|
|
1015
1005
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1016
1006
|
}
|
|
@@ -1032,8 +1022,7 @@ const deserializeAws_restJson1DeleteSiteCommandError = async (output, context) =
|
|
|
1032
1022
|
body: await parseBody(output.body, context),
|
|
1033
1023
|
};
|
|
1034
1024
|
let response;
|
|
1035
|
-
|
|
1036
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1025
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1037
1026
|
switch (errorCode) {
|
|
1038
1027
|
case "AccessDeniedException":
|
|
1039
1028
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
@@ -1052,10 +1041,12 @@ const deserializeAws_restJson1DeleteSiteCommandError = async (output, context) =
|
|
|
1052
1041
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1053
1042
|
default:
|
|
1054
1043
|
const parsedBody = parsedOutput.body;
|
|
1044
|
+
const $metadata = deserializeMetadata(output);
|
|
1045
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1055
1046
|
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1056
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1047
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1057
1048
|
$fault: "client",
|
|
1058
|
-
$metadata
|
|
1049
|
+
$metadata,
|
|
1059
1050
|
});
|
|
1060
1051
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1061
1052
|
}
|
|
@@ -1081,8 +1072,7 @@ const deserializeAws_restJson1GetCatalogItemCommandError = async (output, contex
|
|
|
1081
1072
|
body: await parseBody(output.body, context),
|
|
1082
1073
|
};
|
|
1083
1074
|
let response;
|
|
1084
|
-
|
|
1085
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1075
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1086
1076
|
switch (errorCode) {
|
|
1087
1077
|
case "InternalServerException":
|
|
1088
1078
|
case "com.amazonaws.outposts#InternalServerException":
|
|
@@ -1095,10 +1085,12 @@ const deserializeAws_restJson1GetCatalogItemCommandError = async (output, contex
|
|
|
1095
1085
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1096
1086
|
default:
|
|
1097
1087
|
const parsedBody = parsedOutput.body;
|
|
1088
|
+
const $metadata = deserializeMetadata(output);
|
|
1089
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1098
1090
|
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1099
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1091
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1100
1092
|
$fault: "client",
|
|
1101
|
-
$metadata
|
|
1093
|
+
$metadata,
|
|
1102
1094
|
});
|
|
1103
1095
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1104
1096
|
}
|
|
@@ -1128,8 +1120,7 @@ const deserializeAws_restJson1GetConnectionCommandError = async (output, context
|
|
|
1128
1120
|
body: await parseBody(output.body, context),
|
|
1129
1121
|
};
|
|
1130
1122
|
let response;
|
|
1131
|
-
|
|
1132
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1123
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1133
1124
|
switch (errorCode) {
|
|
1134
1125
|
case "AccessDeniedException":
|
|
1135
1126
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
@@ -1145,10 +1136,12 @@ const deserializeAws_restJson1GetConnectionCommandError = async (output, context
|
|
|
1145
1136
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1146
1137
|
default:
|
|
1147
1138
|
const parsedBody = parsedOutput.body;
|
|
1139
|
+
const $metadata = deserializeMetadata(output);
|
|
1140
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1148
1141
|
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1149
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1142
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1150
1143
|
$fault: "client",
|
|
1151
|
-
$metadata
|
|
1144
|
+
$metadata,
|
|
1152
1145
|
});
|
|
1153
1146
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1154
1147
|
}
|
|
@@ -1174,8 +1167,7 @@ const deserializeAws_restJson1GetOrderCommandError = async (output, context) =>
|
|
|
1174
1167
|
body: await parseBody(output.body, context),
|
|
1175
1168
|
};
|
|
1176
1169
|
let response;
|
|
1177
|
-
|
|
1178
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1170
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1179
1171
|
switch (errorCode) {
|
|
1180
1172
|
case "InternalServerException":
|
|
1181
1173
|
case "com.amazonaws.outposts#InternalServerException":
|
|
@@ -1188,10 +1180,12 @@ const deserializeAws_restJson1GetOrderCommandError = async (output, context) =>
|
|
|
1188
1180
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1189
1181
|
default:
|
|
1190
1182
|
const parsedBody = parsedOutput.body;
|
|
1183
|
+
const $metadata = deserializeMetadata(output);
|
|
1184
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1191
1185
|
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1192
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1186
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1193
1187
|
$fault: "client",
|
|
1194
|
-
$metadata
|
|
1188
|
+
$metadata,
|
|
1195
1189
|
});
|
|
1196
1190
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1197
1191
|
}
|
|
@@ -1217,8 +1211,7 @@ const deserializeAws_restJson1GetOutpostCommandError = async (output, context) =
|
|
|
1217
1211
|
body: await parseBody(output.body, context),
|
|
1218
1212
|
};
|
|
1219
1213
|
let response;
|
|
1220
|
-
|
|
1221
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1214
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1222
1215
|
switch (errorCode) {
|
|
1223
1216
|
case "AccessDeniedException":
|
|
1224
1217
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
@@ -1234,10 +1227,12 @@ const deserializeAws_restJson1GetOutpostCommandError = async (output, context) =
|
|
|
1234
1227
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1235
1228
|
default:
|
|
1236
1229
|
const parsedBody = parsedOutput.body;
|
|
1230
|
+
const $metadata = deserializeMetadata(output);
|
|
1231
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1237
1232
|
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1238
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1233
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1239
1234
|
$fault: "client",
|
|
1240
|
-
$metadata
|
|
1235
|
+
$metadata,
|
|
1241
1236
|
});
|
|
1242
1237
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1243
1238
|
}
|
|
@@ -1275,8 +1270,7 @@ const deserializeAws_restJson1GetOutpostInstanceTypesCommandError = async (outpu
|
|
|
1275
1270
|
body: await parseBody(output.body, context),
|
|
1276
1271
|
};
|
|
1277
1272
|
let response;
|
|
1278
|
-
|
|
1279
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1273
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1280
1274
|
switch (errorCode) {
|
|
1281
1275
|
case "AccessDeniedException":
|
|
1282
1276
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
@@ -1292,10 +1286,12 @@ const deserializeAws_restJson1GetOutpostInstanceTypesCommandError = async (outpu
|
|
|
1292
1286
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1293
1287
|
default:
|
|
1294
1288
|
const parsedBody = parsedOutput.body;
|
|
1289
|
+
const $metadata = deserializeMetadata(output);
|
|
1290
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1295
1291
|
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1296
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1292
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1297
1293
|
$fault: "client",
|
|
1298
|
-
$metadata
|
|
1294
|
+
$metadata,
|
|
1299
1295
|
});
|
|
1300
1296
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1301
1297
|
}
|
|
@@ -1321,8 +1317,7 @@ const deserializeAws_restJson1GetSiteCommandError = async (output, context) => {
|
|
|
1321
1317
|
body: await parseBody(output.body, context),
|
|
1322
1318
|
};
|
|
1323
1319
|
let response;
|
|
1324
|
-
|
|
1325
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1320
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1326
1321
|
switch (errorCode) {
|
|
1327
1322
|
case "AccessDeniedException":
|
|
1328
1323
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
@@ -1338,10 +1333,12 @@ const deserializeAws_restJson1GetSiteCommandError = async (output, context) => {
|
|
|
1338
1333
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1339
1334
|
default:
|
|
1340
1335
|
const parsedBody = parsedOutput.body;
|
|
1336
|
+
const $metadata = deserializeMetadata(output);
|
|
1337
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1341
1338
|
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1342
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1339
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1343
1340
|
$fault: "client",
|
|
1344
|
-
$metadata
|
|
1341
|
+
$metadata,
|
|
1345
1342
|
});
|
|
1346
1343
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1347
1344
|
}
|
|
@@ -1375,8 +1372,7 @@ const deserializeAws_restJson1GetSiteAddressCommandError = async (output, contex
|
|
|
1375
1372
|
body: await parseBody(output.body, context),
|
|
1376
1373
|
};
|
|
1377
1374
|
let response;
|
|
1378
|
-
|
|
1379
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1375
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1380
1376
|
switch (errorCode) {
|
|
1381
1377
|
case "AccessDeniedException":
|
|
1382
1378
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
@@ -1392,10 +1388,12 @@ const deserializeAws_restJson1GetSiteAddressCommandError = async (output, contex
|
|
|
1392
1388
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1393
1389
|
default:
|
|
1394
1390
|
const parsedBody = parsedOutput.body;
|
|
1391
|
+
const $metadata = deserializeMetadata(output);
|
|
1392
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1395
1393
|
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1396
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1394
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1397
1395
|
$fault: "client",
|
|
1398
|
-
$metadata
|
|
1396
|
+
$metadata,
|
|
1399
1397
|
});
|
|
1400
1398
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1401
1399
|
}
|
|
@@ -1425,8 +1423,7 @@ const deserializeAws_restJson1ListAssetsCommandError = async (output, context) =
|
|
|
1425
1423
|
body: await parseBody(output.body, context),
|
|
1426
1424
|
};
|
|
1427
1425
|
let response;
|
|
1428
|
-
|
|
1429
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1426
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1430
1427
|
switch (errorCode) {
|
|
1431
1428
|
case "AccessDeniedException":
|
|
1432
1429
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
@@ -1442,10 +1439,12 @@ const deserializeAws_restJson1ListAssetsCommandError = async (output, context) =
|
|
|
1442
1439
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1443
1440
|
default:
|
|
1444
1441
|
const parsedBody = parsedOutput.body;
|
|
1442
|
+
const $metadata = deserializeMetadata(output);
|
|
1443
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1445
1444
|
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1446
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1445
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1447
1446
|
$fault: "client",
|
|
1448
|
-
$metadata
|
|
1447
|
+
$metadata,
|
|
1449
1448
|
});
|
|
1450
1449
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1451
1450
|
}
|
|
@@ -1475,8 +1474,7 @@ const deserializeAws_restJson1ListCatalogItemsCommandError = async (output, cont
|
|
|
1475
1474
|
body: await parseBody(output.body, context),
|
|
1476
1475
|
};
|
|
1477
1476
|
let response;
|
|
1478
|
-
|
|
1479
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1477
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1480
1478
|
switch (errorCode) {
|
|
1481
1479
|
case "InternalServerException":
|
|
1482
1480
|
case "com.amazonaws.outposts#InternalServerException":
|
|
@@ -1489,10 +1487,12 @@ const deserializeAws_restJson1ListCatalogItemsCommandError = async (output, cont
|
|
|
1489
1487
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1490
1488
|
default:
|
|
1491
1489
|
const parsedBody = parsedOutput.body;
|
|
1490
|
+
const $metadata = deserializeMetadata(output);
|
|
1491
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1492
1492
|
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1493
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1493
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1494
1494
|
$fault: "client",
|
|
1495
|
-
$metadata
|
|
1495
|
+
$metadata,
|
|
1496
1496
|
});
|
|
1497
1497
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1498
1498
|
}
|
|
@@ -1522,8 +1522,7 @@ const deserializeAws_restJson1ListOrdersCommandError = async (output, context) =
|
|
|
1522
1522
|
body: await parseBody(output.body, context),
|
|
1523
1523
|
};
|
|
1524
1524
|
let response;
|
|
1525
|
-
|
|
1526
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1525
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1527
1526
|
switch (errorCode) {
|
|
1528
1527
|
case "AccessDeniedException":
|
|
1529
1528
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
@@ -1539,10 +1538,12 @@ const deserializeAws_restJson1ListOrdersCommandError = async (output, context) =
|
|
|
1539
1538
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1540
1539
|
default:
|
|
1541
1540
|
const parsedBody = parsedOutput.body;
|
|
1541
|
+
const $metadata = deserializeMetadata(output);
|
|
1542
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1542
1543
|
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1543
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1544
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1544
1545
|
$fault: "client",
|
|
1545
|
-
$metadata
|
|
1546
|
+
$metadata,
|
|
1546
1547
|
});
|
|
1547
1548
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1548
1549
|
}
|
|
@@ -1572,8 +1573,7 @@ const deserializeAws_restJson1ListOutpostsCommandError = async (output, context)
|
|
|
1572
1573
|
body: await parseBody(output.body, context),
|
|
1573
1574
|
};
|
|
1574
1575
|
let response;
|
|
1575
|
-
|
|
1576
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1576
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1577
1577
|
switch (errorCode) {
|
|
1578
1578
|
case "AccessDeniedException":
|
|
1579
1579
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
@@ -1586,10 +1586,12 @@ const deserializeAws_restJson1ListOutpostsCommandError = async (output, context)
|
|
|
1586
1586
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1587
1587
|
default:
|
|
1588
1588
|
const parsedBody = parsedOutput.body;
|
|
1589
|
+
const $metadata = deserializeMetadata(output);
|
|
1590
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1589
1591
|
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1590
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1592
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1591
1593
|
$fault: "client",
|
|
1592
|
-
$metadata
|
|
1594
|
+
$metadata,
|
|
1593
1595
|
});
|
|
1594
1596
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1595
1597
|
}
|
|
@@ -1619,8 +1621,7 @@ const deserializeAws_restJson1ListSitesCommandError = async (output, context) =>
|
|
|
1619
1621
|
body: await parseBody(output.body, context),
|
|
1620
1622
|
};
|
|
1621
1623
|
let response;
|
|
1622
|
-
|
|
1623
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1624
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1624
1625
|
switch (errorCode) {
|
|
1625
1626
|
case "AccessDeniedException":
|
|
1626
1627
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
@@ -1633,10 +1634,12 @@ const deserializeAws_restJson1ListSitesCommandError = async (output, context) =>
|
|
|
1633
1634
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1634
1635
|
default:
|
|
1635
1636
|
const parsedBody = parsedOutput.body;
|
|
1637
|
+
const $metadata = deserializeMetadata(output);
|
|
1638
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1636
1639
|
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1637
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1640
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1638
1641
|
$fault: "client",
|
|
1639
|
-
$metadata
|
|
1642
|
+
$metadata,
|
|
1640
1643
|
});
|
|
1641
1644
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1642
1645
|
}
|
|
@@ -1662,8 +1665,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1662
1665
|
body: await parseBody(output.body, context),
|
|
1663
1666
|
};
|
|
1664
1667
|
let response;
|
|
1665
|
-
|
|
1666
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1668
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1667
1669
|
switch (errorCode) {
|
|
1668
1670
|
case "InternalServerException":
|
|
1669
1671
|
case "com.amazonaws.outposts#InternalServerException":
|
|
@@ -1676,10 +1678,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1676
1678
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1677
1679
|
default:
|
|
1678
1680
|
const parsedBody = parsedOutput.body;
|
|
1681
|
+
const $metadata = deserializeMetadata(output);
|
|
1682
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1679
1683
|
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1680
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1684
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1681
1685
|
$fault: "client",
|
|
1682
|
-
$metadata
|
|
1686
|
+
$metadata,
|
|
1683
1687
|
});
|
|
1684
1688
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1685
1689
|
}
|
|
@@ -1709,8 +1713,7 @@ const deserializeAws_restJson1StartConnectionCommandError = async (output, conte
|
|
|
1709
1713
|
body: await parseBody(output.body, context),
|
|
1710
1714
|
};
|
|
1711
1715
|
let response;
|
|
1712
|
-
|
|
1713
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1716
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1714
1717
|
switch (errorCode) {
|
|
1715
1718
|
case "AccessDeniedException":
|
|
1716
1719
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
@@ -1726,10 +1729,12 @@ const deserializeAws_restJson1StartConnectionCommandError = async (output, conte
|
|
|
1726
1729
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1727
1730
|
default:
|
|
1728
1731
|
const parsedBody = parsedOutput.body;
|
|
1732
|
+
const $metadata = deserializeMetadata(output);
|
|
1733
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1729
1734
|
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1730
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1735
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1731
1736
|
$fault: "client",
|
|
1732
|
-
$metadata
|
|
1737
|
+
$metadata,
|
|
1733
1738
|
});
|
|
1734
1739
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1735
1740
|
}
|
|
@@ -1751,8 +1756,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1751
1756
|
body: await parseBody(output.body, context),
|
|
1752
1757
|
};
|
|
1753
1758
|
let response;
|
|
1754
|
-
|
|
1755
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1759
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1756
1760
|
switch (errorCode) {
|
|
1757
1761
|
case "InternalServerException":
|
|
1758
1762
|
case "com.amazonaws.outposts#InternalServerException":
|
|
@@ -1765,10 +1769,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1765
1769
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1766
1770
|
default:
|
|
1767
1771
|
const parsedBody = parsedOutput.body;
|
|
1772
|
+
const $metadata = deserializeMetadata(output);
|
|
1773
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1768
1774
|
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1769
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1775
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1770
1776
|
$fault: "client",
|
|
1771
|
-
$metadata
|
|
1777
|
+
$metadata,
|
|
1772
1778
|
});
|
|
1773
1779
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1774
1780
|
}
|
|
@@ -1790,8 +1796,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1790
1796
|
body: await parseBody(output.body, context),
|
|
1791
1797
|
};
|
|
1792
1798
|
let response;
|
|
1793
|
-
|
|
1794
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1799
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1795
1800
|
switch (errorCode) {
|
|
1796
1801
|
case "InternalServerException":
|
|
1797
1802
|
case "com.amazonaws.outposts#InternalServerException":
|
|
@@ -1804,10 +1809,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1804
1809
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1805
1810
|
default:
|
|
1806
1811
|
const parsedBody = parsedOutput.body;
|
|
1812
|
+
const $metadata = deserializeMetadata(output);
|
|
1813
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1807
1814
|
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1808
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1815
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1809
1816
|
$fault: "client",
|
|
1810
|
-
$metadata
|
|
1817
|
+
$metadata,
|
|
1811
1818
|
});
|
|
1812
1819
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1813
1820
|
}
|
|
@@ -1833,8 +1840,7 @@ const deserializeAws_restJson1UpdateOutpostCommandError = async (output, context
|
|
|
1833
1840
|
body: await parseBody(output.body, context),
|
|
1834
1841
|
};
|
|
1835
1842
|
let response;
|
|
1836
|
-
|
|
1837
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1843
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1838
1844
|
switch (errorCode) {
|
|
1839
1845
|
case "AccessDeniedException":
|
|
1840
1846
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
@@ -1853,10 +1859,12 @@ const deserializeAws_restJson1UpdateOutpostCommandError = async (output, context
|
|
|
1853
1859
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1854
1860
|
default:
|
|
1855
1861
|
const parsedBody = parsedOutput.body;
|
|
1862
|
+
const $metadata = deserializeMetadata(output);
|
|
1863
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1856
1864
|
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1857
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1865
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1858
1866
|
$fault: "client",
|
|
1859
|
-
$metadata
|
|
1867
|
+
$metadata,
|
|
1860
1868
|
});
|
|
1861
1869
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1862
1870
|
}
|
|
@@ -1882,8 +1890,7 @@ const deserializeAws_restJson1UpdateSiteCommandError = async (output, context) =
|
|
|
1882
1890
|
body: await parseBody(output.body, context),
|
|
1883
1891
|
};
|
|
1884
1892
|
let response;
|
|
1885
|
-
|
|
1886
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1893
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1887
1894
|
switch (errorCode) {
|
|
1888
1895
|
case "AccessDeniedException":
|
|
1889
1896
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
@@ -1902,10 +1909,12 @@ const deserializeAws_restJson1UpdateSiteCommandError = async (output, context) =
|
|
|
1902
1909
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1903
1910
|
default:
|
|
1904
1911
|
const parsedBody = parsedOutput.body;
|
|
1912
|
+
const $metadata = deserializeMetadata(output);
|
|
1913
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1905
1914
|
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1906
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1915
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1907
1916
|
$fault: "client",
|
|
1908
|
-
$metadata
|
|
1917
|
+
$metadata,
|
|
1909
1918
|
});
|
|
1910
1919
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1911
1920
|
}
|
|
@@ -1935,8 +1944,7 @@ const deserializeAws_restJson1UpdateSiteAddressCommandError = async (output, con
|
|
|
1935
1944
|
body: await parseBody(output.body, context),
|
|
1936
1945
|
};
|
|
1937
1946
|
let response;
|
|
1938
|
-
|
|
1939
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1947
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1940
1948
|
switch (errorCode) {
|
|
1941
1949
|
case "AccessDeniedException":
|
|
1942
1950
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
@@ -1955,10 +1963,12 @@ const deserializeAws_restJson1UpdateSiteAddressCommandError = async (output, con
|
|
|
1955
1963
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1956
1964
|
default:
|
|
1957
1965
|
const parsedBody = parsedOutput.body;
|
|
1966
|
+
const $metadata = deserializeMetadata(output);
|
|
1967
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1958
1968
|
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
1959
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1969
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1960
1970
|
$fault: "client",
|
|
1961
|
-
$metadata
|
|
1971
|
+
$metadata,
|
|
1962
1972
|
});
|
|
1963
1973
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1964
1974
|
}
|
|
@@ -1984,8 +1994,7 @@ const deserializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommandError = asy
|
|
|
1984
1994
|
body: await parseBody(output.body, context),
|
|
1985
1995
|
};
|
|
1986
1996
|
let response;
|
|
1987
|
-
|
|
1988
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1997
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1989
1998
|
switch (errorCode) {
|
|
1990
1999
|
case "AccessDeniedException":
|
|
1991
2000
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
@@ -2004,10 +2013,12 @@ const deserializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommandError = asy
|
|
|
2004
2013
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2005
2014
|
default:
|
|
2006
2015
|
const parsedBody = parsedOutput.body;
|
|
2016
|
+
const $metadata = deserializeMetadata(output);
|
|
2017
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2007
2018
|
response = new OutpostsServiceException_1.OutpostsServiceException({
|
|
2008
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2019
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2009
2020
|
$fault: "client",
|
|
2010
|
-
$metadata
|
|
2021
|
+
$metadata,
|
|
2011
2022
|
});
|
|
2012
2023
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2013
2024
|
}
|
|
@@ -2092,25 +2103,23 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2092
2103
|
};
|
|
2093
2104
|
const serializeAws_restJson1Address = (input, context) => {
|
|
2094
2105
|
return {
|
|
2095
|
-
...(input.AddressLine1
|
|
2096
|
-
...(input.AddressLine2
|
|
2097
|
-
...(input.AddressLine3
|
|
2098
|
-
...(input.City
|
|
2099
|
-
...(input.ContactName
|
|
2100
|
-
...(input.ContactPhoneNumber
|
|
2101
|
-
|
|
2102
|
-
...(input.
|
|
2103
|
-
...(input.
|
|
2104
|
-
|
|
2105
|
-
...(input.
|
|
2106
|
-
...(input.PostalCode !== undefined && input.PostalCode !== null && { PostalCode: input.PostalCode }),
|
|
2107
|
-
...(input.StateOrRegion !== undefined && input.StateOrRegion !== null && { StateOrRegion: input.StateOrRegion }),
|
|
2106
|
+
...(input.AddressLine1 != null && { AddressLine1: input.AddressLine1 }),
|
|
2107
|
+
...(input.AddressLine2 != null && { AddressLine2: input.AddressLine2 }),
|
|
2108
|
+
...(input.AddressLine3 != null && { AddressLine3: input.AddressLine3 }),
|
|
2109
|
+
...(input.City != null && { City: input.City }),
|
|
2110
|
+
...(input.ContactName != null && { ContactName: input.ContactName }),
|
|
2111
|
+
...(input.ContactPhoneNumber != null && { ContactPhoneNumber: input.ContactPhoneNumber }),
|
|
2112
|
+
...(input.CountryCode != null && { CountryCode: input.CountryCode }),
|
|
2113
|
+
...(input.DistrictOrCounty != null && { DistrictOrCounty: input.DistrictOrCounty }),
|
|
2114
|
+
...(input.Municipality != null && { Municipality: input.Municipality }),
|
|
2115
|
+
...(input.PostalCode != null && { PostalCode: input.PostalCode }),
|
|
2116
|
+
...(input.StateOrRegion != null && { StateOrRegion: input.StateOrRegion }),
|
|
2108
2117
|
};
|
|
2109
2118
|
};
|
|
2110
2119
|
const serializeAws_restJson1LineItemRequest = (input, context) => {
|
|
2111
2120
|
return {
|
|
2112
|
-
...(input.CatalogItemId
|
|
2113
|
-
...(input.Quantity
|
|
2121
|
+
...(input.CatalogItemId != null && { CatalogItemId: input.CatalogItemId }),
|
|
2122
|
+
...(input.Quantity != null && { Quantity: input.Quantity }),
|
|
2114
2123
|
};
|
|
2115
2124
|
};
|
|
2116
2125
|
const serializeAws_restJson1LineItemRequestListDefinition = (input, context) => {
|
|
@@ -2125,19 +2134,15 @@ const serializeAws_restJson1LineItemRequestListDefinition = (input, context) =>
|
|
|
2125
2134
|
};
|
|
2126
2135
|
const serializeAws_restJson1RackPhysicalProperties = (input, context) => {
|
|
2127
2136
|
return {
|
|
2128
|
-
...(input.FiberOpticCableType
|
|
2129
|
-
|
|
2130
|
-
...(input.
|
|
2131
|
-
|
|
2132
|
-
...(input.
|
|
2133
|
-
|
|
2134
|
-
...(input.
|
|
2135
|
-
|
|
2136
|
-
...(input.
|
|
2137
|
-
...(input.PowerFeedDrop !== undefined && input.PowerFeedDrop !== null && { PowerFeedDrop: input.PowerFeedDrop }),
|
|
2138
|
-
...(input.PowerPhase !== undefined && input.PowerPhase !== null && { PowerPhase: input.PowerPhase }),
|
|
2139
|
-
...(input.UplinkCount !== undefined && input.UplinkCount !== null && { UplinkCount: input.UplinkCount }),
|
|
2140
|
-
...(input.UplinkGbps !== undefined && input.UplinkGbps !== null && { UplinkGbps: input.UplinkGbps }),
|
|
2137
|
+
...(input.FiberOpticCableType != null && { FiberOpticCableType: input.FiberOpticCableType }),
|
|
2138
|
+
...(input.MaximumSupportedWeightLbs != null && { MaximumSupportedWeightLbs: input.MaximumSupportedWeightLbs }),
|
|
2139
|
+
...(input.OpticalStandard != null && { OpticalStandard: input.OpticalStandard }),
|
|
2140
|
+
...(input.PowerConnector != null && { PowerConnector: input.PowerConnector }),
|
|
2141
|
+
...(input.PowerDrawKva != null && { PowerDrawKva: input.PowerDrawKva }),
|
|
2142
|
+
...(input.PowerFeedDrop != null && { PowerFeedDrop: input.PowerFeedDrop }),
|
|
2143
|
+
...(input.PowerPhase != null && { PowerPhase: input.PowerPhase }),
|
|
2144
|
+
...(input.UplinkCount != null && { UplinkCount: input.UplinkCount }),
|
|
2145
|
+
...(input.UplinkGbps != null && { UplinkGbps: input.UplinkGbps }),
|
|
2141
2146
|
};
|
|
2142
2147
|
};
|
|
2143
2148
|
const serializeAws_restJson1TagMap = (input, context) => {
|
|
@@ -2169,11 +2174,9 @@ const deserializeAws_restJson1Address = (output, context) => {
|
|
|
2169
2174
|
const deserializeAws_restJson1AssetInfo = (output, context) => {
|
|
2170
2175
|
return {
|
|
2171
2176
|
AssetId: (0, smithy_client_1.expectString)(output.AssetId),
|
|
2172
|
-
AssetLocation: output.AssetLocation
|
|
2173
|
-
? deserializeAws_restJson1AssetLocation(output.AssetLocation, context)
|
|
2174
|
-
: undefined,
|
|
2177
|
+
AssetLocation: output.AssetLocation != null ? deserializeAws_restJson1AssetLocation(output.AssetLocation, context) : undefined,
|
|
2175
2178
|
AssetType: (0, smithy_client_1.expectString)(output.AssetType),
|
|
2176
|
-
ComputeAttributes: output.ComputeAttributes
|
|
2179
|
+
ComputeAttributes: output.ComputeAttributes != null
|
|
2177
2180
|
? deserializeAws_restJson1ComputeAttributes(output.ComputeAttributes, context)
|
|
2178
2181
|
: undefined,
|
|
2179
2182
|
RackId: (0, smithy_client_1.expectString)(output.RackId),
|
|
@@ -2198,15 +2201,15 @@ const deserializeAws_restJson1AssetLocation = (output, context) => {
|
|
|
2198
2201
|
const deserializeAws_restJson1CatalogItem = (output, context) => {
|
|
2199
2202
|
return {
|
|
2200
2203
|
CatalogItemId: (0, smithy_client_1.expectString)(output.CatalogItemId),
|
|
2201
|
-
EC2Capacities: output.EC2Capacities
|
|
2204
|
+
EC2Capacities: output.EC2Capacities != null
|
|
2202
2205
|
? deserializeAws_restJson1EC2CapacityListDefinition(output.EC2Capacities, context)
|
|
2203
2206
|
: undefined,
|
|
2204
2207
|
ItemStatus: (0, smithy_client_1.expectString)(output.ItemStatus),
|
|
2205
2208
|
PowerKva: (0, smithy_client_1.limitedParseFloat32)(output.PowerKva),
|
|
2206
|
-
SupportedStorage: output.SupportedStorage
|
|
2209
|
+
SupportedStorage: output.SupportedStorage != null
|
|
2207
2210
|
? deserializeAws_restJson1SupportedStorageList(output.SupportedStorage, context)
|
|
2208
2211
|
: undefined,
|
|
2209
|
-
SupportedUplinkGbps: output.SupportedUplinkGbps
|
|
2212
|
+
SupportedUplinkGbps: output.SupportedUplinkGbps != null
|
|
2210
2213
|
? deserializeAws_restJson1SupportedUplinkGbpsListDefinition(output.SupportedUplinkGbps, context)
|
|
2211
2214
|
: undefined,
|
|
2212
2215
|
WeightLbs: (0, smithy_client_1.expectInt32)(output.WeightLbs),
|
|
@@ -2241,9 +2244,7 @@ const deserializeAws_restJson1ComputeAttributes = (output, context) => {
|
|
|
2241
2244
|
};
|
|
2242
2245
|
const deserializeAws_restJson1ConnectionDetails = (output, context) => {
|
|
2243
2246
|
return {
|
|
2244
|
-
AllowedIps: output.AllowedIps
|
|
2245
|
-
? deserializeAws_restJson1CIDRList(output.AllowedIps, context)
|
|
2246
|
-
: undefined,
|
|
2247
|
+
AllowedIps: output.AllowedIps != null ? deserializeAws_restJson1CIDRList(output.AllowedIps, context) : undefined,
|
|
2247
2248
|
ClientPublicKey: (0, smithy_client_1.expectString)(output.ClientPublicKey),
|
|
2248
2249
|
ClientTunnelAddress: (0, smithy_client_1.expectString)(output.ClientTunnelAddress),
|
|
2249
2250
|
ServerEndpoint: (0, smithy_client_1.expectString)(output.ServerEndpoint),
|
|
@@ -2317,14 +2318,12 @@ const deserializeAws_restJson1LineItemStatusCounts = (output, context) => {
|
|
|
2317
2318
|
};
|
|
2318
2319
|
const deserializeAws_restJson1Order = (output, context) => {
|
|
2319
2320
|
return {
|
|
2320
|
-
LineItems: output.LineItems
|
|
2321
|
-
|
|
2322
|
-
: undefined,
|
|
2323
|
-
OrderFulfilledDate: output.OrderFulfilledDate !== undefined && output.OrderFulfilledDate !== null
|
|
2321
|
+
LineItems: output.LineItems != null ? deserializeAws_restJson1LineItemListDefinition(output.LineItems, context) : undefined,
|
|
2322
|
+
OrderFulfilledDate: output.OrderFulfilledDate != null
|
|
2324
2323
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.OrderFulfilledDate)))
|
|
2325
2324
|
: undefined,
|
|
2326
2325
|
OrderId: (0, smithy_client_1.expectString)(output.OrderId),
|
|
2327
|
-
OrderSubmissionDate: output.OrderSubmissionDate
|
|
2326
|
+
OrderSubmissionDate: output.OrderSubmissionDate != null
|
|
2328
2327
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.OrderSubmissionDate)))
|
|
2329
2328
|
: undefined,
|
|
2330
2329
|
OutpostId: (0, smithy_client_1.expectString)(output.OutpostId),
|
|
@@ -2334,14 +2333,14 @@ const deserializeAws_restJson1Order = (output, context) => {
|
|
|
2334
2333
|
};
|
|
2335
2334
|
const deserializeAws_restJson1OrderSummary = (output, context) => {
|
|
2336
2335
|
return {
|
|
2337
|
-
LineItemCountsByStatus: output.LineItemCountsByStatus
|
|
2336
|
+
LineItemCountsByStatus: output.LineItemCountsByStatus != null
|
|
2338
2337
|
? deserializeAws_restJson1LineItemStatusCounts(output.LineItemCountsByStatus, context)
|
|
2339
2338
|
: undefined,
|
|
2340
|
-
OrderFulfilledDate: output.OrderFulfilledDate
|
|
2339
|
+
OrderFulfilledDate: output.OrderFulfilledDate != null
|
|
2341
2340
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.OrderFulfilledDate)))
|
|
2342
2341
|
: undefined,
|
|
2343
2342
|
OrderId: (0, smithy_client_1.expectString)(output.OrderId),
|
|
2344
|
-
OrderSubmissionDate: output.OrderSubmissionDate
|
|
2343
|
+
OrderSubmissionDate: output.OrderSubmissionDate != null
|
|
2345
2344
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.OrderSubmissionDate)))
|
|
2346
2345
|
: undefined,
|
|
2347
2346
|
OrderType: (0, smithy_client_1.expectString)(output.OrderType),
|
|
@@ -2373,9 +2372,7 @@ const deserializeAws_restJson1Outpost = (output, context) => {
|
|
|
2373
2372
|
SiteArn: (0, smithy_client_1.expectString)(output.SiteArn),
|
|
2374
2373
|
SiteId: (0, smithy_client_1.expectString)(output.SiteId),
|
|
2375
2374
|
SupportedHardwareType: (0, smithy_client_1.expectString)(output.SupportedHardwareType),
|
|
2376
|
-
Tags: output.Tags
|
|
2377
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
2378
|
-
: undefined,
|
|
2375
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
2379
2376
|
};
|
|
2380
2377
|
};
|
|
2381
2378
|
const deserializeAws_restJson1outpostListDefinition = (output, context) => {
|
|
@@ -2411,14 +2408,12 @@ const deserializeAws_restJson1Site = (output, context) => {
|
|
|
2411
2408
|
OperatingAddressCity: (0, smithy_client_1.expectString)(output.OperatingAddressCity),
|
|
2412
2409
|
OperatingAddressCountryCode: (0, smithy_client_1.expectString)(output.OperatingAddressCountryCode),
|
|
2413
2410
|
OperatingAddressStateOrRegion: (0, smithy_client_1.expectString)(output.OperatingAddressStateOrRegion),
|
|
2414
|
-
RackPhysicalProperties: output.RackPhysicalProperties
|
|
2411
|
+
RackPhysicalProperties: output.RackPhysicalProperties != null
|
|
2415
2412
|
? deserializeAws_restJson1RackPhysicalProperties(output.RackPhysicalProperties, context)
|
|
2416
2413
|
: undefined,
|
|
2417
2414
|
SiteArn: (0, smithy_client_1.expectString)(output.SiteArn),
|
|
2418
2415
|
SiteId: (0, smithy_client_1.expectString)(output.SiteId),
|
|
2419
|
-
Tags: output.Tags
|
|
2420
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
2421
|
-
: undefined,
|
|
2416
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
2422
2417
|
};
|
|
2423
2418
|
};
|
|
2424
2419
|
const deserializeAws_restJson1siteListDefinition = (output, context) => {
|
|
@@ -2514,5 +2509,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2514
2509
|
if (data["__type"] !== undefined) {
|
|
2515
2510
|
return sanitizeErrorCode(data["__type"]);
|
|
2516
2511
|
}
|
|
2517
|
-
return "";
|
|
2518
2512
|
};
|