@aws-sdk/client-opensearch 3.139.0 → 3.145.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 +30 -0
- package/README.md +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +480 -894
- package/dist-es/protocols/Aws_restJson1.js +621 -878
- package/package.json +11 -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, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { AccessDeniedException, BaseException, ConflictException, DisabledOperationException, InternalException, InvalidPaginationTokenException, InvalidTypeException, LimitExceededException, ResourceAlreadyExistsException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { OpenSearchServiceException as __BaseException } from "../models/OpenSearchServiceException";
|
|
6
6
|
export var serializeAws_restJson1AcceptInboundConnectionCommand = 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()];
|
|
@@ -13,16 +13,7 @@ export var serializeAws_restJson1AcceptInboundConnectionCommand = function (inpu
|
|
|
13
13
|
headers = {};
|
|
14
14
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
15
15
|
"/2021-01-01/opensearch/cc/inboundConnection/{ConnectionId}/accept";
|
|
16
|
-
|
|
17
|
-
labelValue = input.ConnectionId;
|
|
18
|
-
if (labelValue.length <= 0) {
|
|
19
|
-
throw new Error("Empty value provided for input HTTP label: ConnectionId.");
|
|
20
|
-
}
|
|
21
|
-
resolvedPath = resolvedPath.replace("{ConnectionId}", __extendedEncodeURIComponent(labelValue));
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("No value provided for input HTTP label: ConnectionId.");
|
|
25
|
-
}
|
|
16
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ConnectionId", function () { return input.ConnectionId; }, "{ConnectionId}", false);
|
|
26
17
|
return [2, new __HttpRequest({
|
|
27
18
|
protocol: protocol,
|
|
28
19
|
hostname: hostname,
|
|
@@ -60,7 +51,7 @@ export var serializeAws_restJson1AddTagsCommand = function (input, context) { re
|
|
|
60
51
|
});
|
|
61
52
|
}); };
|
|
62
53
|
export var serializeAws_restJson1AssociatePackageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
63
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
54
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
64
55
|
return __generator(this, function (_c) {
|
|
65
56
|
switch (_c.label) {
|
|
66
57
|
case 0: return [4, context.endpoint()];
|
|
@@ -69,26 +60,8 @@ export var serializeAws_restJson1AssociatePackageCommand = function (input, cont
|
|
|
69
60
|
headers = {};
|
|
70
61
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
71
62
|
"/2021-01-01/packages/associate/{PackageID}/{DomainName}";
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
if (labelValue.length <= 0) {
|
|
75
|
-
throw new Error("Empty value provided for input HTTP label: PackageID.");
|
|
76
|
-
}
|
|
77
|
-
resolvedPath = resolvedPath.replace("{PackageID}", __extendedEncodeURIComponent(labelValue));
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
throw new Error("No value provided for input HTTP label: PackageID.");
|
|
81
|
-
}
|
|
82
|
-
if (input.DomainName !== undefined) {
|
|
83
|
-
labelValue = input.DomainName;
|
|
84
|
-
if (labelValue.length <= 0) {
|
|
85
|
-
throw new Error("Empty value provided for input HTTP label: DomainName.");
|
|
86
|
-
}
|
|
87
|
-
resolvedPath = resolvedPath.replace("{DomainName}", __extendedEncodeURIComponent(labelValue));
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
throw new Error("No value provided for input HTTP label: DomainName.");
|
|
91
|
-
}
|
|
63
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "PackageID", function () { return input.PackageID; }, "{PackageID}", false);
|
|
64
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", function () { return input.DomainName; }, "{DomainName}", false);
|
|
92
65
|
return [2, new __HttpRequest({
|
|
93
66
|
protocol: protocol,
|
|
94
67
|
hostname: hostname,
|
|
@@ -226,7 +199,7 @@ export var serializeAws_restJson1CreatePackageCommand = function (input, context
|
|
|
226
199
|
});
|
|
227
200
|
}); };
|
|
228
201
|
export var serializeAws_restJson1DeleteDomainCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
229
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
202
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
230
203
|
return __generator(this, function (_c) {
|
|
231
204
|
switch (_c.label) {
|
|
232
205
|
case 0: return [4, context.endpoint()];
|
|
@@ -235,16 +208,7 @@ export var serializeAws_restJson1DeleteDomainCommand = function (input, context)
|
|
|
235
208
|
headers = {};
|
|
236
209
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
237
210
|
"/2021-01-01/opensearch/domain/{DomainName}";
|
|
238
|
-
|
|
239
|
-
labelValue = input.DomainName;
|
|
240
|
-
if (labelValue.length <= 0) {
|
|
241
|
-
throw new Error("Empty value provided for input HTTP label: DomainName.");
|
|
242
|
-
}
|
|
243
|
-
resolvedPath = resolvedPath.replace("{DomainName}", __extendedEncodeURIComponent(labelValue));
|
|
244
|
-
}
|
|
245
|
-
else {
|
|
246
|
-
throw new Error("No value provided for input HTTP label: DomainName.");
|
|
247
|
-
}
|
|
211
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", function () { return input.DomainName; }, "{DomainName}", false);
|
|
248
212
|
return [2, new __HttpRequest({
|
|
249
213
|
protocol: protocol,
|
|
250
214
|
hostname: hostname,
|
|
@@ -258,7 +222,7 @@ export var serializeAws_restJson1DeleteDomainCommand = function (input, context)
|
|
|
258
222
|
});
|
|
259
223
|
}); };
|
|
260
224
|
export var serializeAws_restJson1DeleteInboundConnectionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
261
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
225
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
262
226
|
return __generator(this, function (_c) {
|
|
263
227
|
switch (_c.label) {
|
|
264
228
|
case 0: return [4, context.endpoint()];
|
|
@@ -267,16 +231,7 @@ export var serializeAws_restJson1DeleteInboundConnectionCommand = function (inpu
|
|
|
267
231
|
headers = {};
|
|
268
232
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
269
233
|
"/2021-01-01/opensearch/cc/inboundConnection/{ConnectionId}";
|
|
270
|
-
|
|
271
|
-
labelValue = input.ConnectionId;
|
|
272
|
-
if (labelValue.length <= 0) {
|
|
273
|
-
throw new Error("Empty value provided for input HTTP label: ConnectionId.");
|
|
274
|
-
}
|
|
275
|
-
resolvedPath = resolvedPath.replace("{ConnectionId}", __extendedEncodeURIComponent(labelValue));
|
|
276
|
-
}
|
|
277
|
-
else {
|
|
278
|
-
throw new Error("No value provided for input HTTP label: ConnectionId.");
|
|
279
|
-
}
|
|
234
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ConnectionId", function () { return input.ConnectionId; }, "{ConnectionId}", false);
|
|
280
235
|
return [2, new __HttpRequest({
|
|
281
236
|
protocol: protocol,
|
|
282
237
|
hostname: hostname,
|
|
@@ -290,7 +245,7 @@ export var serializeAws_restJson1DeleteInboundConnectionCommand = function (inpu
|
|
|
290
245
|
});
|
|
291
246
|
}); };
|
|
292
247
|
export var serializeAws_restJson1DeleteOutboundConnectionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
293
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
248
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
294
249
|
return __generator(this, function (_c) {
|
|
295
250
|
switch (_c.label) {
|
|
296
251
|
case 0: return [4, context.endpoint()];
|
|
@@ -299,16 +254,7 @@ export var serializeAws_restJson1DeleteOutboundConnectionCommand = function (inp
|
|
|
299
254
|
headers = {};
|
|
300
255
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
301
256
|
"/2021-01-01/opensearch/cc/outboundConnection/{ConnectionId}";
|
|
302
|
-
|
|
303
|
-
labelValue = input.ConnectionId;
|
|
304
|
-
if (labelValue.length <= 0) {
|
|
305
|
-
throw new Error("Empty value provided for input HTTP label: ConnectionId.");
|
|
306
|
-
}
|
|
307
|
-
resolvedPath = resolvedPath.replace("{ConnectionId}", __extendedEncodeURIComponent(labelValue));
|
|
308
|
-
}
|
|
309
|
-
else {
|
|
310
|
-
throw new Error("No value provided for input HTTP label: ConnectionId.");
|
|
311
|
-
}
|
|
257
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ConnectionId", function () { return input.ConnectionId; }, "{ConnectionId}", false);
|
|
312
258
|
return [2, new __HttpRequest({
|
|
313
259
|
protocol: protocol,
|
|
314
260
|
hostname: hostname,
|
|
@@ -322,7 +268,7 @@ export var serializeAws_restJson1DeleteOutboundConnectionCommand = function (inp
|
|
|
322
268
|
});
|
|
323
269
|
}); };
|
|
324
270
|
export var serializeAws_restJson1DeletePackageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
325
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
271
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
326
272
|
return __generator(this, function (_c) {
|
|
327
273
|
switch (_c.label) {
|
|
328
274
|
case 0: return [4, context.endpoint()];
|
|
@@ -330,16 +276,7 @@ export var serializeAws_restJson1DeletePackageCommand = function (input, context
|
|
|
330
276
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
331
277
|
headers = {};
|
|
332
278
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/packages/{PackageID}";
|
|
333
|
-
|
|
334
|
-
labelValue = input.PackageID;
|
|
335
|
-
if (labelValue.length <= 0) {
|
|
336
|
-
throw new Error("Empty value provided for input HTTP label: PackageID.");
|
|
337
|
-
}
|
|
338
|
-
resolvedPath = resolvedPath.replace("{PackageID}", __extendedEncodeURIComponent(labelValue));
|
|
339
|
-
}
|
|
340
|
-
else {
|
|
341
|
-
throw new Error("No value provided for input HTTP label: PackageID.");
|
|
342
|
-
}
|
|
279
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "PackageID", function () { return input.PackageID; }, "{PackageID}", false);
|
|
343
280
|
return [2, new __HttpRequest({
|
|
344
281
|
protocol: protocol,
|
|
345
282
|
hostname: hostname,
|
|
@@ -353,7 +290,7 @@ export var serializeAws_restJson1DeletePackageCommand = function (input, context
|
|
|
353
290
|
});
|
|
354
291
|
}); };
|
|
355
292
|
export var serializeAws_restJson1DescribeDomainCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
356
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
293
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
357
294
|
return __generator(this, function (_c) {
|
|
358
295
|
switch (_c.label) {
|
|
359
296
|
case 0: return [4, context.endpoint()];
|
|
@@ -362,16 +299,7 @@ export var serializeAws_restJson1DescribeDomainCommand = function (input, contex
|
|
|
362
299
|
headers = {};
|
|
363
300
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
364
301
|
"/2021-01-01/opensearch/domain/{DomainName}";
|
|
365
|
-
|
|
366
|
-
labelValue = input.DomainName;
|
|
367
|
-
if (labelValue.length <= 0) {
|
|
368
|
-
throw new Error("Empty value provided for input HTTP label: DomainName.");
|
|
369
|
-
}
|
|
370
|
-
resolvedPath = resolvedPath.replace("{DomainName}", __extendedEncodeURIComponent(labelValue));
|
|
371
|
-
}
|
|
372
|
-
else {
|
|
373
|
-
throw new Error("No value provided for input HTTP label: DomainName.");
|
|
374
|
-
}
|
|
302
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", function () { return input.DomainName; }, "{DomainName}", false);
|
|
375
303
|
return [2, new __HttpRequest({
|
|
376
304
|
protocol: protocol,
|
|
377
305
|
hostname: hostname,
|
|
@@ -385,7 +313,7 @@ export var serializeAws_restJson1DescribeDomainCommand = function (input, contex
|
|
|
385
313
|
});
|
|
386
314
|
}); };
|
|
387
315
|
export var serializeAws_restJson1DescribeDomainAutoTunesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
388
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
316
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
389
317
|
return __generator(this, function (_c) {
|
|
390
318
|
switch (_c.label) {
|
|
391
319
|
case 0: return [4, context.endpoint()];
|
|
@@ -396,16 +324,7 @@ export var serializeAws_restJson1DescribeDomainAutoTunesCommand = function (inpu
|
|
|
396
324
|
};
|
|
397
325
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
398
326
|
"/2021-01-01/opensearch/domain/{DomainName}/autoTunes";
|
|
399
|
-
|
|
400
|
-
labelValue = input.DomainName;
|
|
401
|
-
if (labelValue.length <= 0) {
|
|
402
|
-
throw new Error("Empty value provided for input HTTP label: DomainName.");
|
|
403
|
-
}
|
|
404
|
-
resolvedPath = resolvedPath.replace("{DomainName}", __extendedEncodeURIComponent(labelValue));
|
|
405
|
-
}
|
|
406
|
-
else {
|
|
407
|
-
throw new Error("No value provided for input HTTP label: DomainName.");
|
|
408
|
-
}
|
|
327
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", function () { return input.DomainName; }, "{DomainName}", false);
|
|
409
328
|
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
410
329
|
return [2, new __HttpRequest({
|
|
411
330
|
protocol: protocol,
|
|
@@ -420,7 +339,7 @@ export var serializeAws_restJson1DescribeDomainAutoTunesCommand = function (inpu
|
|
|
420
339
|
});
|
|
421
340
|
}); };
|
|
422
341
|
export var serializeAws_restJson1DescribeDomainChangeProgressCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
423
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
342
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
424
343
|
return __generator(this, function (_c) {
|
|
425
344
|
switch (_c.label) {
|
|
426
345
|
case 0: return [4, context.endpoint()];
|
|
@@ -429,17 +348,10 @@ export var serializeAws_restJson1DescribeDomainChangeProgressCommand = function
|
|
|
429
348
|
headers = {};
|
|
430
349
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
431
350
|
"/2021-01-01/opensearch/domain/{DomainName}/progress";
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
}
|
|
437
|
-
resolvedPath = resolvedPath.replace("{DomainName}", __extendedEncodeURIComponent(labelValue));
|
|
438
|
-
}
|
|
439
|
-
else {
|
|
440
|
-
throw new Error("No value provided for input HTTP label: DomainName.");
|
|
441
|
-
}
|
|
442
|
-
query = __assign({}, (input.ChangeId !== undefined && { changeid: input.ChangeId }));
|
|
351
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", function () { return input.DomainName; }, "{DomainName}", false);
|
|
352
|
+
query = map({
|
|
353
|
+
changeid: [, input.ChangeId],
|
|
354
|
+
});
|
|
443
355
|
return [2, new __HttpRequest({
|
|
444
356
|
protocol: protocol,
|
|
445
357
|
hostname: hostname,
|
|
@@ -454,7 +366,7 @@ export var serializeAws_restJson1DescribeDomainChangeProgressCommand = function
|
|
|
454
366
|
});
|
|
455
367
|
}); };
|
|
456
368
|
export var serializeAws_restJson1DescribeDomainConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
457
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
369
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
458
370
|
return __generator(this, function (_c) {
|
|
459
371
|
switch (_c.label) {
|
|
460
372
|
case 0: return [4, context.endpoint()];
|
|
@@ -463,16 +375,7 @@ export var serializeAws_restJson1DescribeDomainConfigCommand = function (input,
|
|
|
463
375
|
headers = {};
|
|
464
376
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
465
377
|
"/2021-01-01/opensearch/domain/{DomainName}/config";
|
|
466
|
-
|
|
467
|
-
labelValue = input.DomainName;
|
|
468
|
-
if (labelValue.length <= 0) {
|
|
469
|
-
throw new Error("Empty value provided for input HTTP label: DomainName.");
|
|
470
|
-
}
|
|
471
|
-
resolvedPath = resolvedPath.replace("{DomainName}", __extendedEncodeURIComponent(labelValue));
|
|
472
|
-
}
|
|
473
|
-
else {
|
|
474
|
-
throw new Error("No value provided for input HTTP label: DomainName.");
|
|
475
|
-
}
|
|
378
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", function () { return input.DomainName; }, "{DomainName}", false);
|
|
476
379
|
return [2, new __HttpRequest({
|
|
477
380
|
protocol: protocol,
|
|
478
381
|
hostname: hostname,
|
|
@@ -535,7 +438,7 @@ export var serializeAws_restJson1DescribeInboundConnectionsCommand = function (i
|
|
|
535
438
|
});
|
|
536
439
|
}); };
|
|
537
440
|
export var serializeAws_restJson1DescribeInstanceTypeLimitsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
538
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
441
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
539
442
|
return __generator(this, function (_c) {
|
|
540
443
|
switch (_c.label) {
|
|
541
444
|
case 0: return [4, context.endpoint()];
|
|
@@ -544,27 +447,11 @@ export var serializeAws_restJson1DescribeInstanceTypeLimitsCommand = function (i
|
|
|
544
447
|
headers = {};
|
|
545
448
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
546
449
|
"/2021-01-01/opensearch/instanceTypeLimits/{EngineVersion}/{InstanceType}";
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
resolvedPath = resolvedPath.replace("{InstanceType}", __extendedEncodeURIComponent(labelValue));
|
|
553
|
-
}
|
|
554
|
-
else {
|
|
555
|
-
throw new Error("No value provided for input HTTP label: InstanceType.");
|
|
556
|
-
}
|
|
557
|
-
if (input.EngineVersion !== undefined) {
|
|
558
|
-
labelValue = input.EngineVersion;
|
|
559
|
-
if (labelValue.length <= 0) {
|
|
560
|
-
throw new Error("Empty value provided for input HTTP label: EngineVersion.");
|
|
561
|
-
}
|
|
562
|
-
resolvedPath = resolvedPath.replace("{EngineVersion}", __extendedEncodeURIComponent(labelValue));
|
|
563
|
-
}
|
|
564
|
-
else {
|
|
565
|
-
throw new Error("No value provided for input HTTP label: EngineVersion.");
|
|
566
|
-
}
|
|
567
|
-
query = __assign({}, (input.DomainName !== undefined && { domainName: input.DomainName }));
|
|
450
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "InstanceType", function () { return input.InstanceType; }, "{InstanceType}", false);
|
|
451
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EngineVersion", function () { return input.EngineVersion; }, "{EngineVersion}", false);
|
|
452
|
+
query = map({
|
|
453
|
+
domainName: [, input.DomainName],
|
|
454
|
+
});
|
|
568
455
|
return [2, new __HttpRequest({
|
|
569
456
|
protocol: protocol,
|
|
570
457
|
hostname: hostname,
|
|
@@ -637,7 +524,11 @@ export var serializeAws_restJson1DescribeReservedInstanceOfferingsCommand = func
|
|
|
637
524
|
headers = {};
|
|
638
525
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
639
526
|
"/2021-01-01/opensearch/reservedInstanceOfferings";
|
|
640
|
-
query =
|
|
527
|
+
query = map({
|
|
528
|
+
offeringId: [, input.ReservedInstanceOfferingId],
|
|
529
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
530
|
+
nextToken: [, input.NextToken],
|
|
531
|
+
});
|
|
641
532
|
return [2, new __HttpRequest({
|
|
642
533
|
protocol: protocol,
|
|
643
534
|
hostname: hostname,
|
|
@@ -660,7 +551,11 @@ export var serializeAws_restJson1DescribeReservedInstancesCommand = function (in
|
|
|
660
551
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
661
552
|
headers = {};
|
|
662
553
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/opensearch/reservedInstances";
|
|
663
|
-
query =
|
|
554
|
+
query = map({
|
|
555
|
+
reservationId: [, input.ReservedInstanceId],
|
|
556
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
557
|
+
nextToken: [, input.NextToken],
|
|
558
|
+
});
|
|
664
559
|
return [2, new __HttpRequest({
|
|
665
560
|
protocol: protocol,
|
|
666
561
|
hostname: hostname,
|
|
@@ -675,7 +570,7 @@ export var serializeAws_restJson1DescribeReservedInstancesCommand = function (in
|
|
|
675
570
|
});
|
|
676
571
|
}); };
|
|
677
572
|
export var serializeAws_restJson1DissociatePackageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
678
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
573
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
679
574
|
return __generator(this, function (_c) {
|
|
680
575
|
switch (_c.label) {
|
|
681
576
|
case 0: return [4, context.endpoint()];
|
|
@@ -684,26 +579,8 @@ export var serializeAws_restJson1DissociatePackageCommand = function (input, con
|
|
|
684
579
|
headers = {};
|
|
685
580
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
686
581
|
"/2021-01-01/packages/dissociate/{PackageID}/{DomainName}";
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
if (labelValue.length <= 0) {
|
|
690
|
-
throw new Error("Empty value provided for input HTTP label: PackageID.");
|
|
691
|
-
}
|
|
692
|
-
resolvedPath = resolvedPath.replace("{PackageID}", __extendedEncodeURIComponent(labelValue));
|
|
693
|
-
}
|
|
694
|
-
else {
|
|
695
|
-
throw new Error("No value provided for input HTTP label: PackageID.");
|
|
696
|
-
}
|
|
697
|
-
if (input.DomainName !== undefined) {
|
|
698
|
-
labelValue = input.DomainName;
|
|
699
|
-
if (labelValue.length <= 0) {
|
|
700
|
-
throw new Error("Empty value provided for input HTTP label: DomainName.");
|
|
701
|
-
}
|
|
702
|
-
resolvedPath = resolvedPath.replace("{DomainName}", __extendedEncodeURIComponent(labelValue));
|
|
703
|
-
}
|
|
704
|
-
else {
|
|
705
|
-
throw new Error("No value provided for input HTTP label: DomainName.");
|
|
706
|
-
}
|
|
582
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "PackageID", function () { return input.PackageID; }, "{PackageID}", false);
|
|
583
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", function () { return input.DomainName; }, "{DomainName}", false);
|
|
707
584
|
return [2, new __HttpRequest({
|
|
708
585
|
protocol: protocol,
|
|
709
586
|
hostname: hostname,
|
|
@@ -725,7 +602,9 @@ export var serializeAws_restJson1GetCompatibleVersionsCommand = function (input,
|
|
|
725
602
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
726
603
|
headers = {};
|
|
727
604
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/opensearch/compatibleVersions";
|
|
728
|
-
query =
|
|
605
|
+
query = map({
|
|
606
|
+
domainName: [, input.DomainName],
|
|
607
|
+
});
|
|
729
608
|
return [2, new __HttpRequest({
|
|
730
609
|
protocol: protocol,
|
|
731
610
|
hostname: hostname,
|
|
@@ -740,7 +619,7 @@ export var serializeAws_restJson1GetCompatibleVersionsCommand = function (input,
|
|
|
740
619
|
});
|
|
741
620
|
}); };
|
|
742
621
|
export var serializeAws_restJson1GetPackageVersionHistoryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
743
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
622
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
744
623
|
return __generator(this, function (_c) {
|
|
745
624
|
switch (_c.label) {
|
|
746
625
|
case 0: return [4, context.endpoint()];
|
|
@@ -748,17 +627,11 @@ export var serializeAws_restJson1GetPackageVersionHistoryCommand = function (inp
|
|
|
748
627
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
749
628
|
headers = {};
|
|
750
629
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/packages/{PackageID}/history";
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
resolvedPath = resolvedPath.replace("{PackageID}", __extendedEncodeURIComponent(labelValue));
|
|
757
|
-
}
|
|
758
|
-
else {
|
|
759
|
-
throw new Error("No value provided for input HTTP label: PackageID.");
|
|
760
|
-
}
|
|
761
|
-
query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
630
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "PackageID", function () { return input.PackageID; }, "{PackageID}", false);
|
|
631
|
+
query = map({
|
|
632
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
633
|
+
nextToken: [, input.NextToken],
|
|
634
|
+
});
|
|
762
635
|
return [2, new __HttpRequest({
|
|
763
636
|
protocol: protocol,
|
|
764
637
|
hostname: hostname,
|
|
@@ -773,7 +646,7 @@ export var serializeAws_restJson1GetPackageVersionHistoryCommand = function (inp
|
|
|
773
646
|
});
|
|
774
647
|
}); };
|
|
775
648
|
export var serializeAws_restJson1GetUpgradeHistoryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
776
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
649
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
777
650
|
return __generator(this, function (_c) {
|
|
778
651
|
switch (_c.label) {
|
|
779
652
|
case 0: return [4, context.endpoint()];
|
|
@@ -782,17 +655,11 @@ export var serializeAws_restJson1GetUpgradeHistoryCommand = function (input, con
|
|
|
782
655
|
headers = {};
|
|
783
656
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
784
657
|
"/2021-01-01/opensearch/upgradeDomain/{DomainName}/history";
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
resolvedPath = resolvedPath.replace("{DomainName}", __extendedEncodeURIComponent(labelValue));
|
|
791
|
-
}
|
|
792
|
-
else {
|
|
793
|
-
throw new Error("No value provided for input HTTP label: DomainName.");
|
|
794
|
-
}
|
|
795
|
-
query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
658
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", function () { return input.DomainName; }, "{DomainName}", false);
|
|
659
|
+
query = map({
|
|
660
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
661
|
+
nextToken: [, input.NextToken],
|
|
662
|
+
});
|
|
796
663
|
return [2, new __HttpRequest({
|
|
797
664
|
protocol: protocol,
|
|
798
665
|
hostname: hostname,
|
|
@@ -807,7 +674,7 @@ export var serializeAws_restJson1GetUpgradeHistoryCommand = function (input, con
|
|
|
807
674
|
});
|
|
808
675
|
}); };
|
|
809
676
|
export var serializeAws_restJson1GetUpgradeStatusCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
810
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
677
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
811
678
|
return __generator(this, function (_c) {
|
|
812
679
|
switch (_c.label) {
|
|
813
680
|
case 0: return [4, context.endpoint()];
|
|
@@ -816,16 +683,7 @@ export var serializeAws_restJson1GetUpgradeStatusCommand = function (input, cont
|
|
|
816
683
|
headers = {};
|
|
817
684
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
818
685
|
"/2021-01-01/opensearch/upgradeDomain/{DomainName}/status";
|
|
819
|
-
|
|
820
|
-
labelValue = input.DomainName;
|
|
821
|
-
if (labelValue.length <= 0) {
|
|
822
|
-
throw new Error("Empty value provided for input HTTP label: DomainName.");
|
|
823
|
-
}
|
|
824
|
-
resolvedPath = resolvedPath.replace("{DomainName}", __extendedEncodeURIComponent(labelValue));
|
|
825
|
-
}
|
|
826
|
-
else {
|
|
827
|
-
throw new Error("No value provided for input HTTP label: DomainName.");
|
|
828
|
-
}
|
|
686
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", function () { return input.DomainName; }, "{DomainName}", false);
|
|
829
687
|
return [2, new __HttpRequest({
|
|
830
688
|
protocol: protocol,
|
|
831
689
|
hostname: hostname,
|
|
@@ -847,7 +705,9 @@ export var serializeAws_restJson1ListDomainNamesCommand = function (input, conte
|
|
|
847
705
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
848
706
|
headers = {};
|
|
849
707
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/domain";
|
|
850
|
-
query =
|
|
708
|
+
query = map({
|
|
709
|
+
engineType: [, input.EngineType],
|
|
710
|
+
});
|
|
851
711
|
return [2, new __HttpRequest({
|
|
852
712
|
protocol: protocol,
|
|
853
713
|
hostname: hostname,
|
|
@@ -862,7 +722,7 @@ export var serializeAws_restJson1ListDomainNamesCommand = function (input, conte
|
|
|
862
722
|
});
|
|
863
723
|
}); };
|
|
864
724
|
export var serializeAws_restJson1ListDomainsForPackageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
865
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
725
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
866
726
|
return __generator(this, function (_c) {
|
|
867
727
|
switch (_c.label) {
|
|
868
728
|
case 0: return [4, context.endpoint()];
|
|
@@ -870,17 +730,11 @@ export var serializeAws_restJson1ListDomainsForPackageCommand = function (input,
|
|
|
870
730
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
871
731
|
headers = {};
|
|
872
732
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/packages/{PackageID}/domains";
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
resolvedPath = resolvedPath.replace("{PackageID}", __extendedEncodeURIComponent(labelValue));
|
|
879
|
-
}
|
|
880
|
-
else {
|
|
881
|
-
throw new Error("No value provided for input HTTP label: PackageID.");
|
|
882
|
-
}
|
|
883
|
-
query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
733
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "PackageID", function () { return input.PackageID; }, "{PackageID}", false);
|
|
734
|
+
query = map({
|
|
735
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
736
|
+
nextToken: [, input.NextToken],
|
|
737
|
+
});
|
|
884
738
|
return [2, new __HttpRequest({
|
|
885
739
|
protocol: protocol,
|
|
886
740
|
hostname: hostname,
|
|
@@ -895,7 +749,7 @@ export var serializeAws_restJson1ListDomainsForPackageCommand = function (input,
|
|
|
895
749
|
});
|
|
896
750
|
}); };
|
|
897
751
|
export var serializeAws_restJson1ListInstanceTypeDetailsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
898
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
752
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
899
753
|
return __generator(this, function (_c) {
|
|
900
754
|
switch (_c.label) {
|
|
901
755
|
case 0: return [4, context.endpoint()];
|
|
@@ -904,17 +758,12 @@ export var serializeAws_restJson1ListInstanceTypeDetailsCommand = function (inpu
|
|
|
904
758
|
headers = {};
|
|
905
759
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
906
760
|
"/2021-01-01/opensearch/instanceTypeDetails/{EngineVersion}";
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
}
|
|
914
|
-
else {
|
|
915
|
-
throw new Error("No value provided for input HTTP label: EngineVersion.");
|
|
916
|
-
}
|
|
917
|
-
query = __assign(__assign(__assign({}, (input.DomainName !== undefined && { domainName: input.DomainName })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
761
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EngineVersion", function () { return input.EngineVersion; }, "{EngineVersion}", false);
|
|
762
|
+
query = map({
|
|
763
|
+
domainName: [, input.DomainName],
|
|
764
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
765
|
+
nextToken: [, input.NextToken],
|
|
766
|
+
});
|
|
918
767
|
return [2, new __HttpRequest({
|
|
919
768
|
protocol: protocol,
|
|
920
769
|
hostname: hostname,
|
|
@@ -929,7 +778,7 @@ export var serializeAws_restJson1ListInstanceTypeDetailsCommand = function (inpu
|
|
|
929
778
|
});
|
|
930
779
|
}); };
|
|
931
780
|
export var serializeAws_restJson1ListPackagesForDomainCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
932
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
781
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
933
782
|
return __generator(this, function (_c) {
|
|
934
783
|
switch (_c.label) {
|
|
935
784
|
case 0: return [4, context.endpoint()];
|
|
@@ -937,17 +786,11 @@ export var serializeAws_restJson1ListPackagesForDomainCommand = function (input,
|
|
|
937
786
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
938
787
|
headers = {};
|
|
939
788
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/domain/{DomainName}/packages";
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
resolvedPath = resolvedPath.replace("{DomainName}", __extendedEncodeURIComponent(labelValue));
|
|
946
|
-
}
|
|
947
|
-
else {
|
|
948
|
-
throw new Error("No value provided for input HTTP label: DomainName.");
|
|
949
|
-
}
|
|
950
|
-
query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
789
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", function () { return input.DomainName; }, "{DomainName}", false);
|
|
790
|
+
query = map({
|
|
791
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
792
|
+
nextToken: [, input.NextToken],
|
|
793
|
+
});
|
|
951
794
|
return [2, new __HttpRequest({
|
|
952
795
|
protocol: protocol,
|
|
953
796
|
hostname: hostname,
|
|
@@ -970,7 +813,9 @@ export var serializeAws_restJson1ListTagsCommand = function (input, context) { r
|
|
|
970
813
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
971
814
|
headers = {};
|
|
972
815
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/tags";
|
|
973
|
-
query =
|
|
816
|
+
query = map({
|
|
817
|
+
arn: [, input.ARN],
|
|
818
|
+
});
|
|
974
819
|
return [2, new __HttpRequest({
|
|
975
820
|
protocol: protocol,
|
|
976
821
|
hostname: hostname,
|
|
@@ -993,7 +838,10 @@ export var serializeAws_restJson1ListVersionsCommand = function (input, context)
|
|
|
993
838
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
994
839
|
headers = {};
|
|
995
840
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/opensearch/versions";
|
|
996
|
-
query =
|
|
841
|
+
query = map({
|
|
842
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
843
|
+
nextToken: [, input.NextToken],
|
|
844
|
+
});
|
|
997
845
|
return [2, new __HttpRequest({
|
|
998
846
|
protocol: protocol,
|
|
999
847
|
hostname: hostname,
|
|
@@ -1033,7 +881,7 @@ export var serializeAws_restJson1PurchaseReservedInstanceOfferingCommand = funct
|
|
|
1033
881
|
});
|
|
1034
882
|
}); };
|
|
1035
883
|
export var serializeAws_restJson1RejectInboundConnectionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1036
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
884
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1037
885
|
return __generator(this, function (_c) {
|
|
1038
886
|
switch (_c.label) {
|
|
1039
887
|
case 0: return [4, context.endpoint()];
|
|
@@ -1042,16 +890,7 @@ export var serializeAws_restJson1RejectInboundConnectionCommand = function (inpu
|
|
|
1042
890
|
headers = {};
|
|
1043
891
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1044
892
|
"/2021-01-01/opensearch/cc/inboundConnection/{ConnectionId}/reject";
|
|
1045
|
-
|
|
1046
|
-
labelValue = input.ConnectionId;
|
|
1047
|
-
if (labelValue.length <= 0) {
|
|
1048
|
-
throw new Error("Empty value provided for input HTTP label: ConnectionId.");
|
|
1049
|
-
}
|
|
1050
|
-
resolvedPath = resolvedPath.replace("{ConnectionId}", __extendedEncodeURIComponent(labelValue));
|
|
1051
|
-
}
|
|
1052
|
-
else {
|
|
1053
|
-
throw new Error("No value provided for input HTTP label: ConnectionId.");
|
|
1054
|
-
}
|
|
893
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ConnectionId", function () { return input.ConnectionId; }, "{ConnectionId}", false);
|
|
1055
894
|
return [2, new __HttpRequest({
|
|
1056
895
|
protocol: protocol,
|
|
1057
896
|
hostname: hostname,
|
|
@@ -1114,7 +953,7 @@ export var serializeAws_restJson1StartServiceSoftwareUpdateCommand = function (i
|
|
|
1114
953
|
});
|
|
1115
954
|
}); };
|
|
1116
955
|
export var serializeAws_restJson1UpdateDomainConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1117
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
956
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1118
957
|
return __generator(this, function (_c) {
|
|
1119
958
|
switch (_c.label) {
|
|
1120
959
|
case 0: return [4, context.endpoint()];
|
|
@@ -1125,16 +964,7 @@ export var serializeAws_restJson1UpdateDomainConfigCommand = function (input, co
|
|
|
1125
964
|
};
|
|
1126
965
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1127
966
|
"/2021-01-01/opensearch/domain/{DomainName}/config";
|
|
1128
|
-
|
|
1129
|
-
labelValue = input.DomainName;
|
|
1130
|
-
if (labelValue.length <= 0) {
|
|
1131
|
-
throw new Error("Empty value provided for input HTTP label: DomainName.");
|
|
1132
|
-
}
|
|
1133
|
-
resolvedPath = resolvedPath.replace("{DomainName}", __extendedEncodeURIComponent(labelValue));
|
|
1134
|
-
}
|
|
1135
|
-
else {
|
|
1136
|
-
throw new Error("No value provided for input HTTP label: DomainName.");
|
|
1137
|
-
}
|
|
967
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", function () { return input.DomainName; }, "{DomainName}", false);
|
|
1138
968
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessPolicies != null && { AccessPolicies: input.AccessPolicies })), (input.AdvancedOptions != null && {
|
|
1139
969
|
AdvancedOptions: serializeAws_restJson1AdvancedOptions(input.AdvancedOptions, context),
|
|
1140
970
|
})), (input.AdvancedSecurityOptions != null && {
|
|
@@ -1228,24 +1058,23 @@ export var deserializeAws_restJson1AcceptInboundConnectionCommand = function (ou
|
|
|
1228
1058
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1229
1059
|
return [2, deserializeAws_restJson1AcceptInboundConnectionCommandError(output, context)];
|
|
1230
1060
|
}
|
|
1231
|
-
contents = {
|
|
1061
|
+
contents = map({
|
|
1232
1062
|
$metadata: deserializeMetadata(output),
|
|
1233
|
-
|
|
1234
|
-
};
|
|
1063
|
+
});
|
|
1235
1064
|
_a = __expectNonNull;
|
|
1236
1065
|
_b = __expectObject;
|
|
1237
1066
|
return [4, parseBody(output.body, context)];
|
|
1238
1067
|
case 1:
|
|
1239
1068
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1240
|
-
if (data.Connection
|
|
1069
|
+
if (data.Connection != null) {
|
|
1241
1070
|
contents.Connection = deserializeAws_restJson1InboundConnection(data.Connection, context);
|
|
1242
1071
|
}
|
|
1243
|
-
return [2,
|
|
1072
|
+
return [2, contents];
|
|
1244
1073
|
}
|
|
1245
1074
|
});
|
|
1246
1075
|
}); };
|
|
1247
1076
|
var deserializeAws_restJson1AcceptInboundConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1248
|
-
var parsedOutput, _a,
|
|
1077
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1249
1078
|
var _c;
|
|
1250
1079
|
return __generator(this, function (_d) {
|
|
1251
1080
|
switch (_d.label) {
|
|
@@ -1274,14 +1103,14 @@ var deserializeAws_restJson1AcceptInboundConnectionCommandError = function (outp
|
|
|
1274
1103
|
case 7: throw _d.sent();
|
|
1275
1104
|
case 8:
|
|
1276
1105
|
parsedBody = parsedOutput.body;
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
$metadata: $metadata,
|
|
1106
|
+
throwDefaultError({
|
|
1107
|
+
output: output,
|
|
1108
|
+
parsedBody: parsedBody,
|
|
1109
|
+
exceptionCtor: __BaseException,
|
|
1110
|
+
errorCode: errorCode,
|
|
1283
1111
|
});
|
|
1284
|
-
|
|
1112
|
+
_d.label = 9;
|
|
1113
|
+
case 9: return [2];
|
|
1285
1114
|
}
|
|
1286
1115
|
});
|
|
1287
1116
|
}); };
|
|
@@ -1293,18 +1122,18 @@ export var deserializeAws_restJson1AddTagsCommand = function (output, context) {
|
|
|
1293
1122
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1294
1123
|
return [2, deserializeAws_restJson1AddTagsCommandError(output, context)];
|
|
1295
1124
|
}
|
|
1296
|
-
contents = {
|
|
1125
|
+
contents = map({
|
|
1297
1126
|
$metadata: deserializeMetadata(output),
|
|
1298
|
-
};
|
|
1127
|
+
});
|
|
1299
1128
|
return [4, collectBody(output.body, context)];
|
|
1300
1129
|
case 1:
|
|
1301
1130
|
_a.sent();
|
|
1302
|
-
return [2,
|
|
1131
|
+
return [2, contents];
|
|
1303
1132
|
}
|
|
1304
1133
|
});
|
|
1305
1134
|
}); };
|
|
1306
1135
|
var deserializeAws_restJson1AddTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1307
|
-
var parsedOutput, _a,
|
|
1136
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1308
1137
|
var _c;
|
|
1309
1138
|
return __generator(this, function (_d) {
|
|
1310
1139
|
switch (_d.label) {
|
|
@@ -1337,14 +1166,14 @@ var deserializeAws_restJson1AddTagsCommandError = function (output, context) { r
|
|
|
1337
1166
|
case 9: throw _d.sent();
|
|
1338
1167
|
case 10:
|
|
1339
1168
|
parsedBody = parsedOutput.body;
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
$metadata: $metadata,
|
|
1169
|
+
throwDefaultError({
|
|
1170
|
+
output: output,
|
|
1171
|
+
parsedBody: parsedBody,
|
|
1172
|
+
exceptionCtor: __BaseException,
|
|
1173
|
+
errorCode: errorCode,
|
|
1346
1174
|
});
|
|
1347
|
-
|
|
1175
|
+
_d.label = 11;
|
|
1176
|
+
case 11: return [2];
|
|
1348
1177
|
}
|
|
1349
1178
|
});
|
|
1350
1179
|
}); };
|
|
@@ -1356,24 +1185,23 @@ export var deserializeAws_restJson1AssociatePackageCommand = function (output, c
|
|
|
1356
1185
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1357
1186
|
return [2, deserializeAws_restJson1AssociatePackageCommandError(output, context)];
|
|
1358
1187
|
}
|
|
1359
|
-
contents = {
|
|
1188
|
+
contents = map({
|
|
1360
1189
|
$metadata: deserializeMetadata(output),
|
|
1361
|
-
|
|
1362
|
-
};
|
|
1190
|
+
});
|
|
1363
1191
|
_a = __expectNonNull;
|
|
1364
1192
|
_b = __expectObject;
|
|
1365
1193
|
return [4, parseBody(output.body, context)];
|
|
1366
1194
|
case 1:
|
|
1367
1195
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1368
|
-
if (data.DomainPackageDetails
|
|
1196
|
+
if (data.DomainPackageDetails != null) {
|
|
1369
1197
|
contents.DomainPackageDetails = deserializeAws_restJson1DomainPackageDetails(data.DomainPackageDetails, context);
|
|
1370
1198
|
}
|
|
1371
|
-
return [2,
|
|
1199
|
+
return [2, contents];
|
|
1372
1200
|
}
|
|
1373
1201
|
});
|
|
1374
1202
|
}); };
|
|
1375
1203
|
var deserializeAws_restJson1AssociatePackageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1376
|
-
var parsedOutput, _a,
|
|
1204
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1377
1205
|
var _c;
|
|
1378
1206
|
return __generator(this, function (_d) {
|
|
1379
1207
|
switch (_d.label) {
|
|
@@ -1414,14 +1242,14 @@ var deserializeAws_restJson1AssociatePackageCommandError = function (output, con
|
|
|
1414
1242
|
case 13: throw _d.sent();
|
|
1415
1243
|
case 14:
|
|
1416
1244
|
parsedBody = parsedOutput.body;
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
$metadata: $metadata,
|
|
1245
|
+
throwDefaultError({
|
|
1246
|
+
output: output,
|
|
1247
|
+
parsedBody: parsedBody,
|
|
1248
|
+
exceptionCtor: __BaseException,
|
|
1249
|
+
errorCode: errorCode,
|
|
1423
1250
|
});
|
|
1424
|
-
|
|
1251
|
+
_d.label = 15;
|
|
1252
|
+
case 15: return [2];
|
|
1425
1253
|
}
|
|
1426
1254
|
});
|
|
1427
1255
|
}); };
|
|
@@ -1433,24 +1261,23 @@ export var deserializeAws_restJson1CancelServiceSoftwareUpdateCommand = function
|
|
|
1433
1261
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1434
1262
|
return [2, deserializeAws_restJson1CancelServiceSoftwareUpdateCommandError(output, context)];
|
|
1435
1263
|
}
|
|
1436
|
-
contents = {
|
|
1264
|
+
contents = map({
|
|
1437
1265
|
$metadata: deserializeMetadata(output),
|
|
1438
|
-
|
|
1439
|
-
};
|
|
1266
|
+
});
|
|
1440
1267
|
_a = __expectNonNull;
|
|
1441
1268
|
_b = __expectObject;
|
|
1442
1269
|
return [4, parseBody(output.body, context)];
|
|
1443
1270
|
case 1:
|
|
1444
1271
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1445
|
-
if (data.ServiceSoftwareOptions
|
|
1272
|
+
if (data.ServiceSoftwareOptions != null) {
|
|
1446
1273
|
contents.ServiceSoftwareOptions = deserializeAws_restJson1ServiceSoftwareOptions(data.ServiceSoftwareOptions, context);
|
|
1447
1274
|
}
|
|
1448
|
-
return [2,
|
|
1275
|
+
return [2, contents];
|
|
1449
1276
|
}
|
|
1450
1277
|
});
|
|
1451
1278
|
}); };
|
|
1452
1279
|
var deserializeAws_restJson1CancelServiceSoftwareUpdateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1453
|
-
var parsedOutput, _a,
|
|
1280
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1454
1281
|
var _c;
|
|
1455
1282
|
return __generator(this, function (_d) {
|
|
1456
1283
|
switch (_d.label) {
|
|
@@ -1483,14 +1310,14 @@ var deserializeAws_restJson1CancelServiceSoftwareUpdateCommandError = function (
|
|
|
1483
1310
|
case 9: throw _d.sent();
|
|
1484
1311
|
case 10:
|
|
1485
1312
|
parsedBody = parsedOutput.body;
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
$metadata: $metadata,
|
|
1313
|
+
throwDefaultError({
|
|
1314
|
+
output: output,
|
|
1315
|
+
parsedBody: parsedBody,
|
|
1316
|
+
exceptionCtor: __BaseException,
|
|
1317
|
+
errorCode: errorCode,
|
|
1492
1318
|
});
|
|
1493
|
-
|
|
1319
|
+
_d.label = 11;
|
|
1320
|
+
case 11: return [2];
|
|
1494
1321
|
}
|
|
1495
1322
|
});
|
|
1496
1323
|
}); };
|
|
@@ -1502,24 +1329,23 @@ export var deserializeAws_restJson1CreateDomainCommand = function (output, conte
|
|
|
1502
1329
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1503
1330
|
return [2, deserializeAws_restJson1CreateDomainCommandError(output, context)];
|
|
1504
1331
|
}
|
|
1505
|
-
contents = {
|
|
1332
|
+
contents = map({
|
|
1506
1333
|
$metadata: deserializeMetadata(output),
|
|
1507
|
-
|
|
1508
|
-
};
|
|
1334
|
+
});
|
|
1509
1335
|
_a = __expectNonNull;
|
|
1510
1336
|
_b = __expectObject;
|
|
1511
1337
|
return [4, parseBody(output.body, context)];
|
|
1512
1338
|
case 1:
|
|
1513
1339
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1514
|
-
if (data.DomainStatus
|
|
1340
|
+
if (data.DomainStatus != null) {
|
|
1515
1341
|
contents.DomainStatus = deserializeAws_restJson1DomainStatus(data.DomainStatus, context);
|
|
1516
1342
|
}
|
|
1517
|
-
return [2,
|
|
1343
|
+
return [2, contents];
|
|
1518
1344
|
}
|
|
1519
1345
|
});
|
|
1520
1346
|
}); };
|
|
1521
1347
|
var deserializeAws_restJson1CreateDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1522
|
-
var parsedOutput, _a,
|
|
1348
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1523
1349
|
var _c;
|
|
1524
1350
|
return __generator(this, function (_d) {
|
|
1525
1351
|
switch (_d.label) {
|
|
@@ -1564,14 +1390,14 @@ var deserializeAws_restJson1CreateDomainCommandError = function (output, context
|
|
|
1564
1390
|
case 15: throw _d.sent();
|
|
1565
1391
|
case 16:
|
|
1566
1392
|
parsedBody = parsedOutput.body;
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
$metadata: $metadata,
|
|
1393
|
+
throwDefaultError({
|
|
1394
|
+
output: output,
|
|
1395
|
+
parsedBody: parsedBody,
|
|
1396
|
+
exceptionCtor: __BaseException,
|
|
1397
|
+
errorCode: errorCode,
|
|
1573
1398
|
});
|
|
1574
|
-
|
|
1399
|
+
_d.label = 17;
|
|
1400
|
+
case 17: return [2];
|
|
1575
1401
|
}
|
|
1576
1402
|
});
|
|
1577
1403
|
}); };
|
|
@@ -1583,40 +1409,35 @@ export var deserializeAws_restJson1CreateOutboundConnectionCommand = function (o
|
|
|
1583
1409
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1584
1410
|
return [2, deserializeAws_restJson1CreateOutboundConnectionCommandError(output, context)];
|
|
1585
1411
|
}
|
|
1586
|
-
contents = {
|
|
1412
|
+
contents = map({
|
|
1587
1413
|
$metadata: deserializeMetadata(output),
|
|
1588
|
-
|
|
1589
|
-
ConnectionId: undefined,
|
|
1590
|
-
ConnectionStatus: undefined,
|
|
1591
|
-
LocalDomainInfo: undefined,
|
|
1592
|
-
RemoteDomainInfo: undefined,
|
|
1593
|
-
};
|
|
1414
|
+
});
|
|
1594
1415
|
_a = __expectNonNull;
|
|
1595
1416
|
_b = __expectObject;
|
|
1596
1417
|
return [4, parseBody(output.body, context)];
|
|
1597
1418
|
case 1:
|
|
1598
1419
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1599
|
-
if (data.ConnectionAlias
|
|
1420
|
+
if (data.ConnectionAlias != null) {
|
|
1600
1421
|
contents.ConnectionAlias = __expectString(data.ConnectionAlias);
|
|
1601
1422
|
}
|
|
1602
|
-
if (data.ConnectionId
|
|
1423
|
+
if (data.ConnectionId != null) {
|
|
1603
1424
|
contents.ConnectionId = __expectString(data.ConnectionId);
|
|
1604
1425
|
}
|
|
1605
|
-
if (data.ConnectionStatus
|
|
1426
|
+
if (data.ConnectionStatus != null) {
|
|
1606
1427
|
contents.ConnectionStatus = deserializeAws_restJson1OutboundConnectionStatus(data.ConnectionStatus, context);
|
|
1607
1428
|
}
|
|
1608
|
-
if (data.LocalDomainInfo
|
|
1429
|
+
if (data.LocalDomainInfo != null) {
|
|
1609
1430
|
contents.LocalDomainInfo = deserializeAws_restJson1DomainInformationContainer(data.LocalDomainInfo, context);
|
|
1610
1431
|
}
|
|
1611
|
-
if (data.RemoteDomainInfo
|
|
1432
|
+
if (data.RemoteDomainInfo != null) {
|
|
1612
1433
|
contents.RemoteDomainInfo = deserializeAws_restJson1DomainInformationContainer(data.RemoteDomainInfo, context);
|
|
1613
1434
|
}
|
|
1614
|
-
return [2,
|
|
1435
|
+
return [2, contents];
|
|
1615
1436
|
}
|
|
1616
1437
|
});
|
|
1617
1438
|
}); };
|
|
1618
1439
|
var deserializeAws_restJson1CreateOutboundConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1619
|
-
var parsedOutput, _a,
|
|
1440
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1620
1441
|
var _c;
|
|
1621
1442
|
return __generator(this, function (_d) {
|
|
1622
1443
|
switch (_d.label) {
|
|
@@ -1649,14 +1470,14 @@ var deserializeAws_restJson1CreateOutboundConnectionCommandError = function (out
|
|
|
1649
1470
|
case 9: throw _d.sent();
|
|
1650
1471
|
case 10:
|
|
1651
1472
|
parsedBody = parsedOutput.body;
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
$metadata: $metadata,
|
|
1473
|
+
throwDefaultError({
|
|
1474
|
+
output: output,
|
|
1475
|
+
parsedBody: parsedBody,
|
|
1476
|
+
exceptionCtor: __BaseException,
|
|
1477
|
+
errorCode: errorCode,
|
|
1658
1478
|
});
|
|
1659
|
-
|
|
1479
|
+
_d.label = 11;
|
|
1480
|
+
case 11: return [2];
|
|
1660
1481
|
}
|
|
1661
1482
|
});
|
|
1662
1483
|
}); };
|
|
@@ -1668,24 +1489,23 @@ export var deserializeAws_restJson1CreatePackageCommand = function (output, cont
|
|
|
1668
1489
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1669
1490
|
return [2, deserializeAws_restJson1CreatePackageCommandError(output, context)];
|
|
1670
1491
|
}
|
|
1671
|
-
contents = {
|
|
1492
|
+
contents = map({
|
|
1672
1493
|
$metadata: deserializeMetadata(output),
|
|
1673
|
-
|
|
1674
|
-
};
|
|
1494
|
+
});
|
|
1675
1495
|
_a = __expectNonNull;
|
|
1676
1496
|
_b = __expectObject;
|
|
1677
1497
|
return [4, parseBody(output.body, context)];
|
|
1678
1498
|
case 1:
|
|
1679
1499
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1680
|
-
if (data.PackageDetails
|
|
1500
|
+
if (data.PackageDetails != null) {
|
|
1681
1501
|
contents.PackageDetails = deserializeAws_restJson1PackageDetails(data.PackageDetails, context);
|
|
1682
1502
|
}
|
|
1683
|
-
return [2,
|
|
1503
|
+
return [2, contents];
|
|
1684
1504
|
}
|
|
1685
1505
|
});
|
|
1686
1506
|
}); };
|
|
1687
1507
|
var deserializeAws_restJson1CreatePackageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1688
|
-
var parsedOutput, _a,
|
|
1508
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1689
1509
|
var _c;
|
|
1690
1510
|
return __generator(this, function (_d) {
|
|
1691
1511
|
switch (_d.label) {
|
|
@@ -1730,14 +1550,14 @@ var deserializeAws_restJson1CreatePackageCommandError = function (output, contex
|
|
|
1730
1550
|
case 15: throw _d.sent();
|
|
1731
1551
|
case 16:
|
|
1732
1552
|
parsedBody = parsedOutput.body;
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
$metadata: $metadata,
|
|
1553
|
+
throwDefaultError({
|
|
1554
|
+
output: output,
|
|
1555
|
+
parsedBody: parsedBody,
|
|
1556
|
+
exceptionCtor: __BaseException,
|
|
1557
|
+
errorCode: errorCode,
|
|
1739
1558
|
});
|
|
1740
|
-
|
|
1559
|
+
_d.label = 17;
|
|
1560
|
+
case 17: return [2];
|
|
1741
1561
|
}
|
|
1742
1562
|
});
|
|
1743
1563
|
}); };
|
|
@@ -1749,24 +1569,23 @@ export var deserializeAws_restJson1DeleteDomainCommand = function (output, conte
|
|
|
1749
1569
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1750
1570
|
return [2, deserializeAws_restJson1DeleteDomainCommandError(output, context)];
|
|
1751
1571
|
}
|
|
1752
|
-
contents = {
|
|
1572
|
+
contents = map({
|
|
1753
1573
|
$metadata: deserializeMetadata(output),
|
|
1754
|
-
|
|
1755
|
-
};
|
|
1574
|
+
});
|
|
1756
1575
|
_a = __expectNonNull;
|
|
1757
1576
|
_b = __expectObject;
|
|
1758
1577
|
return [4, parseBody(output.body, context)];
|
|
1759
1578
|
case 1:
|
|
1760
1579
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1761
|
-
if (data.DomainStatus
|
|
1580
|
+
if (data.DomainStatus != null) {
|
|
1762
1581
|
contents.DomainStatus = deserializeAws_restJson1DomainStatus(data.DomainStatus, context);
|
|
1763
1582
|
}
|
|
1764
|
-
return [2,
|
|
1583
|
+
return [2, contents];
|
|
1765
1584
|
}
|
|
1766
1585
|
});
|
|
1767
1586
|
}); };
|
|
1768
1587
|
var deserializeAws_restJson1DeleteDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1769
|
-
var parsedOutput, _a,
|
|
1588
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1770
1589
|
var _c;
|
|
1771
1590
|
return __generator(this, function (_d) {
|
|
1772
1591
|
switch (_d.label) {
|
|
@@ -1799,14 +1618,14 @@ var deserializeAws_restJson1DeleteDomainCommandError = function (output, context
|
|
|
1799
1618
|
case 9: throw _d.sent();
|
|
1800
1619
|
case 10:
|
|
1801
1620
|
parsedBody = parsedOutput.body;
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
$metadata: $metadata,
|
|
1621
|
+
throwDefaultError({
|
|
1622
|
+
output: output,
|
|
1623
|
+
parsedBody: parsedBody,
|
|
1624
|
+
exceptionCtor: __BaseException,
|
|
1625
|
+
errorCode: errorCode,
|
|
1808
1626
|
});
|
|
1809
|
-
|
|
1627
|
+
_d.label = 11;
|
|
1628
|
+
case 11: return [2];
|
|
1810
1629
|
}
|
|
1811
1630
|
});
|
|
1812
1631
|
}); };
|
|
@@ -1818,24 +1637,23 @@ export var deserializeAws_restJson1DeleteInboundConnectionCommand = function (ou
|
|
|
1818
1637
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1819
1638
|
return [2, deserializeAws_restJson1DeleteInboundConnectionCommandError(output, context)];
|
|
1820
1639
|
}
|
|
1821
|
-
contents = {
|
|
1640
|
+
contents = map({
|
|
1822
1641
|
$metadata: deserializeMetadata(output),
|
|
1823
|
-
|
|
1824
|
-
};
|
|
1642
|
+
});
|
|
1825
1643
|
_a = __expectNonNull;
|
|
1826
1644
|
_b = __expectObject;
|
|
1827
1645
|
return [4, parseBody(output.body, context)];
|
|
1828
1646
|
case 1:
|
|
1829
1647
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1830
|
-
if (data.Connection
|
|
1648
|
+
if (data.Connection != null) {
|
|
1831
1649
|
contents.Connection = deserializeAws_restJson1InboundConnection(data.Connection, context);
|
|
1832
1650
|
}
|
|
1833
|
-
return [2,
|
|
1651
|
+
return [2, contents];
|
|
1834
1652
|
}
|
|
1835
1653
|
});
|
|
1836
1654
|
}); };
|
|
1837
1655
|
var deserializeAws_restJson1DeleteInboundConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1838
|
-
var parsedOutput, _a,
|
|
1656
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1839
1657
|
var _c;
|
|
1840
1658
|
return __generator(this, function (_d) {
|
|
1841
1659
|
switch (_d.label) {
|
|
@@ -1860,14 +1678,14 @@ var deserializeAws_restJson1DeleteInboundConnectionCommandError = function (outp
|
|
|
1860
1678
|
case 5: throw _d.sent();
|
|
1861
1679
|
case 6:
|
|
1862
1680
|
parsedBody = parsedOutput.body;
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
$metadata: $metadata,
|
|
1681
|
+
throwDefaultError({
|
|
1682
|
+
output: output,
|
|
1683
|
+
parsedBody: parsedBody,
|
|
1684
|
+
exceptionCtor: __BaseException,
|
|
1685
|
+
errorCode: errorCode,
|
|
1869
1686
|
});
|
|
1870
|
-
|
|
1687
|
+
_d.label = 7;
|
|
1688
|
+
case 7: return [2];
|
|
1871
1689
|
}
|
|
1872
1690
|
});
|
|
1873
1691
|
}); };
|
|
@@ -1879,24 +1697,23 @@ export var deserializeAws_restJson1DeleteOutboundConnectionCommand = function (o
|
|
|
1879
1697
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1880
1698
|
return [2, deserializeAws_restJson1DeleteOutboundConnectionCommandError(output, context)];
|
|
1881
1699
|
}
|
|
1882
|
-
contents = {
|
|
1700
|
+
contents = map({
|
|
1883
1701
|
$metadata: deserializeMetadata(output),
|
|
1884
|
-
|
|
1885
|
-
};
|
|
1702
|
+
});
|
|
1886
1703
|
_a = __expectNonNull;
|
|
1887
1704
|
_b = __expectObject;
|
|
1888
1705
|
return [4, parseBody(output.body, context)];
|
|
1889
1706
|
case 1:
|
|
1890
1707
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1891
|
-
if (data.Connection
|
|
1708
|
+
if (data.Connection != null) {
|
|
1892
1709
|
contents.Connection = deserializeAws_restJson1OutboundConnection(data.Connection, context);
|
|
1893
1710
|
}
|
|
1894
|
-
return [2,
|
|
1711
|
+
return [2, contents];
|
|
1895
1712
|
}
|
|
1896
1713
|
});
|
|
1897
1714
|
}); };
|
|
1898
1715
|
var deserializeAws_restJson1DeleteOutboundConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1899
|
-
var parsedOutput, _a,
|
|
1716
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1900
1717
|
var _c;
|
|
1901
1718
|
return __generator(this, function (_d) {
|
|
1902
1719
|
switch (_d.label) {
|
|
@@ -1921,14 +1738,14 @@ var deserializeAws_restJson1DeleteOutboundConnectionCommandError = function (out
|
|
|
1921
1738
|
case 5: throw _d.sent();
|
|
1922
1739
|
case 6:
|
|
1923
1740
|
parsedBody = parsedOutput.body;
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
$metadata: $metadata,
|
|
1741
|
+
throwDefaultError({
|
|
1742
|
+
output: output,
|
|
1743
|
+
parsedBody: parsedBody,
|
|
1744
|
+
exceptionCtor: __BaseException,
|
|
1745
|
+
errorCode: errorCode,
|
|
1930
1746
|
});
|
|
1931
|
-
|
|
1747
|
+
_d.label = 7;
|
|
1748
|
+
case 7: return [2];
|
|
1932
1749
|
}
|
|
1933
1750
|
});
|
|
1934
1751
|
}); };
|
|
@@ -1940,24 +1757,23 @@ export var deserializeAws_restJson1DeletePackageCommand = function (output, cont
|
|
|
1940
1757
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1941
1758
|
return [2, deserializeAws_restJson1DeletePackageCommandError(output, context)];
|
|
1942
1759
|
}
|
|
1943
|
-
contents = {
|
|
1760
|
+
contents = map({
|
|
1944
1761
|
$metadata: deserializeMetadata(output),
|
|
1945
|
-
|
|
1946
|
-
};
|
|
1762
|
+
});
|
|
1947
1763
|
_a = __expectNonNull;
|
|
1948
1764
|
_b = __expectObject;
|
|
1949
1765
|
return [4, parseBody(output.body, context)];
|
|
1950
1766
|
case 1:
|
|
1951
1767
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1952
|
-
if (data.PackageDetails
|
|
1768
|
+
if (data.PackageDetails != null) {
|
|
1953
1769
|
contents.PackageDetails = deserializeAws_restJson1PackageDetails(data.PackageDetails, context);
|
|
1954
1770
|
}
|
|
1955
|
-
return [2,
|
|
1771
|
+
return [2, contents];
|
|
1956
1772
|
}
|
|
1957
1773
|
});
|
|
1958
1774
|
}); };
|
|
1959
1775
|
var deserializeAws_restJson1DeletePackageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1960
|
-
var parsedOutput, _a,
|
|
1776
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1961
1777
|
var _c;
|
|
1962
1778
|
return __generator(this, function (_d) {
|
|
1963
1779
|
switch (_d.label) {
|
|
@@ -1998,14 +1814,14 @@ var deserializeAws_restJson1DeletePackageCommandError = function (output, contex
|
|
|
1998
1814
|
case 13: throw _d.sent();
|
|
1999
1815
|
case 14:
|
|
2000
1816
|
parsedBody = parsedOutput.body;
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
$metadata: $metadata,
|
|
1817
|
+
throwDefaultError({
|
|
1818
|
+
output: output,
|
|
1819
|
+
parsedBody: parsedBody,
|
|
1820
|
+
exceptionCtor: __BaseException,
|
|
1821
|
+
errorCode: errorCode,
|
|
2007
1822
|
});
|
|
2008
|
-
|
|
1823
|
+
_d.label = 15;
|
|
1824
|
+
case 15: return [2];
|
|
2009
1825
|
}
|
|
2010
1826
|
});
|
|
2011
1827
|
}); };
|
|
@@ -2017,24 +1833,23 @@ export var deserializeAws_restJson1DescribeDomainCommand = function (output, con
|
|
|
2017
1833
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2018
1834
|
return [2, deserializeAws_restJson1DescribeDomainCommandError(output, context)];
|
|
2019
1835
|
}
|
|
2020
|
-
contents = {
|
|
1836
|
+
contents = map({
|
|
2021
1837
|
$metadata: deserializeMetadata(output),
|
|
2022
|
-
|
|
2023
|
-
};
|
|
1838
|
+
});
|
|
2024
1839
|
_a = __expectNonNull;
|
|
2025
1840
|
_b = __expectObject;
|
|
2026
1841
|
return [4, parseBody(output.body, context)];
|
|
2027
1842
|
case 1:
|
|
2028
1843
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2029
|
-
if (data.DomainStatus
|
|
1844
|
+
if (data.DomainStatus != null) {
|
|
2030
1845
|
contents.DomainStatus = deserializeAws_restJson1DomainStatus(data.DomainStatus, context);
|
|
2031
1846
|
}
|
|
2032
|
-
return [2,
|
|
1847
|
+
return [2, contents];
|
|
2033
1848
|
}
|
|
2034
1849
|
});
|
|
2035
1850
|
}); };
|
|
2036
1851
|
var deserializeAws_restJson1DescribeDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2037
|
-
var parsedOutput, _a,
|
|
1852
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2038
1853
|
var _c;
|
|
2039
1854
|
return __generator(this, function (_d) {
|
|
2040
1855
|
switch (_d.label) {
|
|
@@ -2067,14 +1882,14 @@ var deserializeAws_restJson1DescribeDomainCommandError = function (output, conte
|
|
|
2067
1882
|
case 9: throw _d.sent();
|
|
2068
1883
|
case 10:
|
|
2069
1884
|
parsedBody = parsedOutput.body;
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
$metadata: $metadata,
|
|
1885
|
+
throwDefaultError({
|
|
1886
|
+
output: output,
|
|
1887
|
+
parsedBody: parsedBody,
|
|
1888
|
+
exceptionCtor: __BaseException,
|
|
1889
|
+
errorCode: errorCode,
|
|
2076
1890
|
});
|
|
2077
|
-
|
|
1891
|
+
_d.label = 11;
|
|
1892
|
+
case 11: return [2];
|
|
2078
1893
|
}
|
|
2079
1894
|
});
|
|
2080
1895
|
}); };
|
|
@@ -2086,28 +1901,26 @@ export var deserializeAws_restJson1DescribeDomainAutoTunesCommand = function (ou
|
|
|
2086
1901
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2087
1902
|
return [2, deserializeAws_restJson1DescribeDomainAutoTunesCommandError(output, context)];
|
|
2088
1903
|
}
|
|
2089
|
-
contents = {
|
|
1904
|
+
contents = map({
|
|
2090
1905
|
$metadata: deserializeMetadata(output),
|
|
2091
|
-
|
|
2092
|
-
NextToken: undefined,
|
|
2093
|
-
};
|
|
1906
|
+
});
|
|
2094
1907
|
_a = __expectNonNull;
|
|
2095
1908
|
_b = __expectObject;
|
|
2096
1909
|
return [4, parseBody(output.body, context)];
|
|
2097
1910
|
case 1:
|
|
2098
1911
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2099
|
-
if (data.AutoTunes
|
|
1912
|
+
if (data.AutoTunes != null) {
|
|
2100
1913
|
contents.AutoTunes = deserializeAws_restJson1AutoTuneList(data.AutoTunes, context);
|
|
2101
1914
|
}
|
|
2102
|
-
if (data.NextToken
|
|
1915
|
+
if (data.NextToken != null) {
|
|
2103
1916
|
contents.NextToken = __expectString(data.NextToken);
|
|
2104
1917
|
}
|
|
2105
|
-
return [2,
|
|
1918
|
+
return [2, contents];
|
|
2106
1919
|
}
|
|
2107
1920
|
});
|
|
2108
1921
|
}); };
|
|
2109
1922
|
var deserializeAws_restJson1DescribeDomainAutoTunesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2110
|
-
var parsedOutput, _a,
|
|
1923
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2111
1924
|
var _c;
|
|
2112
1925
|
return __generator(this, function (_d) {
|
|
2113
1926
|
switch (_d.label) {
|
|
@@ -2140,14 +1953,14 @@ var deserializeAws_restJson1DescribeDomainAutoTunesCommandError = function (outp
|
|
|
2140
1953
|
case 9: throw _d.sent();
|
|
2141
1954
|
case 10:
|
|
2142
1955
|
parsedBody = parsedOutput.body;
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
$metadata: $metadata,
|
|
1956
|
+
throwDefaultError({
|
|
1957
|
+
output: output,
|
|
1958
|
+
parsedBody: parsedBody,
|
|
1959
|
+
exceptionCtor: __BaseException,
|
|
1960
|
+
errorCode: errorCode,
|
|
2149
1961
|
});
|
|
2150
|
-
|
|
1962
|
+
_d.label = 11;
|
|
1963
|
+
case 11: return [2];
|
|
2151
1964
|
}
|
|
2152
1965
|
});
|
|
2153
1966
|
}); };
|
|
@@ -2159,24 +1972,23 @@ export var deserializeAws_restJson1DescribeDomainChangeProgressCommand = functio
|
|
|
2159
1972
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2160
1973
|
return [2, deserializeAws_restJson1DescribeDomainChangeProgressCommandError(output, context)];
|
|
2161
1974
|
}
|
|
2162
|
-
contents = {
|
|
1975
|
+
contents = map({
|
|
2163
1976
|
$metadata: deserializeMetadata(output),
|
|
2164
|
-
|
|
2165
|
-
};
|
|
1977
|
+
});
|
|
2166
1978
|
_a = __expectNonNull;
|
|
2167
1979
|
_b = __expectObject;
|
|
2168
1980
|
return [4, parseBody(output.body, context)];
|
|
2169
1981
|
case 1:
|
|
2170
1982
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2171
|
-
if (data.ChangeProgressStatus
|
|
1983
|
+
if (data.ChangeProgressStatus != null) {
|
|
2172
1984
|
contents.ChangeProgressStatus = deserializeAws_restJson1ChangeProgressStatusDetails(data.ChangeProgressStatus, context);
|
|
2173
1985
|
}
|
|
2174
|
-
return [2,
|
|
1986
|
+
return [2, contents];
|
|
2175
1987
|
}
|
|
2176
1988
|
});
|
|
2177
1989
|
}); };
|
|
2178
1990
|
var deserializeAws_restJson1DescribeDomainChangeProgressCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2179
|
-
var parsedOutput, _a,
|
|
1991
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2180
1992
|
var _c;
|
|
2181
1993
|
return __generator(this, function (_d) {
|
|
2182
1994
|
switch (_d.label) {
|
|
@@ -2209,14 +2021,14 @@ var deserializeAws_restJson1DescribeDomainChangeProgressCommandError = function
|
|
|
2209
2021
|
case 9: throw _d.sent();
|
|
2210
2022
|
case 10:
|
|
2211
2023
|
parsedBody = parsedOutput.body;
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
$metadata: $metadata,
|
|
2024
|
+
throwDefaultError({
|
|
2025
|
+
output: output,
|
|
2026
|
+
parsedBody: parsedBody,
|
|
2027
|
+
exceptionCtor: __BaseException,
|
|
2028
|
+
errorCode: errorCode,
|
|
2218
2029
|
});
|
|
2219
|
-
|
|
2030
|
+
_d.label = 11;
|
|
2031
|
+
case 11: return [2];
|
|
2220
2032
|
}
|
|
2221
2033
|
});
|
|
2222
2034
|
}); };
|
|
@@ -2228,24 +2040,23 @@ export var deserializeAws_restJson1DescribeDomainConfigCommand = function (outpu
|
|
|
2228
2040
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2229
2041
|
return [2, deserializeAws_restJson1DescribeDomainConfigCommandError(output, context)];
|
|
2230
2042
|
}
|
|
2231
|
-
contents = {
|
|
2043
|
+
contents = map({
|
|
2232
2044
|
$metadata: deserializeMetadata(output),
|
|
2233
|
-
|
|
2234
|
-
};
|
|
2045
|
+
});
|
|
2235
2046
|
_a = __expectNonNull;
|
|
2236
2047
|
_b = __expectObject;
|
|
2237
2048
|
return [4, parseBody(output.body, context)];
|
|
2238
2049
|
case 1:
|
|
2239
2050
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2240
|
-
if (data.DomainConfig
|
|
2051
|
+
if (data.DomainConfig != null) {
|
|
2241
2052
|
contents.DomainConfig = deserializeAws_restJson1DomainConfig(data.DomainConfig, context);
|
|
2242
2053
|
}
|
|
2243
|
-
return [2,
|
|
2054
|
+
return [2, contents];
|
|
2244
2055
|
}
|
|
2245
2056
|
});
|
|
2246
2057
|
}); };
|
|
2247
2058
|
var deserializeAws_restJson1DescribeDomainConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2248
|
-
var parsedOutput, _a,
|
|
2059
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2249
2060
|
var _c;
|
|
2250
2061
|
return __generator(this, function (_d) {
|
|
2251
2062
|
switch (_d.label) {
|
|
@@ -2278,14 +2089,14 @@ var deserializeAws_restJson1DescribeDomainConfigCommandError = function (output,
|
|
|
2278
2089
|
case 9: throw _d.sent();
|
|
2279
2090
|
case 10:
|
|
2280
2091
|
parsedBody = parsedOutput.body;
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
$metadata: $metadata,
|
|
2092
|
+
throwDefaultError({
|
|
2093
|
+
output: output,
|
|
2094
|
+
parsedBody: parsedBody,
|
|
2095
|
+
exceptionCtor: __BaseException,
|
|
2096
|
+
errorCode: errorCode,
|
|
2287
2097
|
});
|
|
2288
|
-
|
|
2098
|
+
_d.label = 11;
|
|
2099
|
+
case 11: return [2];
|
|
2289
2100
|
}
|
|
2290
2101
|
});
|
|
2291
2102
|
}); };
|
|
@@ -2297,24 +2108,23 @@ export var deserializeAws_restJson1DescribeDomainsCommand = function (output, co
|
|
|
2297
2108
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2298
2109
|
return [2, deserializeAws_restJson1DescribeDomainsCommandError(output, context)];
|
|
2299
2110
|
}
|
|
2300
|
-
contents = {
|
|
2111
|
+
contents = map({
|
|
2301
2112
|
$metadata: deserializeMetadata(output),
|
|
2302
|
-
|
|
2303
|
-
};
|
|
2113
|
+
});
|
|
2304
2114
|
_a = __expectNonNull;
|
|
2305
2115
|
_b = __expectObject;
|
|
2306
2116
|
return [4, parseBody(output.body, context)];
|
|
2307
2117
|
case 1:
|
|
2308
2118
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2309
|
-
if (data.DomainStatusList
|
|
2119
|
+
if (data.DomainStatusList != null) {
|
|
2310
2120
|
contents.DomainStatusList = deserializeAws_restJson1DomainStatusList(data.DomainStatusList, context);
|
|
2311
2121
|
}
|
|
2312
|
-
return [2,
|
|
2122
|
+
return [2, contents];
|
|
2313
2123
|
}
|
|
2314
2124
|
});
|
|
2315
2125
|
}); };
|
|
2316
2126
|
var deserializeAws_restJson1DescribeDomainsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2317
|
-
var parsedOutput, _a,
|
|
2127
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2318
2128
|
var _c;
|
|
2319
2129
|
return __generator(this, function (_d) {
|
|
2320
2130
|
switch (_d.label) {
|
|
@@ -2343,14 +2153,14 @@ var deserializeAws_restJson1DescribeDomainsCommandError = function (output, cont
|
|
|
2343
2153
|
case 7: throw _d.sent();
|
|
2344
2154
|
case 8:
|
|
2345
2155
|
parsedBody = parsedOutput.body;
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
$metadata: $metadata,
|
|
2156
|
+
throwDefaultError({
|
|
2157
|
+
output: output,
|
|
2158
|
+
parsedBody: parsedBody,
|
|
2159
|
+
exceptionCtor: __BaseException,
|
|
2160
|
+
errorCode: errorCode,
|
|
2352
2161
|
});
|
|
2353
|
-
|
|
2162
|
+
_d.label = 9;
|
|
2163
|
+
case 9: return [2];
|
|
2354
2164
|
}
|
|
2355
2165
|
});
|
|
2356
2166
|
}); };
|
|
@@ -2362,28 +2172,26 @@ export var deserializeAws_restJson1DescribeInboundConnectionsCommand = function
|
|
|
2362
2172
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2363
2173
|
return [2, deserializeAws_restJson1DescribeInboundConnectionsCommandError(output, context)];
|
|
2364
2174
|
}
|
|
2365
|
-
contents = {
|
|
2175
|
+
contents = map({
|
|
2366
2176
|
$metadata: deserializeMetadata(output),
|
|
2367
|
-
|
|
2368
|
-
NextToken: undefined,
|
|
2369
|
-
};
|
|
2177
|
+
});
|
|
2370
2178
|
_a = __expectNonNull;
|
|
2371
2179
|
_b = __expectObject;
|
|
2372
2180
|
return [4, parseBody(output.body, context)];
|
|
2373
2181
|
case 1:
|
|
2374
2182
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2375
|
-
if (data.Connections
|
|
2183
|
+
if (data.Connections != null) {
|
|
2376
2184
|
contents.Connections = deserializeAws_restJson1InboundConnections(data.Connections, context);
|
|
2377
2185
|
}
|
|
2378
|
-
if (data.NextToken
|
|
2186
|
+
if (data.NextToken != null) {
|
|
2379
2187
|
contents.NextToken = __expectString(data.NextToken);
|
|
2380
2188
|
}
|
|
2381
|
-
return [2,
|
|
2189
|
+
return [2, contents];
|
|
2382
2190
|
}
|
|
2383
2191
|
});
|
|
2384
2192
|
}); };
|
|
2385
2193
|
var deserializeAws_restJson1DescribeInboundConnectionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2386
|
-
var parsedOutput, _a,
|
|
2194
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2387
2195
|
var _c;
|
|
2388
2196
|
return __generator(this, function (_d) {
|
|
2389
2197
|
switch (_d.label) {
|
|
@@ -2408,14 +2216,14 @@ var deserializeAws_restJson1DescribeInboundConnectionsCommandError = function (o
|
|
|
2408
2216
|
case 5: throw _d.sent();
|
|
2409
2217
|
case 6:
|
|
2410
2218
|
parsedBody = parsedOutput.body;
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
$metadata: $metadata,
|
|
2219
|
+
throwDefaultError({
|
|
2220
|
+
output: output,
|
|
2221
|
+
parsedBody: parsedBody,
|
|
2222
|
+
exceptionCtor: __BaseException,
|
|
2223
|
+
errorCode: errorCode,
|
|
2417
2224
|
});
|
|
2418
|
-
|
|
2225
|
+
_d.label = 7;
|
|
2226
|
+
case 7: return [2];
|
|
2419
2227
|
}
|
|
2420
2228
|
});
|
|
2421
2229
|
}); };
|
|
@@ -2427,24 +2235,23 @@ export var deserializeAws_restJson1DescribeInstanceTypeLimitsCommand = function
|
|
|
2427
2235
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2428
2236
|
return [2, deserializeAws_restJson1DescribeInstanceTypeLimitsCommandError(output, context)];
|
|
2429
2237
|
}
|
|
2430
|
-
contents = {
|
|
2238
|
+
contents = map({
|
|
2431
2239
|
$metadata: deserializeMetadata(output),
|
|
2432
|
-
|
|
2433
|
-
};
|
|
2240
|
+
});
|
|
2434
2241
|
_a = __expectNonNull;
|
|
2435
2242
|
_b = __expectObject;
|
|
2436
2243
|
return [4, parseBody(output.body, context)];
|
|
2437
2244
|
case 1:
|
|
2438
2245
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2439
|
-
if (data.LimitsByRole
|
|
2246
|
+
if (data.LimitsByRole != null) {
|
|
2440
2247
|
contents.LimitsByRole = deserializeAws_restJson1LimitsByRole(data.LimitsByRole, context);
|
|
2441
2248
|
}
|
|
2442
|
-
return [2,
|
|
2249
|
+
return [2, contents];
|
|
2443
2250
|
}
|
|
2444
2251
|
});
|
|
2445
2252
|
}); };
|
|
2446
2253
|
var deserializeAws_restJson1DescribeInstanceTypeLimitsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2447
|
-
var parsedOutput, _a,
|
|
2254
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2448
2255
|
var _c;
|
|
2449
2256
|
return __generator(this, function (_d) {
|
|
2450
2257
|
switch (_d.label) {
|
|
@@ -2485,14 +2292,14 @@ var deserializeAws_restJson1DescribeInstanceTypeLimitsCommandError = function (o
|
|
|
2485
2292
|
case 13: throw _d.sent();
|
|
2486
2293
|
case 14:
|
|
2487
2294
|
parsedBody = parsedOutput.body;
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
$metadata: $metadata,
|
|
2295
|
+
throwDefaultError({
|
|
2296
|
+
output: output,
|
|
2297
|
+
parsedBody: parsedBody,
|
|
2298
|
+
exceptionCtor: __BaseException,
|
|
2299
|
+
errorCode: errorCode,
|
|
2494
2300
|
});
|
|
2495
|
-
|
|
2301
|
+
_d.label = 15;
|
|
2302
|
+
case 15: return [2];
|
|
2496
2303
|
}
|
|
2497
2304
|
});
|
|
2498
2305
|
}); };
|
|
@@ -2504,28 +2311,26 @@ export var deserializeAws_restJson1DescribeOutboundConnectionsCommand = function
|
|
|
2504
2311
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2505
2312
|
return [2, deserializeAws_restJson1DescribeOutboundConnectionsCommandError(output, context)];
|
|
2506
2313
|
}
|
|
2507
|
-
contents = {
|
|
2314
|
+
contents = map({
|
|
2508
2315
|
$metadata: deserializeMetadata(output),
|
|
2509
|
-
|
|
2510
|
-
NextToken: undefined,
|
|
2511
|
-
};
|
|
2316
|
+
});
|
|
2512
2317
|
_a = __expectNonNull;
|
|
2513
2318
|
_b = __expectObject;
|
|
2514
2319
|
return [4, parseBody(output.body, context)];
|
|
2515
2320
|
case 1:
|
|
2516
2321
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2517
|
-
if (data.Connections
|
|
2322
|
+
if (data.Connections != null) {
|
|
2518
2323
|
contents.Connections = deserializeAws_restJson1OutboundConnections(data.Connections, context);
|
|
2519
2324
|
}
|
|
2520
|
-
if (data.NextToken
|
|
2325
|
+
if (data.NextToken != null) {
|
|
2521
2326
|
contents.NextToken = __expectString(data.NextToken);
|
|
2522
2327
|
}
|
|
2523
|
-
return [2,
|
|
2328
|
+
return [2, contents];
|
|
2524
2329
|
}
|
|
2525
2330
|
});
|
|
2526
2331
|
}); };
|
|
2527
2332
|
var deserializeAws_restJson1DescribeOutboundConnectionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2528
|
-
var parsedOutput, _a,
|
|
2333
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2529
2334
|
var _c;
|
|
2530
2335
|
return __generator(this, function (_d) {
|
|
2531
2336
|
switch (_d.label) {
|
|
@@ -2550,14 +2355,14 @@ var deserializeAws_restJson1DescribeOutboundConnectionsCommandError = function (
|
|
|
2550
2355
|
case 5: throw _d.sent();
|
|
2551
2356
|
case 6:
|
|
2552
2357
|
parsedBody = parsedOutput.body;
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
$metadata: $metadata,
|
|
2358
|
+
throwDefaultError({
|
|
2359
|
+
output: output,
|
|
2360
|
+
parsedBody: parsedBody,
|
|
2361
|
+
exceptionCtor: __BaseException,
|
|
2362
|
+
errorCode: errorCode,
|
|
2559
2363
|
});
|
|
2560
|
-
|
|
2364
|
+
_d.label = 7;
|
|
2365
|
+
case 7: return [2];
|
|
2561
2366
|
}
|
|
2562
2367
|
});
|
|
2563
2368
|
}); };
|
|
@@ -2569,28 +2374,26 @@ export var deserializeAws_restJson1DescribePackagesCommand = function (output, c
|
|
|
2569
2374
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2570
2375
|
return [2, deserializeAws_restJson1DescribePackagesCommandError(output, context)];
|
|
2571
2376
|
}
|
|
2572
|
-
contents = {
|
|
2377
|
+
contents = map({
|
|
2573
2378
|
$metadata: deserializeMetadata(output),
|
|
2574
|
-
|
|
2575
|
-
PackageDetailsList: undefined,
|
|
2576
|
-
};
|
|
2379
|
+
});
|
|
2577
2380
|
_a = __expectNonNull;
|
|
2578
2381
|
_b = __expectObject;
|
|
2579
2382
|
return [4, parseBody(output.body, context)];
|
|
2580
2383
|
case 1:
|
|
2581
2384
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2582
|
-
if (data.NextToken
|
|
2385
|
+
if (data.NextToken != null) {
|
|
2583
2386
|
contents.NextToken = __expectString(data.NextToken);
|
|
2584
2387
|
}
|
|
2585
|
-
if (data.PackageDetailsList
|
|
2388
|
+
if (data.PackageDetailsList != null) {
|
|
2586
2389
|
contents.PackageDetailsList = deserializeAws_restJson1PackageDetailsList(data.PackageDetailsList, context);
|
|
2587
2390
|
}
|
|
2588
|
-
return [2,
|
|
2391
|
+
return [2, contents];
|
|
2589
2392
|
}
|
|
2590
2393
|
});
|
|
2591
2394
|
}); };
|
|
2592
2395
|
var deserializeAws_restJson1DescribePackagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2593
|
-
var parsedOutput, _a,
|
|
2396
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2594
2397
|
var _c;
|
|
2595
2398
|
return __generator(this, function (_d) {
|
|
2596
2399
|
switch (_d.label) {
|
|
@@ -2627,14 +2430,14 @@ var deserializeAws_restJson1DescribePackagesCommandError = function (output, con
|
|
|
2627
2430
|
case 11: throw _d.sent();
|
|
2628
2431
|
case 12:
|
|
2629
2432
|
parsedBody = parsedOutput.body;
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
$metadata: $metadata,
|
|
2433
|
+
throwDefaultError({
|
|
2434
|
+
output: output,
|
|
2435
|
+
parsedBody: parsedBody,
|
|
2436
|
+
exceptionCtor: __BaseException,
|
|
2437
|
+
errorCode: errorCode,
|
|
2636
2438
|
});
|
|
2637
|
-
|
|
2439
|
+
_d.label = 13;
|
|
2440
|
+
case 13: return [2];
|
|
2638
2441
|
}
|
|
2639
2442
|
});
|
|
2640
2443
|
}); };
|
|
@@ -2646,28 +2449,26 @@ export var deserializeAws_restJson1DescribeReservedInstanceOfferingsCommand = fu
|
|
|
2646
2449
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2647
2450
|
return [2, deserializeAws_restJson1DescribeReservedInstanceOfferingsCommandError(output, context)];
|
|
2648
2451
|
}
|
|
2649
|
-
contents = {
|
|
2452
|
+
contents = map({
|
|
2650
2453
|
$metadata: deserializeMetadata(output),
|
|
2651
|
-
|
|
2652
|
-
ReservedInstanceOfferings: undefined,
|
|
2653
|
-
};
|
|
2454
|
+
});
|
|
2654
2455
|
_a = __expectNonNull;
|
|
2655
2456
|
_b = __expectObject;
|
|
2656
2457
|
return [4, parseBody(output.body, context)];
|
|
2657
2458
|
case 1:
|
|
2658
2459
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2659
|
-
if (data.NextToken
|
|
2460
|
+
if (data.NextToken != null) {
|
|
2660
2461
|
contents.NextToken = __expectString(data.NextToken);
|
|
2661
2462
|
}
|
|
2662
|
-
if (data.ReservedInstanceOfferings
|
|
2463
|
+
if (data.ReservedInstanceOfferings != null) {
|
|
2663
2464
|
contents.ReservedInstanceOfferings = deserializeAws_restJson1ReservedInstanceOfferingList(data.ReservedInstanceOfferings, context);
|
|
2664
2465
|
}
|
|
2665
|
-
return [2,
|
|
2466
|
+
return [2, contents];
|
|
2666
2467
|
}
|
|
2667
2468
|
});
|
|
2668
2469
|
}); };
|
|
2669
2470
|
var deserializeAws_restJson1DescribeReservedInstanceOfferingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2670
|
-
var parsedOutput, _a,
|
|
2471
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2671
2472
|
var _c;
|
|
2672
2473
|
return __generator(this, function (_d) {
|
|
2673
2474
|
switch (_d.label) {
|
|
@@ -2700,14 +2501,14 @@ var deserializeAws_restJson1DescribeReservedInstanceOfferingsCommandError = func
|
|
|
2700
2501
|
case 9: throw _d.sent();
|
|
2701
2502
|
case 10:
|
|
2702
2503
|
parsedBody = parsedOutput.body;
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
$metadata: $metadata,
|
|
2504
|
+
throwDefaultError({
|
|
2505
|
+
output: output,
|
|
2506
|
+
parsedBody: parsedBody,
|
|
2507
|
+
exceptionCtor: __BaseException,
|
|
2508
|
+
errorCode: errorCode,
|
|
2709
2509
|
});
|
|
2710
|
-
|
|
2510
|
+
_d.label = 11;
|
|
2511
|
+
case 11: return [2];
|
|
2711
2512
|
}
|
|
2712
2513
|
});
|
|
2713
2514
|
}); };
|
|
@@ -2719,28 +2520,26 @@ export var deserializeAws_restJson1DescribeReservedInstancesCommand = function (
|
|
|
2719
2520
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2720
2521
|
return [2, deserializeAws_restJson1DescribeReservedInstancesCommandError(output, context)];
|
|
2721
2522
|
}
|
|
2722
|
-
contents = {
|
|
2523
|
+
contents = map({
|
|
2723
2524
|
$metadata: deserializeMetadata(output),
|
|
2724
|
-
|
|
2725
|
-
ReservedInstances: undefined,
|
|
2726
|
-
};
|
|
2525
|
+
});
|
|
2727
2526
|
_a = __expectNonNull;
|
|
2728
2527
|
_b = __expectObject;
|
|
2729
2528
|
return [4, parseBody(output.body, context)];
|
|
2730
2529
|
case 1:
|
|
2731
2530
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2732
|
-
if (data.NextToken
|
|
2531
|
+
if (data.NextToken != null) {
|
|
2733
2532
|
contents.NextToken = __expectString(data.NextToken);
|
|
2734
2533
|
}
|
|
2735
|
-
if (data.ReservedInstances
|
|
2534
|
+
if (data.ReservedInstances != null) {
|
|
2736
2535
|
contents.ReservedInstances = deserializeAws_restJson1ReservedInstanceList(data.ReservedInstances, context);
|
|
2737
2536
|
}
|
|
2738
|
-
return [2,
|
|
2537
|
+
return [2, contents];
|
|
2739
2538
|
}
|
|
2740
2539
|
});
|
|
2741
2540
|
}); };
|
|
2742
2541
|
var deserializeAws_restJson1DescribeReservedInstancesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2743
|
-
var parsedOutput, _a,
|
|
2542
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2744
2543
|
var _c;
|
|
2745
2544
|
return __generator(this, function (_d) {
|
|
2746
2545
|
switch (_d.label) {
|
|
@@ -2773,14 +2572,14 @@ var deserializeAws_restJson1DescribeReservedInstancesCommandError = function (ou
|
|
|
2773
2572
|
case 9: throw _d.sent();
|
|
2774
2573
|
case 10:
|
|
2775
2574
|
parsedBody = parsedOutput.body;
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
$metadata: $metadata,
|
|
2575
|
+
throwDefaultError({
|
|
2576
|
+
output: output,
|
|
2577
|
+
parsedBody: parsedBody,
|
|
2578
|
+
exceptionCtor: __BaseException,
|
|
2579
|
+
errorCode: errorCode,
|
|
2782
2580
|
});
|
|
2783
|
-
|
|
2581
|
+
_d.label = 11;
|
|
2582
|
+
case 11: return [2];
|
|
2784
2583
|
}
|
|
2785
2584
|
});
|
|
2786
2585
|
}); };
|
|
@@ -2792,24 +2591,23 @@ export var deserializeAws_restJson1DissociatePackageCommand = function (output,
|
|
|
2792
2591
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2793
2592
|
return [2, deserializeAws_restJson1DissociatePackageCommandError(output, context)];
|
|
2794
2593
|
}
|
|
2795
|
-
contents = {
|
|
2594
|
+
contents = map({
|
|
2796
2595
|
$metadata: deserializeMetadata(output),
|
|
2797
|
-
|
|
2798
|
-
};
|
|
2596
|
+
});
|
|
2799
2597
|
_a = __expectNonNull;
|
|
2800
2598
|
_b = __expectObject;
|
|
2801
2599
|
return [4, parseBody(output.body, context)];
|
|
2802
2600
|
case 1:
|
|
2803
2601
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2804
|
-
if (data.DomainPackageDetails
|
|
2602
|
+
if (data.DomainPackageDetails != null) {
|
|
2805
2603
|
contents.DomainPackageDetails = deserializeAws_restJson1DomainPackageDetails(data.DomainPackageDetails, context);
|
|
2806
2604
|
}
|
|
2807
|
-
return [2,
|
|
2605
|
+
return [2, contents];
|
|
2808
2606
|
}
|
|
2809
2607
|
});
|
|
2810
2608
|
}); };
|
|
2811
2609
|
var deserializeAws_restJson1DissociatePackageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2812
|
-
var parsedOutput, _a,
|
|
2610
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2813
2611
|
var _c;
|
|
2814
2612
|
return __generator(this, function (_d) {
|
|
2815
2613
|
switch (_d.label) {
|
|
@@ -2850,14 +2648,14 @@ var deserializeAws_restJson1DissociatePackageCommandError = function (output, co
|
|
|
2850
2648
|
case 13: throw _d.sent();
|
|
2851
2649
|
case 14:
|
|
2852
2650
|
parsedBody = parsedOutput.body;
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
$metadata: $metadata,
|
|
2651
|
+
throwDefaultError({
|
|
2652
|
+
output: output,
|
|
2653
|
+
parsedBody: parsedBody,
|
|
2654
|
+
exceptionCtor: __BaseException,
|
|
2655
|
+
errorCode: errorCode,
|
|
2859
2656
|
});
|
|
2860
|
-
|
|
2657
|
+
_d.label = 15;
|
|
2658
|
+
case 15: return [2];
|
|
2861
2659
|
}
|
|
2862
2660
|
});
|
|
2863
2661
|
}); };
|
|
@@ -2869,24 +2667,23 @@ export var deserializeAws_restJson1GetCompatibleVersionsCommand = function (outp
|
|
|
2869
2667
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2870
2668
|
return [2, deserializeAws_restJson1GetCompatibleVersionsCommandError(output, context)];
|
|
2871
2669
|
}
|
|
2872
|
-
contents = {
|
|
2670
|
+
contents = map({
|
|
2873
2671
|
$metadata: deserializeMetadata(output),
|
|
2874
|
-
|
|
2875
|
-
};
|
|
2672
|
+
});
|
|
2876
2673
|
_a = __expectNonNull;
|
|
2877
2674
|
_b = __expectObject;
|
|
2878
2675
|
return [4, parseBody(output.body, context)];
|
|
2879
2676
|
case 1:
|
|
2880
2677
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2881
|
-
if (data.CompatibleVersions
|
|
2678
|
+
if (data.CompatibleVersions != null) {
|
|
2882
2679
|
contents.CompatibleVersions = deserializeAws_restJson1CompatibleVersionsList(data.CompatibleVersions, context);
|
|
2883
2680
|
}
|
|
2884
|
-
return [2,
|
|
2681
|
+
return [2, contents];
|
|
2885
2682
|
}
|
|
2886
2683
|
});
|
|
2887
2684
|
}); };
|
|
2888
2685
|
var deserializeAws_restJson1GetCompatibleVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2889
|
-
var parsedOutput, _a,
|
|
2686
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2890
2687
|
var _c;
|
|
2891
2688
|
return __generator(this, function (_d) {
|
|
2892
2689
|
switch (_d.label) {
|
|
@@ -2923,14 +2720,14 @@ var deserializeAws_restJson1GetCompatibleVersionsCommandError = function (output
|
|
|
2923
2720
|
case 11: throw _d.sent();
|
|
2924
2721
|
case 12:
|
|
2925
2722
|
parsedBody = parsedOutput.body;
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
$metadata: $metadata,
|
|
2723
|
+
throwDefaultError({
|
|
2724
|
+
output: output,
|
|
2725
|
+
parsedBody: parsedBody,
|
|
2726
|
+
exceptionCtor: __BaseException,
|
|
2727
|
+
errorCode: errorCode,
|
|
2932
2728
|
});
|
|
2933
|
-
|
|
2729
|
+
_d.label = 13;
|
|
2730
|
+
case 13: return [2];
|
|
2934
2731
|
}
|
|
2935
2732
|
});
|
|
2936
2733
|
}); };
|
|
@@ -2942,32 +2739,29 @@ export var deserializeAws_restJson1GetPackageVersionHistoryCommand = function (o
|
|
|
2942
2739
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2943
2740
|
return [2, deserializeAws_restJson1GetPackageVersionHistoryCommandError(output, context)];
|
|
2944
2741
|
}
|
|
2945
|
-
contents = {
|
|
2742
|
+
contents = map({
|
|
2946
2743
|
$metadata: deserializeMetadata(output),
|
|
2947
|
-
|
|
2948
|
-
PackageID: undefined,
|
|
2949
|
-
PackageVersionHistoryList: undefined,
|
|
2950
|
-
};
|
|
2744
|
+
});
|
|
2951
2745
|
_a = __expectNonNull;
|
|
2952
2746
|
_b = __expectObject;
|
|
2953
2747
|
return [4, parseBody(output.body, context)];
|
|
2954
2748
|
case 1:
|
|
2955
2749
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2956
|
-
if (data.NextToken
|
|
2750
|
+
if (data.NextToken != null) {
|
|
2957
2751
|
contents.NextToken = __expectString(data.NextToken);
|
|
2958
2752
|
}
|
|
2959
|
-
if (data.PackageID
|
|
2753
|
+
if (data.PackageID != null) {
|
|
2960
2754
|
contents.PackageID = __expectString(data.PackageID);
|
|
2961
2755
|
}
|
|
2962
|
-
if (data.PackageVersionHistoryList
|
|
2756
|
+
if (data.PackageVersionHistoryList != null) {
|
|
2963
2757
|
contents.PackageVersionHistoryList = deserializeAws_restJson1PackageVersionHistoryList(data.PackageVersionHistoryList, context);
|
|
2964
2758
|
}
|
|
2965
|
-
return [2,
|
|
2759
|
+
return [2, contents];
|
|
2966
2760
|
}
|
|
2967
2761
|
});
|
|
2968
2762
|
}); };
|
|
2969
2763
|
var deserializeAws_restJson1GetPackageVersionHistoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2970
|
-
var parsedOutput, _a,
|
|
2764
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2971
2765
|
var _c;
|
|
2972
2766
|
return __generator(this, function (_d) {
|
|
2973
2767
|
switch (_d.label) {
|
|
@@ -3004,14 +2798,14 @@ var deserializeAws_restJson1GetPackageVersionHistoryCommandError = function (out
|
|
|
3004
2798
|
case 11: throw _d.sent();
|
|
3005
2799
|
case 12:
|
|
3006
2800
|
parsedBody = parsedOutput.body;
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
$metadata: $metadata,
|
|
2801
|
+
throwDefaultError({
|
|
2802
|
+
output: output,
|
|
2803
|
+
parsedBody: parsedBody,
|
|
2804
|
+
exceptionCtor: __BaseException,
|
|
2805
|
+
errorCode: errorCode,
|
|
3013
2806
|
});
|
|
3014
|
-
|
|
2807
|
+
_d.label = 13;
|
|
2808
|
+
case 13: return [2];
|
|
3015
2809
|
}
|
|
3016
2810
|
});
|
|
3017
2811
|
}); };
|
|
@@ -3023,28 +2817,26 @@ export var deserializeAws_restJson1GetUpgradeHistoryCommand = function (output,
|
|
|
3023
2817
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3024
2818
|
return [2, deserializeAws_restJson1GetUpgradeHistoryCommandError(output, context)];
|
|
3025
2819
|
}
|
|
3026
|
-
contents = {
|
|
2820
|
+
contents = map({
|
|
3027
2821
|
$metadata: deserializeMetadata(output),
|
|
3028
|
-
|
|
3029
|
-
UpgradeHistories: undefined,
|
|
3030
|
-
};
|
|
2822
|
+
});
|
|
3031
2823
|
_a = __expectNonNull;
|
|
3032
2824
|
_b = __expectObject;
|
|
3033
2825
|
return [4, parseBody(output.body, context)];
|
|
3034
2826
|
case 1:
|
|
3035
2827
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3036
|
-
if (data.NextToken
|
|
2828
|
+
if (data.NextToken != null) {
|
|
3037
2829
|
contents.NextToken = __expectString(data.NextToken);
|
|
3038
2830
|
}
|
|
3039
|
-
if (data.UpgradeHistories
|
|
2831
|
+
if (data.UpgradeHistories != null) {
|
|
3040
2832
|
contents.UpgradeHistories = deserializeAws_restJson1UpgradeHistoryList(data.UpgradeHistories, context);
|
|
3041
2833
|
}
|
|
3042
|
-
return [2,
|
|
2834
|
+
return [2, contents];
|
|
3043
2835
|
}
|
|
3044
2836
|
});
|
|
3045
2837
|
}); };
|
|
3046
2838
|
var deserializeAws_restJson1GetUpgradeHistoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3047
|
-
var parsedOutput, _a,
|
|
2839
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3048
2840
|
var _c;
|
|
3049
2841
|
return __generator(this, function (_d) {
|
|
3050
2842
|
switch (_d.label) {
|
|
@@ -3081,14 +2873,14 @@ var deserializeAws_restJson1GetUpgradeHistoryCommandError = function (output, co
|
|
|
3081
2873
|
case 11: throw _d.sent();
|
|
3082
2874
|
case 12:
|
|
3083
2875
|
parsedBody = parsedOutput.body;
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
$metadata: $metadata,
|
|
2876
|
+
throwDefaultError({
|
|
2877
|
+
output: output,
|
|
2878
|
+
parsedBody: parsedBody,
|
|
2879
|
+
exceptionCtor: __BaseException,
|
|
2880
|
+
errorCode: errorCode,
|
|
3090
2881
|
});
|
|
3091
|
-
|
|
2882
|
+
_d.label = 13;
|
|
2883
|
+
case 13: return [2];
|
|
3092
2884
|
}
|
|
3093
2885
|
});
|
|
3094
2886
|
}); };
|
|
@@ -3100,32 +2892,29 @@ export var deserializeAws_restJson1GetUpgradeStatusCommand = function (output, c
|
|
|
3100
2892
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3101
2893
|
return [2, deserializeAws_restJson1GetUpgradeStatusCommandError(output, context)];
|
|
3102
2894
|
}
|
|
3103
|
-
contents = {
|
|
2895
|
+
contents = map({
|
|
3104
2896
|
$metadata: deserializeMetadata(output),
|
|
3105
|
-
|
|
3106
|
-
UpgradeName: undefined,
|
|
3107
|
-
UpgradeStep: undefined,
|
|
3108
|
-
};
|
|
2897
|
+
});
|
|
3109
2898
|
_a = __expectNonNull;
|
|
3110
2899
|
_b = __expectObject;
|
|
3111
2900
|
return [4, parseBody(output.body, context)];
|
|
3112
2901
|
case 1:
|
|
3113
2902
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3114
|
-
if (data.StepStatus
|
|
2903
|
+
if (data.StepStatus != null) {
|
|
3115
2904
|
contents.StepStatus = __expectString(data.StepStatus);
|
|
3116
2905
|
}
|
|
3117
|
-
if (data.UpgradeName
|
|
2906
|
+
if (data.UpgradeName != null) {
|
|
3118
2907
|
contents.UpgradeName = __expectString(data.UpgradeName);
|
|
3119
2908
|
}
|
|
3120
|
-
if (data.UpgradeStep
|
|
2909
|
+
if (data.UpgradeStep != null) {
|
|
3121
2910
|
contents.UpgradeStep = __expectString(data.UpgradeStep);
|
|
3122
2911
|
}
|
|
3123
|
-
return [2,
|
|
2912
|
+
return [2, contents];
|
|
3124
2913
|
}
|
|
3125
2914
|
});
|
|
3126
2915
|
}); };
|
|
3127
2916
|
var deserializeAws_restJson1GetUpgradeStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3128
|
-
var parsedOutput, _a,
|
|
2917
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3129
2918
|
var _c;
|
|
3130
2919
|
return __generator(this, function (_d) {
|
|
3131
2920
|
switch (_d.label) {
|
|
@@ -3162,14 +2951,14 @@ var deserializeAws_restJson1GetUpgradeStatusCommandError = function (output, con
|
|
|
3162
2951
|
case 11: throw _d.sent();
|
|
3163
2952
|
case 12:
|
|
3164
2953
|
parsedBody = parsedOutput.body;
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
$metadata: $metadata,
|
|
2954
|
+
throwDefaultError({
|
|
2955
|
+
output: output,
|
|
2956
|
+
parsedBody: parsedBody,
|
|
2957
|
+
exceptionCtor: __BaseException,
|
|
2958
|
+
errorCode: errorCode,
|
|
3171
2959
|
});
|
|
3172
|
-
|
|
2960
|
+
_d.label = 13;
|
|
2961
|
+
case 13: return [2];
|
|
3173
2962
|
}
|
|
3174
2963
|
});
|
|
3175
2964
|
}); };
|
|
@@ -3181,24 +2970,23 @@ export var deserializeAws_restJson1ListDomainNamesCommand = function (output, co
|
|
|
3181
2970
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3182
2971
|
return [2, deserializeAws_restJson1ListDomainNamesCommandError(output, context)];
|
|
3183
2972
|
}
|
|
3184
|
-
contents = {
|
|
2973
|
+
contents = map({
|
|
3185
2974
|
$metadata: deserializeMetadata(output),
|
|
3186
|
-
|
|
3187
|
-
};
|
|
2975
|
+
});
|
|
3188
2976
|
_a = __expectNonNull;
|
|
3189
2977
|
_b = __expectObject;
|
|
3190
2978
|
return [4, parseBody(output.body, context)];
|
|
3191
2979
|
case 1:
|
|
3192
2980
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3193
|
-
if (data.DomainNames
|
|
2981
|
+
if (data.DomainNames != null) {
|
|
3194
2982
|
contents.DomainNames = deserializeAws_restJson1DomainInfoList(data.DomainNames, context);
|
|
3195
2983
|
}
|
|
3196
|
-
return [2,
|
|
2984
|
+
return [2, contents];
|
|
3197
2985
|
}
|
|
3198
2986
|
});
|
|
3199
2987
|
}); };
|
|
3200
2988
|
var deserializeAws_restJson1ListDomainNamesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3201
|
-
var parsedOutput, _a,
|
|
2989
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3202
2990
|
var _c;
|
|
3203
2991
|
return __generator(this, function (_d) {
|
|
3204
2992
|
switch (_d.label) {
|
|
@@ -3223,14 +3011,14 @@ var deserializeAws_restJson1ListDomainNamesCommandError = function (output, cont
|
|
|
3223
3011
|
case 5: throw _d.sent();
|
|
3224
3012
|
case 6:
|
|
3225
3013
|
parsedBody = parsedOutput.body;
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
$metadata: $metadata,
|
|
3014
|
+
throwDefaultError({
|
|
3015
|
+
output: output,
|
|
3016
|
+
parsedBody: parsedBody,
|
|
3017
|
+
exceptionCtor: __BaseException,
|
|
3018
|
+
errorCode: errorCode,
|
|
3232
3019
|
});
|
|
3233
|
-
|
|
3020
|
+
_d.label = 7;
|
|
3021
|
+
case 7: return [2];
|
|
3234
3022
|
}
|
|
3235
3023
|
});
|
|
3236
3024
|
}); };
|
|
@@ -3242,28 +3030,26 @@ export var deserializeAws_restJson1ListDomainsForPackageCommand = function (outp
|
|
|
3242
3030
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3243
3031
|
return [2, deserializeAws_restJson1ListDomainsForPackageCommandError(output, context)];
|
|
3244
3032
|
}
|
|
3245
|
-
contents = {
|
|
3033
|
+
contents = map({
|
|
3246
3034
|
$metadata: deserializeMetadata(output),
|
|
3247
|
-
|
|
3248
|
-
NextToken: undefined,
|
|
3249
|
-
};
|
|
3035
|
+
});
|
|
3250
3036
|
_a = __expectNonNull;
|
|
3251
3037
|
_b = __expectObject;
|
|
3252
3038
|
return [4, parseBody(output.body, context)];
|
|
3253
3039
|
case 1:
|
|
3254
3040
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3255
|
-
if (data.DomainPackageDetailsList
|
|
3041
|
+
if (data.DomainPackageDetailsList != null) {
|
|
3256
3042
|
contents.DomainPackageDetailsList = deserializeAws_restJson1DomainPackageDetailsList(data.DomainPackageDetailsList, context);
|
|
3257
3043
|
}
|
|
3258
|
-
if (data.NextToken
|
|
3044
|
+
if (data.NextToken != null) {
|
|
3259
3045
|
contents.NextToken = __expectString(data.NextToken);
|
|
3260
3046
|
}
|
|
3261
|
-
return [2,
|
|
3047
|
+
return [2, contents];
|
|
3262
3048
|
}
|
|
3263
3049
|
});
|
|
3264
3050
|
}); };
|
|
3265
3051
|
var deserializeAws_restJson1ListDomainsForPackageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3266
|
-
var parsedOutput, _a,
|
|
3052
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3267
3053
|
var _c;
|
|
3268
3054
|
return __generator(this, function (_d) {
|
|
3269
3055
|
switch (_d.label) {
|
|
@@ -3300,14 +3086,14 @@ var deserializeAws_restJson1ListDomainsForPackageCommandError = function (output
|
|
|
3300
3086
|
case 11: throw _d.sent();
|
|
3301
3087
|
case 12:
|
|
3302
3088
|
parsedBody = parsedOutput.body;
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
$metadata: $metadata,
|
|
3089
|
+
throwDefaultError({
|
|
3090
|
+
output: output,
|
|
3091
|
+
parsedBody: parsedBody,
|
|
3092
|
+
exceptionCtor: __BaseException,
|
|
3093
|
+
errorCode: errorCode,
|
|
3309
3094
|
});
|
|
3310
|
-
|
|
3095
|
+
_d.label = 13;
|
|
3096
|
+
case 13: return [2];
|
|
3311
3097
|
}
|
|
3312
3098
|
});
|
|
3313
3099
|
}); };
|
|
@@ -3319,28 +3105,26 @@ export var deserializeAws_restJson1ListInstanceTypeDetailsCommand = function (ou
|
|
|
3319
3105
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3320
3106
|
return [2, deserializeAws_restJson1ListInstanceTypeDetailsCommandError(output, context)];
|
|
3321
3107
|
}
|
|
3322
|
-
contents = {
|
|
3108
|
+
contents = map({
|
|
3323
3109
|
$metadata: deserializeMetadata(output),
|
|
3324
|
-
|
|
3325
|
-
NextToken: undefined,
|
|
3326
|
-
};
|
|
3110
|
+
});
|
|
3327
3111
|
_a = __expectNonNull;
|
|
3328
3112
|
_b = __expectObject;
|
|
3329
3113
|
return [4, parseBody(output.body, context)];
|
|
3330
3114
|
case 1:
|
|
3331
3115
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3332
|
-
if (data.InstanceTypeDetails
|
|
3116
|
+
if (data.InstanceTypeDetails != null) {
|
|
3333
3117
|
contents.InstanceTypeDetails = deserializeAws_restJson1InstanceTypeDetailsList(data.InstanceTypeDetails, context);
|
|
3334
3118
|
}
|
|
3335
|
-
if (data.NextToken
|
|
3119
|
+
if (data.NextToken != null) {
|
|
3336
3120
|
contents.NextToken = __expectString(data.NextToken);
|
|
3337
3121
|
}
|
|
3338
|
-
return [2,
|
|
3122
|
+
return [2, contents];
|
|
3339
3123
|
}
|
|
3340
3124
|
});
|
|
3341
3125
|
}); };
|
|
3342
3126
|
var deserializeAws_restJson1ListInstanceTypeDetailsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3343
|
-
var parsedOutput, _a,
|
|
3127
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3344
3128
|
var _c;
|
|
3345
3129
|
return __generator(this, function (_d) {
|
|
3346
3130
|
switch (_d.label) {
|
|
@@ -3373,14 +3157,14 @@ var deserializeAws_restJson1ListInstanceTypeDetailsCommandError = function (outp
|
|
|
3373
3157
|
case 9: throw _d.sent();
|
|
3374
3158
|
case 10:
|
|
3375
3159
|
parsedBody = parsedOutput.body;
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
$metadata: $metadata,
|
|
3160
|
+
throwDefaultError({
|
|
3161
|
+
output: output,
|
|
3162
|
+
parsedBody: parsedBody,
|
|
3163
|
+
exceptionCtor: __BaseException,
|
|
3164
|
+
errorCode: errorCode,
|
|
3382
3165
|
});
|
|
3383
|
-
|
|
3166
|
+
_d.label = 11;
|
|
3167
|
+
case 11: return [2];
|
|
3384
3168
|
}
|
|
3385
3169
|
});
|
|
3386
3170
|
}); };
|
|
@@ -3392,28 +3176,26 @@ export var deserializeAws_restJson1ListPackagesForDomainCommand = function (outp
|
|
|
3392
3176
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3393
3177
|
return [2, deserializeAws_restJson1ListPackagesForDomainCommandError(output, context)];
|
|
3394
3178
|
}
|
|
3395
|
-
contents = {
|
|
3179
|
+
contents = map({
|
|
3396
3180
|
$metadata: deserializeMetadata(output),
|
|
3397
|
-
|
|
3398
|
-
NextToken: undefined,
|
|
3399
|
-
};
|
|
3181
|
+
});
|
|
3400
3182
|
_a = __expectNonNull;
|
|
3401
3183
|
_b = __expectObject;
|
|
3402
3184
|
return [4, parseBody(output.body, context)];
|
|
3403
3185
|
case 1:
|
|
3404
3186
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3405
|
-
if (data.DomainPackageDetailsList
|
|
3187
|
+
if (data.DomainPackageDetailsList != null) {
|
|
3406
3188
|
contents.DomainPackageDetailsList = deserializeAws_restJson1DomainPackageDetailsList(data.DomainPackageDetailsList, context);
|
|
3407
3189
|
}
|
|
3408
|
-
if (data.NextToken
|
|
3190
|
+
if (data.NextToken != null) {
|
|
3409
3191
|
contents.NextToken = __expectString(data.NextToken);
|
|
3410
3192
|
}
|
|
3411
|
-
return [2,
|
|
3193
|
+
return [2, contents];
|
|
3412
3194
|
}
|
|
3413
3195
|
});
|
|
3414
3196
|
}); };
|
|
3415
3197
|
var deserializeAws_restJson1ListPackagesForDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3416
|
-
var parsedOutput, _a,
|
|
3198
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3417
3199
|
var _c;
|
|
3418
3200
|
return __generator(this, function (_d) {
|
|
3419
3201
|
switch (_d.label) {
|
|
@@ -3450,14 +3232,14 @@ var deserializeAws_restJson1ListPackagesForDomainCommandError = function (output
|
|
|
3450
3232
|
case 11: throw _d.sent();
|
|
3451
3233
|
case 12:
|
|
3452
3234
|
parsedBody = parsedOutput.body;
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
$metadata: $metadata,
|
|
3235
|
+
throwDefaultError({
|
|
3236
|
+
output: output,
|
|
3237
|
+
parsedBody: parsedBody,
|
|
3238
|
+
exceptionCtor: __BaseException,
|
|
3239
|
+
errorCode: errorCode,
|
|
3459
3240
|
});
|
|
3460
|
-
|
|
3241
|
+
_d.label = 13;
|
|
3242
|
+
case 13: return [2];
|
|
3461
3243
|
}
|
|
3462
3244
|
});
|
|
3463
3245
|
}); };
|
|
@@ -3469,24 +3251,23 @@ export var deserializeAws_restJson1ListTagsCommand = function (output, context)
|
|
|
3469
3251
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3470
3252
|
return [2, deserializeAws_restJson1ListTagsCommandError(output, context)];
|
|
3471
3253
|
}
|
|
3472
|
-
contents = {
|
|
3254
|
+
contents = map({
|
|
3473
3255
|
$metadata: deserializeMetadata(output),
|
|
3474
|
-
|
|
3475
|
-
};
|
|
3256
|
+
});
|
|
3476
3257
|
_a = __expectNonNull;
|
|
3477
3258
|
_b = __expectObject;
|
|
3478
3259
|
return [4, parseBody(output.body, context)];
|
|
3479
3260
|
case 1:
|
|
3480
3261
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3481
|
-
if (data.TagList
|
|
3262
|
+
if (data.TagList != null) {
|
|
3482
3263
|
contents.TagList = deserializeAws_restJson1TagList(data.TagList, context);
|
|
3483
3264
|
}
|
|
3484
|
-
return [2,
|
|
3265
|
+
return [2, contents];
|
|
3485
3266
|
}
|
|
3486
3267
|
});
|
|
3487
3268
|
}); };
|
|
3488
3269
|
var deserializeAws_restJson1ListTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3489
|
-
var parsedOutput, _a,
|
|
3270
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3490
3271
|
var _c;
|
|
3491
3272
|
return __generator(this, function (_d) {
|
|
3492
3273
|
switch (_d.label) {
|
|
@@ -3519,14 +3300,14 @@ var deserializeAws_restJson1ListTagsCommandError = function (output, context) {
|
|
|
3519
3300
|
case 9: throw _d.sent();
|
|
3520
3301
|
case 10:
|
|
3521
3302
|
parsedBody = parsedOutput.body;
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
$metadata: $metadata,
|
|
3303
|
+
throwDefaultError({
|
|
3304
|
+
output: output,
|
|
3305
|
+
parsedBody: parsedBody,
|
|
3306
|
+
exceptionCtor: __BaseException,
|
|
3307
|
+
errorCode: errorCode,
|
|
3528
3308
|
});
|
|
3529
|
-
|
|
3309
|
+
_d.label = 11;
|
|
3310
|
+
case 11: return [2];
|
|
3530
3311
|
}
|
|
3531
3312
|
});
|
|
3532
3313
|
}); };
|
|
@@ -3538,28 +3319,26 @@ export var deserializeAws_restJson1ListVersionsCommand = function (output, conte
|
|
|
3538
3319
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3539
3320
|
return [2, deserializeAws_restJson1ListVersionsCommandError(output, context)];
|
|
3540
3321
|
}
|
|
3541
|
-
contents = {
|
|
3322
|
+
contents = map({
|
|
3542
3323
|
$metadata: deserializeMetadata(output),
|
|
3543
|
-
|
|
3544
|
-
Versions: undefined,
|
|
3545
|
-
};
|
|
3324
|
+
});
|
|
3546
3325
|
_a = __expectNonNull;
|
|
3547
3326
|
_b = __expectObject;
|
|
3548
3327
|
return [4, parseBody(output.body, context)];
|
|
3549
3328
|
case 1:
|
|
3550
3329
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3551
|
-
if (data.NextToken
|
|
3330
|
+
if (data.NextToken != null) {
|
|
3552
3331
|
contents.NextToken = __expectString(data.NextToken);
|
|
3553
3332
|
}
|
|
3554
|
-
if (data.Versions
|
|
3333
|
+
if (data.Versions != null) {
|
|
3555
3334
|
contents.Versions = deserializeAws_restJson1VersionList(data.Versions, context);
|
|
3556
3335
|
}
|
|
3557
|
-
return [2,
|
|
3336
|
+
return [2, contents];
|
|
3558
3337
|
}
|
|
3559
3338
|
});
|
|
3560
3339
|
}); };
|
|
3561
3340
|
var deserializeAws_restJson1ListVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3562
|
-
var parsedOutput, _a,
|
|
3341
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3563
3342
|
var _c;
|
|
3564
3343
|
return __generator(this, function (_d) {
|
|
3565
3344
|
switch (_d.label) {
|
|
@@ -3592,14 +3371,14 @@ var deserializeAws_restJson1ListVersionsCommandError = function (output, context
|
|
|
3592
3371
|
case 9: throw _d.sent();
|
|
3593
3372
|
case 10:
|
|
3594
3373
|
parsedBody = parsedOutput.body;
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
$metadata: $metadata,
|
|
3374
|
+
throwDefaultError({
|
|
3375
|
+
output: output,
|
|
3376
|
+
parsedBody: parsedBody,
|
|
3377
|
+
exceptionCtor: __BaseException,
|
|
3378
|
+
errorCode: errorCode,
|
|
3601
3379
|
});
|
|
3602
|
-
|
|
3380
|
+
_d.label = 11;
|
|
3381
|
+
case 11: return [2];
|
|
3603
3382
|
}
|
|
3604
3383
|
});
|
|
3605
3384
|
}); };
|
|
@@ -3611,28 +3390,26 @@ export var deserializeAws_restJson1PurchaseReservedInstanceOfferingCommand = fun
|
|
|
3611
3390
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3612
3391
|
return [2, deserializeAws_restJson1PurchaseReservedInstanceOfferingCommandError(output, context)];
|
|
3613
3392
|
}
|
|
3614
|
-
contents = {
|
|
3393
|
+
contents = map({
|
|
3615
3394
|
$metadata: deserializeMetadata(output),
|
|
3616
|
-
|
|
3617
|
-
ReservedInstanceId: undefined,
|
|
3618
|
-
};
|
|
3395
|
+
});
|
|
3619
3396
|
_a = __expectNonNull;
|
|
3620
3397
|
_b = __expectObject;
|
|
3621
3398
|
return [4, parseBody(output.body, context)];
|
|
3622
3399
|
case 1:
|
|
3623
3400
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3624
|
-
if (data.ReservationName
|
|
3401
|
+
if (data.ReservationName != null) {
|
|
3625
3402
|
contents.ReservationName = __expectString(data.ReservationName);
|
|
3626
3403
|
}
|
|
3627
|
-
if (data.ReservedInstanceId
|
|
3404
|
+
if (data.ReservedInstanceId != null) {
|
|
3628
3405
|
contents.ReservedInstanceId = __expectString(data.ReservedInstanceId);
|
|
3629
3406
|
}
|
|
3630
|
-
return [2,
|
|
3407
|
+
return [2, contents];
|
|
3631
3408
|
}
|
|
3632
3409
|
});
|
|
3633
3410
|
}); };
|
|
3634
3411
|
var deserializeAws_restJson1PurchaseReservedInstanceOfferingCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3635
|
-
var parsedOutput, _a,
|
|
3412
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3636
3413
|
var _c;
|
|
3637
3414
|
return __generator(this, function (_d) {
|
|
3638
3415
|
switch (_d.label) {
|
|
@@ -3673,14 +3450,14 @@ var deserializeAws_restJson1PurchaseReservedInstanceOfferingCommandError = funct
|
|
|
3673
3450
|
case 13: throw _d.sent();
|
|
3674
3451
|
case 14:
|
|
3675
3452
|
parsedBody = parsedOutput.body;
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
$metadata: $metadata,
|
|
3453
|
+
throwDefaultError({
|
|
3454
|
+
output: output,
|
|
3455
|
+
parsedBody: parsedBody,
|
|
3456
|
+
exceptionCtor: __BaseException,
|
|
3457
|
+
errorCode: errorCode,
|
|
3682
3458
|
});
|
|
3683
|
-
|
|
3459
|
+
_d.label = 15;
|
|
3460
|
+
case 15: return [2];
|
|
3684
3461
|
}
|
|
3685
3462
|
});
|
|
3686
3463
|
}); };
|
|
@@ -3692,24 +3469,23 @@ export var deserializeAws_restJson1RejectInboundConnectionCommand = function (ou
|
|
|
3692
3469
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3693
3470
|
return [2, deserializeAws_restJson1RejectInboundConnectionCommandError(output, context)];
|
|
3694
3471
|
}
|
|
3695
|
-
contents = {
|
|
3472
|
+
contents = map({
|
|
3696
3473
|
$metadata: deserializeMetadata(output),
|
|
3697
|
-
|
|
3698
|
-
};
|
|
3474
|
+
});
|
|
3699
3475
|
_a = __expectNonNull;
|
|
3700
3476
|
_b = __expectObject;
|
|
3701
3477
|
return [4, parseBody(output.body, context)];
|
|
3702
3478
|
case 1:
|
|
3703
3479
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3704
|
-
if (data.Connection
|
|
3480
|
+
if (data.Connection != null) {
|
|
3705
3481
|
contents.Connection = deserializeAws_restJson1InboundConnection(data.Connection, context);
|
|
3706
3482
|
}
|
|
3707
|
-
return [2,
|
|
3483
|
+
return [2, contents];
|
|
3708
3484
|
}
|
|
3709
3485
|
});
|
|
3710
3486
|
}); };
|
|
3711
3487
|
var deserializeAws_restJson1RejectInboundConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3712
|
-
var parsedOutput, _a,
|
|
3488
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3713
3489
|
var _c;
|
|
3714
3490
|
return __generator(this, function (_d) {
|
|
3715
3491
|
switch (_d.label) {
|
|
@@ -3734,14 +3510,14 @@ var deserializeAws_restJson1RejectInboundConnectionCommandError = function (outp
|
|
|
3734
3510
|
case 5: throw _d.sent();
|
|
3735
3511
|
case 6:
|
|
3736
3512
|
parsedBody = parsedOutput.body;
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
$metadata: $metadata,
|
|
3513
|
+
throwDefaultError({
|
|
3514
|
+
output: output,
|
|
3515
|
+
parsedBody: parsedBody,
|
|
3516
|
+
exceptionCtor: __BaseException,
|
|
3517
|
+
errorCode: errorCode,
|
|
3743
3518
|
});
|
|
3744
|
-
|
|
3519
|
+
_d.label = 7;
|
|
3520
|
+
case 7: return [2];
|
|
3745
3521
|
}
|
|
3746
3522
|
});
|
|
3747
3523
|
}); };
|
|
@@ -3753,18 +3529,18 @@ export var deserializeAws_restJson1RemoveTagsCommand = function (output, context
|
|
|
3753
3529
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3754
3530
|
return [2, deserializeAws_restJson1RemoveTagsCommandError(output, context)];
|
|
3755
3531
|
}
|
|
3756
|
-
contents = {
|
|
3532
|
+
contents = map({
|
|
3757
3533
|
$metadata: deserializeMetadata(output),
|
|
3758
|
-
};
|
|
3534
|
+
});
|
|
3759
3535
|
return [4, collectBody(output.body, context)];
|
|
3760
3536
|
case 1:
|
|
3761
3537
|
_a.sent();
|
|
3762
|
-
return [2,
|
|
3538
|
+
return [2, contents];
|
|
3763
3539
|
}
|
|
3764
3540
|
});
|
|
3765
3541
|
}); };
|
|
3766
3542
|
var deserializeAws_restJson1RemoveTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3767
|
-
var parsedOutput, _a,
|
|
3543
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3768
3544
|
var _c;
|
|
3769
3545
|
return __generator(this, function (_d) {
|
|
3770
3546
|
switch (_d.label) {
|
|
@@ -3793,14 +3569,14 @@ var deserializeAws_restJson1RemoveTagsCommandError = function (output, context)
|
|
|
3793
3569
|
case 7: throw _d.sent();
|
|
3794
3570
|
case 8:
|
|
3795
3571
|
parsedBody = parsedOutput.body;
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
$metadata: $metadata,
|
|
3572
|
+
throwDefaultError({
|
|
3573
|
+
output: output,
|
|
3574
|
+
parsedBody: parsedBody,
|
|
3575
|
+
exceptionCtor: __BaseException,
|
|
3576
|
+
errorCode: errorCode,
|
|
3802
3577
|
});
|
|
3803
|
-
|
|
3578
|
+
_d.label = 9;
|
|
3579
|
+
case 9: return [2];
|
|
3804
3580
|
}
|
|
3805
3581
|
});
|
|
3806
3582
|
}); };
|
|
@@ -3812,24 +3588,23 @@ export var deserializeAws_restJson1StartServiceSoftwareUpdateCommand = function
|
|
|
3812
3588
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3813
3589
|
return [2, deserializeAws_restJson1StartServiceSoftwareUpdateCommandError(output, context)];
|
|
3814
3590
|
}
|
|
3815
|
-
contents = {
|
|
3591
|
+
contents = map({
|
|
3816
3592
|
$metadata: deserializeMetadata(output),
|
|
3817
|
-
|
|
3818
|
-
};
|
|
3593
|
+
});
|
|
3819
3594
|
_a = __expectNonNull;
|
|
3820
3595
|
_b = __expectObject;
|
|
3821
3596
|
return [4, parseBody(output.body, context)];
|
|
3822
3597
|
case 1:
|
|
3823
3598
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3824
|
-
if (data.ServiceSoftwareOptions
|
|
3599
|
+
if (data.ServiceSoftwareOptions != null) {
|
|
3825
3600
|
contents.ServiceSoftwareOptions = deserializeAws_restJson1ServiceSoftwareOptions(data.ServiceSoftwareOptions, context);
|
|
3826
3601
|
}
|
|
3827
|
-
return [2,
|
|
3602
|
+
return [2, contents];
|
|
3828
3603
|
}
|
|
3829
3604
|
});
|
|
3830
3605
|
}); };
|
|
3831
3606
|
var deserializeAws_restJson1StartServiceSoftwareUpdateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3832
|
-
var parsedOutput, _a,
|
|
3607
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3833
3608
|
var _c;
|
|
3834
3609
|
return __generator(this, function (_d) {
|
|
3835
3610
|
switch (_d.label) {
|
|
@@ -3862,14 +3637,14 @@ var deserializeAws_restJson1StartServiceSoftwareUpdateCommandError = function (o
|
|
|
3862
3637
|
case 9: throw _d.sent();
|
|
3863
3638
|
case 10:
|
|
3864
3639
|
parsedBody = parsedOutput.body;
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
$metadata: $metadata,
|
|
3640
|
+
throwDefaultError({
|
|
3641
|
+
output: output,
|
|
3642
|
+
parsedBody: parsedBody,
|
|
3643
|
+
exceptionCtor: __BaseException,
|
|
3644
|
+
errorCode: errorCode,
|
|
3871
3645
|
});
|
|
3872
|
-
|
|
3646
|
+
_d.label = 11;
|
|
3647
|
+
case 11: return [2];
|
|
3873
3648
|
}
|
|
3874
3649
|
});
|
|
3875
3650
|
}); };
|
|
@@ -3881,28 +3656,26 @@ export var deserializeAws_restJson1UpdateDomainConfigCommand = function (output,
|
|
|
3881
3656
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3882
3657
|
return [2, deserializeAws_restJson1UpdateDomainConfigCommandError(output, context)];
|
|
3883
3658
|
}
|
|
3884
|
-
contents = {
|
|
3659
|
+
contents = map({
|
|
3885
3660
|
$metadata: deserializeMetadata(output),
|
|
3886
|
-
|
|
3887
|
-
DryRunResults: undefined,
|
|
3888
|
-
};
|
|
3661
|
+
});
|
|
3889
3662
|
_a = __expectNonNull;
|
|
3890
3663
|
_b = __expectObject;
|
|
3891
3664
|
return [4, parseBody(output.body, context)];
|
|
3892
3665
|
case 1:
|
|
3893
3666
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3894
|
-
if (data.DomainConfig
|
|
3667
|
+
if (data.DomainConfig != null) {
|
|
3895
3668
|
contents.DomainConfig = deserializeAws_restJson1DomainConfig(data.DomainConfig, context);
|
|
3896
3669
|
}
|
|
3897
|
-
if (data.DryRunResults
|
|
3670
|
+
if (data.DryRunResults != null) {
|
|
3898
3671
|
contents.DryRunResults = deserializeAws_restJson1DryRunResults(data.DryRunResults, context);
|
|
3899
3672
|
}
|
|
3900
|
-
return [2,
|
|
3673
|
+
return [2, contents];
|
|
3901
3674
|
}
|
|
3902
3675
|
});
|
|
3903
3676
|
}); };
|
|
3904
3677
|
var deserializeAws_restJson1UpdateDomainConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3905
|
-
var parsedOutput, _a,
|
|
3678
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3906
3679
|
var _c;
|
|
3907
3680
|
return __generator(this, function (_d) {
|
|
3908
3681
|
switch (_d.label) {
|
|
@@ -3943,14 +3716,14 @@ var deserializeAws_restJson1UpdateDomainConfigCommandError = function (output, c
|
|
|
3943
3716
|
case 13: throw _d.sent();
|
|
3944
3717
|
case 14:
|
|
3945
3718
|
parsedBody = parsedOutput.body;
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
$metadata: $metadata,
|
|
3719
|
+
throwDefaultError({
|
|
3720
|
+
output: output,
|
|
3721
|
+
parsedBody: parsedBody,
|
|
3722
|
+
exceptionCtor: __BaseException,
|
|
3723
|
+
errorCode: errorCode,
|
|
3952
3724
|
});
|
|
3953
|
-
|
|
3725
|
+
_d.label = 15;
|
|
3726
|
+
case 15: return [2];
|
|
3954
3727
|
}
|
|
3955
3728
|
});
|
|
3956
3729
|
}); };
|
|
@@ -3962,24 +3735,23 @@ export var deserializeAws_restJson1UpdatePackageCommand = function (output, cont
|
|
|
3962
3735
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3963
3736
|
return [2, deserializeAws_restJson1UpdatePackageCommandError(output, context)];
|
|
3964
3737
|
}
|
|
3965
|
-
contents = {
|
|
3738
|
+
contents = map({
|
|
3966
3739
|
$metadata: deserializeMetadata(output),
|
|
3967
|
-
|
|
3968
|
-
};
|
|
3740
|
+
});
|
|
3969
3741
|
_a = __expectNonNull;
|
|
3970
3742
|
_b = __expectObject;
|
|
3971
3743
|
return [4, parseBody(output.body, context)];
|
|
3972
3744
|
case 1:
|
|
3973
3745
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3974
|
-
if (data.PackageDetails
|
|
3746
|
+
if (data.PackageDetails != null) {
|
|
3975
3747
|
contents.PackageDetails = deserializeAws_restJson1PackageDetails(data.PackageDetails, context);
|
|
3976
3748
|
}
|
|
3977
|
-
return [2,
|
|
3749
|
+
return [2, contents];
|
|
3978
3750
|
}
|
|
3979
3751
|
});
|
|
3980
3752
|
}); };
|
|
3981
3753
|
var deserializeAws_restJson1UpdatePackageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3982
|
-
var parsedOutput, _a,
|
|
3754
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3983
3755
|
var _c;
|
|
3984
3756
|
return __generator(this, function (_d) {
|
|
3985
3757
|
switch (_d.label) {
|
|
@@ -4020,14 +3792,14 @@ var deserializeAws_restJson1UpdatePackageCommandError = function (output, contex
|
|
|
4020
3792
|
case 13: throw _d.sent();
|
|
4021
3793
|
case 14:
|
|
4022
3794
|
parsedBody = parsedOutput.body;
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
$metadata: $metadata,
|
|
3795
|
+
throwDefaultError({
|
|
3796
|
+
output: output,
|
|
3797
|
+
parsedBody: parsedBody,
|
|
3798
|
+
exceptionCtor: __BaseException,
|
|
3799
|
+
errorCode: errorCode,
|
|
4029
3800
|
});
|
|
4030
|
-
|
|
3801
|
+
_d.label = 15;
|
|
3802
|
+
case 15: return [2];
|
|
4031
3803
|
}
|
|
4032
3804
|
});
|
|
4033
3805
|
}); };
|
|
@@ -4039,44 +3811,38 @@ export var deserializeAws_restJson1UpgradeDomainCommand = function (output, cont
|
|
|
4039
3811
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4040
3812
|
return [2, deserializeAws_restJson1UpgradeDomainCommandError(output, context)];
|
|
4041
3813
|
}
|
|
4042
|
-
contents = {
|
|
3814
|
+
contents = map({
|
|
4043
3815
|
$metadata: deserializeMetadata(output),
|
|
4044
|
-
|
|
4045
|
-
ChangeProgressDetails: undefined,
|
|
4046
|
-
DomainName: undefined,
|
|
4047
|
-
PerformCheckOnly: undefined,
|
|
4048
|
-
TargetVersion: undefined,
|
|
4049
|
-
UpgradeId: undefined,
|
|
4050
|
-
};
|
|
3816
|
+
});
|
|
4051
3817
|
_a = __expectNonNull;
|
|
4052
3818
|
_b = __expectObject;
|
|
4053
3819
|
return [4, parseBody(output.body, context)];
|
|
4054
3820
|
case 1:
|
|
4055
3821
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4056
|
-
if (data.AdvancedOptions
|
|
3822
|
+
if (data.AdvancedOptions != null) {
|
|
4057
3823
|
contents.AdvancedOptions = deserializeAws_restJson1AdvancedOptions(data.AdvancedOptions, context);
|
|
4058
3824
|
}
|
|
4059
|
-
if (data.ChangeProgressDetails
|
|
3825
|
+
if (data.ChangeProgressDetails != null) {
|
|
4060
3826
|
contents.ChangeProgressDetails = deserializeAws_restJson1ChangeProgressDetails(data.ChangeProgressDetails, context);
|
|
4061
3827
|
}
|
|
4062
|
-
if (data.DomainName
|
|
3828
|
+
if (data.DomainName != null) {
|
|
4063
3829
|
contents.DomainName = __expectString(data.DomainName);
|
|
4064
3830
|
}
|
|
4065
|
-
if (data.PerformCheckOnly
|
|
3831
|
+
if (data.PerformCheckOnly != null) {
|
|
4066
3832
|
contents.PerformCheckOnly = __expectBoolean(data.PerformCheckOnly);
|
|
4067
3833
|
}
|
|
4068
|
-
if (data.TargetVersion
|
|
3834
|
+
if (data.TargetVersion != null) {
|
|
4069
3835
|
contents.TargetVersion = __expectString(data.TargetVersion);
|
|
4070
3836
|
}
|
|
4071
|
-
if (data.UpgradeId
|
|
3837
|
+
if (data.UpgradeId != null) {
|
|
4072
3838
|
contents.UpgradeId = __expectString(data.UpgradeId);
|
|
4073
3839
|
}
|
|
4074
|
-
return [2,
|
|
3840
|
+
return [2, contents];
|
|
4075
3841
|
}
|
|
4076
3842
|
});
|
|
4077
3843
|
}); };
|
|
4078
3844
|
var deserializeAws_restJson1UpgradeDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4079
|
-
var parsedOutput, _a,
|
|
3845
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4080
3846
|
var _c;
|
|
4081
3847
|
return __generator(this, function (_d) {
|
|
4082
3848
|
switch (_d.label) {
|
|
@@ -4117,23 +3883,24 @@ var deserializeAws_restJson1UpgradeDomainCommandError = function (output, contex
|
|
|
4117
3883
|
case 13: throw _d.sent();
|
|
4118
3884
|
case 14:
|
|
4119
3885
|
parsedBody = parsedOutput.body;
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
$metadata: $metadata,
|
|
3886
|
+
throwDefaultError({
|
|
3887
|
+
output: output,
|
|
3888
|
+
parsedBody: parsedBody,
|
|
3889
|
+
exceptionCtor: __BaseException,
|
|
3890
|
+
errorCode: errorCode,
|
|
4126
3891
|
});
|
|
4127
|
-
|
|
3892
|
+
_d.label = 15;
|
|
3893
|
+
case 15: return [2];
|
|
4128
3894
|
}
|
|
4129
3895
|
});
|
|
4130
3896
|
}); };
|
|
3897
|
+
var map = __map;
|
|
4131
3898
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4132
3899
|
var contents, data, exception;
|
|
4133
3900
|
return __generator(this, function (_a) {
|
|
4134
|
-
contents = {};
|
|
3901
|
+
contents = map({});
|
|
4135
3902
|
data = parsedOutput.body;
|
|
4136
|
-
if (data.message
|
|
3903
|
+
if (data.message != null) {
|
|
4137
3904
|
contents.message = __expectString(data.message);
|
|
4138
3905
|
}
|
|
4139
3906
|
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4143,9 +3910,9 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
4143
3910
|
var deserializeAws_restJson1BaseExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4144
3911
|
var contents, data, exception;
|
|
4145
3912
|
return __generator(this, function (_a) {
|
|
4146
|
-
contents = {};
|
|
3913
|
+
contents = map({});
|
|
4147
3914
|
data = parsedOutput.body;
|
|
4148
|
-
if (data.message
|
|
3915
|
+
if (data.message != null) {
|
|
4149
3916
|
contents.message = __expectString(data.message);
|
|
4150
3917
|
}
|
|
4151
3918
|
exception = new BaseException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4155,9 +3922,9 @@ var deserializeAws_restJson1BaseExceptionResponse = function (parsedOutput, cont
|
|
|
4155
3922
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4156
3923
|
var contents, data, exception;
|
|
4157
3924
|
return __generator(this, function (_a) {
|
|
4158
|
-
contents = {};
|
|
3925
|
+
contents = map({});
|
|
4159
3926
|
data = parsedOutput.body;
|
|
4160
|
-
if (data.message
|
|
3927
|
+
if (data.message != null) {
|
|
4161
3928
|
contents.message = __expectString(data.message);
|
|
4162
3929
|
}
|
|
4163
3930
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4167,9 +3934,9 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
4167
3934
|
var deserializeAws_restJson1DisabledOperationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4168
3935
|
var contents, data, exception;
|
|
4169
3936
|
return __generator(this, function (_a) {
|
|
4170
|
-
contents = {};
|
|
3937
|
+
contents = map({});
|
|
4171
3938
|
data = parsedOutput.body;
|
|
4172
|
-
if (data.message
|
|
3939
|
+
if (data.message != null) {
|
|
4173
3940
|
contents.message = __expectString(data.message);
|
|
4174
3941
|
}
|
|
4175
3942
|
exception = new DisabledOperationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4179,9 +3946,9 @@ var deserializeAws_restJson1DisabledOperationExceptionResponse = function (parse
|
|
|
4179
3946
|
var deserializeAws_restJson1InternalExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4180
3947
|
var contents, data, exception;
|
|
4181
3948
|
return __generator(this, function (_a) {
|
|
4182
|
-
contents = {};
|
|
3949
|
+
contents = map({});
|
|
4183
3950
|
data = parsedOutput.body;
|
|
4184
|
-
if (data.message
|
|
3951
|
+
if (data.message != null) {
|
|
4185
3952
|
contents.message = __expectString(data.message);
|
|
4186
3953
|
}
|
|
4187
3954
|
exception = new InternalException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4191,9 +3958,9 @@ var deserializeAws_restJson1InternalExceptionResponse = function (parsedOutput,
|
|
|
4191
3958
|
var deserializeAws_restJson1InvalidPaginationTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4192
3959
|
var contents, data, exception;
|
|
4193
3960
|
return __generator(this, function (_a) {
|
|
4194
|
-
contents = {};
|
|
3961
|
+
contents = map({});
|
|
4195
3962
|
data = parsedOutput.body;
|
|
4196
|
-
if (data.message
|
|
3963
|
+
if (data.message != null) {
|
|
4197
3964
|
contents.message = __expectString(data.message);
|
|
4198
3965
|
}
|
|
4199
3966
|
exception = new InvalidPaginationTokenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4203,9 +3970,9 @@ var deserializeAws_restJson1InvalidPaginationTokenExceptionResponse = function (
|
|
|
4203
3970
|
var deserializeAws_restJson1InvalidTypeExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4204
3971
|
var contents, data, exception;
|
|
4205
3972
|
return __generator(this, function (_a) {
|
|
4206
|
-
contents = {};
|
|
3973
|
+
contents = map({});
|
|
4207
3974
|
data = parsedOutput.body;
|
|
4208
|
-
if (data.message
|
|
3975
|
+
if (data.message != null) {
|
|
4209
3976
|
contents.message = __expectString(data.message);
|
|
4210
3977
|
}
|
|
4211
3978
|
exception = new InvalidTypeException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4215,9 +3982,9 @@ var deserializeAws_restJson1InvalidTypeExceptionResponse = function (parsedOutpu
|
|
|
4215
3982
|
var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4216
3983
|
var contents, data, exception;
|
|
4217
3984
|
return __generator(this, function (_a) {
|
|
4218
|
-
contents = {};
|
|
3985
|
+
contents = map({});
|
|
4219
3986
|
data = parsedOutput.body;
|
|
4220
|
-
if (data.message
|
|
3987
|
+
if (data.message != null) {
|
|
4221
3988
|
contents.message = __expectString(data.message);
|
|
4222
3989
|
}
|
|
4223
3990
|
exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4227,9 +3994,9 @@ var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOut
|
|
|
4227
3994
|
var deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4228
3995
|
var contents, data, exception;
|
|
4229
3996
|
return __generator(this, function (_a) {
|
|
4230
|
-
contents = {};
|
|
3997
|
+
contents = map({});
|
|
4231
3998
|
data = parsedOutput.body;
|
|
4232
|
-
if (data.message
|
|
3999
|
+
if (data.message != null) {
|
|
4233
4000
|
contents.message = __expectString(data.message);
|
|
4234
4001
|
}
|
|
4235
4002
|
exception = new ResourceAlreadyExistsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4239,9 +4006,9 @@ var deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse = function (p
|
|
|
4239
4006
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4240
4007
|
var contents, data, exception;
|
|
4241
4008
|
return __generator(this, function (_a) {
|
|
4242
|
-
contents = {};
|
|
4009
|
+
contents = map({});
|
|
4243
4010
|
data = parsedOutput.body;
|
|
4244
|
-
if (data.message
|
|
4011
|
+
if (data.message != null) {
|
|
4245
4012
|
contents.message = __expectString(data.message);
|
|
4246
4013
|
}
|
|
4247
4014
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4251,9 +4018,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
4251
4018
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4252
4019
|
var contents, data, exception;
|
|
4253
4020
|
return __generator(this, function (_a) {
|
|
4254
|
-
contents = {};
|
|
4021
|
+
contents = map({});
|
|
4255
4022
|
data = parsedOutput.body;
|
|
4256
|
-
if (data.message
|
|
4023
|
+
if (data.message != null) {
|
|
4257
4024
|
contents.message = __expectString(data.message);
|
|
4258
4025
|
}
|
|
4259
4026
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4288,9 +4055,6 @@ var serializeAws_restJson1AutoTuneMaintenanceScheduleList = function (input, con
|
|
|
4288
4055
|
return input
|
|
4289
4056
|
.filter(function (e) { return e != null; })
|
|
4290
4057
|
.map(function (entry) {
|
|
4291
|
-
if (entry === null) {
|
|
4292
|
-
return null;
|
|
4293
|
-
}
|
|
4294
4058
|
return serializeAws_restJson1AutoTuneMaintenanceSchedule(entry, context);
|
|
4295
4059
|
});
|
|
4296
4060
|
};
|
|
@@ -4327,9 +4091,6 @@ var serializeAws_restJson1DescribePackagesFilterList = function (input, context)
|
|
|
4327
4091
|
return input
|
|
4328
4092
|
.filter(function (e) { return e != null; })
|
|
4329
4093
|
.map(function (entry) {
|
|
4330
|
-
if (entry === null) {
|
|
4331
|
-
return null;
|
|
4332
|
-
}
|
|
4333
4094
|
return serializeAws_restJson1DescribePackagesFilter(entry, context);
|
|
4334
4095
|
});
|
|
4335
4096
|
};
|
|
@@ -4337,9 +4098,6 @@ var serializeAws_restJson1DescribePackagesFilterValues = function (input, contex
|
|
|
4337
4098
|
return input
|
|
4338
4099
|
.filter(function (e) { return e != null; })
|
|
4339
4100
|
.map(function (entry) {
|
|
4340
|
-
if (entry === null) {
|
|
4341
|
-
return null;
|
|
4342
|
-
}
|
|
4343
4101
|
return entry;
|
|
4344
4102
|
});
|
|
4345
4103
|
};
|
|
@@ -4357,9 +4115,6 @@ var serializeAws_restJson1DomainNameList = function (input, context) {
|
|
|
4357
4115
|
return input
|
|
4358
4116
|
.filter(function (e) { return e != null; })
|
|
4359
4117
|
.map(function (entry) {
|
|
4360
|
-
if (entry === null) {
|
|
4361
|
-
return null;
|
|
4362
|
-
}
|
|
4363
4118
|
return entry;
|
|
4364
4119
|
});
|
|
4365
4120
|
};
|
|
@@ -4379,9 +4134,6 @@ var serializeAws_restJson1FilterList = function (input, context) {
|
|
|
4379
4134
|
return input
|
|
4380
4135
|
.filter(function (e) { return e != null; })
|
|
4381
4136
|
.map(function (entry) {
|
|
4382
|
-
if (entry === null) {
|
|
4383
|
-
return null;
|
|
4384
|
-
}
|
|
4385
4137
|
return serializeAws_restJson1Filter(entry, context);
|
|
4386
4138
|
});
|
|
4387
4139
|
};
|
|
@@ -4420,9 +4172,6 @@ var serializeAws_restJson1StringList = function (input, context) {
|
|
|
4420
4172
|
return input
|
|
4421
4173
|
.filter(function (e) { return e != null; })
|
|
4422
4174
|
.map(function (entry) {
|
|
4423
|
-
if (entry === null) {
|
|
4424
|
-
return null;
|
|
4425
|
-
}
|
|
4426
4175
|
return entry;
|
|
4427
4176
|
});
|
|
4428
4177
|
};
|
|
@@ -4433,9 +4182,6 @@ var serializeAws_restJson1TagList = function (input, context) {
|
|
|
4433
4182
|
return input
|
|
4434
4183
|
.filter(function (e) { return e != null; })
|
|
4435
4184
|
.map(function (entry) {
|
|
4436
|
-
if (entry === null) {
|
|
4437
|
-
return null;
|
|
4438
|
-
}
|
|
4439
4185
|
return serializeAws_restJson1Tag(entry, context);
|
|
4440
4186
|
});
|
|
4441
4187
|
};
|
|
@@ -4443,9 +4189,6 @@ var serializeAws_restJson1ValueStringList = function (input, context) {
|
|
|
4443
4189
|
return input
|
|
4444
4190
|
.filter(function (e) { return e != null; })
|
|
4445
4191
|
.map(function (entry) {
|
|
4446
|
-
if (entry === null) {
|
|
4447
|
-
return null;
|
|
4448
|
-
}
|
|
4449
4192
|
return entry;
|
|
4450
4193
|
});
|
|
4451
4194
|
};
|