@aws-sdk/client-outposts 3.131.0 → 3.142.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 +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/CancelOrderCommand.js +2 -2
- package/dist-cjs/commands/CreateOrderCommand.js +2 -2
- package/dist-cjs/commands/CreateOutpostCommand.js +2 -2
- package/dist-cjs/commands/CreateSiteCommand.js +2 -2
- package/dist-cjs/commands/DeleteOutpostCommand.js +2 -2
- package/dist-cjs/commands/DeleteSiteCommand.js +2 -2
- package/dist-cjs/commands/GetCatalogItemCommand.js +2 -2
- package/dist-cjs/commands/GetConnectionCommand.js +2 -2
- package/dist-cjs/commands/GetOrderCommand.js +2 -2
- package/dist-cjs/commands/GetOutpostCommand.js +2 -2
- package/dist-cjs/commands/GetOutpostInstanceTypesCommand.js +2 -2
- package/dist-cjs/commands/GetSiteAddressCommand.js +2 -2
- package/dist-cjs/commands/GetSiteCommand.js +2 -2
- package/dist-cjs/commands/ListAssetsCommand.js +2 -2
- package/dist-cjs/commands/ListCatalogItemsCommand.js +2 -2
- package/dist-cjs/commands/ListOrdersCommand.js +2 -2
- package/dist-cjs/commands/ListOutpostsCommand.js +2 -2
- package/dist-cjs/commands/ListSitesCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/StartConnectionCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateOutpostCommand.js +2 -2
- package/dist-cjs/commands/UpdateSiteAddressCommand.js +2 -2
- package/dist-cjs/commands/UpdateSiteCommand.js +2 -2
- package/dist-cjs/commands/UpdateSiteRackPhysicalPropertiesCommand.js +2 -2
- package/dist-cjs/models/models_0.js +278 -416
- package/dist-cjs/protocols/Aws_restJson1.js +346 -612
- package/dist-es/commands/CancelOrderCommand.js +3 -3
- package/dist-es/commands/CreateOrderCommand.js +3 -3
- package/dist-es/commands/CreateOutpostCommand.js +3 -3
- package/dist-es/commands/CreateSiteCommand.js +3 -3
- package/dist-es/commands/DeleteOutpostCommand.js +3 -3
- package/dist-es/commands/DeleteSiteCommand.js +3 -3
- package/dist-es/commands/GetCatalogItemCommand.js +3 -3
- package/dist-es/commands/GetConnectionCommand.js +3 -3
- package/dist-es/commands/GetOrderCommand.js +3 -3
- package/dist-es/commands/GetOutpostCommand.js +3 -3
- package/dist-es/commands/GetOutpostInstanceTypesCommand.js +3 -3
- package/dist-es/commands/GetSiteAddressCommand.js +3 -3
- package/dist-es/commands/GetSiteCommand.js +3 -3
- package/dist-es/commands/ListAssetsCommand.js +3 -3
- package/dist-es/commands/ListCatalogItemsCommand.js +3 -3
- package/dist-es/commands/ListOrdersCommand.js +3 -3
- package/dist-es/commands/ListOutpostsCommand.js +3 -3
- package/dist-es/commands/ListSitesCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/StartConnectionCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateOutpostCommand.js +3 -3
- package/dist-es/commands/UpdateSiteAddressCommand.js +3 -3
- package/dist-es/commands/UpdateSiteCommand.js +3 -3
- package/dist-es/commands/UpdateSiteRackPhysicalPropertiesCommand.js +3 -3
- package/dist-es/models/models_0.js +69 -276
- package/dist-es/protocols/Aws_restJson1.js +443 -598
- package/dist-types/models/models_0.d.ts +276 -414
- package/dist-types/ts3.4/models/models_0.d.ts +138 -276
- package/package.json +6 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, NotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { OutpostsServiceException as __BaseException } from "../models/OutpostsServiceException";
|
|
6
6
|
export var serializeAws_restJson1CancelOrderCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
7
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
8
8
|
return __generator(this, function (_c) {
|
|
9
9
|
switch (_c.label) {
|
|
10
10
|
case 0: return [4, context.endpoint()];
|
|
@@ -12,16 +12,7 @@ export var serializeAws_restJson1CancelOrderCommand = function (input, context)
|
|
|
12
12
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
13
13
|
headers = {};
|
|
14
14
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/orders/{OrderId}/cancel";
|
|
15
|
-
|
|
16
|
-
labelValue = input.OrderId;
|
|
17
|
-
if (labelValue.length <= 0) {
|
|
18
|
-
throw new Error("Empty value provided for input HTTP label: OrderId.");
|
|
19
|
-
}
|
|
20
|
-
resolvedPath = resolvedPath.replace("{OrderId}", __extendedEncodeURIComponent(labelValue));
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
throw new Error("No value provided for input HTTP label: OrderId.");
|
|
24
|
-
}
|
|
15
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "OrderId", function () { return input.OrderId; }, "{OrderId}", false);
|
|
25
16
|
return [2, new __HttpRequest({
|
|
26
17
|
protocol: protocol,
|
|
27
18
|
hostname: hostname,
|
|
@@ -115,7 +106,7 @@ export var serializeAws_restJson1CreateSiteCommand = function (input, context) {
|
|
|
115
106
|
});
|
|
116
107
|
}); };
|
|
117
108
|
export var serializeAws_restJson1DeleteOutpostCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
118
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
109
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
119
110
|
return __generator(this, function (_c) {
|
|
120
111
|
switch (_c.label) {
|
|
121
112
|
case 0: return [4, context.endpoint()];
|
|
@@ -123,16 +114,7 @@ export var serializeAws_restJson1DeleteOutpostCommand = function (input, context
|
|
|
123
114
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
124
115
|
headers = {};
|
|
125
116
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/outposts/{OutpostId}";
|
|
126
|
-
|
|
127
|
-
labelValue = input.OutpostId;
|
|
128
|
-
if (labelValue.length <= 0) {
|
|
129
|
-
throw new Error("Empty value provided for input HTTP label: OutpostId.");
|
|
130
|
-
}
|
|
131
|
-
resolvedPath = resolvedPath.replace("{OutpostId}", __extendedEncodeURIComponent(labelValue));
|
|
132
|
-
}
|
|
133
|
-
else {
|
|
134
|
-
throw new Error("No value provided for input HTTP label: OutpostId.");
|
|
135
|
-
}
|
|
117
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "OutpostId", function () { return input.OutpostId; }, "{OutpostId}", false);
|
|
136
118
|
return [2, new __HttpRequest({
|
|
137
119
|
protocol: protocol,
|
|
138
120
|
hostname: hostname,
|
|
@@ -146,7 +128,7 @@ export var serializeAws_restJson1DeleteOutpostCommand = function (input, context
|
|
|
146
128
|
});
|
|
147
129
|
}); };
|
|
148
130
|
export var serializeAws_restJson1DeleteSiteCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
149
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
131
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
150
132
|
return __generator(this, function (_c) {
|
|
151
133
|
switch (_c.label) {
|
|
152
134
|
case 0: return [4, context.endpoint()];
|
|
@@ -154,16 +136,7 @@ export var serializeAws_restJson1DeleteSiteCommand = function (input, context) {
|
|
|
154
136
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
155
137
|
headers = {};
|
|
156
138
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/sites/{SiteId}";
|
|
157
|
-
|
|
158
|
-
labelValue = input.SiteId;
|
|
159
|
-
if (labelValue.length <= 0) {
|
|
160
|
-
throw new Error("Empty value provided for input HTTP label: SiteId.");
|
|
161
|
-
}
|
|
162
|
-
resolvedPath = resolvedPath.replace("{SiteId}", __extendedEncodeURIComponent(labelValue));
|
|
163
|
-
}
|
|
164
|
-
else {
|
|
165
|
-
throw new Error("No value provided for input HTTP label: SiteId.");
|
|
166
|
-
}
|
|
139
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "SiteId", function () { return input.SiteId; }, "{SiteId}", false);
|
|
167
140
|
return [2, new __HttpRequest({
|
|
168
141
|
protocol: protocol,
|
|
169
142
|
hostname: hostname,
|
|
@@ -177,7 +150,7 @@ export var serializeAws_restJson1DeleteSiteCommand = function (input, context) {
|
|
|
177
150
|
});
|
|
178
151
|
}); };
|
|
179
152
|
export var serializeAws_restJson1GetCatalogItemCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
180
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
153
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
181
154
|
return __generator(this, function (_c) {
|
|
182
155
|
switch (_c.label) {
|
|
183
156
|
case 0: return [4, context.endpoint()];
|
|
@@ -185,16 +158,7 @@ export var serializeAws_restJson1GetCatalogItemCommand = function (input, contex
|
|
|
185
158
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
186
159
|
headers = {};
|
|
187
160
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/catalog/item/{CatalogItemId}";
|
|
188
|
-
|
|
189
|
-
labelValue = input.CatalogItemId;
|
|
190
|
-
if (labelValue.length <= 0) {
|
|
191
|
-
throw new Error("Empty value provided for input HTTP label: CatalogItemId.");
|
|
192
|
-
}
|
|
193
|
-
resolvedPath = resolvedPath.replace("{CatalogItemId}", __extendedEncodeURIComponent(labelValue));
|
|
194
|
-
}
|
|
195
|
-
else {
|
|
196
|
-
throw new Error("No value provided for input HTTP label: CatalogItemId.");
|
|
197
|
-
}
|
|
161
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "CatalogItemId", function () { return input.CatalogItemId; }, "{CatalogItemId}", false);
|
|
198
162
|
return [2, new __HttpRequest({
|
|
199
163
|
protocol: protocol,
|
|
200
164
|
hostname: hostname,
|
|
@@ -208,7 +172,7 @@ export var serializeAws_restJson1GetCatalogItemCommand = function (input, contex
|
|
|
208
172
|
});
|
|
209
173
|
}); };
|
|
210
174
|
export var serializeAws_restJson1GetConnectionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
211
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
175
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
212
176
|
return __generator(this, function (_c) {
|
|
213
177
|
switch (_c.label) {
|
|
214
178
|
case 0: return [4, context.endpoint()];
|
|
@@ -216,16 +180,7 @@ export var serializeAws_restJson1GetConnectionCommand = function (input, context
|
|
|
216
180
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
217
181
|
headers = {};
|
|
218
182
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/connections/{ConnectionId}";
|
|
219
|
-
|
|
220
|
-
labelValue = input.ConnectionId;
|
|
221
|
-
if (labelValue.length <= 0) {
|
|
222
|
-
throw new Error("Empty value provided for input HTTP label: ConnectionId.");
|
|
223
|
-
}
|
|
224
|
-
resolvedPath = resolvedPath.replace("{ConnectionId}", __extendedEncodeURIComponent(labelValue));
|
|
225
|
-
}
|
|
226
|
-
else {
|
|
227
|
-
throw new Error("No value provided for input HTTP label: ConnectionId.");
|
|
228
|
-
}
|
|
183
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ConnectionId", function () { return input.ConnectionId; }, "{ConnectionId}", false);
|
|
229
184
|
return [2, new __HttpRequest({
|
|
230
185
|
protocol: protocol,
|
|
231
186
|
hostname: hostname,
|
|
@@ -239,7 +194,7 @@ export var serializeAws_restJson1GetConnectionCommand = function (input, context
|
|
|
239
194
|
});
|
|
240
195
|
}); };
|
|
241
196
|
export var serializeAws_restJson1GetOrderCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
242
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
197
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
243
198
|
return __generator(this, function (_c) {
|
|
244
199
|
switch (_c.label) {
|
|
245
200
|
case 0: return [4, context.endpoint()];
|
|
@@ -247,16 +202,7 @@ export var serializeAws_restJson1GetOrderCommand = function (input, context) { r
|
|
|
247
202
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
248
203
|
headers = {};
|
|
249
204
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/orders/{OrderId}";
|
|
250
|
-
|
|
251
|
-
labelValue = input.OrderId;
|
|
252
|
-
if (labelValue.length <= 0) {
|
|
253
|
-
throw new Error("Empty value provided for input HTTP label: OrderId.");
|
|
254
|
-
}
|
|
255
|
-
resolvedPath = resolvedPath.replace("{OrderId}", __extendedEncodeURIComponent(labelValue));
|
|
256
|
-
}
|
|
257
|
-
else {
|
|
258
|
-
throw new Error("No value provided for input HTTP label: OrderId.");
|
|
259
|
-
}
|
|
205
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "OrderId", function () { return input.OrderId; }, "{OrderId}", false);
|
|
260
206
|
return [2, new __HttpRequest({
|
|
261
207
|
protocol: protocol,
|
|
262
208
|
hostname: hostname,
|
|
@@ -270,7 +216,7 @@ export var serializeAws_restJson1GetOrderCommand = function (input, context) { r
|
|
|
270
216
|
});
|
|
271
217
|
}); };
|
|
272
218
|
export var serializeAws_restJson1GetOutpostCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
273
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
219
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
274
220
|
return __generator(this, function (_c) {
|
|
275
221
|
switch (_c.label) {
|
|
276
222
|
case 0: return [4, context.endpoint()];
|
|
@@ -278,16 +224,7 @@ export var serializeAws_restJson1GetOutpostCommand = function (input, context) {
|
|
|
278
224
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
279
225
|
headers = {};
|
|
280
226
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/outposts/{OutpostId}";
|
|
281
|
-
|
|
282
|
-
labelValue = input.OutpostId;
|
|
283
|
-
if (labelValue.length <= 0) {
|
|
284
|
-
throw new Error("Empty value provided for input HTTP label: OutpostId.");
|
|
285
|
-
}
|
|
286
|
-
resolvedPath = resolvedPath.replace("{OutpostId}", __extendedEncodeURIComponent(labelValue));
|
|
287
|
-
}
|
|
288
|
-
else {
|
|
289
|
-
throw new Error("No value provided for input HTTP label: OutpostId.");
|
|
290
|
-
}
|
|
227
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "OutpostId", function () { return input.OutpostId; }, "{OutpostId}", false);
|
|
291
228
|
return [2, new __HttpRequest({
|
|
292
229
|
protocol: protocol,
|
|
293
230
|
hostname: hostname,
|
|
@@ -301,7 +238,7 @@ export var serializeAws_restJson1GetOutpostCommand = function (input, context) {
|
|
|
301
238
|
});
|
|
302
239
|
}); };
|
|
303
240
|
export var serializeAws_restJson1GetOutpostInstanceTypesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
304
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
241
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
305
242
|
return __generator(this, function (_c) {
|
|
306
243
|
switch (_c.label) {
|
|
307
244
|
case 0: return [4, context.endpoint()];
|
|
@@ -309,17 +246,11 @@ export var serializeAws_restJson1GetOutpostInstanceTypesCommand = function (inpu
|
|
|
309
246
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
310
247
|
headers = {};
|
|
311
248
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/outposts/{OutpostId}/instanceTypes";
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
resolvedPath = resolvedPath.replace("{OutpostId}", __extendedEncodeURIComponent(labelValue));
|
|
318
|
-
}
|
|
319
|
-
else {
|
|
320
|
-
throw new Error("No value provided for input HTTP label: OutpostId.");
|
|
321
|
-
}
|
|
322
|
-
query = __assign(__assign({}, (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() }));
|
|
249
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "OutpostId", function () { return input.OutpostId; }, "{OutpostId}", false);
|
|
250
|
+
query = map({
|
|
251
|
+
NextToken: [, input.NextToken],
|
|
252
|
+
MaxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
253
|
+
});
|
|
323
254
|
return [2, new __HttpRequest({
|
|
324
255
|
protocol: protocol,
|
|
325
256
|
hostname: hostname,
|
|
@@ -334,7 +265,7 @@ export var serializeAws_restJson1GetOutpostInstanceTypesCommand = function (inpu
|
|
|
334
265
|
});
|
|
335
266
|
}); };
|
|
336
267
|
export var serializeAws_restJson1GetSiteCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
337
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
268
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
338
269
|
return __generator(this, function (_c) {
|
|
339
270
|
switch (_c.label) {
|
|
340
271
|
case 0: return [4, context.endpoint()];
|
|
@@ -342,16 +273,7 @@ export var serializeAws_restJson1GetSiteCommand = function (input, context) { re
|
|
|
342
273
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
343
274
|
headers = {};
|
|
344
275
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/sites/{SiteId}";
|
|
345
|
-
|
|
346
|
-
labelValue = input.SiteId;
|
|
347
|
-
if (labelValue.length <= 0) {
|
|
348
|
-
throw new Error("Empty value provided for input HTTP label: SiteId.");
|
|
349
|
-
}
|
|
350
|
-
resolvedPath = resolvedPath.replace("{SiteId}", __extendedEncodeURIComponent(labelValue));
|
|
351
|
-
}
|
|
352
|
-
else {
|
|
353
|
-
throw new Error("No value provided for input HTTP label: SiteId.");
|
|
354
|
-
}
|
|
276
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "SiteId", function () { return input.SiteId; }, "{SiteId}", false);
|
|
355
277
|
return [2, new __HttpRequest({
|
|
356
278
|
protocol: protocol,
|
|
357
279
|
hostname: hostname,
|
|
@@ -365,7 +287,7 @@ export var serializeAws_restJson1GetSiteCommand = function (input, context) { re
|
|
|
365
287
|
});
|
|
366
288
|
}); };
|
|
367
289
|
export var serializeAws_restJson1GetSiteAddressCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
368
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
290
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
369
291
|
return __generator(this, function (_c) {
|
|
370
292
|
switch (_c.label) {
|
|
371
293
|
case 0: return [4, context.endpoint()];
|
|
@@ -373,17 +295,10 @@ export var serializeAws_restJson1GetSiteAddressCommand = function (input, contex
|
|
|
373
295
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
374
296
|
headers = {};
|
|
375
297
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/sites/{SiteId}/address";
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
}
|
|
381
|
-
resolvedPath = resolvedPath.replace("{SiteId}", __extendedEncodeURIComponent(labelValue));
|
|
382
|
-
}
|
|
383
|
-
else {
|
|
384
|
-
throw new Error("No value provided for input HTTP label: SiteId.");
|
|
385
|
-
}
|
|
386
|
-
query = __assign({}, (input.AddressType !== undefined && { AddressType: input.AddressType }));
|
|
298
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "SiteId", function () { return input.SiteId; }, "{SiteId}", false);
|
|
299
|
+
query = map({
|
|
300
|
+
AddressType: [, input.AddressType],
|
|
301
|
+
});
|
|
387
302
|
return [2, new __HttpRequest({
|
|
388
303
|
protocol: protocol,
|
|
389
304
|
hostname: hostname,
|
|
@@ -398,7 +313,7 @@ export var serializeAws_restJson1GetSiteAddressCommand = function (input, contex
|
|
|
398
313
|
});
|
|
399
314
|
}); };
|
|
400
315
|
export var serializeAws_restJson1ListAssetsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
401
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
316
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
402
317
|
return __generator(this, function (_c) {
|
|
403
318
|
switch (_c.label) {
|
|
404
319
|
case 0: return [4, context.endpoint()];
|
|
@@ -406,19 +321,15 @@ export var serializeAws_restJson1ListAssetsCommand = function (input, context) {
|
|
|
406
321
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
407
322
|
headers = {};
|
|
408
323
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/outposts/{OutpostIdentifier}/assets";
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
}
|
|
419
|
-
query = __assign(__assign(__assign({}, (input.HostIdFilter !== undefined && {
|
|
420
|
-
HostIdFilter: (input.HostIdFilter || []).map(function (_entry) { return _entry; }),
|
|
421
|
-
})), (input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { NextToken: input.NextToken }));
|
|
324
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "OutpostIdentifier", function () { return input.OutpostIdentifier; }, "{OutpostIdentifier}", false);
|
|
325
|
+
query = map({
|
|
326
|
+
HostIdFilter: [
|
|
327
|
+
function () { return input.HostIdFilter !== void 0; },
|
|
328
|
+
function () { return (input.HostIdFilter || []).map(function (_entry) { return _entry; }); },
|
|
329
|
+
],
|
|
330
|
+
MaxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
331
|
+
NextToken: [, input.NextToken],
|
|
332
|
+
});
|
|
422
333
|
return [2, new __HttpRequest({
|
|
423
334
|
protocol: protocol,
|
|
424
335
|
hostname: hostname,
|
|
@@ -441,13 +352,22 @@ export var serializeAws_restJson1ListCatalogItemsCommand = function (input, cont
|
|
|
441
352
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
442
353
|
headers = {};
|
|
443
354
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/catalog/items";
|
|
444
|
-
query =
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
355
|
+
query = map({
|
|
356
|
+
NextToken: [, input.NextToken],
|
|
357
|
+
MaxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
358
|
+
ItemClassFilter: [
|
|
359
|
+
function () { return input.ItemClassFilter !== void 0; },
|
|
360
|
+
function () { return (input.ItemClassFilter || []).map(function (_entry) { return _entry; }); },
|
|
361
|
+
],
|
|
362
|
+
SupportedStorageFilter: [
|
|
363
|
+
function () { return input.SupportedStorageFilter !== void 0; },
|
|
364
|
+
function () { return (input.SupportedStorageFilter || []).map(function (_entry) { return _entry; }); },
|
|
365
|
+
],
|
|
366
|
+
EC2FamilyFilter: [
|
|
367
|
+
function () { return input.EC2FamilyFilter !== void 0; },
|
|
368
|
+
function () { return (input.EC2FamilyFilter || []).map(function (_entry) { return _entry; }); },
|
|
369
|
+
],
|
|
370
|
+
});
|
|
451
371
|
return [2, new __HttpRequest({
|
|
452
372
|
protocol: protocol,
|
|
453
373
|
hostname: hostname,
|
|
@@ -470,7 +390,11 @@ export var serializeAws_restJson1ListOrdersCommand = function (input, context) {
|
|
|
470
390
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
471
391
|
headers = {};
|
|
472
392
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-orders";
|
|
473
|
-
query =
|
|
393
|
+
query = map({
|
|
394
|
+
OutpostIdentifierFilter: [, input.OutpostIdentifierFilter],
|
|
395
|
+
NextToken: [, input.NextToken],
|
|
396
|
+
MaxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
397
|
+
});
|
|
474
398
|
return [2, new __HttpRequest({
|
|
475
399
|
protocol: protocol,
|
|
476
400
|
hostname: hostname,
|
|
@@ -493,13 +417,22 @@ export var serializeAws_restJson1ListOutpostsCommand = function (input, context)
|
|
|
493
417
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
494
418
|
headers = {};
|
|
495
419
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/outposts";
|
|
496
|
-
query =
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
420
|
+
query = map({
|
|
421
|
+
NextToken: [, input.NextToken],
|
|
422
|
+
MaxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
423
|
+
LifeCycleStatusFilter: [
|
|
424
|
+
function () { return input.LifeCycleStatusFilter !== void 0; },
|
|
425
|
+
function () { return (input.LifeCycleStatusFilter || []).map(function (_entry) { return _entry; }); },
|
|
426
|
+
],
|
|
427
|
+
AvailabilityZoneFilter: [
|
|
428
|
+
function () { return input.AvailabilityZoneFilter !== void 0; },
|
|
429
|
+
function () { return (input.AvailabilityZoneFilter || []).map(function (_entry) { return _entry; }); },
|
|
430
|
+
],
|
|
431
|
+
AvailabilityZoneIdFilter: [
|
|
432
|
+
function () { return input.AvailabilityZoneIdFilter !== void 0; },
|
|
433
|
+
function () { return (input.AvailabilityZoneIdFilter || []).map(function (_entry) { return _entry; }); },
|
|
434
|
+
],
|
|
435
|
+
});
|
|
503
436
|
return [2, new __HttpRequest({
|
|
504
437
|
protocol: protocol,
|
|
505
438
|
hostname: hostname,
|
|
@@ -522,13 +455,22 @@ export var serializeAws_restJson1ListSitesCommand = function (input, context) {
|
|
|
522
455
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
523
456
|
headers = {};
|
|
524
457
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/sites";
|
|
525
|
-
query =
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
458
|
+
query = map({
|
|
459
|
+
NextToken: [, input.NextToken],
|
|
460
|
+
MaxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
461
|
+
OperatingAddressCountryCodeFilter: [
|
|
462
|
+
function () { return input.OperatingAddressCountryCodeFilter !== void 0; },
|
|
463
|
+
function () { return (input.OperatingAddressCountryCodeFilter || []).map(function (_entry) { return _entry; }); },
|
|
464
|
+
],
|
|
465
|
+
OperatingAddressStateOrRegionFilter: [
|
|
466
|
+
function () { return input.OperatingAddressStateOrRegionFilter !== void 0; },
|
|
467
|
+
function () { return (input.OperatingAddressStateOrRegionFilter || []).map(function (_entry) { return _entry; }); },
|
|
468
|
+
],
|
|
469
|
+
OperatingAddressCityFilter: [
|
|
470
|
+
function () { return input.OperatingAddressCityFilter !== void 0; },
|
|
471
|
+
function () { return (input.OperatingAddressCityFilter || []).map(function (_entry) { return _entry; }); },
|
|
472
|
+
],
|
|
473
|
+
});
|
|
532
474
|
return [2, new __HttpRequest({
|
|
533
475
|
protocol: protocol,
|
|
534
476
|
hostname: hostname,
|
|
@@ -543,7 +485,7 @@ export var serializeAws_restJson1ListSitesCommand = function (input, context) {
|
|
|
543
485
|
});
|
|
544
486
|
}); };
|
|
545
487
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
546
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
488
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
547
489
|
return __generator(this, function (_c) {
|
|
548
490
|
switch (_c.label) {
|
|
549
491
|
case 0: return [4, context.endpoint()];
|
|
@@ -551,16 +493,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
551
493
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
552
494
|
headers = {};
|
|
553
495
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
554
|
-
|
|
555
|
-
labelValue = input.ResourceArn;
|
|
556
|
-
if (labelValue.length <= 0) {
|
|
557
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
558
|
-
}
|
|
559
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
560
|
-
}
|
|
561
|
-
else {
|
|
562
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
563
|
-
}
|
|
496
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
564
497
|
return [2, new __HttpRequest({
|
|
565
498
|
protocol: protocol,
|
|
566
499
|
hostname: hostname,
|
|
@@ -600,7 +533,7 @@ export var serializeAws_restJson1StartConnectionCommand = function (input, conte
|
|
|
600
533
|
});
|
|
601
534
|
}); };
|
|
602
535
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
603
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
536
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
604
537
|
return __generator(this, function (_c) {
|
|
605
538
|
switch (_c.label) {
|
|
606
539
|
case 0: return [4, context.endpoint()];
|
|
@@ -610,16 +543,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
610
543
|
"content-type": "application/json",
|
|
611
544
|
};
|
|
612
545
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
613
|
-
|
|
614
|
-
labelValue = input.ResourceArn;
|
|
615
|
-
if (labelValue.length <= 0) {
|
|
616
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
617
|
-
}
|
|
618
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
619
|
-
}
|
|
620
|
-
else {
|
|
621
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
622
|
-
}
|
|
546
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
623
547
|
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
624
548
|
return [2, new __HttpRequest({
|
|
625
549
|
protocol: protocol,
|
|
@@ -634,7 +558,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
634
558
|
});
|
|
635
559
|
}); };
|
|
636
560
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
637
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
561
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
638
562
|
return __generator(this, function (_c) {
|
|
639
563
|
switch (_c.label) {
|
|
640
564
|
case 0: return [4, context.endpoint()];
|
|
@@ -642,17 +566,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
642
566
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
643
567
|
headers = {};
|
|
644
568
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
}
|
|
650
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
651
|
-
}
|
|
652
|
-
else {
|
|
653
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
654
|
-
}
|
|
655
|
-
query = __assign({}, (input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
569
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
570
|
+
query = map({
|
|
571
|
+
tagKeys: [function () { return input.TagKeys !== void 0; }, function () { return (input.TagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
572
|
+
});
|
|
656
573
|
return [2, new __HttpRequest({
|
|
657
574
|
protocol: protocol,
|
|
658
575
|
hostname: hostname,
|
|
@@ -667,7 +584,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
667
584
|
});
|
|
668
585
|
}); };
|
|
669
586
|
export var serializeAws_restJson1UpdateOutpostCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
670
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
587
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
671
588
|
return __generator(this, function (_c) {
|
|
672
589
|
switch (_c.label) {
|
|
673
590
|
case 0: return [4, context.endpoint()];
|
|
@@ -677,16 +594,7 @@ export var serializeAws_restJson1UpdateOutpostCommand = function (input, context
|
|
|
677
594
|
"content-type": "application/json",
|
|
678
595
|
};
|
|
679
596
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/outposts/{OutpostId}";
|
|
680
|
-
|
|
681
|
-
labelValue = input.OutpostId;
|
|
682
|
-
if (labelValue.length <= 0) {
|
|
683
|
-
throw new Error("Empty value provided for input HTTP label: OutpostId.");
|
|
684
|
-
}
|
|
685
|
-
resolvedPath = resolvedPath.replace("{OutpostId}", __extendedEncodeURIComponent(labelValue));
|
|
686
|
-
}
|
|
687
|
-
else {
|
|
688
|
-
throw new Error("No value provided for input HTTP label: OutpostId.");
|
|
689
|
-
}
|
|
597
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "OutpostId", function () { return input.OutpostId; }, "{OutpostId}", false);
|
|
690
598
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.SupportedHardwareType != null && { SupportedHardwareType: input.SupportedHardwareType })));
|
|
691
599
|
return [2, new __HttpRequest({
|
|
692
600
|
protocol: protocol,
|
|
@@ -701,7 +609,7 @@ export var serializeAws_restJson1UpdateOutpostCommand = function (input, context
|
|
|
701
609
|
});
|
|
702
610
|
}); };
|
|
703
611
|
export var serializeAws_restJson1UpdateSiteCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
704
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
612
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
705
613
|
return __generator(this, function (_c) {
|
|
706
614
|
switch (_c.label) {
|
|
707
615
|
case 0: return [4, context.endpoint()];
|
|
@@ -711,16 +619,7 @@ export var serializeAws_restJson1UpdateSiteCommand = function (input, context) {
|
|
|
711
619
|
"content-type": "application/json",
|
|
712
620
|
};
|
|
713
621
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/sites/{SiteId}";
|
|
714
|
-
|
|
715
|
-
labelValue = input.SiteId;
|
|
716
|
-
if (labelValue.length <= 0) {
|
|
717
|
-
throw new Error("Empty value provided for input HTTP label: SiteId.");
|
|
718
|
-
}
|
|
719
|
-
resolvedPath = resolvedPath.replace("{SiteId}", __extendedEncodeURIComponent(labelValue));
|
|
720
|
-
}
|
|
721
|
-
else {
|
|
722
|
-
throw new Error("No value provided for input HTTP label: SiteId.");
|
|
723
|
-
}
|
|
622
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "SiteId", function () { return input.SiteId; }, "{SiteId}", false);
|
|
724
623
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.Notes != null && { Notes: input.Notes })));
|
|
725
624
|
return [2, new __HttpRequest({
|
|
726
625
|
protocol: protocol,
|
|
@@ -735,7 +634,7 @@ export var serializeAws_restJson1UpdateSiteCommand = function (input, context) {
|
|
|
735
634
|
});
|
|
736
635
|
}); };
|
|
737
636
|
export var serializeAws_restJson1UpdateSiteAddressCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
738
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
637
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
739
638
|
return __generator(this, function (_c) {
|
|
740
639
|
switch (_c.label) {
|
|
741
640
|
case 0: return [4, context.endpoint()];
|
|
@@ -745,16 +644,7 @@ export var serializeAws_restJson1UpdateSiteAddressCommand = function (input, con
|
|
|
745
644
|
"content-type": "application/json",
|
|
746
645
|
};
|
|
747
646
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/sites/{SiteId}/address";
|
|
748
|
-
|
|
749
|
-
labelValue = input.SiteId;
|
|
750
|
-
if (labelValue.length <= 0) {
|
|
751
|
-
throw new Error("Empty value provided for input HTTP label: SiteId.");
|
|
752
|
-
}
|
|
753
|
-
resolvedPath = resolvedPath.replace("{SiteId}", __extendedEncodeURIComponent(labelValue));
|
|
754
|
-
}
|
|
755
|
-
else {
|
|
756
|
-
throw new Error("No value provided for input HTTP label: SiteId.");
|
|
757
|
-
}
|
|
647
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "SiteId", function () { return input.SiteId; }, "{SiteId}", false);
|
|
758
648
|
body = JSON.stringify(__assign(__assign({}, (input.Address != null && { Address: serializeAws_restJson1Address(input.Address, context) })), (input.AddressType != null && { AddressType: input.AddressType })));
|
|
759
649
|
return [2, new __HttpRequest({
|
|
760
650
|
protocol: protocol,
|
|
@@ -769,7 +659,7 @@ export var serializeAws_restJson1UpdateSiteAddressCommand = function (input, con
|
|
|
769
659
|
});
|
|
770
660
|
}); };
|
|
771
661
|
export var serializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
772
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
662
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
773
663
|
return __generator(this, function (_c) {
|
|
774
664
|
switch (_c.label) {
|
|
775
665
|
case 0: return [4, context.endpoint()];
|
|
@@ -779,16 +669,7 @@ export var serializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommand = funct
|
|
|
779
669
|
"content-type": "application/json",
|
|
780
670
|
};
|
|
781
671
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/sites/{SiteId}/rackPhysicalProperties";
|
|
782
|
-
|
|
783
|
-
labelValue = input.SiteId;
|
|
784
|
-
if (labelValue.length <= 0) {
|
|
785
|
-
throw new Error("Empty value provided for input HTTP label: SiteId.");
|
|
786
|
-
}
|
|
787
|
-
resolvedPath = resolvedPath.replace("{SiteId}", __extendedEncodeURIComponent(labelValue));
|
|
788
|
-
}
|
|
789
|
-
else {
|
|
790
|
-
throw new Error("No value provided for input HTTP label: SiteId.");
|
|
791
|
-
}
|
|
672
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "SiteId", function () { return input.SiteId; }, "{SiteId}", false);
|
|
792
673
|
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 })));
|
|
793
674
|
return [2, new __HttpRequest({
|
|
794
675
|
protocol: protocol,
|
|
@@ -810,18 +691,18 @@ export var deserializeAws_restJson1CancelOrderCommand = function (output, contex
|
|
|
810
691
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
811
692
|
return [2, deserializeAws_restJson1CancelOrderCommandError(output, context)];
|
|
812
693
|
}
|
|
813
|
-
contents = {
|
|
694
|
+
contents = map({
|
|
814
695
|
$metadata: deserializeMetadata(output),
|
|
815
|
-
};
|
|
696
|
+
});
|
|
816
697
|
return [4, collectBody(output.body, context)];
|
|
817
698
|
case 1:
|
|
818
699
|
_a.sent();
|
|
819
|
-
return [2,
|
|
700
|
+
return [2, contents];
|
|
820
701
|
}
|
|
821
702
|
});
|
|
822
703
|
}); };
|
|
823
704
|
var deserializeAws_restJson1CancelOrderCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
824
|
-
var parsedOutput, _a,
|
|
705
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
825
706
|
var _c;
|
|
826
707
|
return __generator(this, function (_d) {
|
|
827
708
|
switch (_d.label) {
|
|
@@ -858,14 +739,14 @@ var deserializeAws_restJson1CancelOrderCommandError = function (output, context)
|
|
|
858
739
|
case 11: throw _d.sent();
|
|
859
740
|
case 12:
|
|
860
741
|
parsedBody = parsedOutput.body;
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
$metadata: $metadata,
|
|
742
|
+
throwDefaultError({
|
|
743
|
+
output: output,
|
|
744
|
+
parsedBody: parsedBody,
|
|
745
|
+
exceptionCtor: __BaseException,
|
|
746
|
+
errorCode: errorCode,
|
|
867
747
|
});
|
|
868
|
-
|
|
748
|
+
_d.label = 13;
|
|
749
|
+
case 13: return [2];
|
|
869
750
|
}
|
|
870
751
|
});
|
|
871
752
|
}); };
|
|
@@ -877,24 +758,23 @@ export var deserializeAws_restJson1CreateOrderCommand = function (output, contex
|
|
|
877
758
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
878
759
|
return [2, deserializeAws_restJson1CreateOrderCommandError(output, context)];
|
|
879
760
|
}
|
|
880
|
-
contents = {
|
|
761
|
+
contents = map({
|
|
881
762
|
$metadata: deserializeMetadata(output),
|
|
882
|
-
|
|
883
|
-
};
|
|
763
|
+
});
|
|
884
764
|
_a = __expectNonNull;
|
|
885
765
|
_b = __expectObject;
|
|
886
766
|
return [4, parseBody(output.body, context)];
|
|
887
767
|
case 1:
|
|
888
768
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
889
|
-
if (data.Order
|
|
769
|
+
if (data.Order != null) {
|
|
890
770
|
contents.Order = deserializeAws_restJson1Order(data.Order, context);
|
|
891
771
|
}
|
|
892
|
-
return [2,
|
|
772
|
+
return [2, contents];
|
|
893
773
|
}
|
|
894
774
|
});
|
|
895
775
|
}); };
|
|
896
776
|
var deserializeAws_restJson1CreateOrderCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
897
|
-
var parsedOutput, _a,
|
|
777
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
898
778
|
var _c;
|
|
899
779
|
return __generator(this, function (_d) {
|
|
900
780
|
switch (_d.label) {
|
|
@@ -935,14 +815,14 @@ var deserializeAws_restJson1CreateOrderCommandError = function (output, context)
|
|
|
935
815
|
case 13: throw _d.sent();
|
|
936
816
|
case 14:
|
|
937
817
|
parsedBody = parsedOutput.body;
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
$metadata: $metadata,
|
|
818
|
+
throwDefaultError({
|
|
819
|
+
output: output,
|
|
820
|
+
parsedBody: parsedBody,
|
|
821
|
+
exceptionCtor: __BaseException,
|
|
822
|
+
errorCode: errorCode,
|
|
944
823
|
});
|
|
945
|
-
|
|
824
|
+
_d.label = 15;
|
|
825
|
+
case 15: return [2];
|
|
946
826
|
}
|
|
947
827
|
});
|
|
948
828
|
}); };
|
|
@@ -954,24 +834,23 @@ export var deserializeAws_restJson1CreateOutpostCommand = function (output, cont
|
|
|
954
834
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
955
835
|
return [2, deserializeAws_restJson1CreateOutpostCommandError(output, context)];
|
|
956
836
|
}
|
|
957
|
-
contents = {
|
|
837
|
+
contents = map({
|
|
958
838
|
$metadata: deserializeMetadata(output),
|
|
959
|
-
|
|
960
|
-
};
|
|
839
|
+
});
|
|
961
840
|
_a = __expectNonNull;
|
|
962
841
|
_b = __expectObject;
|
|
963
842
|
return [4, parseBody(output.body, context)];
|
|
964
843
|
case 1:
|
|
965
844
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
966
|
-
if (data.Outpost
|
|
845
|
+
if (data.Outpost != null) {
|
|
967
846
|
contents.Outpost = deserializeAws_restJson1Outpost(data.Outpost, context);
|
|
968
847
|
}
|
|
969
|
-
return [2,
|
|
848
|
+
return [2, contents];
|
|
970
849
|
}
|
|
971
850
|
});
|
|
972
851
|
}); };
|
|
973
852
|
var deserializeAws_restJson1CreateOutpostCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
974
|
-
var parsedOutput, _a,
|
|
853
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
975
854
|
var _c;
|
|
976
855
|
return __generator(this, function (_d) {
|
|
977
856
|
switch (_d.label) {
|
|
@@ -1012,14 +891,14 @@ var deserializeAws_restJson1CreateOutpostCommandError = function (output, contex
|
|
|
1012
891
|
case 13: throw _d.sent();
|
|
1013
892
|
case 14:
|
|
1014
893
|
parsedBody = parsedOutput.body;
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
$metadata: $metadata,
|
|
894
|
+
throwDefaultError({
|
|
895
|
+
output: output,
|
|
896
|
+
parsedBody: parsedBody,
|
|
897
|
+
exceptionCtor: __BaseException,
|
|
898
|
+
errorCode: errorCode,
|
|
1021
899
|
});
|
|
1022
|
-
|
|
900
|
+
_d.label = 15;
|
|
901
|
+
case 15: return [2];
|
|
1023
902
|
}
|
|
1024
903
|
});
|
|
1025
904
|
}); };
|
|
@@ -1031,24 +910,23 @@ export var deserializeAws_restJson1CreateSiteCommand = function (output, context
|
|
|
1031
910
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1032
911
|
return [2, deserializeAws_restJson1CreateSiteCommandError(output, context)];
|
|
1033
912
|
}
|
|
1034
|
-
contents = {
|
|
913
|
+
contents = map({
|
|
1035
914
|
$metadata: deserializeMetadata(output),
|
|
1036
|
-
|
|
1037
|
-
};
|
|
915
|
+
});
|
|
1038
916
|
_a = __expectNonNull;
|
|
1039
917
|
_b = __expectObject;
|
|
1040
918
|
return [4, parseBody(output.body, context)];
|
|
1041
919
|
case 1:
|
|
1042
920
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1043
|
-
if (data.Site
|
|
921
|
+
if (data.Site != null) {
|
|
1044
922
|
contents.Site = deserializeAws_restJson1Site(data.Site, context);
|
|
1045
923
|
}
|
|
1046
|
-
return [2,
|
|
924
|
+
return [2, contents];
|
|
1047
925
|
}
|
|
1048
926
|
});
|
|
1049
927
|
}); };
|
|
1050
928
|
var deserializeAws_restJson1CreateSiteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1051
|
-
var parsedOutput, _a,
|
|
929
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1052
930
|
var _c;
|
|
1053
931
|
return __generator(this, function (_d) {
|
|
1054
932
|
switch (_d.label) {
|
|
@@ -1085,14 +963,14 @@ var deserializeAws_restJson1CreateSiteCommandError = function (output, context)
|
|
|
1085
963
|
case 11: throw _d.sent();
|
|
1086
964
|
case 12:
|
|
1087
965
|
parsedBody = parsedOutput.body;
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
$metadata: $metadata,
|
|
966
|
+
throwDefaultError({
|
|
967
|
+
output: output,
|
|
968
|
+
parsedBody: parsedBody,
|
|
969
|
+
exceptionCtor: __BaseException,
|
|
970
|
+
errorCode: errorCode,
|
|
1094
971
|
});
|
|
1095
|
-
|
|
972
|
+
_d.label = 13;
|
|
973
|
+
case 13: return [2];
|
|
1096
974
|
}
|
|
1097
975
|
});
|
|
1098
976
|
}); };
|
|
@@ -1104,18 +982,18 @@ export var deserializeAws_restJson1DeleteOutpostCommand = function (output, cont
|
|
|
1104
982
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1105
983
|
return [2, deserializeAws_restJson1DeleteOutpostCommandError(output, context)];
|
|
1106
984
|
}
|
|
1107
|
-
contents = {
|
|
985
|
+
contents = map({
|
|
1108
986
|
$metadata: deserializeMetadata(output),
|
|
1109
|
-
};
|
|
987
|
+
});
|
|
1110
988
|
return [4, collectBody(output.body, context)];
|
|
1111
989
|
case 1:
|
|
1112
990
|
_a.sent();
|
|
1113
|
-
return [2,
|
|
991
|
+
return [2, contents];
|
|
1114
992
|
}
|
|
1115
993
|
});
|
|
1116
994
|
}); };
|
|
1117
995
|
var deserializeAws_restJson1DeleteOutpostCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1118
|
-
var parsedOutput, _a,
|
|
996
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1119
997
|
var _c;
|
|
1120
998
|
return __generator(this, function (_d) {
|
|
1121
999
|
switch (_d.label) {
|
|
@@ -1152,14 +1030,14 @@ var deserializeAws_restJson1DeleteOutpostCommandError = function (output, contex
|
|
|
1152
1030
|
case 11: throw _d.sent();
|
|
1153
1031
|
case 12:
|
|
1154
1032
|
parsedBody = parsedOutput.body;
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
$metadata: $metadata,
|
|
1033
|
+
throwDefaultError({
|
|
1034
|
+
output: output,
|
|
1035
|
+
parsedBody: parsedBody,
|
|
1036
|
+
exceptionCtor: __BaseException,
|
|
1037
|
+
errorCode: errorCode,
|
|
1161
1038
|
});
|
|
1162
|
-
|
|
1039
|
+
_d.label = 13;
|
|
1040
|
+
case 13: return [2];
|
|
1163
1041
|
}
|
|
1164
1042
|
});
|
|
1165
1043
|
}); };
|
|
@@ -1171,18 +1049,18 @@ export var deserializeAws_restJson1DeleteSiteCommand = function (output, context
|
|
|
1171
1049
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1172
1050
|
return [2, deserializeAws_restJson1DeleteSiteCommandError(output, context)];
|
|
1173
1051
|
}
|
|
1174
|
-
contents = {
|
|
1052
|
+
contents = map({
|
|
1175
1053
|
$metadata: deserializeMetadata(output),
|
|
1176
|
-
};
|
|
1054
|
+
});
|
|
1177
1055
|
return [4, collectBody(output.body, context)];
|
|
1178
1056
|
case 1:
|
|
1179
1057
|
_a.sent();
|
|
1180
|
-
return [2,
|
|
1058
|
+
return [2, contents];
|
|
1181
1059
|
}
|
|
1182
1060
|
});
|
|
1183
1061
|
}); };
|
|
1184
1062
|
var deserializeAws_restJson1DeleteSiteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1185
|
-
var parsedOutput, _a,
|
|
1063
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1186
1064
|
var _c;
|
|
1187
1065
|
return __generator(this, function (_d) {
|
|
1188
1066
|
switch (_d.label) {
|
|
@@ -1219,14 +1097,14 @@ var deserializeAws_restJson1DeleteSiteCommandError = function (output, context)
|
|
|
1219
1097
|
case 11: throw _d.sent();
|
|
1220
1098
|
case 12:
|
|
1221
1099
|
parsedBody = parsedOutput.body;
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
$metadata: $metadata,
|
|
1100
|
+
throwDefaultError({
|
|
1101
|
+
output: output,
|
|
1102
|
+
parsedBody: parsedBody,
|
|
1103
|
+
exceptionCtor: __BaseException,
|
|
1104
|
+
errorCode: errorCode,
|
|
1228
1105
|
});
|
|
1229
|
-
|
|
1106
|
+
_d.label = 13;
|
|
1107
|
+
case 13: return [2];
|
|
1230
1108
|
}
|
|
1231
1109
|
});
|
|
1232
1110
|
}); };
|
|
@@ -1238,24 +1116,23 @@ export var deserializeAws_restJson1GetCatalogItemCommand = function (output, con
|
|
|
1238
1116
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1239
1117
|
return [2, deserializeAws_restJson1GetCatalogItemCommandError(output, context)];
|
|
1240
1118
|
}
|
|
1241
|
-
contents = {
|
|
1119
|
+
contents = map({
|
|
1242
1120
|
$metadata: deserializeMetadata(output),
|
|
1243
|
-
|
|
1244
|
-
};
|
|
1121
|
+
});
|
|
1245
1122
|
_a = __expectNonNull;
|
|
1246
1123
|
_b = __expectObject;
|
|
1247
1124
|
return [4, parseBody(output.body, context)];
|
|
1248
1125
|
case 1:
|
|
1249
1126
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1250
|
-
if (data.CatalogItem
|
|
1127
|
+
if (data.CatalogItem != null) {
|
|
1251
1128
|
contents.CatalogItem = deserializeAws_restJson1CatalogItem(data.CatalogItem, context);
|
|
1252
1129
|
}
|
|
1253
|
-
return [2,
|
|
1130
|
+
return [2, contents];
|
|
1254
1131
|
}
|
|
1255
1132
|
});
|
|
1256
1133
|
}); };
|
|
1257
1134
|
var deserializeAws_restJson1GetCatalogItemCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1258
|
-
var parsedOutput, _a,
|
|
1135
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1259
1136
|
var _c;
|
|
1260
1137
|
return __generator(this, function (_d) {
|
|
1261
1138
|
switch (_d.label) {
|
|
@@ -1284,14 +1161,14 @@ var deserializeAws_restJson1GetCatalogItemCommandError = function (output, conte
|
|
|
1284
1161
|
case 7: throw _d.sent();
|
|
1285
1162
|
case 8:
|
|
1286
1163
|
parsedBody = parsedOutput.body;
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
$metadata: $metadata,
|
|
1164
|
+
throwDefaultError({
|
|
1165
|
+
output: output,
|
|
1166
|
+
parsedBody: parsedBody,
|
|
1167
|
+
exceptionCtor: __BaseException,
|
|
1168
|
+
errorCode: errorCode,
|
|
1293
1169
|
});
|
|
1294
|
-
|
|
1170
|
+
_d.label = 9;
|
|
1171
|
+
case 9: return [2];
|
|
1295
1172
|
}
|
|
1296
1173
|
});
|
|
1297
1174
|
}); };
|
|
@@ -1303,28 +1180,26 @@ export var deserializeAws_restJson1GetConnectionCommand = function (output, cont
|
|
|
1303
1180
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1304
1181
|
return [2, deserializeAws_restJson1GetConnectionCommandError(output, context)];
|
|
1305
1182
|
}
|
|
1306
|
-
contents = {
|
|
1183
|
+
contents = map({
|
|
1307
1184
|
$metadata: deserializeMetadata(output),
|
|
1308
|
-
|
|
1309
|
-
ConnectionId: undefined,
|
|
1310
|
-
};
|
|
1185
|
+
});
|
|
1311
1186
|
_a = __expectNonNull;
|
|
1312
1187
|
_b = __expectObject;
|
|
1313
1188
|
return [4, parseBody(output.body, context)];
|
|
1314
1189
|
case 1:
|
|
1315
1190
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1316
|
-
if (data.ConnectionDetails
|
|
1191
|
+
if (data.ConnectionDetails != null) {
|
|
1317
1192
|
contents.ConnectionDetails = deserializeAws_restJson1ConnectionDetails(data.ConnectionDetails, context);
|
|
1318
1193
|
}
|
|
1319
|
-
if (data.ConnectionId
|
|
1194
|
+
if (data.ConnectionId != null) {
|
|
1320
1195
|
contents.ConnectionId = __expectString(data.ConnectionId);
|
|
1321
1196
|
}
|
|
1322
|
-
return [2,
|
|
1197
|
+
return [2, contents];
|
|
1323
1198
|
}
|
|
1324
1199
|
});
|
|
1325
1200
|
}); };
|
|
1326
1201
|
var deserializeAws_restJson1GetConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1327
|
-
var parsedOutput, _a,
|
|
1202
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1328
1203
|
var _c;
|
|
1329
1204
|
return __generator(this, function (_d) {
|
|
1330
1205
|
switch (_d.label) {
|
|
@@ -1357,14 +1232,14 @@ var deserializeAws_restJson1GetConnectionCommandError = function (output, contex
|
|
|
1357
1232
|
case 9: throw _d.sent();
|
|
1358
1233
|
case 10:
|
|
1359
1234
|
parsedBody = parsedOutput.body;
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
$metadata: $metadata,
|
|
1235
|
+
throwDefaultError({
|
|
1236
|
+
output: output,
|
|
1237
|
+
parsedBody: parsedBody,
|
|
1238
|
+
exceptionCtor: __BaseException,
|
|
1239
|
+
errorCode: errorCode,
|
|
1366
1240
|
});
|
|
1367
|
-
|
|
1241
|
+
_d.label = 11;
|
|
1242
|
+
case 11: return [2];
|
|
1368
1243
|
}
|
|
1369
1244
|
});
|
|
1370
1245
|
}); };
|
|
@@ -1376,24 +1251,23 @@ export var deserializeAws_restJson1GetOrderCommand = function (output, context)
|
|
|
1376
1251
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1377
1252
|
return [2, deserializeAws_restJson1GetOrderCommandError(output, context)];
|
|
1378
1253
|
}
|
|
1379
|
-
contents = {
|
|
1254
|
+
contents = map({
|
|
1380
1255
|
$metadata: deserializeMetadata(output),
|
|
1381
|
-
|
|
1382
|
-
};
|
|
1256
|
+
});
|
|
1383
1257
|
_a = __expectNonNull;
|
|
1384
1258
|
_b = __expectObject;
|
|
1385
1259
|
return [4, parseBody(output.body, context)];
|
|
1386
1260
|
case 1:
|
|
1387
1261
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1388
|
-
if (data.Order
|
|
1262
|
+
if (data.Order != null) {
|
|
1389
1263
|
contents.Order = deserializeAws_restJson1Order(data.Order, context);
|
|
1390
1264
|
}
|
|
1391
|
-
return [2,
|
|
1265
|
+
return [2, contents];
|
|
1392
1266
|
}
|
|
1393
1267
|
});
|
|
1394
1268
|
}); };
|
|
1395
1269
|
var deserializeAws_restJson1GetOrderCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1396
|
-
var parsedOutput, _a,
|
|
1270
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1397
1271
|
var _c;
|
|
1398
1272
|
return __generator(this, function (_d) {
|
|
1399
1273
|
switch (_d.label) {
|
|
@@ -1422,14 +1296,14 @@ var deserializeAws_restJson1GetOrderCommandError = function (output, context) {
|
|
|
1422
1296
|
case 7: throw _d.sent();
|
|
1423
1297
|
case 8:
|
|
1424
1298
|
parsedBody = parsedOutput.body;
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
$metadata: $metadata,
|
|
1299
|
+
throwDefaultError({
|
|
1300
|
+
output: output,
|
|
1301
|
+
parsedBody: parsedBody,
|
|
1302
|
+
exceptionCtor: __BaseException,
|
|
1303
|
+
errorCode: errorCode,
|
|
1431
1304
|
});
|
|
1432
|
-
|
|
1305
|
+
_d.label = 9;
|
|
1306
|
+
case 9: return [2];
|
|
1433
1307
|
}
|
|
1434
1308
|
});
|
|
1435
1309
|
}); };
|
|
@@ -1441,24 +1315,23 @@ export var deserializeAws_restJson1GetOutpostCommand = function (output, context
|
|
|
1441
1315
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1442
1316
|
return [2, deserializeAws_restJson1GetOutpostCommandError(output, context)];
|
|
1443
1317
|
}
|
|
1444
|
-
contents = {
|
|
1318
|
+
contents = map({
|
|
1445
1319
|
$metadata: deserializeMetadata(output),
|
|
1446
|
-
|
|
1447
|
-
};
|
|
1320
|
+
});
|
|
1448
1321
|
_a = __expectNonNull;
|
|
1449
1322
|
_b = __expectObject;
|
|
1450
1323
|
return [4, parseBody(output.body, context)];
|
|
1451
1324
|
case 1:
|
|
1452
1325
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1453
|
-
if (data.Outpost
|
|
1326
|
+
if (data.Outpost != null) {
|
|
1454
1327
|
contents.Outpost = deserializeAws_restJson1Outpost(data.Outpost, context);
|
|
1455
1328
|
}
|
|
1456
|
-
return [2,
|
|
1329
|
+
return [2, contents];
|
|
1457
1330
|
}
|
|
1458
1331
|
});
|
|
1459
1332
|
}); };
|
|
1460
1333
|
var deserializeAws_restJson1GetOutpostCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1461
|
-
var parsedOutput, _a,
|
|
1334
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1462
1335
|
var _c;
|
|
1463
1336
|
return __generator(this, function (_d) {
|
|
1464
1337
|
switch (_d.label) {
|
|
@@ -1491,14 +1364,14 @@ var deserializeAws_restJson1GetOutpostCommandError = function (output, context)
|
|
|
1491
1364
|
case 9: throw _d.sent();
|
|
1492
1365
|
case 10:
|
|
1493
1366
|
parsedBody = parsedOutput.body;
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
$metadata: $metadata,
|
|
1367
|
+
throwDefaultError({
|
|
1368
|
+
output: output,
|
|
1369
|
+
parsedBody: parsedBody,
|
|
1370
|
+
exceptionCtor: __BaseException,
|
|
1371
|
+
errorCode: errorCode,
|
|
1500
1372
|
});
|
|
1501
|
-
|
|
1373
|
+
_d.label = 11;
|
|
1374
|
+
case 11: return [2];
|
|
1502
1375
|
}
|
|
1503
1376
|
});
|
|
1504
1377
|
}); };
|
|
@@ -1510,36 +1383,32 @@ export var deserializeAws_restJson1GetOutpostInstanceTypesCommand = function (ou
|
|
|
1510
1383
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1511
1384
|
return [2, deserializeAws_restJson1GetOutpostInstanceTypesCommandError(output, context)];
|
|
1512
1385
|
}
|
|
1513
|
-
contents = {
|
|
1386
|
+
contents = map({
|
|
1514
1387
|
$metadata: deserializeMetadata(output),
|
|
1515
|
-
|
|
1516
|
-
NextToken: undefined,
|
|
1517
|
-
OutpostArn: undefined,
|
|
1518
|
-
OutpostId: undefined,
|
|
1519
|
-
};
|
|
1388
|
+
});
|
|
1520
1389
|
_a = __expectNonNull;
|
|
1521
1390
|
_b = __expectObject;
|
|
1522
1391
|
return [4, parseBody(output.body, context)];
|
|
1523
1392
|
case 1:
|
|
1524
1393
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1525
|
-
if (data.InstanceTypes
|
|
1394
|
+
if (data.InstanceTypes != null) {
|
|
1526
1395
|
contents.InstanceTypes = deserializeAws_restJson1InstanceTypeListDefinition(data.InstanceTypes, context);
|
|
1527
1396
|
}
|
|
1528
|
-
if (data.NextToken
|
|
1397
|
+
if (data.NextToken != null) {
|
|
1529
1398
|
contents.NextToken = __expectString(data.NextToken);
|
|
1530
1399
|
}
|
|
1531
|
-
if (data.OutpostArn
|
|
1400
|
+
if (data.OutpostArn != null) {
|
|
1532
1401
|
contents.OutpostArn = __expectString(data.OutpostArn);
|
|
1533
1402
|
}
|
|
1534
|
-
if (data.OutpostId
|
|
1403
|
+
if (data.OutpostId != null) {
|
|
1535
1404
|
contents.OutpostId = __expectString(data.OutpostId);
|
|
1536
1405
|
}
|
|
1537
|
-
return [2,
|
|
1406
|
+
return [2, contents];
|
|
1538
1407
|
}
|
|
1539
1408
|
});
|
|
1540
1409
|
}); };
|
|
1541
1410
|
var deserializeAws_restJson1GetOutpostInstanceTypesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1542
|
-
var parsedOutput, _a,
|
|
1411
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1543
1412
|
var _c;
|
|
1544
1413
|
return __generator(this, function (_d) {
|
|
1545
1414
|
switch (_d.label) {
|
|
@@ -1572,14 +1441,14 @@ var deserializeAws_restJson1GetOutpostInstanceTypesCommandError = function (outp
|
|
|
1572
1441
|
case 9: throw _d.sent();
|
|
1573
1442
|
case 10:
|
|
1574
1443
|
parsedBody = parsedOutput.body;
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
$metadata: $metadata,
|
|
1444
|
+
throwDefaultError({
|
|
1445
|
+
output: output,
|
|
1446
|
+
parsedBody: parsedBody,
|
|
1447
|
+
exceptionCtor: __BaseException,
|
|
1448
|
+
errorCode: errorCode,
|
|
1581
1449
|
});
|
|
1582
|
-
|
|
1450
|
+
_d.label = 11;
|
|
1451
|
+
case 11: return [2];
|
|
1583
1452
|
}
|
|
1584
1453
|
});
|
|
1585
1454
|
}); };
|
|
@@ -1591,24 +1460,23 @@ export var deserializeAws_restJson1GetSiteCommand = function (output, context) {
|
|
|
1591
1460
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1592
1461
|
return [2, deserializeAws_restJson1GetSiteCommandError(output, context)];
|
|
1593
1462
|
}
|
|
1594
|
-
contents = {
|
|
1463
|
+
contents = map({
|
|
1595
1464
|
$metadata: deserializeMetadata(output),
|
|
1596
|
-
|
|
1597
|
-
};
|
|
1465
|
+
});
|
|
1598
1466
|
_a = __expectNonNull;
|
|
1599
1467
|
_b = __expectObject;
|
|
1600
1468
|
return [4, parseBody(output.body, context)];
|
|
1601
1469
|
case 1:
|
|
1602
1470
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1603
|
-
if (data.Site
|
|
1471
|
+
if (data.Site != null) {
|
|
1604
1472
|
contents.Site = deserializeAws_restJson1Site(data.Site, context);
|
|
1605
1473
|
}
|
|
1606
|
-
return [2,
|
|
1474
|
+
return [2, contents];
|
|
1607
1475
|
}
|
|
1608
1476
|
});
|
|
1609
1477
|
}); };
|
|
1610
1478
|
var deserializeAws_restJson1GetSiteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1611
|
-
var parsedOutput, _a,
|
|
1479
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1612
1480
|
var _c;
|
|
1613
1481
|
return __generator(this, function (_d) {
|
|
1614
1482
|
switch (_d.label) {
|
|
@@ -1641,14 +1509,14 @@ var deserializeAws_restJson1GetSiteCommandError = function (output, context) { r
|
|
|
1641
1509
|
case 9: throw _d.sent();
|
|
1642
1510
|
case 10:
|
|
1643
1511
|
parsedBody = parsedOutput.body;
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
$metadata: $metadata,
|
|
1512
|
+
throwDefaultError({
|
|
1513
|
+
output: output,
|
|
1514
|
+
parsedBody: parsedBody,
|
|
1515
|
+
exceptionCtor: __BaseException,
|
|
1516
|
+
errorCode: errorCode,
|
|
1650
1517
|
});
|
|
1651
|
-
|
|
1518
|
+
_d.label = 11;
|
|
1519
|
+
case 11: return [2];
|
|
1652
1520
|
}
|
|
1653
1521
|
});
|
|
1654
1522
|
}); };
|
|
@@ -1660,32 +1528,29 @@ export var deserializeAws_restJson1GetSiteAddressCommand = function (output, con
|
|
|
1660
1528
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1661
1529
|
return [2, deserializeAws_restJson1GetSiteAddressCommandError(output, context)];
|
|
1662
1530
|
}
|
|
1663
|
-
contents = {
|
|
1531
|
+
contents = map({
|
|
1664
1532
|
$metadata: deserializeMetadata(output),
|
|
1665
|
-
|
|
1666
|
-
AddressType: undefined,
|
|
1667
|
-
SiteId: undefined,
|
|
1668
|
-
};
|
|
1533
|
+
});
|
|
1669
1534
|
_a = __expectNonNull;
|
|
1670
1535
|
_b = __expectObject;
|
|
1671
1536
|
return [4, parseBody(output.body, context)];
|
|
1672
1537
|
case 1:
|
|
1673
1538
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1674
|
-
if (data.Address
|
|
1539
|
+
if (data.Address != null) {
|
|
1675
1540
|
contents.Address = deserializeAws_restJson1Address(data.Address, context);
|
|
1676
1541
|
}
|
|
1677
|
-
if (data.AddressType
|
|
1542
|
+
if (data.AddressType != null) {
|
|
1678
1543
|
contents.AddressType = __expectString(data.AddressType);
|
|
1679
1544
|
}
|
|
1680
|
-
if (data.SiteId
|
|
1545
|
+
if (data.SiteId != null) {
|
|
1681
1546
|
contents.SiteId = __expectString(data.SiteId);
|
|
1682
1547
|
}
|
|
1683
|
-
return [2,
|
|
1548
|
+
return [2, contents];
|
|
1684
1549
|
}
|
|
1685
1550
|
});
|
|
1686
1551
|
}); };
|
|
1687
1552
|
var deserializeAws_restJson1GetSiteAddressCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1688
|
-
var parsedOutput, _a,
|
|
1553
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1689
1554
|
var _c;
|
|
1690
1555
|
return __generator(this, function (_d) {
|
|
1691
1556
|
switch (_d.label) {
|
|
@@ -1718,14 +1583,14 @@ var deserializeAws_restJson1GetSiteAddressCommandError = function (output, conte
|
|
|
1718
1583
|
case 9: throw _d.sent();
|
|
1719
1584
|
case 10:
|
|
1720
1585
|
parsedBody = parsedOutput.body;
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
$metadata: $metadata,
|
|
1586
|
+
throwDefaultError({
|
|
1587
|
+
output: output,
|
|
1588
|
+
parsedBody: parsedBody,
|
|
1589
|
+
exceptionCtor: __BaseException,
|
|
1590
|
+
errorCode: errorCode,
|
|
1727
1591
|
});
|
|
1728
|
-
|
|
1592
|
+
_d.label = 11;
|
|
1593
|
+
case 11: return [2];
|
|
1729
1594
|
}
|
|
1730
1595
|
});
|
|
1731
1596
|
}); };
|
|
@@ -1737,28 +1602,26 @@ export var deserializeAws_restJson1ListAssetsCommand = function (output, context
|
|
|
1737
1602
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1738
1603
|
return [2, deserializeAws_restJson1ListAssetsCommandError(output, context)];
|
|
1739
1604
|
}
|
|
1740
|
-
contents = {
|
|
1605
|
+
contents = map({
|
|
1741
1606
|
$metadata: deserializeMetadata(output),
|
|
1742
|
-
|
|
1743
|
-
NextToken: undefined,
|
|
1744
|
-
};
|
|
1607
|
+
});
|
|
1745
1608
|
_a = __expectNonNull;
|
|
1746
1609
|
_b = __expectObject;
|
|
1747
1610
|
return [4, parseBody(output.body, context)];
|
|
1748
1611
|
case 1:
|
|
1749
1612
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1750
|
-
if (data.Assets
|
|
1613
|
+
if (data.Assets != null) {
|
|
1751
1614
|
contents.Assets = deserializeAws_restJson1AssetListDefinition(data.Assets, context);
|
|
1752
1615
|
}
|
|
1753
|
-
if (data.NextToken
|
|
1616
|
+
if (data.NextToken != null) {
|
|
1754
1617
|
contents.NextToken = __expectString(data.NextToken);
|
|
1755
1618
|
}
|
|
1756
|
-
return [2,
|
|
1619
|
+
return [2, contents];
|
|
1757
1620
|
}
|
|
1758
1621
|
});
|
|
1759
1622
|
}); };
|
|
1760
1623
|
var deserializeAws_restJson1ListAssetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1761
|
-
var parsedOutput, _a,
|
|
1624
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1762
1625
|
var _c;
|
|
1763
1626
|
return __generator(this, function (_d) {
|
|
1764
1627
|
switch (_d.label) {
|
|
@@ -1791,14 +1654,14 @@ var deserializeAws_restJson1ListAssetsCommandError = function (output, context)
|
|
|
1791
1654
|
case 9: throw _d.sent();
|
|
1792
1655
|
case 10:
|
|
1793
1656
|
parsedBody = parsedOutput.body;
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
$metadata: $metadata,
|
|
1657
|
+
throwDefaultError({
|
|
1658
|
+
output: output,
|
|
1659
|
+
parsedBody: parsedBody,
|
|
1660
|
+
exceptionCtor: __BaseException,
|
|
1661
|
+
errorCode: errorCode,
|
|
1800
1662
|
});
|
|
1801
|
-
|
|
1663
|
+
_d.label = 11;
|
|
1664
|
+
case 11: return [2];
|
|
1802
1665
|
}
|
|
1803
1666
|
});
|
|
1804
1667
|
}); };
|
|
@@ -1810,28 +1673,26 @@ export var deserializeAws_restJson1ListCatalogItemsCommand = function (output, c
|
|
|
1810
1673
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1811
1674
|
return [2, deserializeAws_restJson1ListCatalogItemsCommandError(output, context)];
|
|
1812
1675
|
}
|
|
1813
|
-
contents = {
|
|
1676
|
+
contents = map({
|
|
1814
1677
|
$metadata: deserializeMetadata(output),
|
|
1815
|
-
|
|
1816
|
-
NextToken: undefined,
|
|
1817
|
-
};
|
|
1678
|
+
});
|
|
1818
1679
|
_a = __expectNonNull;
|
|
1819
1680
|
_b = __expectObject;
|
|
1820
1681
|
return [4, parseBody(output.body, context)];
|
|
1821
1682
|
case 1:
|
|
1822
1683
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1823
|
-
if (data.CatalogItems
|
|
1684
|
+
if (data.CatalogItems != null) {
|
|
1824
1685
|
contents.CatalogItems = deserializeAws_restJson1CatalogItemListDefinition(data.CatalogItems, context);
|
|
1825
1686
|
}
|
|
1826
|
-
if (data.NextToken
|
|
1687
|
+
if (data.NextToken != null) {
|
|
1827
1688
|
contents.NextToken = __expectString(data.NextToken);
|
|
1828
1689
|
}
|
|
1829
|
-
return [2,
|
|
1690
|
+
return [2, contents];
|
|
1830
1691
|
}
|
|
1831
1692
|
});
|
|
1832
1693
|
}); };
|
|
1833
1694
|
var deserializeAws_restJson1ListCatalogItemsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1834
|
-
var parsedOutput, _a,
|
|
1695
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1835
1696
|
var _c;
|
|
1836
1697
|
return __generator(this, function (_d) {
|
|
1837
1698
|
switch (_d.label) {
|
|
@@ -1860,14 +1721,14 @@ var deserializeAws_restJson1ListCatalogItemsCommandError = function (output, con
|
|
|
1860
1721
|
case 7: throw _d.sent();
|
|
1861
1722
|
case 8:
|
|
1862
1723
|
parsedBody = parsedOutput.body;
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
$metadata: $metadata,
|
|
1724
|
+
throwDefaultError({
|
|
1725
|
+
output: output,
|
|
1726
|
+
parsedBody: parsedBody,
|
|
1727
|
+
exceptionCtor: __BaseException,
|
|
1728
|
+
errorCode: errorCode,
|
|
1869
1729
|
});
|
|
1870
|
-
|
|
1730
|
+
_d.label = 9;
|
|
1731
|
+
case 9: return [2];
|
|
1871
1732
|
}
|
|
1872
1733
|
});
|
|
1873
1734
|
}); };
|
|
@@ -1879,28 +1740,26 @@ export var deserializeAws_restJson1ListOrdersCommand = function (output, context
|
|
|
1879
1740
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1880
1741
|
return [2, deserializeAws_restJson1ListOrdersCommandError(output, context)];
|
|
1881
1742
|
}
|
|
1882
|
-
contents = {
|
|
1743
|
+
contents = map({
|
|
1883
1744
|
$metadata: deserializeMetadata(output),
|
|
1884
|
-
|
|
1885
|
-
Orders: undefined,
|
|
1886
|
-
};
|
|
1745
|
+
});
|
|
1887
1746
|
_a = __expectNonNull;
|
|
1888
1747
|
_b = __expectObject;
|
|
1889
1748
|
return [4, parseBody(output.body, context)];
|
|
1890
1749
|
case 1:
|
|
1891
1750
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1892
|
-
if (data.NextToken
|
|
1751
|
+
if (data.NextToken != null) {
|
|
1893
1752
|
contents.NextToken = __expectString(data.NextToken);
|
|
1894
1753
|
}
|
|
1895
|
-
if (data.Orders
|
|
1754
|
+
if (data.Orders != null) {
|
|
1896
1755
|
contents.Orders = deserializeAws_restJson1OrderSummaryListDefinition(data.Orders, context);
|
|
1897
1756
|
}
|
|
1898
|
-
return [2,
|
|
1757
|
+
return [2, contents];
|
|
1899
1758
|
}
|
|
1900
1759
|
});
|
|
1901
1760
|
}); };
|
|
1902
1761
|
var deserializeAws_restJson1ListOrdersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1903
|
-
var parsedOutput, _a,
|
|
1762
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1904
1763
|
var _c;
|
|
1905
1764
|
return __generator(this, function (_d) {
|
|
1906
1765
|
switch (_d.label) {
|
|
@@ -1933,14 +1792,14 @@ var deserializeAws_restJson1ListOrdersCommandError = function (output, context)
|
|
|
1933
1792
|
case 9: throw _d.sent();
|
|
1934
1793
|
case 10:
|
|
1935
1794
|
parsedBody = parsedOutput.body;
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
$metadata: $metadata,
|
|
1795
|
+
throwDefaultError({
|
|
1796
|
+
output: output,
|
|
1797
|
+
parsedBody: parsedBody,
|
|
1798
|
+
exceptionCtor: __BaseException,
|
|
1799
|
+
errorCode: errorCode,
|
|
1942
1800
|
});
|
|
1943
|
-
|
|
1801
|
+
_d.label = 11;
|
|
1802
|
+
case 11: return [2];
|
|
1944
1803
|
}
|
|
1945
1804
|
});
|
|
1946
1805
|
}); };
|
|
@@ -1952,28 +1811,26 @@ export var deserializeAws_restJson1ListOutpostsCommand = function (output, conte
|
|
|
1952
1811
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1953
1812
|
return [2, deserializeAws_restJson1ListOutpostsCommandError(output, context)];
|
|
1954
1813
|
}
|
|
1955
|
-
contents = {
|
|
1814
|
+
contents = map({
|
|
1956
1815
|
$metadata: deserializeMetadata(output),
|
|
1957
|
-
|
|
1958
|
-
Outposts: undefined,
|
|
1959
|
-
};
|
|
1816
|
+
});
|
|
1960
1817
|
_a = __expectNonNull;
|
|
1961
1818
|
_b = __expectObject;
|
|
1962
1819
|
return [4, parseBody(output.body, context)];
|
|
1963
1820
|
case 1:
|
|
1964
1821
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1965
|
-
if (data.NextToken
|
|
1822
|
+
if (data.NextToken != null) {
|
|
1966
1823
|
contents.NextToken = __expectString(data.NextToken);
|
|
1967
1824
|
}
|
|
1968
|
-
if (data.Outposts
|
|
1825
|
+
if (data.Outposts != null) {
|
|
1969
1826
|
contents.Outposts = deserializeAws_restJson1outpostListDefinition(data.Outposts, context);
|
|
1970
1827
|
}
|
|
1971
|
-
return [2,
|
|
1828
|
+
return [2, contents];
|
|
1972
1829
|
}
|
|
1973
1830
|
});
|
|
1974
1831
|
}); };
|
|
1975
1832
|
var deserializeAws_restJson1ListOutpostsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1976
|
-
var parsedOutput, _a,
|
|
1833
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1977
1834
|
var _c;
|
|
1978
1835
|
return __generator(this, function (_d) {
|
|
1979
1836
|
switch (_d.label) {
|
|
@@ -2002,14 +1859,14 @@ var deserializeAws_restJson1ListOutpostsCommandError = function (output, context
|
|
|
2002
1859
|
case 7: throw _d.sent();
|
|
2003
1860
|
case 8:
|
|
2004
1861
|
parsedBody = parsedOutput.body;
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
$metadata: $metadata,
|
|
1862
|
+
throwDefaultError({
|
|
1863
|
+
output: output,
|
|
1864
|
+
parsedBody: parsedBody,
|
|
1865
|
+
exceptionCtor: __BaseException,
|
|
1866
|
+
errorCode: errorCode,
|
|
2011
1867
|
});
|
|
2012
|
-
|
|
1868
|
+
_d.label = 9;
|
|
1869
|
+
case 9: return [2];
|
|
2013
1870
|
}
|
|
2014
1871
|
});
|
|
2015
1872
|
}); };
|
|
@@ -2021,28 +1878,26 @@ export var deserializeAws_restJson1ListSitesCommand = function (output, context)
|
|
|
2021
1878
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2022
1879
|
return [2, deserializeAws_restJson1ListSitesCommandError(output, context)];
|
|
2023
1880
|
}
|
|
2024
|
-
contents = {
|
|
1881
|
+
contents = map({
|
|
2025
1882
|
$metadata: deserializeMetadata(output),
|
|
2026
|
-
|
|
2027
|
-
Sites: undefined,
|
|
2028
|
-
};
|
|
1883
|
+
});
|
|
2029
1884
|
_a = __expectNonNull;
|
|
2030
1885
|
_b = __expectObject;
|
|
2031
1886
|
return [4, parseBody(output.body, context)];
|
|
2032
1887
|
case 1:
|
|
2033
1888
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2034
|
-
if (data.NextToken
|
|
1889
|
+
if (data.NextToken != null) {
|
|
2035
1890
|
contents.NextToken = __expectString(data.NextToken);
|
|
2036
1891
|
}
|
|
2037
|
-
if (data.Sites
|
|
1892
|
+
if (data.Sites != null) {
|
|
2038
1893
|
contents.Sites = deserializeAws_restJson1siteListDefinition(data.Sites, context);
|
|
2039
1894
|
}
|
|
2040
|
-
return [2,
|
|
1895
|
+
return [2, contents];
|
|
2041
1896
|
}
|
|
2042
1897
|
});
|
|
2043
1898
|
}); };
|
|
2044
1899
|
var deserializeAws_restJson1ListSitesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2045
|
-
var parsedOutput, _a,
|
|
1900
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2046
1901
|
var _c;
|
|
2047
1902
|
return __generator(this, function (_d) {
|
|
2048
1903
|
switch (_d.label) {
|
|
@@ -2071,14 +1926,14 @@ var deserializeAws_restJson1ListSitesCommandError = function (output, context) {
|
|
|
2071
1926
|
case 7: throw _d.sent();
|
|
2072
1927
|
case 8:
|
|
2073
1928
|
parsedBody = parsedOutput.body;
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
$metadata: $metadata,
|
|
1929
|
+
throwDefaultError({
|
|
1930
|
+
output: output,
|
|
1931
|
+
parsedBody: parsedBody,
|
|
1932
|
+
exceptionCtor: __BaseException,
|
|
1933
|
+
errorCode: errorCode,
|
|
2080
1934
|
});
|
|
2081
|
-
|
|
1935
|
+
_d.label = 9;
|
|
1936
|
+
case 9: return [2];
|
|
2082
1937
|
}
|
|
2083
1938
|
});
|
|
2084
1939
|
}); };
|
|
@@ -2090,24 +1945,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2090
1945
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2091
1946
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
2092
1947
|
}
|
|
2093
|
-
contents = {
|
|
1948
|
+
contents = map({
|
|
2094
1949
|
$metadata: deserializeMetadata(output),
|
|
2095
|
-
|
|
2096
|
-
};
|
|
1950
|
+
});
|
|
2097
1951
|
_a = __expectNonNull;
|
|
2098
1952
|
_b = __expectObject;
|
|
2099
1953
|
return [4, parseBody(output.body, context)];
|
|
2100
1954
|
case 1:
|
|
2101
1955
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2102
|
-
if (data.Tags
|
|
1956
|
+
if (data.Tags != null) {
|
|
2103
1957
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
2104
1958
|
}
|
|
2105
|
-
return [2,
|
|
1959
|
+
return [2, contents];
|
|
2106
1960
|
}
|
|
2107
1961
|
});
|
|
2108
1962
|
}); };
|
|
2109
1963
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2110
|
-
var parsedOutput, _a,
|
|
1964
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2111
1965
|
var _c;
|
|
2112
1966
|
return __generator(this, function (_d) {
|
|
2113
1967
|
switch (_d.label) {
|
|
@@ -2136,14 +1990,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2136
1990
|
case 7: throw _d.sent();
|
|
2137
1991
|
case 8:
|
|
2138
1992
|
parsedBody = parsedOutput.body;
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
$metadata: $metadata,
|
|
1993
|
+
throwDefaultError({
|
|
1994
|
+
output: output,
|
|
1995
|
+
parsedBody: parsedBody,
|
|
1996
|
+
exceptionCtor: __BaseException,
|
|
1997
|
+
errorCode: errorCode,
|
|
2145
1998
|
});
|
|
2146
|
-
|
|
1999
|
+
_d.label = 9;
|
|
2000
|
+
case 9: return [2];
|
|
2147
2001
|
}
|
|
2148
2002
|
});
|
|
2149
2003
|
}); };
|
|
@@ -2155,28 +2009,26 @@ export var deserializeAws_restJson1StartConnectionCommand = function (output, co
|
|
|
2155
2009
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2156
2010
|
return [2, deserializeAws_restJson1StartConnectionCommandError(output, context)];
|
|
2157
2011
|
}
|
|
2158
|
-
contents = {
|
|
2012
|
+
contents = map({
|
|
2159
2013
|
$metadata: deserializeMetadata(output),
|
|
2160
|
-
|
|
2161
|
-
UnderlayIpAddress: undefined,
|
|
2162
|
-
};
|
|
2014
|
+
});
|
|
2163
2015
|
_a = __expectNonNull;
|
|
2164
2016
|
_b = __expectObject;
|
|
2165
2017
|
return [4, parseBody(output.body, context)];
|
|
2166
2018
|
case 1:
|
|
2167
2019
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2168
|
-
if (data.ConnectionId
|
|
2020
|
+
if (data.ConnectionId != null) {
|
|
2169
2021
|
contents.ConnectionId = __expectString(data.ConnectionId);
|
|
2170
2022
|
}
|
|
2171
|
-
if (data.UnderlayIpAddress
|
|
2023
|
+
if (data.UnderlayIpAddress != null) {
|
|
2172
2024
|
contents.UnderlayIpAddress = __expectString(data.UnderlayIpAddress);
|
|
2173
2025
|
}
|
|
2174
|
-
return [2,
|
|
2026
|
+
return [2, contents];
|
|
2175
2027
|
}
|
|
2176
2028
|
});
|
|
2177
2029
|
}); };
|
|
2178
2030
|
var deserializeAws_restJson1StartConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2179
|
-
var parsedOutput, _a,
|
|
2031
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2180
2032
|
var _c;
|
|
2181
2033
|
return __generator(this, function (_d) {
|
|
2182
2034
|
switch (_d.label) {
|
|
@@ -2209,14 +2061,14 @@ var deserializeAws_restJson1StartConnectionCommandError = function (output, cont
|
|
|
2209
2061
|
case 9: throw _d.sent();
|
|
2210
2062
|
case 10:
|
|
2211
2063
|
parsedBody = parsedOutput.body;
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
$metadata: $metadata,
|
|
2064
|
+
throwDefaultError({
|
|
2065
|
+
output: output,
|
|
2066
|
+
parsedBody: parsedBody,
|
|
2067
|
+
exceptionCtor: __BaseException,
|
|
2068
|
+
errorCode: errorCode,
|
|
2218
2069
|
});
|
|
2219
|
-
|
|
2070
|
+
_d.label = 11;
|
|
2071
|
+
case 11: return [2];
|
|
2220
2072
|
}
|
|
2221
2073
|
});
|
|
2222
2074
|
}); };
|
|
@@ -2228,18 +2080,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
2228
2080
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2229
2081
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
2230
2082
|
}
|
|
2231
|
-
contents = {
|
|
2083
|
+
contents = map({
|
|
2232
2084
|
$metadata: deserializeMetadata(output),
|
|
2233
|
-
};
|
|
2085
|
+
});
|
|
2234
2086
|
return [4, collectBody(output.body, context)];
|
|
2235
2087
|
case 1:
|
|
2236
2088
|
_a.sent();
|
|
2237
|
-
return [2,
|
|
2089
|
+
return [2, contents];
|
|
2238
2090
|
}
|
|
2239
2091
|
});
|
|
2240
2092
|
}); };
|
|
2241
2093
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2242
|
-
var parsedOutput, _a,
|
|
2094
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2243
2095
|
var _c;
|
|
2244
2096
|
return __generator(this, function (_d) {
|
|
2245
2097
|
switch (_d.label) {
|
|
@@ -2268,14 +2120,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2268
2120
|
case 7: throw _d.sent();
|
|
2269
2121
|
case 8:
|
|
2270
2122
|
parsedBody = parsedOutput.body;
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
$metadata: $metadata,
|
|
2123
|
+
throwDefaultError({
|
|
2124
|
+
output: output,
|
|
2125
|
+
parsedBody: parsedBody,
|
|
2126
|
+
exceptionCtor: __BaseException,
|
|
2127
|
+
errorCode: errorCode,
|
|
2277
2128
|
});
|
|
2278
|
-
|
|
2129
|
+
_d.label = 9;
|
|
2130
|
+
case 9: return [2];
|
|
2279
2131
|
}
|
|
2280
2132
|
});
|
|
2281
2133
|
}); };
|
|
@@ -2287,18 +2139,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
2287
2139
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2288
2140
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
2289
2141
|
}
|
|
2290
|
-
contents = {
|
|
2142
|
+
contents = map({
|
|
2291
2143
|
$metadata: deserializeMetadata(output),
|
|
2292
|
-
};
|
|
2144
|
+
});
|
|
2293
2145
|
return [4, collectBody(output.body, context)];
|
|
2294
2146
|
case 1:
|
|
2295
2147
|
_a.sent();
|
|
2296
|
-
return [2,
|
|
2148
|
+
return [2, contents];
|
|
2297
2149
|
}
|
|
2298
2150
|
});
|
|
2299
2151
|
}); };
|
|
2300
2152
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2301
|
-
var parsedOutput, _a,
|
|
2153
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2302
2154
|
var _c;
|
|
2303
2155
|
return __generator(this, function (_d) {
|
|
2304
2156
|
switch (_d.label) {
|
|
@@ -2327,14 +2179,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2327
2179
|
case 7: throw _d.sent();
|
|
2328
2180
|
case 8:
|
|
2329
2181
|
parsedBody = parsedOutput.body;
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
$metadata: $metadata,
|
|
2182
|
+
throwDefaultError({
|
|
2183
|
+
output: output,
|
|
2184
|
+
parsedBody: parsedBody,
|
|
2185
|
+
exceptionCtor: __BaseException,
|
|
2186
|
+
errorCode: errorCode,
|
|
2336
2187
|
});
|
|
2337
|
-
|
|
2188
|
+
_d.label = 9;
|
|
2189
|
+
case 9: return [2];
|
|
2338
2190
|
}
|
|
2339
2191
|
});
|
|
2340
2192
|
}); };
|
|
@@ -2346,24 +2198,23 @@ export var deserializeAws_restJson1UpdateOutpostCommand = function (output, cont
|
|
|
2346
2198
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2347
2199
|
return [2, deserializeAws_restJson1UpdateOutpostCommandError(output, context)];
|
|
2348
2200
|
}
|
|
2349
|
-
contents = {
|
|
2201
|
+
contents = map({
|
|
2350
2202
|
$metadata: deserializeMetadata(output),
|
|
2351
|
-
|
|
2352
|
-
};
|
|
2203
|
+
});
|
|
2353
2204
|
_a = __expectNonNull;
|
|
2354
2205
|
_b = __expectObject;
|
|
2355
2206
|
return [4, parseBody(output.body, context)];
|
|
2356
2207
|
case 1:
|
|
2357
2208
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2358
|
-
if (data.Outpost
|
|
2209
|
+
if (data.Outpost != null) {
|
|
2359
2210
|
contents.Outpost = deserializeAws_restJson1Outpost(data.Outpost, context);
|
|
2360
2211
|
}
|
|
2361
|
-
return [2,
|
|
2212
|
+
return [2, contents];
|
|
2362
2213
|
}
|
|
2363
2214
|
});
|
|
2364
2215
|
}); };
|
|
2365
2216
|
var deserializeAws_restJson1UpdateOutpostCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2366
|
-
var parsedOutput, _a,
|
|
2217
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2367
2218
|
var _c;
|
|
2368
2219
|
return __generator(this, function (_d) {
|
|
2369
2220
|
switch (_d.label) {
|
|
@@ -2400,14 +2251,14 @@ var deserializeAws_restJson1UpdateOutpostCommandError = function (output, contex
|
|
|
2400
2251
|
case 11: throw _d.sent();
|
|
2401
2252
|
case 12:
|
|
2402
2253
|
parsedBody = parsedOutput.body;
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
$metadata: $metadata,
|
|
2254
|
+
throwDefaultError({
|
|
2255
|
+
output: output,
|
|
2256
|
+
parsedBody: parsedBody,
|
|
2257
|
+
exceptionCtor: __BaseException,
|
|
2258
|
+
errorCode: errorCode,
|
|
2409
2259
|
});
|
|
2410
|
-
|
|
2260
|
+
_d.label = 13;
|
|
2261
|
+
case 13: return [2];
|
|
2411
2262
|
}
|
|
2412
2263
|
});
|
|
2413
2264
|
}); };
|
|
@@ -2419,24 +2270,23 @@ export var deserializeAws_restJson1UpdateSiteCommand = function (output, context
|
|
|
2419
2270
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2420
2271
|
return [2, deserializeAws_restJson1UpdateSiteCommandError(output, context)];
|
|
2421
2272
|
}
|
|
2422
|
-
contents = {
|
|
2273
|
+
contents = map({
|
|
2423
2274
|
$metadata: deserializeMetadata(output),
|
|
2424
|
-
|
|
2425
|
-
};
|
|
2275
|
+
});
|
|
2426
2276
|
_a = __expectNonNull;
|
|
2427
2277
|
_b = __expectObject;
|
|
2428
2278
|
return [4, parseBody(output.body, context)];
|
|
2429
2279
|
case 1:
|
|
2430
2280
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2431
|
-
if (data.Site
|
|
2281
|
+
if (data.Site != null) {
|
|
2432
2282
|
contents.Site = deserializeAws_restJson1Site(data.Site, context);
|
|
2433
2283
|
}
|
|
2434
|
-
return [2,
|
|
2284
|
+
return [2, contents];
|
|
2435
2285
|
}
|
|
2436
2286
|
});
|
|
2437
2287
|
}); };
|
|
2438
2288
|
var deserializeAws_restJson1UpdateSiteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2439
|
-
var parsedOutput, _a,
|
|
2289
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2440
2290
|
var _c;
|
|
2441
2291
|
return __generator(this, function (_d) {
|
|
2442
2292
|
switch (_d.label) {
|
|
@@ -2473,14 +2323,14 @@ var deserializeAws_restJson1UpdateSiteCommandError = function (output, context)
|
|
|
2473
2323
|
case 11: throw _d.sent();
|
|
2474
2324
|
case 12:
|
|
2475
2325
|
parsedBody = parsedOutput.body;
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
$metadata: $metadata,
|
|
2326
|
+
throwDefaultError({
|
|
2327
|
+
output: output,
|
|
2328
|
+
parsedBody: parsedBody,
|
|
2329
|
+
exceptionCtor: __BaseException,
|
|
2330
|
+
errorCode: errorCode,
|
|
2482
2331
|
});
|
|
2483
|
-
|
|
2332
|
+
_d.label = 13;
|
|
2333
|
+
case 13: return [2];
|
|
2484
2334
|
}
|
|
2485
2335
|
});
|
|
2486
2336
|
}); };
|
|
@@ -2492,28 +2342,26 @@ export var deserializeAws_restJson1UpdateSiteAddressCommand = function (output,
|
|
|
2492
2342
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2493
2343
|
return [2, deserializeAws_restJson1UpdateSiteAddressCommandError(output, context)];
|
|
2494
2344
|
}
|
|
2495
|
-
contents = {
|
|
2345
|
+
contents = map({
|
|
2496
2346
|
$metadata: deserializeMetadata(output),
|
|
2497
|
-
|
|
2498
|
-
AddressType: undefined,
|
|
2499
|
-
};
|
|
2347
|
+
});
|
|
2500
2348
|
_a = __expectNonNull;
|
|
2501
2349
|
_b = __expectObject;
|
|
2502
2350
|
return [4, parseBody(output.body, context)];
|
|
2503
2351
|
case 1:
|
|
2504
2352
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2505
|
-
if (data.Address
|
|
2353
|
+
if (data.Address != null) {
|
|
2506
2354
|
contents.Address = deserializeAws_restJson1Address(data.Address, context);
|
|
2507
2355
|
}
|
|
2508
|
-
if (data.AddressType
|
|
2356
|
+
if (data.AddressType != null) {
|
|
2509
2357
|
contents.AddressType = __expectString(data.AddressType);
|
|
2510
2358
|
}
|
|
2511
|
-
return [2,
|
|
2359
|
+
return [2, contents];
|
|
2512
2360
|
}
|
|
2513
2361
|
});
|
|
2514
2362
|
}); };
|
|
2515
2363
|
var deserializeAws_restJson1UpdateSiteAddressCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2516
|
-
var parsedOutput, _a,
|
|
2364
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2517
2365
|
var _c;
|
|
2518
2366
|
return __generator(this, function (_d) {
|
|
2519
2367
|
switch (_d.label) {
|
|
@@ -2550,14 +2398,14 @@ var deserializeAws_restJson1UpdateSiteAddressCommandError = function (output, co
|
|
|
2550
2398
|
case 11: throw _d.sent();
|
|
2551
2399
|
case 12:
|
|
2552
2400
|
parsedBody = parsedOutput.body;
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
$metadata: $metadata,
|
|
2401
|
+
throwDefaultError({
|
|
2402
|
+
output: output,
|
|
2403
|
+
parsedBody: parsedBody,
|
|
2404
|
+
exceptionCtor: __BaseException,
|
|
2405
|
+
errorCode: errorCode,
|
|
2559
2406
|
});
|
|
2560
|
-
|
|
2407
|
+
_d.label = 13;
|
|
2408
|
+
case 13: return [2];
|
|
2561
2409
|
}
|
|
2562
2410
|
});
|
|
2563
2411
|
}); };
|
|
@@ -2569,24 +2417,23 @@ export var deserializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommand = fun
|
|
|
2569
2417
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2570
2418
|
return [2, deserializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommandError(output, context)];
|
|
2571
2419
|
}
|
|
2572
|
-
contents = {
|
|
2420
|
+
contents = map({
|
|
2573
2421
|
$metadata: deserializeMetadata(output),
|
|
2574
|
-
|
|
2575
|
-
};
|
|
2422
|
+
});
|
|
2576
2423
|
_a = __expectNonNull;
|
|
2577
2424
|
_b = __expectObject;
|
|
2578
2425
|
return [4, parseBody(output.body, context)];
|
|
2579
2426
|
case 1:
|
|
2580
2427
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2581
|
-
if (data.Site
|
|
2428
|
+
if (data.Site != null) {
|
|
2582
2429
|
contents.Site = deserializeAws_restJson1Site(data.Site, context);
|
|
2583
2430
|
}
|
|
2584
|
-
return [2,
|
|
2431
|
+
return [2, contents];
|
|
2585
2432
|
}
|
|
2586
2433
|
});
|
|
2587
2434
|
}); };
|
|
2588
2435
|
var deserializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2589
|
-
var parsedOutput, _a,
|
|
2436
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2590
2437
|
var _c;
|
|
2591
2438
|
return __generator(this, function (_d) {
|
|
2592
2439
|
switch (_d.label) {
|
|
@@ -2623,23 +2470,24 @@ var deserializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommandError = funct
|
|
|
2623
2470
|
case 11: throw _d.sent();
|
|
2624
2471
|
case 12:
|
|
2625
2472
|
parsedBody = parsedOutput.body;
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
$metadata: $metadata,
|
|
2473
|
+
throwDefaultError({
|
|
2474
|
+
output: output,
|
|
2475
|
+
parsedBody: parsedBody,
|
|
2476
|
+
exceptionCtor: __BaseException,
|
|
2477
|
+
errorCode: errorCode,
|
|
2632
2478
|
});
|
|
2633
|
-
|
|
2479
|
+
_d.label = 13;
|
|
2480
|
+
case 13: return [2];
|
|
2634
2481
|
}
|
|
2635
2482
|
});
|
|
2636
2483
|
}); };
|
|
2484
|
+
var map = __map;
|
|
2637
2485
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2638
2486
|
var contents, data, exception;
|
|
2639
2487
|
return __generator(this, function (_a) {
|
|
2640
|
-
contents = {};
|
|
2488
|
+
contents = map({});
|
|
2641
2489
|
data = parsedOutput.body;
|
|
2642
|
-
if (data.Message
|
|
2490
|
+
if (data.Message != null) {
|
|
2643
2491
|
contents.Message = __expectString(data.Message);
|
|
2644
2492
|
}
|
|
2645
2493
|
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2649,15 +2497,15 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
2649
2497
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2650
2498
|
var contents, data, exception;
|
|
2651
2499
|
return __generator(this, function (_a) {
|
|
2652
|
-
contents = {};
|
|
2500
|
+
contents = map({});
|
|
2653
2501
|
data = parsedOutput.body;
|
|
2654
|
-
if (data.Message
|
|
2502
|
+
if (data.Message != null) {
|
|
2655
2503
|
contents.Message = __expectString(data.Message);
|
|
2656
2504
|
}
|
|
2657
|
-
if (data.ResourceId
|
|
2505
|
+
if (data.ResourceId != null) {
|
|
2658
2506
|
contents.ResourceId = __expectString(data.ResourceId);
|
|
2659
2507
|
}
|
|
2660
|
-
if (data.ResourceType
|
|
2508
|
+
if (data.ResourceType != null) {
|
|
2661
2509
|
contents.ResourceType = __expectString(data.ResourceType);
|
|
2662
2510
|
}
|
|
2663
2511
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2667,9 +2515,9 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
2667
2515
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2668
2516
|
var contents, data, exception;
|
|
2669
2517
|
return __generator(this, function (_a) {
|
|
2670
|
-
contents = {};
|
|
2518
|
+
contents = map({});
|
|
2671
2519
|
data = parsedOutput.body;
|
|
2672
|
-
if (data.Message
|
|
2520
|
+
if (data.Message != null) {
|
|
2673
2521
|
contents.Message = __expectString(data.Message);
|
|
2674
2522
|
}
|
|
2675
2523
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2679,9 +2527,9 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
2679
2527
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2680
2528
|
var contents, data, exception;
|
|
2681
2529
|
return __generator(this, function (_a) {
|
|
2682
|
-
contents = {};
|
|
2530
|
+
contents = map({});
|
|
2683
2531
|
data = parsedOutput.body;
|
|
2684
|
-
if (data.Message
|
|
2532
|
+
if (data.Message != null) {
|
|
2685
2533
|
contents.Message = __expectString(data.Message);
|
|
2686
2534
|
}
|
|
2687
2535
|
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2691,9 +2539,9 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
|
|
|
2691
2539
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2692
2540
|
var contents, data, exception;
|
|
2693
2541
|
return __generator(this, function (_a) {
|
|
2694
|
-
contents = {};
|
|
2542
|
+
contents = map({});
|
|
2695
2543
|
data = parsedOutput.body;
|
|
2696
|
-
if (data.Message
|
|
2544
|
+
if (data.Message != null) {
|
|
2697
2545
|
contents.Message = __expectString(data.Message);
|
|
2698
2546
|
}
|
|
2699
2547
|
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2703,9 +2551,9 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
2703
2551
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2704
2552
|
var contents, data, exception;
|
|
2705
2553
|
return __generator(this, function (_a) {
|
|
2706
|
-
contents = {};
|
|
2554
|
+
contents = map({});
|
|
2707
2555
|
data = parsedOutput.body;
|
|
2708
|
-
if (data.Message
|
|
2556
|
+
if (data.Message != null) {
|
|
2709
2557
|
contents.Message = __expectString(data.Message);
|
|
2710
2558
|
}
|
|
2711
2559
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2722,9 +2570,6 @@ var serializeAws_restJson1LineItemRequestListDefinition = function (input, conte
|
|
|
2722
2570
|
return input
|
|
2723
2571
|
.filter(function (e) { return e != null; })
|
|
2724
2572
|
.map(function (entry) {
|
|
2725
|
-
if (entry === null) {
|
|
2726
|
-
return null;
|
|
2727
|
-
}
|
|
2728
2573
|
return serializeAws_restJson1LineItemRequest(entry, context);
|
|
2729
2574
|
});
|
|
2730
2575
|
};
|