@aws-sdk/client-outposts 3.121.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 +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +79 -110
- package/dist-es/protocols/Aws_restJson1.js +33 -64
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-outposts
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
15
|
|
|
8
16
|
|
|
@@ -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,
|
|
@@ -2118,25 +2103,23 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2118
2103
|
};
|
|
2119
2104
|
const serializeAws_restJson1Address = (input, context) => {
|
|
2120
2105
|
return {
|
|
2121
|
-
...(input.AddressLine1
|
|
2122
|
-
...(input.AddressLine2
|
|
2123
|
-
...(input.AddressLine3
|
|
2124
|
-
...(input.City
|
|
2125
|
-
...(input.ContactName
|
|
2126
|
-
...(input.ContactPhoneNumber
|
|
2127
|
-
|
|
2128
|
-
...(input.
|
|
2129
|
-
...(input.
|
|
2130
|
-
|
|
2131
|
-
...(input.
|
|
2132
|
-
...(input.PostalCode !== undefined && input.PostalCode !== null && { PostalCode: input.PostalCode }),
|
|
2133
|
-
...(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 }),
|
|
2134
2117
|
};
|
|
2135
2118
|
};
|
|
2136
2119
|
const serializeAws_restJson1LineItemRequest = (input, context) => {
|
|
2137
2120
|
return {
|
|
2138
|
-
...(input.CatalogItemId
|
|
2139
|
-
...(input.Quantity
|
|
2121
|
+
...(input.CatalogItemId != null && { CatalogItemId: input.CatalogItemId }),
|
|
2122
|
+
...(input.Quantity != null && { Quantity: input.Quantity }),
|
|
2140
2123
|
};
|
|
2141
2124
|
};
|
|
2142
2125
|
const serializeAws_restJson1LineItemRequestListDefinition = (input, context) => {
|
|
@@ -2151,19 +2134,15 @@ const serializeAws_restJson1LineItemRequestListDefinition = (input, context) =>
|
|
|
2151
2134
|
};
|
|
2152
2135
|
const serializeAws_restJson1RackPhysicalProperties = (input, context) => {
|
|
2153
2136
|
return {
|
|
2154
|
-
...(input.FiberOpticCableType
|
|
2155
|
-
|
|
2156
|
-
...(input.
|
|
2157
|
-
|
|
2158
|
-
...(input.
|
|
2159
|
-
|
|
2160
|
-
...(input.
|
|
2161
|
-
|
|
2162
|
-
...(input.
|
|
2163
|
-
...(input.PowerFeedDrop !== undefined && input.PowerFeedDrop !== null && { PowerFeedDrop: input.PowerFeedDrop }),
|
|
2164
|
-
...(input.PowerPhase !== undefined && input.PowerPhase !== null && { PowerPhase: input.PowerPhase }),
|
|
2165
|
-
...(input.UplinkCount !== undefined && input.UplinkCount !== null && { UplinkCount: input.UplinkCount }),
|
|
2166
|
-
...(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 }),
|
|
2167
2146
|
};
|
|
2168
2147
|
};
|
|
2169
2148
|
const serializeAws_restJson1TagMap = (input, context) => {
|
|
@@ -2195,11 +2174,9 @@ const deserializeAws_restJson1Address = (output, context) => {
|
|
|
2195
2174
|
const deserializeAws_restJson1AssetInfo = (output, context) => {
|
|
2196
2175
|
return {
|
|
2197
2176
|
AssetId: (0, smithy_client_1.expectString)(output.AssetId),
|
|
2198
|
-
AssetLocation: output.AssetLocation
|
|
2199
|
-
? deserializeAws_restJson1AssetLocation(output.AssetLocation, context)
|
|
2200
|
-
: undefined,
|
|
2177
|
+
AssetLocation: output.AssetLocation != null ? deserializeAws_restJson1AssetLocation(output.AssetLocation, context) : undefined,
|
|
2201
2178
|
AssetType: (0, smithy_client_1.expectString)(output.AssetType),
|
|
2202
|
-
ComputeAttributes: output.ComputeAttributes
|
|
2179
|
+
ComputeAttributes: output.ComputeAttributes != null
|
|
2203
2180
|
? deserializeAws_restJson1ComputeAttributes(output.ComputeAttributes, context)
|
|
2204
2181
|
: undefined,
|
|
2205
2182
|
RackId: (0, smithy_client_1.expectString)(output.RackId),
|
|
@@ -2224,15 +2201,15 @@ const deserializeAws_restJson1AssetLocation = (output, context) => {
|
|
|
2224
2201
|
const deserializeAws_restJson1CatalogItem = (output, context) => {
|
|
2225
2202
|
return {
|
|
2226
2203
|
CatalogItemId: (0, smithy_client_1.expectString)(output.CatalogItemId),
|
|
2227
|
-
EC2Capacities: output.EC2Capacities
|
|
2204
|
+
EC2Capacities: output.EC2Capacities != null
|
|
2228
2205
|
? deserializeAws_restJson1EC2CapacityListDefinition(output.EC2Capacities, context)
|
|
2229
2206
|
: undefined,
|
|
2230
2207
|
ItemStatus: (0, smithy_client_1.expectString)(output.ItemStatus),
|
|
2231
2208
|
PowerKva: (0, smithy_client_1.limitedParseFloat32)(output.PowerKva),
|
|
2232
|
-
SupportedStorage: output.SupportedStorage
|
|
2209
|
+
SupportedStorage: output.SupportedStorage != null
|
|
2233
2210
|
? deserializeAws_restJson1SupportedStorageList(output.SupportedStorage, context)
|
|
2234
2211
|
: undefined,
|
|
2235
|
-
SupportedUplinkGbps: output.SupportedUplinkGbps
|
|
2212
|
+
SupportedUplinkGbps: output.SupportedUplinkGbps != null
|
|
2236
2213
|
? deserializeAws_restJson1SupportedUplinkGbpsListDefinition(output.SupportedUplinkGbps, context)
|
|
2237
2214
|
: undefined,
|
|
2238
2215
|
WeightLbs: (0, smithy_client_1.expectInt32)(output.WeightLbs),
|
|
@@ -2267,9 +2244,7 @@ const deserializeAws_restJson1ComputeAttributes = (output, context) => {
|
|
|
2267
2244
|
};
|
|
2268
2245
|
const deserializeAws_restJson1ConnectionDetails = (output, context) => {
|
|
2269
2246
|
return {
|
|
2270
|
-
AllowedIps: output.AllowedIps
|
|
2271
|
-
? deserializeAws_restJson1CIDRList(output.AllowedIps, context)
|
|
2272
|
-
: undefined,
|
|
2247
|
+
AllowedIps: output.AllowedIps != null ? deserializeAws_restJson1CIDRList(output.AllowedIps, context) : undefined,
|
|
2273
2248
|
ClientPublicKey: (0, smithy_client_1.expectString)(output.ClientPublicKey),
|
|
2274
2249
|
ClientTunnelAddress: (0, smithy_client_1.expectString)(output.ClientTunnelAddress),
|
|
2275
2250
|
ServerEndpoint: (0, smithy_client_1.expectString)(output.ServerEndpoint),
|
|
@@ -2343,14 +2318,12 @@ const deserializeAws_restJson1LineItemStatusCounts = (output, context) => {
|
|
|
2343
2318
|
};
|
|
2344
2319
|
const deserializeAws_restJson1Order = (output, context) => {
|
|
2345
2320
|
return {
|
|
2346
|
-
LineItems: output.LineItems
|
|
2347
|
-
|
|
2348
|
-
: undefined,
|
|
2349
|
-
OrderFulfilledDate: output.OrderFulfilledDate !== undefined && output.OrderFulfilledDate !== null
|
|
2321
|
+
LineItems: output.LineItems != null ? deserializeAws_restJson1LineItemListDefinition(output.LineItems, context) : undefined,
|
|
2322
|
+
OrderFulfilledDate: output.OrderFulfilledDate != null
|
|
2350
2323
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.OrderFulfilledDate)))
|
|
2351
2324
|
: undefined,
|
|
2352
2325
|
OrderId: (0, smithy_client_1.expectString)(output.OrderId),
|
|
2353
|
-
OrderSubmissionDate: output.OrderSubmissionDate
|
|
2326
|
+
OrderSubmissionDate: output.OrderSubmissionDate != null
|
|
2354
2327
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.OrderSubmissionDate)))
|
|
2355
2328
|
: undefined,
|
|
2356
2329
|
OutpostId: (0, smithy_client_1.expectString)(output.OutpostId),
|
|
@@ -2360,14 +2333,14 @@ const deserializeAws_restJson1Order = (output, context) => {
|
|
|
2360
2333
|
};
|
|
2361
2334
|
const deserializeAws_restJson1OrderSummary = (output, context) => {
|
|
2362
2335
|
return {
|
|
2363
|
-
LineItemCountsByStatus: output.LineItemCountsByStatus
|
|
2336
|
+
LineItemCountsByStatus: output.LineItemCountsByStatus != null
|
|
2364
2337
|
? deserializeAws_restJson1LineItemStatusCounts(output.LineItemCountsByStatus, context)
|
|
2365
2338
|
: undefined,
|
|
2366
|
-
OrderFulfilledDate: output.OrderFulfilledDate
|
|
2339
|
+
OrderFulfilledDate: output.OrderFulfilledDate != null
|
|
2367
2340
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.OrderFulfilledDate)))
|
|
2368
2341
|
: undefined,
|
|
2369
2342
|
OrderId: (0, smithy_client_1.expectString)(output.OrderId),
|
|
2370
|
-
OrderSubmissionDate: output.OrderSubmissionDate
|
|
2343
|
+
OrderSubmissionDate: output.OrderSubmissionDate != null
|
|
2371
2344
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.OrderSubmissionDate)))
|
|
2372
2345
|
: undefined,
|
|
2373
2346
|
OrderType: (0, smithy_client_1.expectString)(output.OrderType),
|
|
@@ -2399,9 +2372,7 @@ const deserializeAws_restJson1Outpost = (output, context) => {
|
|
|
2399
2372
|
SiteArn: (0, smithy_client_1.expectString)(output.SiteArn),
|
|
2400
2373
|
SiteId: (0, smithy_client_1.expectString)(output.SiteId),
|
|
2401
2374
|
SupportedHardwareType: (0, smithy_client_1.expectString)(output.SupportedHardwareType),
|
|
2402
|
-
Tags: output.Tags
|
|
2403
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
2404
|
-
: undefined,
|
|
2375
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
2405
2376
|
};
|
|
2406
2377
|
};
|
|
2407
2378
|
const deserializeAws_restJson1outpostListDefinition = (output, context) => {
|
|
@@ -2437,14 +2408,12 @@ const deserializeAws_restJson1Site = (output, context) => {
|
|
|
2437
2408
|
OperatingAddressCity: (0, smithy_client_1.expectString)(output.OperatingAddressCity),
|
|
2438
2409
|
OperatingAddressCountryCode: (0, smithy_client_1.expectString)(output.OperatingAddressCountryCode),
|
|
2439
2410
|
OperatingAddressStateOrRegion: (0, smithy_client_1.expectString)(output.OperatingAddressStateOrRegion),
|
|
2440
|
-
RackPhysicalProperties: output.RackPhysicalProperties
|
|
2411
|
+
RackPhysicalProperties: output.RackPhysicalProperties != null
|
|
2441
2412
|
? deserializeAws_restJson1RackPhysicalProperties(output.RackPhysicalProperties, context)
|
|
2442
2413
|
: undefined,
|
|
2443
2414
|
SiteArn: (0, smithy_client_1.expectString)(output.SiteArn),
|
|
2444
2415
|
SiteId: (0, smithy_client_1.expectString)(output.SiteId),
|
|
2445
|
-
Tags: output.Tags
|
|
2446
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
2447
|
-
: undefined,
|
|
2416
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
2448
2417
|
};
|
|
2449
2418
|
};
|
|
2450
2419
|
const deserializeAws_restJson1siteListDefinition = (output, context) => {
|
|
@@ -45,11 +45,9 @@ export var serializeAws_restJson1CreateOrderCommand = function (input, context)
|
|
|
45
45
|
"content-type": "application/json",
|
|
46
46
|
};
|
|
47
47
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/orders";
|
|
48
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.LineItems
|
|
49
|
-
input.LineItems !== null && {
|
|
48
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.LineItems != null && {
|
|
50
49
|
LineItems: serializeAws_restJson1LineItemRequestListDefinition(input.LineItems, context),
|
|
51
|
-
})), (input.OutpostIdentifier
|
|
52
|
-
input.OutpostIdentifier !== null && { OutpostIdentifier: input.OutpostIdentifier })), (input.PaymentOption !== undefined && input.PaymentOption !== null && { PaymentOption: input.PaymentOption })), (input.PaymentTerm !== undefined && input.PaymentTerm !== null && { PaymentTerm: input.PaymentTerm })));
|
|
50
|
+
})), (input.OutpostIdentifier != null && { OutpostIdentifier: input.OutpostIdentifier })), (input.PaymentOption != null && { PaymentOption: input.PaymentOption })), (input.PaymentTerm != null && { PaymentTerm: input.PaymentTerm })));
|
|
53
51
|
return [2, new __HttpRequest({
|
|
54
52
|
protocol: protocol,
|
|
55
53
|
hostname: hostname,
|
|
@@ -73,10 +71,7 @@ export var serializeAws_restJson1CreateOutpostCommand = function (input, context
|
|
|
73
71
|
"content-type": "application/json",
|
|
74
72
|
};
|
|
75
73
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/outposts";
|
|
76
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AvailabilityZone
|
|
77
|
-
input.AvailabilityZone !== null && { AvailabilityZone: input.AvailabilityZone })), (input.AvailabilityZoneId !== undefined &&
|
|
78
|
-
input.AvailabilityZoneId !== null && { AvailabilityZoneId: input.AvailabilityZoneId })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.SiteId !== undefined && input.SiteId !== null && { SiteId: input.SiteId })), (input.SupportedHardwareType !== undefined &&
|
|
79
|
-
input.SupportedHardwareType !== null && { SupportedHardwareType: input.SupportedHardwareType })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
74
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AvailabilityZone != null && { AvailabilityZone: input.AvailabilityZone })), (input.AvailabilityZoneId != null && { AvailabilityZoneId: input.AvailabilityZoneId })), (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.SiteId != null && { SiteId: input.SiteId })), (input.SupportedHardwareType != null && { SupportedHardwareType: input.SupportedHardwareType })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
80
75
|
return [2, new __HttpRequest({
|
|
81
76
|
protocol: protocol,
|
|
82
77
|
hostname: hostname,
|
|
@@ -100,16 +95,13 @@ export var serializeAws_restJson1CreateSiteCommand = function (input, context) {
|
|
|
100
95
|
"content-type": "application/json",
|
|
101
96
|
};
|
|
102
97
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/sites";
|
|
103
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description
|
|
104
|
-
input.OperatingAddress !== null && {
|
|
98
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.Notes != null && { Notes: input.Notes })), (input.OperatingAddress != null && {
|
|
105
99
|
OperatingAddress: serializeAws_restJson1Address(input.OperatingAddress, context),
|
|
106
|
-
})), (input.RackPhysicalProperties
|
|
107
|
-
input.RackPhysicalProperties !== null && {
|
|
100
|
+
})), (input.RackPhysicalProperties != null && {
|
|
108
101
|
RackPhysicalProperties: serializeAws_restJson1RackPhysicalProperties(input.RackPhysicalProperties, context),
|
|
109
|
-
})), (input.ShippingAddress
|
|
110
|
-
input.ShippingAddress !== null && {
|
|
102
|
+
})), (input.ShippingAddress != null && {
|
|
111
103
|
ShippingAddress: serializeAws_restJson1Address(input.ShippingAddress, context),
|
|
112
|
-
})), (input.Tags
|
|
104
|
+
})), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
113
105
|
return [2, new __HttpRequest({
|
|
114
106
|
protocol: protocol,
|
|
115
107
|
hostname: hostname,
|
|
@@ -592,10 +584,9 @@ export var serializeAws_restJson1StartConnectionCommand = function (input, conte
|
|
|
592
584
|
"content-type": "application/json",
|
|
593
585
|
};
|
|
594
586
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/connections";
|
|
595
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AssetId
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
input.NetworkInterfaceDeviceIndex !== null && { NetworkInterfaceDeviceIndex: input.NetworkInterfaceDeviceIndex })));
|
|
587
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AssetId != null && { AssetId: input.AssetId })), (input.ClientPublicKey != null && { ClientPublicKey: input.ClientPublicKey })), (input.DeviceSerialNumber != null && { DeviceSerialNumber: input.DeviceSerialNumber })), (input.NetworkInterfaceDeviceIndex != null && {
|
|
588
|
+
NetworkInterfaceDeviceIndex: input.NetworkInterfaceDeviceIndex,
|
|
589
|
+
})));
|
|
599
590
|
return [2, new __HttpRequest({
|
|
600
591
|
protocol: protocol,
|
|
601
592
|
hostname: hostname,
|
|
@@ -629,7 +620,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
629
620
|
else {
|
|
630
621
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
631
622
|
}
|
|
632
|
-
body = JSON.stringify(__assign({}, (input.Tags
|
|
623
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
633
624
|
return [2, new __HttpRequest({
|
|
634
625
|
protocol: protocol,
|
|
635
626
|
hostname: hostname,
|
|
@@ -696,8 +687,7 @@ export var serializeAws_restJson1UpdateOutpostCommand = function (input, context
|
|
|
696
687
|
else {
|
|
697
688
|
throw new Error("No value provided for input HTTP label: OutpostId.");
|
|
698
689
|
}
|
|
699
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description
|
|
700
|
-
input.SupportedHardwareType !== null && { SupportedHardwareType: input.SupportedHardwareType })));
|
|
690
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.SupportedHardwareType != null && { SupportedHardwareType: input.SupportedHardwareType })));
|
|
701
691
|
return [2, new __HttpRequest({
|
|
702
692
|
protocol: protocol,
|
|
703
693
|
hostname: hostname,
|
|
@@ -731,7 +721,7 @@ export var serializeAws_restJson1UpdateSiteCommand = function (input, context) {
|
|
|
731
721
|
else {
|
|
732
722
|
throw new Error("No value provided for input HTTP label: SiteId.");
|
|
733
723
|
}
|
|
734
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description
|
|
724
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.Notes != null && { Notes: input.Notes })));
|
|
735
725
|
return [2, new __HttpRequest({
|
|
736
726
|
protocol: protocol,
|
|
737
727
|
hostname: hostname,
|
|
@@ -765,8 +755,7 @@ export var serializeAws_restJson1UpdateSiteAddressCommand = function (input, con
|
|
|
765
755
|
else {
|
|
766
756
|
throw new Error("No value provided for input HTTP label: SiteId.");
|
|
767
757
|
}
|
|
768
|
-
body = JSON.stringify(__assign(__assign({}, (input.Address
|
|
769
|
-
input.Address !== null && { Address: serializeAws_restJson1Address(input.Address, context) })), (input.AddressType !== undefined && input.AddressType !== null && { AddressType: input.AddressType })));
|
|
758
|
+
body = JSON.stringify(__assign(__assign({}, (input.Address != null && { Address: serializeAws_restJson1Address(input.Address, context) })), (input.AddressType != null && { AddressType: input.AddressType })));
|
|
770
759
|
return [2, new __HttpRequest({
|
|
771
760
|
protocol: protocol,
|
|
772
761
|
hostname: hostname,
|
|
@@ -800,11 +789,7 @@ export var serializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommand = funct
|
|
|
800
789
|
else {
|
|
801
790
|
throw new Error("No value provided for input HTTP label: SiteId.");
|
|
802
791
|
}
|
|
803
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.FiberOpticCableType
|
|
804
|
-
input.FiberOpticCableType !== null && { FiberOpticCableType: input.FiberOpticCableType })), (input.MaximumSupportedWeightLbs !== undefined &&
|
|
805
|
-
input.MaximumSupportedWeightLbs !== null && { MaximumSupportedWeightLbs: input.MaximumSupportedWeightLbs })), (input.OpticalStandard !== undefined &&
|
|
806
|
-
input.OpticalStandard !== null && { OpticalStandard: input.OpticalStandard })), (input.PowerConnector !== undefined &&
|
|
807
|
-
input.PowerConnector !== null && { PowerConnector: input.PowerConnector })), (input.PowerDrawKva !== undefined && input.PowerDrawKva !== null && { PowerDrawKva: input.PowerDrawKva })), (input.PowerFeedDrop !== undefined && input.PowerFeedDrop !== null && { PowerFeedDrop: input.PowerFeedDrop })), (input.PowerPhase !== undefined && input.PowerPhase !== null && { PowerPhase: input.PowerPhase })), (input.UplinkCount !== undefined && input.UplinkCount !== null && { UplinkCount: input.UplinkCount })), (input.UplinkGbps !== undefined && input.UplinkGbps !== null && { UplinkGbps: input.UplinkGbps })));
|
|
792
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.FiberOpticCableType != null && { FiberOpticCableType: input.FiberOpticCableType })), (input.MaximumSupportedWeightLbs != null && { MaximumSupportedWeightLbs: input.MaximumSupportedWeightLbs })), (input.OpticalStandard != null && { OpticalStandard: input.OpticalStandard })), (input.PowerConnector != null && { PowerConnector: input.PowerConnector })), (input.PowerDrawKva != null && { PowerDrawKva: input.PowerDrawKva })), (input.PowerFeedDrop != null && { PowerFeedDrop: input.PowerFeedDrop })), (input.PowerPhase != null && { PowerPhase: input.PowerPhase })), (input.UplinkCount != null && { UplinkCount: input.UplinkCount })), (input.UplinkGbps != null && { UplinkGbps: input.UplinkGbps })));
|
|
808
793
|
return [2, new __HttpRequest({
|
|
809
794
|
protocol: protocol,
|
|
810
795
|
hostname: hostname,
|
|
@@ -2728,12 +2713,10 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
2728
2713
|
});
|
|
2729
2714
|
}); };
|
|
2730
2715
|
var serializeAws_restJson1Address = function (input, context) {
|
|
2731
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AddressLine1
|
|
2732
|
-
input.ContactPhoneNumber !== null && { ContactPhoneNumber: input.ContactPhoneNumber })), (input.CountryCode !== undefined && input.CountryCode !== null && { CountryCode: input.CountryCode })), (input.DistrictOrCounty !== undefined &&
|
|
2733
|
-
input.DistrictOrCounty !== null && { DistrictOrCounty: input.DistrictOrCounty })), (input.Municipality !== undefined && input.Municipality !== null && { Municipality: input.Municipality })), (input.PostalCode !== undefined && input.PostalCode !== null && { PostalCode: input.PostalCode })), (input.StateOrRegion !== undefined && input.StateOrRegion !== null && { StateOrRegion: input.StateOrRegion }));
|
|
2716
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AddressLine1 != null && { AddressLine1: input.AddressLine1 })), (input.AddressLine2 != null && { AddressLine2: input.AddressLine2 })), (input.AddressLine3 != null && { AddressLine3: input.AddressLine3 })), (input.City != null && { City: input.City })), (input.ContactName != null && { ContactName: input.ContactName })), (input.ContactPhoneNumber != null && { ContactPhoneNumber: input.ContactPhoneNumber })), (input.CountryCode != null && { CountryCode: input.CountryCode })), (input.DistrictOrCounty != null && { DistrictOrCounty: input.DistrictOrCounty })), (input.Municipality != null && { Municipality: input.Municipality })), (input.PostalCode != null && { PostalCode: input.PostalCode })), (input.StateOrRegion != null && { StateOrRegion: input.StateOrRegion }));
|
|
2734
2717
|
};
|
|
2735
2718
|
var serializeAws_restJson1LineItemRequest = function (input, context) {
|
|
2736
|
-
return __assign(__assign({}, (input.CatalogItemId
|
|
2719
|
+
return __assign(__assign({}, (input.CatalogItemId != null && { CatalogItemId: input.CatalogItemId })), (input.Quantity != null && { Quantity: input.Quantity }));
|
|
2737
2720
|
};
|
|
2738
2721
|
var serializeAws_restJson1LineItemRequestListDefinition = function (input, context) {
|
|
2739
2722
|
return input
|
|
@@ -2746,11 +2729,7 @@ var serializeAws_restJson1LineItemRequestListDefinition = function (input, conte
|
|
|
2746
2729
|
});
|
|
2747
2730
|
};
|
|
2748
2731
|
var serializeAws_restJson1RackPhysicalProperties = function (input, context) {
|
|
2749
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.FiberOpticCableType
|
|
2750
|
-
input.FiberOpticCableType !== null && { FiberOpticCableType: input.FiberOpticCableType })), (input.MaximumSupportedWeightLbs !== undefined &&
|
|
2751
|
-
input.MaximumSupportedWeightLbs !== null && { MaximumSupportedWeightLbs: input.MaximumSupportedWeightLbs })), (input.OpticalStandard !== undefined &&
|
|
2752
|
-
input.OpticalStandard !== null && { OpticalStandard: input.OpticalStandard })), (input.PowerConnector !== undefined &&
|
|
2753
|
-
input.PowerConnector !== null && { PowerConnector: input.PowerConnector })), (input.PowerDrawKva !== undefined && input.PowerDrawKva !== null && { PowerDrawKva: input.PowerDrawKva })), (input.PowerFeedDrop !== undefined && input.PowerFeedDrop !== null && { PowerFeedDrop: input.PowerFeedDrop })), (input.PowerPhase !== undefined && input.PowerPhase !== null && { PowerPhase: input.PowerPhase })), (input.UplinkCount !== undefined && input.UplinkCount !== null && { UplinkCount: input.UplinkCount })), (input.UplinkGbps !== undefined && input.UplinkGbps !== null && { UplinkGbps: input.UplinkGbps }));
|
|
2732
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.FiberOpticCableType != null && { FiberOpticCableType: input.FiberOpticCableType })), (input.MaximumSupportedWeightLbs != null && { MaximumSupportedWeightLbs: input.MaximumSupportedWeightLbs })), (input.OpticalStandard != null && { OpticalStandard: input.OpticalStandard })), (input.PowerConnector != null && { PowerConnector: input.PowerConnector })), (input.PowerDrawKva != null && { PowerDrawKva: input.PowerDrawKva })), (input.PowerFeedDrop != null && { PowerFeedDrop: input.PowerFeedDrop })), (input.PowerPhase != null && { PowerPhase: input.PowerPhase })), (input.UplinkCount != null && { UplinkCount: input.UplinkCount })), (input.UplinkGbps != null && { UplinkGbps: input.UplinkGbps }));
|
|
2754
2733
|
};
|
|
2755
2734
|
var serializeAws_restJson1TagMap = function (input, context) {
|
|
2756
2735
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -2780,11 +2759,9 @@ var deserializeAws_restJson1Address = function (output, context) {
|
|
|
2780
2759
|
var deserializeAws_restJson1AssetInfo = function (output, context) {
|
|
2781
2760
|
return {
|
|
2782
2761
|
AssetId: __expectString(output.AssetId),
|
|
2783
|
-
AssetLocation: output.AssetLocation
|
|
2784
|
-
? deserializeAws_restJson1AssetLocation(output.AssetLocation, context)
|
|
2785
|
-
: undefined,
|
|
2762
|
+
AssetLocation: output.AssetLocation != null ? deserializeAws_restJson1AssetLocation(output.AssetLocation, context) : undefined,
|
|
2786
2763
|
AssetType: __expectString(output.AssetType),
|
|
2787
|
-
ComputeAttributes: output.ComputeAttributes
|
|
2764
|
+
ComputeAttributes: output.ComputeAttributes != null
|
|
2788
2765
|
? deserializeAws_restJson1ComputeAttributes(output.ComputeAttributes, context)
|
|
2789
2766
|
: undefined,
|
|
2790
2767
|
RackId: __expectString(output.RackId),
|
|
@@ -2809,15 +2786,15 @@ var deserializeAws_restJson1AssetLocation = function (output, context) {
|
|
|
2809
2786
|
var deserializeAws_restJson1CatalogItem = function (output, context) {
|
|
2810
2787
|
return {
|
|
2811
2788
|
CatalogItemId: __expectString(output.CatalogItemId),
|
|
2812
|
-
EC2Capacities: output.EC2Capacities
|
|
2789
|
+
EC2Capacities: output.EC2Capacities != null
|
|
2813
2790
|
? deserializeAws_restJson1EC2CapacityListDefinition(output.EC2Capacities, context)
|
|
2814
2791
|
: undefined,
|
|
2815
2792
|
ItemStatus: __expectString(output.ItemStatus),
|
|
2816
2793
|
PowerKva: __limitedParseFloat32(output.PowerKva),
|
|
2817
|
-
SupportedStorage: output.SupportedStorage
|
|
2794
|
+
SupportedStorage: output.SupportedStorage != null
|
|
2818
2795
|
? deserializeAws_restJson1SupportedStorageList(output.SupportedStorage, context)
|
|
2819
2796
|
: undefined,
|
|
2820
|
-
SupportedUplinkGbps: output.SupportedUplinkGbps
|
|
2797
|
+
SupportedUplinkGbps: output.SupportedUplinkGbps != null
|
|
2821
2798
|
? deserializeAws_restJson1SupportedUplinkGbpsListDefinition(output.SupportedUplinkGbps, context)
|
|
2822
2799
|
: undefined,
|
|
2823
2800
|
WeightLbs: __expectInt32(output.WeightLbs),
|
|
@@ -2852,9 +2829,7 @@ var deserializeAws_restJson1ComputeAttributes = function (output, context) {
|
|
|
2852
2829
|
};
|
|
2853
2830
|
var deserializeAws_restJson1ConnectionDetails = function (output, context) {
|
|
2854
2831
|
return {
|
|
2855
|
-
AllowedIps: output.AllowedIps
|
|
2856
|
-
? deserializeAws_restJson1CIDRList(output.AllowedIps, context)
|
|
2857
|
-
: undefined,
|
|
2832
|
+
AllowedIps: output.AllowedIps != null ? deserializeAws_restJson1CIDRList(output.AllowedIps, context) : undefined,
|
|
2858
2833
|
ClientPublicKey: __expectString(output.ClientPublicKey),
|
|
2859
2834
|
ClientTunnelAddress: __expectString(output.ClientTunnelAddress),
|
|
2860
2835
|
ServerEndpoint: __expectString(output.ServerEndpoint),
|
|
@@ -2927,14 +2902,12 @@ var deserializeAws_restJson1LineItemStatusCounts = function (output, context) {
|
|
|
2927
2902
|
};
|
|
2928
2903
|
var deserializeAws_restJson1Order = function (output, context) {
|
|
2929
2904
|
return {
|
|
2930
|
-
LineItems: output.LineItems
|
|
2931
|
-
|
|
2932
|
-
: undefined,
|
|
2933
|
-
OrderFulfilledDate: output.OrderFulfilledDate !== undefined && output.OrderFulfilledDate !== null
|
|
2905
|
+
LineItems: output.LineItems != null ? deserializeAws_restJson1LineItemListDefinition(output.LineItems, context) : undefined,
|
|
2906
|
+
OrderFulfilledDate: output.OrderFulfilledDate != null
|
|
2934
2907
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.OrderFulfilledDate)))
|
|
2935
2908
|
: undefined,
|
|
2936
2909
|
OrderId: __expectString(output.OrderId),
|
|
2937
|
-
OrderSubmissionDate: output.OrderSubmissionDate
|
|
2910
|
+
OrderSubmissionDate: output.OrderSubmissionDate != null
|
|
2938
2911
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.OrderSubmissionDate)))
|
|
2939
2912
|
: undefined,
|
|
2940
2913
|
OutpostId: __expectString(output.OutpostId),
|
|
@@ -2944,14 +2917,14 @@ var deserializeAws_restJson1Order = function (output, context) {
|
|
|
2944
2917
|
};
|
|
2945
2918
|
var deserializeAws_restJson1OrderSummary = function (output, context) {
|
|
2946
2919
|
return {
|
|
2947
|
-
LineItemCountsByStatus: output.LineItemCountsByStatus
|
|
2920
|
+
LineItemCountsByStatus: output.LineItemCountsByStatus != null
|
|
2948
2921
|
? deserializeAws_restJson1LineItemStatusCounts(output.LineItemCountsByStatus, context)
|
|
2949
2922
|
: undefined,
|
|
2950
|
-
OrderFulfilledDate: output.OrderFulfilledDate
|
|
2923
|
+
OrderFulfilledDate: output.OrderFulfilledDate != null
|
|
2951
2924
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.OrderFulfilledDate)))
|
|
2952
2925
|
: undefined,
|
|
2953
2926
|
OrderId: __expectString(output.OrderId),
|
|
2954
|
-
OrderSubmissionDate: output.OrderSubmissionDate
|
|
2927
|
+
OrderSubmissionDate: output.OrderSubmissionDate != null
|
|
2955
2928
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.OrderSubmissionDate)))
|
|
2956
2929
|
: undefined,
|
|
2957
2930
|
OrderType: __expectString(output.OrderType),
|
|
@@ -2983,9 +2956,7 @@ var deserializeAws_restJson1Outpost = function (output, context) {
|
|
|
2983
2956
|
SiteArn: __expectString(output.SiteArn),
|
|
2984
2957
|
SiteId: __expectString(output.SiteId),
|
|
2985
2958
|
SupportedHardwareType: __expectString(output.SupportedHardwareType),
|
|
2986
|
-
Tags: output.Tags
|
|
2987
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
2988
|
-
: undefined,
|
|
2959
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
2989
2960
|
};
|
|
2990
2961
|
};
|
|
2991
2962
|
var deserializeAws_restJson1outpostListDefinition = function (output, context) {
|
|
@@ -3021,14 +2992,12 @@ var deserializeAws_restJson1Site = function (output, context) {
|
|
|
3021
2992
|
OperatingAddressCity: __expectString(output.OperatingAddressCity),
|
|
3022
2993
|
OperatingAddressCountryCode: __expectString(output.OperatingAddressCountryCode),
|
|
3023
2994
|
OperatingAddressStateOrRegion: __expectString(output.OperatingAddressStateOrRegion),
|
|
3024
|
-
RackPhysicalProperties: output.RackPhysicalProperties
|
|
2995
|
+
RackPhysicalProperties: output.RackPhysicalProperties != null
|
|
3025
2996
|
? deserializeAws_restJson1RackPhysicalProperties(output.RackPhysicalProperties, context)
|
|
3026
2997
|
: undefined,
|
|
3027
2998
|
SiteArn: __expectString(output.SiteArn),
|
|
3028
2999
|
SiteId: __expectString(output.SiteId),
|
|
3029
|
-
Tags: output.Tags
|
|
3030
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
3031
|
-
: undefined,
|
|
3000
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
3032
3001
|
};
|
|
3033
3002
|
};
|
|
3034
3003
|
var deserializeAws_restJson1siteListDefinition = function (output, context) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-outposts",
|
|
3
3
|
"description": "AWS SDK for JavaScript Outposts Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.127.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.127.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.127.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.127.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.127.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.127.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|