@aws-sdk/client-workspaces-web 3.141.0 → 3.150.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +518 -1103
- package/dist-es/protocols/Aws_restJson1.js +684 -1104
- package/package.json +11 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
6
6
|
import { WorkSpacesWebServiceException as __BaseException } from "../models/WorkSpacesWebServiceException";
|
|
7
7
|
export var serializeAws_restJson1AssociateBrowserSettingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
8
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
9
9
|
return __generator(this, function (_c) {
|
|
10
10
|
switch (_c.label) {
|
|
11
11
|
case 0: return [4, context.endpoint()];
|
|
@@ -13,20 +13,10 @@ export var serializeAws_restJson1AssociateBrowserSettingsCommand = function (inp
|
|
|
13
13
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
14
14
|
headers = {};
|
|
15
15
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/portals/{portalArn+}/browserSettings";
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
resolvedPath = resolvedPath.replace("{portalArn+}", labelValue
|
|
22
|
-
.split("/")
|
|
23
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
24
|
-
.join("/"));
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
throw new Error("No value provided for input HTTP label: portalArn.");
|
|
28
|
-
}
|
|
29
|
-
query = __assign({}, (input.browserSettingsArn !== undefined && { browserSettingsArn: input.browserSettingsArn }));
|
|
16
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", function () { return input.portalArn; }, "{portalArn+}", true);
|
|
17
|
+
query = map({
|
|
18
|
+
browserSettingsArn: [, input.browserSettingsArn],
|
|
19
|
+
});
|
|
30
20
|
return [2, new __HttpRequest({
|
|
31
21
|
protocol: protocol,
|
|
32
22
|
hostname: hostname,
|
|
@@ -41,7 +31,7 @@ export var serializeAws_restJson1AssociateBrowserSettingsCommand = function (inp
|
|
|
41
31
|
});
|
|
42
32
|
}); };
|
|
43
33
|
export var serializeAws_restJson1AssociateNetworkSettingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
44
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
34
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
45
35
|
return __generator(this, function (_c) {
|
|
46
36
|
switch (_c.label) {
|
|
47
37
|
case 0: return [4, context.endpoint()];
|
|
@@ -49,20 +39,10 @@ export var serializeAws_restJson1AssociateNetworkSettingsCommand = function (inp
|
|
|
49
39
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
50
40
|
headers = {};
|
|
51
41
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/portals/{portalArn+}/networkSettings";
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
resolvedPath = resolvedPath.replace("{portalArn+}", labelValue
|
|
58
|
-
.split("/")
|
|
59
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
60
|
-
.join("/"));
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
throw new Error("No value provided for input HTTP label: portalArn.");
|
|
64
|
-
}
|
|
65
|
-
query = __assign({}, (input.networkSettingsArn !== undefined && { networkSettingsArn: input.networkSettingsArn }));
|
|
42
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", function () { return input.portalArn; }, "{portalArn+}", true);
|
|
43
|
+
query = map({
|
|
44
|
+
networkSettingsArn: [, input.networkSettingsArn],
|
|
45
|
+
});
|
|
66
46
|
return [2, new __HttpRequest({
|
|
67
47
|
protocol: protocol,
|
|
68
48
|
hostname: hostname,
|
|
@@ -77,7 +57,7 @@ export var serializeAws_restJson1AssociateNetworkSettingsCommand = function (inp
|
|
|
77
57
|
});
|
|
78
58
|
}); };
|
|
79
59
|
export var serializeAws_restJson1AssociateTrustStoreCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
80
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
60
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
81
61
|
return __generator(this, function (_c) {
|
|
82
62
|
switch (_c.label) {
|
|
83
63
|
case 0: return [4, context.endpoint()];
|
|
@@ -85,20 +65,10 @@ export var serializeAws_restJson1AssociateTrustStoreCommand = function (input, c
|
|
|
85
65
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
86
66
|
headers = {};
|
|
87
67
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/portals/{portalArn+}/trustStores";
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
resolvedPath = resolvedPath.replace("{portalArn+}", labelValue
|
|
94
|
-
.split("/")
|
|
95
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
96
|
-
.join("/"));
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
throw new Error("No value provided for input HTTP label: portalArn.");
|
|
100
|
-
}
|
|
101
|
-
query = __assign({}, (input.trustStoreArn !== undefined && { trustStoreArn: input.trustStoreArn }));
|
|
68
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", function () { return input.portalArn; }, "{portalArn+}", true);
|
|
69
|
+
query = map({
|
|
70
|
+
trustStoreArn: [, input.trustStoreArn],
|
|
71
|
+
});
|
|
102
72
|
return [2, new __HttpRequest({
|
|
103
73
|
protocol: protocol,
|
|
104
74
|
hostname: hostname,
|
|
@@ -113,7 +83,7 @@ export var serializeAws_restJson1AssociateTrustStoreCommand = function (input, c
|
|
|
113
83
|
});
|
|
114
84
|
}); };
|
|
115
85
|
export var serializeAws_restJson1AssociateUserSettingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
116
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
86
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
117
87
|
return __generator(this, function (_c) {
|
|
118
88
|
switch (_c.label) {
|
|
119
89
|
case 0: return [4, context.endpoint()];
|
|
@@ -121,20 +91,10 @@ export var serializeAws_restJson1AssociateUserSettingsCommand = function (input,
|
|
|
121
91
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
122
92
|
headers = {};
|
|
123
93
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/portals/{portalArn+}/userSettings";
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
resolvedPath = resolvedPath.replace("{portalArn+}", labelValue
|
|
130
|
-
.split("/")
|
|
131
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
132
|
-
.join("/"));
|
|
133
|
-
}
|
|
134
|
-
else {
|
|
135
|
-
throw new Error("No value provided for input HTTP label: portalArn.");
|
|
136
|
-
}
|
|
137
|
-
query = __assign({}, (input.userSettingsArn !== undefined && { userSettingsArn: input.userSettingsArn }));
|
|
94
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", function () { return input.portalArn; }, "{portalArn+}", true);
|
|
95
|
+
query = map({
|
|
96
|
+
userSettingsArn: [, input.userSettingsArn],
|
|
97
|
+
});
|
|
138
98
|
return [2, new __HttpRequest({
|
|
139
99
|
protocol: protocol,
|
|
140
100
|
hostname: hostname,
|
|
@@ -311,7 +271,7 @@ export var serializeAws_restJson1CreateUserSettingsCommand = function (input, co
|
|
|
311
271
|
});
|
|
312
272
|
}); };
|
|
313
273
|
export var serializeAws_restJson1DeleteBrowserSettingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
314
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
274
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
315
275
|
return __generator(this, function (_c) {
|
|
316
276
|
switch (_c.label) {
|
|
317
277
|
case 0: return [4, context.endpoint()];
|
|
@@ -319,19 +279,7 @@ export var serializeAws_restJson1DeleteBrowserSettingsCommand = function (input,
|
|
|
319
279
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
320
280
|
headers = {};
|
|
321
281
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/browserSettings/{browserSettingsArn+}";
|
|
322
|
-
|
|
323
|
-
labelValue = input.browserSettingsArn;
|
|
324
|
-
if (labelValue.length <= 0) {
|
|
325
|
-
throw new Error("Empty value provided for input HTTP label: browserSettingsArn.");
|
|
326
|
-
}
|
|
327
|
-
resolvedPath = resolvedPath.replace("{browserSettingsArn+}", labelValue
|
|
328
|
-
.split("/")
|
|
329
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
330
|
-
.join("/"));
|
|
331
|
-
}
|
|
332
|
-
else {
|
|
333
|
-
throw new Error("No value provided for input HTTP label: browserSettingsArn.");
|
|
334
|
-
}
|
|
282
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "browserSettingsArn", function () { return input.browserSettingsArn; }, "{browserSettingsArn+}", true);
|
|
335
283
|
return [2, new __HttpRequest({
|
|
336
284
|
protocol: protocol,
|
|
337
285
|
hostname: hostname,
|
|
@@ -345,7 +293,7 @@ export var serializeAws_restJson1DeleteBrowserSettingsCommand = function (input,
|
|
|
345
293
|
});
|
|
346
294
|
}); };
|
|
347
295
|
export var serializeAws_restJson1DeleteIdentityProviderCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
348
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
296
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
349
297
|
return __generator(this, function (_c) {
|
|
350
298
|
switch (_c.label) {
|
|
351
299
|
case 0: return [4, context.endpoint()];
|
|
@@ -353,19 +301,7 @@ export var serializeAws_restJson1DeleteIdentityProviderCommand = function (input
|
|
|
353
301
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
354
302
|
headers = {};
|
|
355
303
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/identityProviders/{identityProviderArn+}";
|
|
356
|
-
|
|
357
|
-
labelValue = input.identityProviderArn;
|
|
358
|
-
if (labelValue.length <= 0) {
|
|
359
|
-
throw new Error("Empty value provided for input HTTP label: identityProviderArn.");
|
|
360
|
-
}
|
|
361
|
-
resolvedPath = resolvedPath.replace("{identityProviderArn+}", labelValue
|
|
362
|
-
.split("/")
|
|
363
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
364
|
-
.join("/"));
|
|
365
|
-
}
|
|
366
|
-
else {
|
|
367
|
-
throw new Error("No value provided for input HTTP label: identityProviderArn.");
|
|
368
|
-
}
|
|
304
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "identityProviderArn", function () { return input.identityProviderArn; }, "{identityProviderArn+}", true);
|
|
369
305
|
return [2, new __HttpRequest({
|
|
370
306
|
protocol: protocol,
|
|
371
307
|
hostname: hostname,
|
|
@@ -379,7 +315,7 @@ export var serializeAws_restJson1DeleteIdentityProviderCommand = function (input
|
|
|
379
315
|
});
|
|
380
316
|
}); };
|
|
381
317
|
export var serializeAws_restJson1DeleteNetworkSettingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
382
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
318
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
383
319
|
return __generator(this, function (_c) {
|
|
384
320
|
switch (_c.label) {
|
|
385
321
|
case 0: return [4, context.endpoint()];
|
|
@@ -387,19 +323,7 @@ export var serializeAws_restJson1DeleteNetworkSettingsCommand = function (input,
|
|
|
387
323
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
388
324
|
headers = {};
|
|
389
325
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/networkSettings/{networkSettingsArn+}";
|
|
390
|
-
|
|
391
|
-
labelValue = input.networkSettingsArn;
|
|
392
|
-
if (labelValue.length <= 0) {
|
|
393
|
-
throw new Error("Empty value provided for input HTTP label: networkSettingsArn.");
|
|
394
|
-
}
|
|
395
|
-
resolvedPath = resolvedPath.replace("{networkSettingsArn+}", labelValue
|
|
396
|
-
.split("/")
|
|
397
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
398
|
-
.join("/"));
|
|
399
|
-
}
|
|
400
|
-
else {
|
|
401
|
-
throw new Error("No value provided for input HTTP label: networkSettingsArn.");
|
|
402
|
-
}
|
|
326
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "networkSettingsArn", function () { return input.networkSettingsArn; }, "{networkSettingsArn+}", true);
|
|
403
327
|
return [2, new __HttpRequest({
|
|
404
328
|
protocol: protocol,
|
|
405
329
|
hostname: hostname,
|
|
@@ -413,7 +337,7 @@ export var serializeAws_restJson1DeleteNetworkSettingsCommand = function (input,
|
|
|
413
337
|
});
|
|
414
338
|
}); };
|
|
415
339
|
export var serializeAws_restJson1DeletePortalCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
416
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
340
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
417
341
|
return __generator(this, function (_c) {
|
|
418
342
|
switch (_c.label) {
|
|
419
343
|
case 0: return [4, context.endpoint()];
|
|
@@ -421,19 +345,7 @@ export var serializeAws_restJson1DeletePortalCommand = function (input, context)
|
|
|
421
345
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
422
346
|
headers = {};
|
|
423
347
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/portals/{portalArn+}";
|
|
424
|
-
|
|
425
|
-
labelValue = input.portalArn;
|
|
426
|
-
if (labelValue.length <= 0) {
|
|
427
|
-
throw new Error("Empty value provided for input HTTP label: portalArn.");
|
|
428
|
-
}
|
|
429
|
-
resolvedPath = resolvedPath.replace("{portalArn+}", labelValue
|
|
430
|
-
.split("/")
|
|
431
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
432
|
-
.join("/"));
|
|
433
|
-
}
|
|
434
|
-
else {
|
|
435
|
-
throw new Error("No value provided for input HTTP label: portalArn.");
|
|
436
|
-
}
|
|
348
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", function () { return input.portalArn; }, "{portalArn+}", true);
|
|
437
349
|
return [2, new __HttpRequest({
|
|
438
350
|
protocol: protocol,
|
|
439
351
|
hostname: hostname,
|
|
@@ -447,7 +359,7 @@ export var serializeAws_restJson1DeletePortalCommand = function (input, context)
|
|
|
447
359
|
});
|
|
448
360
|
}); };
|
|
449
361
|
export var serializeAws_restJson1DeleteTrustStoreCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
450
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
362
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
451
363
|
return __generator(this, function (_c) {
|
|
452
364
|
switch (_c.label) {
|
|
453
365
|
case 0: return [4, context.endpoint()];
|
|
@@ -455,19 +367,7 @@ export var serializeAws_restJson1DeleteTrustStoreCommand = function (input, cont
|
|
|
455
367
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
456
368
|
headers = {};
|
|
457
369
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/trustStores/{trustStoreArn+}";
|
|
458
|
-
|
|
459
|
-
labelValue = input.trustStoreArn;
|
|
460
|
-
if (labelValue.length <= 0) {
|
|
461
|
-
throw new Error("Empty value provided for input HTTP label: trustStoreArn.");
|
|
462
|
-
}
|
|
463
|
-
resolvedPath = resolvedPath.replace("{trustStoreArn+}", labelValue
|
|
464
|
-
.split("/")
|
|
465
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
466
|
-
.join("/"));
|
|
467
|
-
}
|
|
468
|
-
else {
|
|
469
|
-
throw new Error("No value provided for input HTTP label: trustStoreArn.");
|
|
470
|
-
}
|
|
370
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "trustStoreArn", function () { return input.trustStoreArn; }, "{trustStoreArn+}", true);
|
|
471
371
|
return [2, new __HttpRequest({
|
|
472
372
|
protocol: protocol,
|
|
473
373
|
hostname: hostname,
|
|
@@ -481,7 +381,7 @@ export var serializeAws_restJson1DeleteTrustStoreCommand = function (input, cont
|
|
|
481
381
|
});
|
|
482
382
|
}); };
|
|
483
383
|
export var serializeAws_restJson1DeleteUserSettingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
484
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
384
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
485
385
|
return __generator(this, function (_c) {
|
|
486
386
|
switch (_c.label) {
|
|
487
387
|
case 0: return [4, context.endpoint()];
|
|
@@ -489,19 +389,7 @@ export var serializeAws_restJson1DeleteUserSettingsCommand = function (input, co
|
|
|
489
389
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
490
390
|
headers = {};
|
|
491
391
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/userSettings/{userSettingsArn+}";
|
|
492
|
-
|
|
493
|
-
labelValue = input.userSettingsArn;
|
|
494
|
-
if (labelValue.length <= 0) {
|
|
495
|
-
throw new Error("Empty value provided for input HTTP label: userSettingsArn.");
|
|
496
|
-
}
|
|
497
|
-
resolvedPath = resolvedPath.replace("{userSettingsArn+}", labelValue
|
|
498
|
-
.split("/")
|
|
499
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
500
|
-
.join("/"));
|
|
501
|
-
}
|
|
502
|
-
else {
|
|
503
|
-
throw new Error("No value provided for input HTTP label: userSettingsArn.");
|
|
504
|
-
}
|
|
392
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "userSettingsArn", function () { return input.userSettingsArn; }, "{userSettingsArn+}", true);
|
|
505
393
|
return [2, new __HttpRequest({
|
|
506
394
|
protocol: protocol,
|
|
507
395
|
hostname: hostname,
|
|
@@ -515,7 +403,7 @@ export var serializeAws_restJson1DeleteUserSettingsCommand = function (input, co
|
|
|
515
403
|
});
|
|
516
404
|
}); };
|
|
517
405
|
export var serializeAws_restJson1DisassociateBrowserSettingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
518
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
406
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
519
407
|
return __generator(this, function (_c) {
|
|
520
408
|
switch (_c.label) {
|
|
521
409
|
case 0: return [4, context.endpoint()];
|
|
@@ -523,19 +411,7 @@ export var serializeAws_restJson1DisassociateBrowserSettingsCommand = function (
|
|
|
523
411
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
524
412
|
headers = {};
|
|
525
413
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/portals/{portalArn+}/browserSettings";
|
|
526
|
-
|
|
527
|
-
labelValue = input.portalArn;
|
|
528
|
-
if (labelValue.length <= 0) {
|
|
529
|
-
throw new Error("Empty value provided for input HTTP label: portalArn.");
|
|
530
|
-
}
|
|
531
|
-
resolvedPath = resolvedPath.replace("{portalArn+}", labelValue
|
|
532
|
-
.split("/")
|
|
533
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
534
|
-
.join("/"));
|
|
535
|
-
}
|
|
536
|
-
else {
|
|
537
|
-
throw new Error("No value provided for input HTTP label: portalArn.");
|
|
538
|
-
}
|
|
414
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", function () { return input.portalArn; }, "{portalArn+}", true);
|
|
539
415
|
return [2, new __HttpRequest({
|
|
540
416
|
protocol: protocol,
|
|
541
417
|
hostname: hostname,
|
|
@@ -549,7 +425,7 @@ export var serializeAws_restJson1DisassociateBrowserSettingsCommand = function (
|
|
|
549
425
|
});
|
|
550
426
|
}); };
|
|
551
427
|
export var serializeAws_restJson1DisassociateNetworkSettingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
552
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
428
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
553
429
|
return __generator(this, function (_c) {
|
|
554
430
|
switch (_c.label) {
|
|
555
431
|
case 0: return [4, context.endpoint()];
|
|
@@ -557,19 +433,7 @@ export var serializeAws_restJson1DisassociateNetworkSettingsCommand = function (
|
|
|
557
433
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
558
434
|
headers = {};
|
|
559
435
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/portals/{portalArn+}/networkSettings";
|
|
560
|
-
|
|
561
|
-
labelValue = input.portalArn;
|
|
562
|
-
if (labelValue.length <= 0) {
|
|
563
|
-
throw new Error("Empty value provided for input HTTP label: portalArn.");
|
|
564
|
-
}
|
|
565
|
-
resolvedPath = resolvedPath.replace("{portalArn+}", labelValue
|
|
566
|
-
.split("/")
|
|
567
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
568
|
-
.join("/"));
|
|
569
|
-
}
|
|
570
|
-
else {
|
|
571
|
-
throw new Error("No value provided for input HTTP label: portalArn.");
|
|
572
|
-
}
|
|
436
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", function () { return input.portalArn; }, "{portalArn+}", true);
|
|
573
437
|
return [2, new __HttpRequest({
|
|
574
438
|
protocol: protocol,
|
|
575
439
|
hostname: hostname,
|
|
@@ -583,7 +447,7 @@ export var serializeAws_restJson1DisassociateNetworkSettingsCommand = function (
|
|
|
583
447
|
});
|
|
584
448
|
}); };
|
|
585
449
|
export var serializeAws_restJson1DisassociateTrustStoreCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
586
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
450
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
587
451
|
return __generator(this, function (_c) {
|
|
588
452
|
switch (_c.label) {
|
|
589
453
|
case 0: return [4, context.endpoint()];
|
|
@@ -591,19 +455,7 @@ export var serializeAws_restJson1DisassociateTrustStoreCommand = function (input
|
|
|
591
455
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
592
456
|
headers = {};
|
|
593
457
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/portals/{portalArn+}/trustStores";
|
|
594
|
-
|
|
595
|
-
labelValue = input.portalArn;
|
|
596
|
-
if (labelValue.length <= 0) {
|
|
597
|
-
throw new Error("Empty value provided for input HTTP label: portalArn.");
|
|
598
|
-
}
|
|
599
|
-
resolvedPath = resolvedPath.replace("{portalArn+}", labelValue
|
|
600
|
-
.split("/")
|
|
601
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
602
|
-
.join("/"));
|
|
603
|
-
}
|
|
604
|
-
else {
|
|
605
|
-
throw new Error("No value provided for input HTTP label: portalArn.");
|
|
606
|
-
}
|
|
458
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", function () { return input.portalArn; }, "{portalArn+}", true);
|
|
607
459
|
return [2, new __HttpRequest({
|
|
608
460
|
protocol: protocol,
|
|
609
461
|
hostname: hostname,
|
|
@@ -617,7 +469,7 @@ export var serializeAws_restJson1DisassociateTrustStoreCommand = function (input
|
|
|
617
469
|
});
|
|
618
470
|
}); };
|
|
619
471
|
export var serializeAws_restJson1DisassociateUserSettingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
620
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
472
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
621
473
|
return __generator(this, function (_c) {
|
|
622
474
|
switch (_c.label) {
|
|
623
475
|
case 0: return [4, context.endpoint()];
|
|
@@ -625,19 +477,7 @@ export var serializeAws_restJson1DisassociateUserSettingsCommand = function (inp
|
|
|
625
477
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
626
478
|
headers = {};
|
|
627
479
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/portals/{portalArn+}/userSettings";
|
|
628
|
-
|
|
629
|
-
labelValue = input.portalArn;
|
|
630
|
-
if (labelValue.length <= 0) {
|
|
631
|
-
throw new Error("Empty value provided for input HTTP label: portalArn.");
|
|
632
|
-
}
|
|
633
|
-
resolvedPath = resolvedPath.replace("{portalArn+}", labelValue
|
|
634
|
-
.split("/")
|
|
635
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
636
|
-
.join("/"));
|
|
637
|
-
}
|
|
638
|
-
else {
|
|
639
|
-
throw new Error("No value provided for input HTTP label: portalArn.");
|
|
640
|
-
}
|
|
480
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", function () { return input.portalArn; }, "{portalArn+}", true);
|
|
641
481
|
return [2, new __HttpRequest({
|
|
642
482
|
protocol: protocol,
|
|
643
483
|
hostname: hostname,
|
|
@@ -651,7 +491,7 @@ export var serializeAws_restJson1DisassociateUserSettingsCommand = function (inp
|
|
|
651
491
|
});
|
|
652
492
|
}); };
|
|
653
493
|
export var serializeAws_restJson1GetBrowserSettingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
654
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
494
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
655
495
|
return __generator(this, function (_c) {
|
|
656
496
|
switch (_c.label) {
|
|
657
497
|
case 0: return [4, context.endpoint()];
|
|
@@ -659,19 +499,7 @@ export var serializeAws_restJson1GetBrowserSettingsCommand = function (input, co
|
|
|
659
499
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
660
500
|
headers = {};
|
|
661
501
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/browserSettings/{browserSettingsArn+}";
|
|
662
|
-
|
|
663
|
-
labelValue = input.browserSettingsArn;
|
|
664
|
-
if (labelValue.length <= 0) {
|
|
665
|
-
throw new Error("Empty value provided for input HTTP label: browserSettingsArn.");
|
|
666
|
-
}
|
|
667
|
-
resolvedPath = resolvedPath.replace("{browserSettingsArn+}", labelValue
|
|
668
|
-
.split("/")
|
|
669
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
670
|
-
.join("/"));
|
|
671
|
-
}
|
|
672
|
-
else {
|
|
673
|
-
throw new Error("No value provided for input HTTP label: browserSettingsArn.");
|
|
674
|
-
}
|
|
502
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "browserSettingsArn", function () { return input.browserSettingsArn; }, "{browserSettingsArn+}", true);
|
|
675
503
|
return [2, new __HttpRequest({
|
|
676
504
|
protocol: protocol,
|
|
677
505
|
hostname: hostname,
|
|
@@ -685,7 +513,7 @@ export var serializeAws_restJson1GetBrowserSettingsCommand = function (input, co
|
|
|
685
513
|
});
|
|
686
514
|
}); };
|
|
687
515
|
export var serializeAws_restJson1GetIdentityProviderCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
688
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
516
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
689
517
|
return __generator(this, function (_c) {
|
|
690
518
|
switch (_c.label) {
|
|
691
519
|
case 0: return [4, context.endpoint()];
|
|
@@ -693,19 +521,7 @@ export var serializeAws_restJson1GetIdentityProviderCommand = function (input, c
|
|
|
693
521
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
694
522
|
headers = {};
|
|
695
523
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/identityProviders/{identityProviderArn+}";
|
|
696
|
-
|
|
697
|
-
labelValue = input.identityProviderArn;
|
|
698
|
-
if (labelValue.length <= 0) {
|
|
699
|
-
throw new Error("Empty value provided for input HTTP label: identityProviderArn.");
|
|
700
|
-
}
|
|
701
|
-
resolvedPath = resolvedPath.replace("{identityProviderArn+}", labelValue
|
|
702
|
-
.split("/")
|
|
703
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
704
|
-
.join("/"));
|
|
705
|
-
}
|
|
706
|
-
else {
|
|
707
|
-
throw new Error("No value provided for input HTTP label: identityProviderArn.");
|
|
708
|
-
}
|
|
524
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "identityProviderArn", function () { return input.identityProviderArn; }, "{identityProviderArn+}", true);
|
|
709
525
|
return [2, new __HttpRequest({
|
|
710
526
|
protocol: protocol,
|
|
711
527
|
hostname: hostname,
|
|
@@ -719,7 +535,7 @@ export var serializeAws_restJson1GetIdentityProviderCommand = function (input, c
|
|
|
719
535
|
});
|
|
720
536
|
}); };
|
|
721
537
|
export var serializeAws_restJson1GetNetworkSettingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
722
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
538
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
723
539
|
return __generator(this, function (_c) {
|
|
724
540
|
switch (_c.label) {
|
|
725
541
|
case 0: return [4, context.endpoint()];
|
|
@@ -727,19 +543,7 @@ export var serializeAws_restJson1GetNetworkSettingsCommand = function (input, co
|
|
|
727
543
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
728
544
|
headers = {};
|
|
729
545
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/networkSettings/{networkSettingsArn+}";
|
|
730
|
-
|
|
731
|
-
labelValue = input.networkSettingsArn;
|
|
732
|
-
if (labelValue.length <= 0) {
|
|
733
|
-
throw new Error("Empty value provided for input HTTP label: networkSettingsArn.");
|
|
734
|
-
}
|
|
735
|
-
resolvedPath = resolvedPath.replace("{networkSettingsArn+}", labelValue
|
|
736
|
-
.split("/")
|
|
737
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
738
|
-
.join("/"));
|
|
739
|
-
}
|
|
740
|
-
else {
|
|
741
|
-
throw new Error("No value provided for input HTTP label: networkSettingsArn.");
|
|
742
|
-
}
|
|
546
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "networkSettingsArn", function () { return input.networkSettingsArn; }, "{networkSettingsArn+}", true);
|
|
743
547
|
return [2, new __HttpRequest({
|
|
744
548
|
protocol: protocol,
|
|
745
549
|
hostname: hostname,
|
|
@@ -753,7 +557,7 @@ export var serializeAws_restJson1GetNetworkSettingsCommand = function (input, co
|
|
|
753
557
|
});
|
|
754
558
|
}); };
|
|
755
559
|
export var serializeAws_restJson1GetPortalCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
756
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
560
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
757
561
|
return __generator(this, function (_c) {
|
|
758
562
|
switch (_c.label) {
|
|
759
563
|
case 0: return [4, context.endpoint()];
|
|
@@ -761,19 +565,7 @@ export var serializeAws_restJson1GetPortalCommand = function (input, context) {
|
|
|
761
565
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
762
566
|
headers = {};
|
|
763
567
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/portals/{portalArn+}";
|
|
764
|
-
|
|
765
|
-
labelValue = input.portalArn;
|
|
766
|
-
if (labelValue.length <= 0) {
|
|
767
|
-
throw new Error("Empty value provided for input HTTP label: portalArn.");
|
|
768
|
-
}
|
|
769
|
-
resolvedPath = resolvedPath.replace("{portalArn+}", labelValue
|
|
770
|
-
.split("/")
|
|
771
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
772
|
-
.join("/"));
|
|
773
|
-
}
|
|
774
|
-
else {
|
|
775
|
-
throw new Error("No value provided for input HTTP label: portalArn.");
|
|
776
|
-
}
|
|
568
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", function () { return input.portalArn; }, "{portalArn+}", true);
|
|
777
569
|
return [2, new __HttpRequest({
|
|
778
570
|
protocol: protocol,
|
|
779
571
|
hostname: hostname,
|
|
@@ -787,7 +579,7 @@ export var serializeAws_restJson1GetPortalCommand = function (input, context) {
|
|
|
787
579
|
});
|
|
788
580
|
}); };
|
|
789
581
|
export var serializeAws_restJson1GetPortalServiceProviderMetadataCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
790
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
582
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
791
583
|
return __generator(this, function (_c) {
|
|
792
584
|
switch (_c.label) {
|
|
793
585
|
case 0: return [4, context.endpoint()];
|
|
@@ -795,19 +587,7 @@ export var serializeAws_restJson1GetPortalServiceProviderMetadataCommand = funct
|
|
|
795
587
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
796
588
|
headers = {};
|
|
797
589
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/portalIdp/{portalArn+}";
|
|
798
|
-
|
|
799
|
-
labelValue = input.portalArn;
|
|
800
|
-
if (labelValue.length <= 0) {
|
|
801
|
-
throw new Error("Empty value provided for input HTTP label: portalArn.");
|
|
802
|
-
}
|
|
803
|
-
resolvedPath = resolvedPath.replace("{portalArn+}", labelValue
|
|
804
|
-
.split("/")
|
|
805
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
806
|
-
.join("/"));
|
|
807
|
-
}
|
|
808
|
-
else {
|
|
809
|
-
throw new Error("No value provided for input HTTP label: portalArn.");
|
|
810
|
-
}
|
|
590
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", function () { return input.portalArn; }, "{portalArn+}", true);
|
|
811
591
|
return [2, new __HttpRequest({
|
|
812
592
|
protocol: protocol,
|
|
813
593
|
hostname: hostname,
|
|
@@ -821,7 +601,7 @@ export var serializeAws_restJson1GetPortalServiceProviderMetadataCommand = funct
|
|
|
821
601
|
});
|
|
822
602
|
}); };
|
|
823
603
|
export var serializeAws_restJson1GetTrustStoreCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
824
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
604
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
825
605
|
return __generator(this, function (_c) {
|
|
826
606
|
switch (_c.label) {
|
|
827
607
|
case 0: return [4, context.endpoint()];
|
|
@@ -829,19 +609,7 @@ export var serializeAws_restJson1GetTrustStoreCommand = function (input, context
|
|
|
829
609
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
830
610
|
headers = {};
|
|
831
611
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/trustStores/{trustStoreArn+}";
|
|
832
|
-
|
|
833
|
-
labelValue = input.trustStoreArn;
|
|
834
|
-
if (labelValue.length <= 0) {
|
|
835
|
-
throw new Error("Empty value provided for input HTTP label: trustStoreArn.");
|
|
836
|
-
}
|
|
837
|
-
resolvedPath = resolvedPath.replace("{trustStoreArn+}", labelValue
|
|
838
|
-
.split("/")
|
|
839
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
840
|
-
.join("/"));
|
|
841
|
-
}
|
|
842
|
-
else {
|
|
843
|
-
throw new Error("No value provided for input HTTP label: trustStoreArn.");
|
|
844
|
-
}
|
|
612
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "trustStoreArn", function () { return input.trustStoreArn; }, "{trustStoreArn+}", true);
|
|
845
613
|
return [2, new __HttpRequest({
|
|
846
614
|
protocol: protocol,
|
|
847
615
|
hostname: hostname,
|
|
@@ -855,7 +623,7 @@ export var serializeAws_restJson1GetTrustStoreCommand = function (input, context
|
|
|
855
623
|
});
|
|
856
624
|
}); };
|
|
857
625
|
export var serializeAws_restJson1GetTrustStoreCertificateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
858
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
626
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
859
627
|
return __generator(this, function (_c) {
|
|
860
628
|
switch (_c.label) {
|
|
861
629
|
case 0: return [4, context.endpoint()];
|
|
@@ -863,20 +631,10 @@ export var serializeAws_restJson1GetTrustStoreCertificateCommand = function (inp
|
|
|
863
631
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
864
632
|
headers = {};
|
|
865
633
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/trustStores/{trustStoreArn+}/certificate";
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
}
|
|
871
|
-
resolvedPath = resolvedPath.replace("{trustStoreArn+}", labelValue
|
|
872
|
-
.split("/")
|
|
873
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
874
|
-
.join("/"));
|
|
875
|
-
}
|
|
876
|
-
else {
|
|
877
|
-
throw new Error("No value provided for input HTTP label: trustStoreArn.");
|
|
878
|
-
}
|
|
879
|
-
query = __assign({}, (input.thumbprint !== undefined && { thumbprint: input.thumbprint }));
|
|
634
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "trustStoreArn", function () { return input.trustStoreArn; }, "{trustStoreArn+}", true);
|
|
635
|
+
query = map({
|
|
636
|
+
thumbprint: [, input.thumbprint],
|
|
637
|
+
});
|
|
880
638
|
return [2, new __HttpRequest({
|
|
881
639
|
protocol: protocol,
|
|
882
640
|
hostname: hostname,
|
|
@@ -891,7 +649,7 @@ export var serializeAws_restJson1GetTrustStoreCertificateCommand = function (inp
|
|
|
891
649
|
});
|
|
892
650
|
}); };
|
|
893
651
|
export var serializeAws_restJson1GetUserSettingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
894
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
652
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
895
653
|
return __generator(this, function (_c) {
|
|
896
654
|
switch (_c.label) {
|
|
897
655
|
case 0: return [4, context.endpoint()];
|
|
@@ -899,19 +657,7 @@ export var serializeAws_restJson1GetUserSettingsCommand = function (input, conte
|
|
|
899
657
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
900
658
|
headers = {};
|
|
901
659
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/userSettings/{userSettingsArn+}";
|
|
902
|
-
|
|
903
|
-
labelValue = input.userSettingsArn;
|
|
904
|
-
if (labelValue.length <= 0) {
|
|
905
|
-
throw new Error("Empty value provided for input HTTP label: userSettingsArn.");
|
|
906
|
-
}
|
|
907
|
-
resolvedPath = resolvedPath.replace("{userSettingsArn+}", labelValue
|
|
908
|
-
.split("/")
|
|
909
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
910
|
-
.join("/"));
|
|
911
|
-
}
|
|
912
|
-
else {
|
|
913
|
-
throw new Error("No value provided for input HTTP label: userSettingsArn.");
|
|
914
|
-
}
|
|
660
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "userSettingsArn", function () { return input.userSettingsArn; }, "{userSettingsArn+}", true);
|
|
915
661
|
return [2, new __HttpRequest({
|
|
916
662
|
protocol: protocol,
|
|
917
663
|
hostname: hostname,
|
|
@@ -933,7 +679,10 @@ export var serializeAws_restJson1ListBrowserSettingsCommand = function (input, c
|
|
|
933
679
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
934
680
|
headers = {};
|
|
935
681
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/browserSettings";
|
|
936
|
-
query =
|
|
682
|
+
query = map({
|
|
683
|
+
nextToken: [, input.nextToken],
|
|
684
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
685
|
+
});
|
|
937
686
|
return [2, new __HttpRequest({
|
|
938
687
|
protocol: protocol,
|
|
939
688
|
hostname: hostname,
|
|
@@ -948,7 +697,7 @@ export var serializeAws_restJson1ListBrowserSettingsCommand = function (input, c
|
|
|
948
697
|
});
|
|
949
698
|
}); };
|
|
950
699
|
export var serializeAws_restJson1ListIdentityProvidersCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
951
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
700
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
952
701
|
return __generator(this, function (_c) {
|
|
953
702
|
switch (_c.label) {
|
|
954
703
|
case 0: return [4, context.endpoint()];
|
|
@@ -956,20 +705,11 @@ export var serializeAws_restJson1ListIdentityProvidersCommand = function (input,
|
|
|
956
705
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
957
706
|
headers = {};
|
|
958
707
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/portals/{portalArn+}/identityProviders";
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
resolvedPath = resolvedPath.replace("{portalArn+}", labelValue
|
|
965
|
-
.split("/")
|
|
966
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
967
|
-
.join("/"));
|
|
968
|
-
}
|
|
969
|
-
else {
|
|
970
|
-
throw new Error("No value provided for input HTTP label: portalArn.");
|
|
971
|
-
}
|
|
972
|
-
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
708
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", function () { return input.portalArn; }, "{portalArn+}", true);
|
|
709
|
+
query = map({
|
|
710
|
+
nextToken: [, input.nextToken],
|
|
711
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
712
|
+
});
|
|
973
713
|
return [2, new __HttpRequest({
|
|
974
714
|
protocol: protocol,
|
|
975
715
|
hostname: hostname,
|
|
@@ -992,7 +732,10 @@ export var serializeAws_restJson1ListNetworkSettingsCommand = function (input, c
|
|
|
992
732
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
993
733
|
headers = {};
|
|
994
734
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/networkSettings";
|
|
995
|
-
query =
|
|
735
|
+
query = map({
|
|
736
|
+
nextToken: [, input.nextToken],
|
|
737
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
738
|
+
});
|
|
996
739
|
return [2, new __HttpRequest({
|
|
997
740
|
protocol: protocol,
|
|
998
741
|
hostname: hostname,
|
|
@@ -1015,7 +758,10 @@ export var serializeAws_restJson1ListPortalsCommand = function (input, context)
|
|
|
1015
758
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1016
759
|
headers = {};
|
|
1017
760
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/portals";
|
|
1018
|
-
query =
|
|
761
|
+
query = map({
|
|
762
|
+
nextToken: [, input.nextToken],
|
|
763
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
764
|
+
});
|
|
1019
765
|
return [2, new __HttpRequest({
|
|
1020
766
|
protocol: protocol,
|
|
1021
767
|
hostname: hostname,
|
|
@@ -1030,7 +776,7 @@ export var serializeAws_restJson1ListPortalsCommand = function (input, context)
|
|
|
1030
776
|
});
|
|
1031
777
|
}); };
|
|
1032
778
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1033
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
779
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1034
780
|
return __generator(this, function (_c) {
|
|
1035
781
|
switch (_c.label) {
|
|
1036
782
|
case 0: return [4, context.endpoint()];
|
|
@@ -1038,19 +784,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
1038
784
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1039
785
|
headers = {};
|
|
1040
786
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn+}";
|
|
1041
|
-
|
|
1042
|
-
labelValue = input.resourceArn;
|
|
1043
|
-
if (labelValue.length <= 0) {
|
|
1044
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
1045
|
-
}
|
|
1046
|
-
resolvedPath = resolvedPath.replace("{resourceArn+}", labelValue
|
|
1047
|
-
.split("/")
|
|
1048
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
1049
|
-
.join("/"));
|
|
1050
|
-
}
|
|
1051
|
-
else {
|
|
1052
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1053
|
-
}
|
|
787
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn+}", true);
|
|
1054
788
|
return [2, new __HttpRequest({
|
|
1055
789
|
protocol: protocol,
|
|
1056
790
|
hostname: hostname,
|
|
@@ -1064,7 +798,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
1064
798
|
});
|
|
1065
799
|
}); };
|
|
1066
800
|
export var serializeAws_restJson1ListTrustStoreCertificatesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1067
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
801
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1068
802
|
return __generator(this, function (_c) {
|
|
1069
803
|
switch (_c.label) {
|
|
1070
804
|
case 0: return [4, context.endpoint()];
|
|
@@ -1073,20 +807,11 @@ export var serializeAws_restJson1ListTrustStoreCertificatesCommand = function (i
|
|
|
1073
807
|
headers = {};
|
|
1074
808
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1075
809
|
"/trustStores/{trustStoreArn+}/certificates";
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
resolvedPath = resolvedPath.replace("{trustStoreArn+}", labelValue
|
|
1082
|
-
.split("/")
|
|
1083
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
1084
|
-
.join("/"));
|
|
1085
|
-
}
|
|
1086
|
-
else {
|
|
1087
|
-
throw new Error("No value provided for input HTTP label: trustStoreArn.");
|
|
1088
|
-
}
|
|
1089
|
-
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
810
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "trustStoreArn", function () { return input.trustStoreArn; }, "{trustStoreArn+}", true);
|
|
811
|
+
query = map({
|
|
812
|
+
nextToken: [, input.nextToken],
|
|
813
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
814
|
+
});
|
|
1090
815
|
return [2, new __HttpRequest({
|
|
1091
816
|
protocol: protocol,
|
|
1092
817
|
hostname: hostname,
|
|
@@ -1109,7 +834,10 @@ export var serializeAws_restJson1ListTrustStoresCommand = function (input, conte
|
|
|
1109
834
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1110
835
|
headers = {};
|
|
1111
836
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/trustStores";
|
|
1112
|
-
query =
|
|
837
|
+
query = map({
|
|
838
|
+
nextToken: [, input.nextToken],
|
|
839
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
840
|
+
});
|
|
1113
841
|
return [2, new __HttpRequest({
|
|
1114
842
|
protocol: protocol,
|
|
1115
843
|
hostname: hostname,
|
|
@@ -1132,7 +860,10 @@ export var serializeAws_restJson1ListUserSettingsCommand = function (input, cont
|
|
|
1132
860
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1133
861
|
headers = {};
|
|
1134
862
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/userSettings";
|
|
1135
|
-
query =
|
|
863
|
+
query = map({
|
|
864
|
+
nextToken: [, input.nextToken],
|
|
865
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
866
|
+
});
|
|
1136
867
|
return [2, new __HttpRequest({
|
|
1137
868
|
protocol: protocol,
|
|
1138
869
|
hostname: hostname,
|
|
@@ -1147,7 +878,7 @@ export var serializeAws_restJson1ListUserSettingsCommand = function (input, cont
|
|
|
1147
878
|
});
|
|
1148
879
|
}); };
|
|
1149
880
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1150
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
881
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1151
882
|
var _c;
|
|
1152
883
|
return __generator(this, function (_d) {
|
|
1153
884
|
switch (_d.label) {
|
|
@@ -1158,19 +889,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1158
889
|
"content-type": "application/json",
|
|
1159
890
|
};
|
|
1160
891
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn+}";
|
|
1161
|
-
|
|
1162
|
-
labelValue = input.resourceArn;
|
|
1163
|
-
if (labelValue.length <= 0) {
|
|
1164
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
1165
|
-
}
|
|
1166
|
-
resolvedPath = resolvedPath.replace("{resourceArn+}", labelValue
|
|
1167
|
-
.split("/")
|
|
1168
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
1169
|
-
.join("/"));
|
|
1170
|
-
}
|
|
1171
|
-
else {
|
|
1172
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1173
|
-
}
|
|
892
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn+}", true);
|
|
1174
893
|
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
1175
894
|
return [2, new __HttpRequest({
|
|
1176
895
|
protocol: protocol,
|
|
@@ -1185,7 +904,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1185
904
|
});
|
|
1186
905
|
}); };
|
|
1187
906
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1188
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
907
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1189
908
|
return __generator(this, function (_c) {
|
|
1190
909
|
switch (_c.label) {
|
|
1191
910
|
case 0: return [4, context.endpoint()];
|
|
@@ -1193,20 +912,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1193
912
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1194
913
|
headers = {};
|
|
1195
914
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn+}";
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
}
|
|
1201
|
-
resolvedPath = resolvedPath.replace("{resourceArn+}", labelValue
|
|
1202
|
-
.split("/")
|
|
1203
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
1204
|
-
.join("/"));
|
|
1205
|
-
}
|
|
1206
|
-
else {
|
|
1207
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1208
|
-
}
|
|
1209
|
-
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
915
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn+}", true);
|
|
916
|
+
query = map({
|
|
917
|
+
tagKeys: [function () { return input.tagKeys !== void 0; }, function () { return (input.tagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
918
|
+
});
|
|
1210
919
|
return [2, new __HttpRequest({
|
|
1211
920
|
protocol: protocol,
|
|
1212
921
|
hostname: hostname,
|
|
@@ -1221,7 +930,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1221
930
|
});
|
|
1222
931
|
}); };
|
|
1223
932
|
export var serializeAws_restJson1UpdateBrowserSettingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1224
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
933
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1225
934
|
var _c;
|
|
1226
935
|
return __generator(this, function (_d) {
|
|
1227
936
|
switch (_d.label) {
|
|
@@ -1232,19 +941,7 @@ export var serializeAws_restJson1UpdateBrowserSettingsCommand = function (input,
|
|
|
1232
941
|
"content-type": "application/json",
|
|
1233
942
|
};
|
|
1234
943
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/browserSettings/{browserSettingsArn+}";
|
|
1235
|
-
|
|
1236
|
-
labelValue = input.browserSettingsArn;
|
|
1237
|
-
if (labelValue.length <= 0) {
|
|
1238
|
-
throw new Error("Empty value provided for input HTTP label: browserSettingsArn.");
|
|
1239
|
-
}
|
|
1240
|
-
resolvedPath = resolvedPath.replace("{browserSettingsArn+}", labelValue
|
|
1241
|
-
.split("/")
|
|
1242
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
1243
|
-
.join("/"));
|
|
1244
|
-
}
|
|
1245
|
-
else {
|
|
1246
|
-
throw new Error("No value provided for input HTTP label: browserSettingsArn.");
|
|
1247
|
-
}
|
|
944
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "browserSettingsArn", function () { return input.browserSettingsArn; }, "{browserSettingsArn+}", true);
|
|
1248
945
|
body = JSON.stringify(__assign(__assign({}, (input.browserPolicy != null && { browserPolicy: input.browserPolicy })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }));
|
|
1249
946
|
return [2, new __HttpRequest({
|
|
1250
947
|
protocol: protocol,
|
|
@@ -1259,7 +956,7 @@ export var serializeAws_restJson1UpdateBrowserSettingsCommand = function (input,
|
|
|
1259
956
|
});
|
|
1260
957
|
}); };
|
|
1261
958
|
export var serializeAws_restJson1UpdateIdentityProviderCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1262
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
959
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1263
960
|
var _c;
|
|
1264
961
|
return __generator(this, function (_d) {
|
|
1265
962
|
switch (_d.label) {
|
|
@@ -1270,19 +967,7 @@ export var serializeAws_restJson1UpdateIdentityProviderCommand = function (input
|
|
|
1270
967
|
"content-type": "application/json",
|
|
1271
968
|
};
|
|
1272
969
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/identityProviders/{identityProviderArn+}";
|
|
1273
|
-
|
|
1274
|
-
labelValue = input.identityProviderArn;
|
|
1275
|
-
if (labelValue.length <= 0) {
|
|
1276
|
-
throw new Error("Empty value provided for input HTTP label: identityProviderArn.");
|
|
1277
|
-
}
|
|
1278
|
-
resolvedPath = resolvedPath.replace("{identityProviderArn+}", labelValue
|
|
1279
|
-
.split("/")
|
|
1280
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
1281
|
-
.join("/"));
|
|
1282
|
-
}
|
|
1283
|
-
else {
|
|
1284
|
-
throw new Error("No value provided for input HTTP label: identityProviderArn.");
|
|
1285
|
-
}
|
|
970
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "identityProviderArn", function () { return input.identityProviderArn; }, "{identityProviderArn+}", true);
|
|
1286
971
|
body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.identityProviderDetails != null && {
|
|
1287
972
|
identityProviderDetails: serializeAws_restJson1IdentityProviderDetails(input.identityProviderDetails, context),
|
|
1288
973
|
})), (input.identityProviderName != null && { identityProviderName: input.identityProviderName })), (input.identityProviderType != null && { identityProviderType: input.identityProviderType })));
|
|
@@ -1299,7 +984,7 @@ export var serializeAws_restJson1UpdateIdentityProviderCommand = function (input
|
|
|
1299
984
|
});
|
|
1300
985
|
}); };
|
|
1301
986
|
export var serializeAws_restJson1UpdateNetworkSettingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1302
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
987
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1303
988
|
var _c;
|
|
1304
989
|
return __generator(this, function (_d) {
|
|
1305
990
|
switch (_d.label) {
|
|
@@ -1310,19 +995,7 @@ export var serializeAws_restJson1UpdateNetworkSettingsCommand = function (input,
|
|
|
1310
995
|
"content-type": "application/json",
|
|
1311
996
|
};
|
|
1312
997
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/networkSettings/{networkSettingsArn+}";
|
|
1313
|
-
|
|
1314
|
-
labelValue = input.networkSettingsArn;
|
|
1315
|
-
if (labelValue.length <= 0) {
|
|
1316
|
-
throw new Error("Empty value provided for input HTTP label: networkSettingsArn.");
|
|
1317
|
-
}
|
|
1318
|
-
resolvedPath = resolvedPath.replace("{networkSettingsArn+}", labelValue
|
|
1319
|
-
.split("/")
|
|
1320
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
1321
|
-
.join("/"));
|
|
1322
|
-
}
|
|
1323
|
-
else {
|
|
1324
|
-
throw new Error("No value provided for input HTTP label: networkSettingsArn.");
|
|
1325
|
-
}
|
|
998
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "networkSettingsArn", function () { return input.networkSettingsArn; }, "{networkSettingsArn+}", true);
|
|
1326
999
|
body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.securityGroupIds != null && {
|
|
1327
1000
|
securityGroupIds: serializeAws_restJson1SecurityGroupIdList(input.securityGroupIds, context),
|
|
1328
1001
|
})), (input.subnetIds != null && { subnetIds: serializeAws_restJson1SubnetIdList(input.subnetIds, context) })), (input.vpcId != null && { vpcId: input.vpcId })));
|
|
@@ -1339,7 +1012,7 @@ export var serializeAws_restJson1UpdateNetworkSettingsCommand = function (input,
|
|
|
1339
1012
|
});
|
|
1340
1013
|
}); };
|
|
1341
1014
|
export var serializeAws_restJson1UpdatePortalCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1342
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1015
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1343
1016
|
return __generator(this, function (_c) {
|
|
1344
1017
|
switch (_c.label) {
|
|
1345
1018
|
case 0: return [4, context.endpoint()];
|
|
@@ -1349,19 +1022,7 @@ export var serializeAws_restJson1UpdatePortalCommand = function (input, context)
|
|
|
1349
1022
|
"content-type": "application/json",
|
|
1350
1023
|
};
|
|
1351
1024
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/portals/{portalArn+}";
|
|
1352
|
-
|
|
1353
|
-
labelValue = input.portalArn;
|
|
1354
|
-
if (labelValue.length <= 0) {
|
|
1355
|
-
throw new Error("Empty value provided for input HTTP label: portalArn.");
|
|
1356
|
-
}
|
|
1357
|
-
resolvedPath = resolvedPath.replace("{portalArn+}", labelValue
|
|
1358
|
-
.split("/")
|
|
1359
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
1360
|
-
.join("/"));
|
|
1361
|
-
}
|
|
1362
|
-
else {
|
|
1363
|
-
throw new Error("No value provided for input HTTP label: portalArn.");
|
|
1364
|
-
}
|
|
1025
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "portalArn", function () { return input.portalArn; }, "{portalArn+}", true);
|
|
1365
1026
|
body = JSON.stringify(__assign({}, (input.displayName != null && { displayName: input.displayName })));
|
|
1366
1027
|
return [2, new __HttpRequest({
|
|
1367
1028
|
protocol: protocol,
|
|
@@ -1376,7 +1037,7 @@ export var serializeAws_restJson1UpdatePortalCommand = function (input, context)
|
|
|
1376
1037
|
});
|
|
1377
1038
|
}); };
|
|
1378
1039
|
export var serializeAws_restJson1UpdateTrustStoreCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1379
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1040
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1380
1041
|
var _c;
|
|
1381
1042
|
return __generator(this, function (_d) {
|
|
1382
1043
|
switch (_d.label) {
|
|
@@ -1387,19 +1048,7 @@ export var serializeAws_restJson1UpdateTrustStoreCommand = function (input, cont
|
|
|
1387
1048
|
"content-type": "application/json",
|
|
1388
1049
|
};
|
|
1389
1050
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/trustStores/{trustStoreArn+}";
|
|
1390
|
-
|
|
1391
|
-
labelValue = input.trustStoreArn;
|
|
1392
|
-
if (labelValue.length <= 0) {
|
|
1393
|
-
throw new Error("Empty value provided for input HTTP label: trustStoreArn.");
|
|
1394
|
-
}
|
|
1395
|
-
resolvedPath = resolvedPath.replace("{trustStoreArn+}", labelValue
|
|
1396
|
-
.split("/")
|
|
1397
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
1398
|
-
.join("/"));
|
|
1399
|
-
}
|
|
1400
|
-
else {
|
|
1401
|
-
throw new Error("No value provided for input HTTP label: trustStoreArn.");
|
|
1402
|
-
}
|
|
1051
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "trustStoreArn", function () { return input.trustStoreArn; }, "{trustStoreArn+}", true);
|
|
1403
1052
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.certificatesToAdd != null && {
|
|
1404
1053
|
certificatesToAdd: serializeAws_restJson1CertificateList(input.certificatesToAdd, context),
|
|
1405
1054
|
})), (input.certificatesToDelete != null && {
|
|
@@ -1418,7 +1067,7 @@ export var serializeAws_restJson1UpdateTrustStoreCommand = function (input, cont
|
|
|
1418
1067
|
});
|
|
1419
1068
|
}); };
|
|
1420
1069
|
export var serializeAws_restJson1UpdateUserSettingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1421
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1070
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1422
1071
|
var _c;
|
|
1423
1072
|
return __generator(this, function (_d) {
|
|
1424
1073
|
switch (_d.label) {
|
|
@@ -1429,19 +1078,7 @@ export var serializeAws_restJson1UpdateUserSettingsCommand = function (input, co
|
|
|
1429
1078
|
"content-type": "application/json",
|
|
1430
1079
|
};
|
|
1431
1080
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/userSettings/{userSettingsArn+}";
|
|
1432
|
-
|
|
1433
|
-
labelValue = input.userSettingsArn;
|
|
1434
|
-
if (labelValue.length <= 0) {
|
|
1435
|
-
throw new Error("Empty value provided for input HTTP label: userSettingsArn.");
|
|
1436
|
-
}
|
|
1437
|
-
resolvedPath = resolvedPath.replace("{userSettingsArn+}", labelValue
|
|
1438
|
-
.split("/")
|
|
1439
|
-
.map(function (segment) { return __extendedEncodeURIComponent(segment); })
|
|
1440
|
-
.join("/"));
|
|
1441
|
-
}
|
|
1442
|
-
else {
|
|
1443
|
-
throw new Error("No value provided for input HTTP label: userSettingsArn.");
|
|
1444
|
-
}
|
|
1081
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "userSettingsArn", function () { return input.userSettingsArn; }, "{userSettingsArn+}", true);
|
|
1445
1082
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.copyAllowed != null && { copyAllowed: input.copyAllowed })), (input.disconnectTimeoutInMinutes != null && { disconnectTimeoutInMinutes: input.disconnectTimeoutInMinutes })), (input.downloadAllowed != null && { downloadAllowed: input.downloadAllowed })), (input.idleDisconnectTimeoutInMinutes != null && {
|
|
1446
1083
|
idleDisconnectTimeoutInMinutes: input.idleDisconnectTimeoutInMinutes,
|
|
1447
1084
|
})), (input.pasteAllowed != null && { pasteAllowed: input.pasteAllowed })), (input.printAllowed != null && { printAllowed: input.printAllowed })), (input.uploadAllowed != null && { uploadAllowed: input.uploadAllowed })));
|
|
@@ -1465,28 +1102,26 @@ export var deserializeAws_restJson1AssociateBrowserSettingsCommand = function (o
|
|
|
1465
1102
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1466
1103
|
return [2, deserializeAws_restJson1AssociateBrowserSettingsCommandError(output, context)];
|
|
1467
1104
|
}
|
|
1468
|
-
contents = {
|
|
1105
|
+
contents = map({
|
|
1469
1106
|
$metadata: deserializeMetadata(output),
|
|
1470
|
-
|
|
1471
|
-
portalArn: undefined,
|
|
1472
|
-
};
|
|
1107
|
+
});
|
|
1473
1108
|
_a = __expectNonNull;
|
|
1474
1109
|
_b = __expectObject;
|
|
1475
1110
|
return [4, parseBody(output.body, context)];
|
|
1476
1111
|
case 1:
|
|
1477
1112
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1478
|
-
if (data.browserSettingsArn
|
|
1113
|
+
if (data.browserSettingsArn != null) {
|
|
1479
1114
|
contents.browserSettingsArn = __expectString(data.browserSettingsArn);
|
|
1480
1115
|
}
|
|
1481
|
-
if (data.portalArn
|
|
1116
|
+
if (data.portalArn != null) {
|
|
1482
1117
|
contents.portalArn = __expectString(data.portalArn);
|
|
1483
1118
|
}
|
|
1484
|
-
return [2,
|
|
1119
|
+
return [2, contents];
|
|
1485
1120
|
}
|
|
1486
1121
|
});
|
|
1487
1122
|
}); };
|
|
1488
1123
|
var deserializeAws_restJson1AssociateBrowserSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1489
|
-
var parsedOutput, _a,
|
|
1124
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1490
1125
|
var _c;
|
|
1491
1126
|
return __generator(this, function (_d) {
|
|
1492
1127
|
switch (_d.label) {
|
|
@@ -1527,14 +1162,14 @@ var deserializeAws_restJson1AssociateBrowserSettingsCommandError = function (out
|
|
|
1527
1162
|
case 13: throw _d.sent();
|
|
1528
1163
|
case 14:
|
|
1529
1164
|
parsedBody = parsedOutput.body;
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
$metadata: $metadata,
|
|
1165
|
+
throwDefaultError({
|
|
1166
|
+
output: output,
|
|
1167
|
+
parsedBody: parsedBody,
|
|
1168
|
+
exceptionCtor: __BaseException,
|
|
1169
|
+
errorCode: errorCode,
|
|
1536
1170
|
});
|
|
1537
|
-
|
|
1171
|
+
_d.label = 15;
|
|
1172
|
+
case 15: return [2];
|
|
1538
1173
|
}
|
|
1539
1174
|
});
|
|
1540
1175
|
}); };
|
|
@@ -1546,28 +1181,26 @@ export var deserializeAws_restJson1AssociateNetworkSettingsCommand = function (o
|
|
|
1546
1181
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1547
1182
|
return [2, deserializeAws_restJson1AssociateNetworkSettingsCommandError(output, context)];
|
|
1548
1183
|
}
|
|
1549
|
-
contents = {
|
|
1184
|
+
contents = map({
|
|
1550
1185
|
$metadata: deserializeMetadata(output),
|
|
1551
|
-
|
|
1552
|
-
portalArn: undefined,
|
|
1553
|
-
};
|
|
1186
|
+
});
|
|
1554
1187
|
_a = __expectNonNull;
|
|
1555
1188
|
_b = __expectObject;
|
|
1556
1189
|
return [4, parseBody(output.body, context)];
|
|
1557
1190
|
case 1:
|
|
1558
1191
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1559
|
-
if (data.networkSettingsArn
|
|
1192
|
+
if (data.networkSettingsArn != null) {
|
|
1560
1193
|
contents.networkSettingsArn = __expectString(data.networkSettingsArn);
|
|
1561
1194
|
}
|
|
1562
|
-
if (data.portalArn
|
|
1195
|
+
if (data.portalArn != null) {
|
|
1563
1196
|
contents.portalArn = __expectString(data.portalArn);
|
|
1564
1197
|
}
|
|
1565
|
-
return [2,
|
|
1198
|
+
return [2, contents];
|
|
1566
1199
|
}
|
|
1567
1200
|
});
|
|
1568
1201
|
}); };
|
|
1569
1202
|
var deserializeAws_restJson1AssociateNetworkSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1570
|
-
var parsedOutput, _a,
|
|
1203
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1571
1204
|
var _c;
|
|
1572
1205
|
return __generator(this, function (_d) {
|
|
1573
1206
|
switch (_d.label) {
|
|
@@ -1608,14 +1241,14 @@ var deserializeAws_restJson1AssociateNetworkSettingsCommandError = function (out
|
|
|
1608
1241
|
case 13: throw _d.sent();
|
|
1609
1242
|
case 14:
|
|
1610
1243
|
parsedBody = parsedOutput.body;
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
$metadata: $metadata,
|
|
1244
|
+
throwDefaultError({
|
|
1245
|
+
output: output,
|
|
1246
|
+
parsedBody: parsedBody,
|
|
1247
|
+
exceptionCtor: __BaseException,
|
|
1248
|
+
errorCode: errorCode,
|
|
1617
1249
|
});
|
|
1618
|
-
|
|
1250
|
+
_d.label = 15;
|
|
1251
|
+
case 15: return [2];
|
|
1619
1252
|
}
|
|
1620
1253
|
});
|
|
1621
1254
|
}); };
|
|
@@ -1627,28 +1260,26 @@ export var deserializeAws_restJson1AssociateTrustStoreCommand = function (output
|
|
|
1627
1260
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1628
1261
|
return [2, deserializeAws_restJson1AssociateTrustStoreCommandError(output, context)];
|
|
1629
1262
|
}
|
|
1630
|
-
contents = {
|
|
1263
|
+
contents = map({
|
|
1631
1264
|
$metadata: deserializeMetadata(output),
|
|
1632
|
-
|
|
1633
|
-
trustStoreArn: undefined,
|
|
1634
|
-
};
|
|
1265
|
+
});
|
|
1635
1266
|
_a = __expectNonNull;
|
|
1636
1267
|
_b = __expectObject;
|
|
1637
1268
|
return [4, parseBody(output.body, context)];
|
|
1638
1269
|
case 1:
|
|
1639
1270
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1640
|
-
if (data.portalArn
|
|
1271
|
+
if (data.portalArn != null) {
|
|
1641
1272
|
contents.portalArn = __expectString(data.portalArn);
|
|
1642
1273
|
}
|
|
1643
|
-
if (data.trustStoreArn
|
|
1274
|
+
if (data.trustStoreArn != null) {
|
|
1644
1275
|
contents.trustStoreArn = __expectString(data.trustStoreArn);
|
|
1645
1276
|
}
|
|
1646
|
-
return [2,
|
|
1277
|
+
return [2, contents];
|
|
1647
1278
|
}
|
|
1648
1279
|
});
|
|
1649
1280
|
}); };
|
|
1650
1281
|
var deserializeAws_restJson1AssociateTrustStoreCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1651
|
-
var parsedOutput, _a,
|
|
1282
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1652
1283
|
var _c;
|
|
1653
1284
|
return __generator(this, function (_d) {
|
|
1654
1285
|
switch (_d.label) {
|
|
@@ -1685,14 +1316,14 @@ var deserializeAws_restJson1AssociateTrustStoreCommandError = function (output,
|
|
|
1685
1316
|
case 11: throw _d.sent();
|
|
1686
1317
|
case 12:
|
|
1687
1318
|
parsedBody = parsedOutput.body;
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
$metadata: $metadata,
|
|
1319
|
+
throwDefaultError({
|
|
1320
|
+
output: output,
|
|
1321
|
+
parsedBody: parsedBody,
|
|
1322
|
+
exceptionCtor: __BaseException,
|
|
1323
|
+
errorCode: errorCode,
|
|
1694
1324
|
});
|
|
1695
|
-
|
|
1325
|
+
_d.label = 13;
|
|
1326
|
+
case 13: return [2];
|
|
1696
1327
|
}
|
|
1697
1328
|
});
|
|
1698
1329
|
}); };
|
|
@@ -1704,28 +1335,26 @@ export var deserializeAws_restJson1AssociateUserSettingsCommand = function (outp
|
|
|
1704
1335
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1705
1336
|
return [2, deserializeAws_restJson1AssociateUserSettingsCommandError(output, context)];
|
|
1706
1337
|
}
|
|
1707
|
-
contents = {
|
|
1338
|
+
contents = map({
|
|
1708
1339
|
$metadata: deserializeMetadata(output),
|
|
1709
|
-
|
|
1710
|
-
userSettingsArn: undefined,
|
|
1711
|
-
};
|
|
1340
|
+
});
|
|
1712
1341
|
_a = __expectNonNull;
|
|
1713
1342
|
_b = __expectObject;
|
|
1714
1343
|
return [4, parseBody(output.body, context)];
|
|
1715
1344
|
case 1:
|
|
1716
1345
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1717
|
-
if (data.portalArn
|
|
1346
|
+
if (data.portalArn != null) {
|
|
1718
1347
|
contents.portalArn = __expectString(data.portalArn);
|
|
1719
1348
|
}
|
|
1720
|
-
if (data.userSettingsArn
|
|
1349
|
+
if (data.userSettingsArn != null) {
|
|
1721
1350
|
contents.userSettingsArn = __expectString(data.userSettingsArn);
|
|
1722
1351
|
}
|
|
1723
|
-
return [2,
|
|
1352
|
+
return [2, contents];
|
|
1724
1353
|
}
|
|
1725
1354
|
});
|
|
1726
1355
|
}); };
|
|
1727
1356
|
var deserializeAws_restJson1AssociateUserSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1728
|
-
var parsedOutput, _a,
|
|
1357
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1729
1358
|
var _c;
|
|
1730
1359
|
return __generator(this, function (_d) {
|
|
1731
1360
|
switch (_d.label) {
|
|
@@ -1766,14 +1395,14 @@ var deserializeAws_restJson1AssociateUserSettingsCommandError = function (output
|
|
|
1766
1395
|
case 13: throw _d.sent();
|
|
1767
1396
|
case 14:
|
|
1768
1397
|
parsedBody = parsedOutput.body;
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
$metadata: $metadata,
|
|
1398
|
+
throwDefaultError({
|
|
1399
|
+
output: output,
|
|
1400
|
+
parsedBody: parsedBody,
|
|
1401
|
+
exceptionCtor: __BaseException,
|
|
1402
|
+
errorCode: errorCode,
|
|
1775
1403
|
});
|
|
1776
|
-
|
|
1404
|
+
_d.label = 15;
|
|
1405
|
+
case 15: return [2];
|
|
1777
1406
|
}
|
|
1778
1407
|
});
|
|
1779
1408
|
}); };
|
|
@@ -1785,24 +1414,23 @@ export var deserializeAws_restJson1CreateBrowserSettingsCommand = function (outp
|
|
|
1785
1414
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1786
1415
|
return [2, deserializeAws_restJson1CreateBrowserSettingsCommandError(output, context)];
|
|
1787
1416
|
}
|
|
1788
|
-
contents = {
|
|
1417
|
+
contents = map({
|
|
1789
1418
|
$metadata: deserializeMetadata(output),
|
|
1790
|
-
|
|
1791
|
-
};
|
|
1419
|
+
});
|
|
1792
1420
|
_a = __expectNonNull;
|
|
1793
1421
|
_b = __expectObject;
|
|
1794
1422
|
return [4, parseBody(output.body, context)];
|
|
1795
1423
|
case 1:
|
|
1796
1424
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1797
|
-
if (data.browserSettingsArn
|
|
1425
|
+
if (data.browserSettingsArn != null) {
|
|
1798
1426
|
contents.browserSettingsArn = __expectString(data.browserSettingsArn);
|
|
1799
1427
|
}
|
|
1800
|
-
return [2,
|
|
1428
|
+
return [2, contents];
|
|
1801
1429
|
}
|
|
1802
1430
|
});
|
|
1803
1431
|
}); };
|
|
1804
1432
|
var deserializeAws_restJson1CreateBrowserSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1805
|
-
var parsedOutput, _a,
|
|
1433
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1806
1434
|
var _c;
|
|
1807
1435
|
return __generator(this, function (_d) {
|
|
1808
1436
|
switch (_d.label) {
|
|
@@ -1847,14 +1475,14 @@ var deserializeAws_restJson1CreateBrowserSettingsCommandError = function (output
|
|
|
1847
1475
|
case 15: throw _d.sent();
|
|
1848
1476
|
case 16:
|
|
1849
1477
|
parsedBody = parsedOutput.body;
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
$metadata: $metadata,
|
|
1478
|
+
throwDefaultError({
|
|
1479
|
+
output: output,
|
|
1480
|
+
parsedBody: parsedBody,
|
|
1481
|
+
exceptionCtor: __BaseException,
|
|
1482
|
+
errorCode: errorCode,
|
|
1856
1483
|
});
|
|
1857
|
-
|
|
1484
|
+
_d.label = 17;
|
|
1485
|
+
case 17: return [2];
|
|
1858
1486
|
}
|
|
1859
1487
|
});
|
|
1860
1488
|
}); };
|
|
@@ -1866,24 +1494,23 @@ export var deserializeAws_restJson1CreateIdentityProviderCommand = function (out
|
|
|
1866
1494
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1867
1495
|
return [2, deserializeAws_restJson1CreateIdentityProviderCommandError(output, context)];
|
|
1868
1496
|
}
|
|
1869
|
-
contents = {
|
|
1497
|
+
contents = map({
|
|
1870
1498
|
$metadata: deserializeMetadata(output),
|
|
1871
|
-
|
|
1872
|
-
};
|
|
1499
|
+
});
|
|
1873
1500
|
_a = __expectNonNull;
|
|
1874
1501
|
_b = __expectObject;
|
|
1875
1502
|
return [4, parseBody(output.body, context)];
|
|
1876
1503
|
case 1:
|
|
1877
1504
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1878
|
-
if (data.identityProviderArn
|
|
1505
|
+
if (data.identityProviderArn != null) {
|
|
1879
1506
|
contents.identityProviderArn = __expectString(data.identityProviderArn);
|
|
1880
1507
|
}
|
|
1881
|
-
return [2,
|
|
1508
|
+
return [2, contents];
|
|
1882
1509
|
}
|
|
1883
1510
|
});
|
|
1884
1511
|
}); };
|
|
1885
1512
|
var deserializeAws_restJson1CreateIdentityProviderCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1886
|
-
var parsedOutput, _a,
|
|
1513
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1887
1514
|
var _c;
|
|
1888
1515
|
return __generator(this, function (_d) {
|
|
1889
1516
|
switch (_d.label) {
|
|
@@ -1928,14 +1555,14 @@ var deserializeAws_restJson1CreateIdentityProviderCommandError = function (outpu
|
|
|
1928
1555
|
case 15: throw _d.sent();
|
|
1929
1556
|
case 16:
|
|
1930
1557
|
parsedBody = parsedOutput.body;
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
$metadata: $metadata,
|
|
1558
|
+
throwDefaultError({
|
|
1559
|
+
output: output,
|
|
1560
|
+
parsedBody: parsedBody,
|
|
1561
|
+
exceptionCtor: __BaseException,
|
|
1562
|
+
errorCode: errorCode,
|
|
1937
1563
|
});
|
|
1938
|
-
|
|
1564
|
+
_d.label = 17;
|
|
1565
|
+
case 17: return [2];
|
|
1939
1566
|
}
|
|
1940
1567
|
});
|
|
1941
1568
|
}); };
|
|
@@ -1947,24 +1574,23 @@ export var deserializeAws_restJson1CreateNetworkSettingsCommand = function (outp
|
|
|
1947
1574
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1948
1575
|
return [2, deserializeAws_restJson1CreateNetworkSettingsCommandError(output, context)];
|
|
1949
1576
|
}
|
|
1950
|
-
contents = {
|
|
1577
|
+
contents = map({
|
|
1951
1578
|
$metadata: deserializeMetadata(output),
|
|
1952
|
-
|
|
1953
|
-
};
|
|
1579
|
+
});
|
|
1954
1580
|
_a = __expectNonNull;
|
|
1955
1581
|
_b = __expectObject;
|
|
1956
1582
|
return [4, parseBody(output.body, context)];
|
|
1957
1583
|
case 1:
|
|
1958
1584
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1959
|
-
if (data.networkSettingsArn
|
|
1585
|
+
if (data.networkSettingsArn != null) {
|
|
1960
1586
|
contents.networkSettingsArn = __expectString(data.networkSettingsArn);
|
|
1961
1587
|
}
|
|
1962
|
-
return [2,
|
|
1588
|
+
return [2, contents];
|
|
1963
1589
|
}
|
|
1964
1590
|
});
|
|
1965
1591
|
}); };
|
|
1966
1592
|
var deserializeAws_restJson1CreateNetworkSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1967
|
-
var parsedOutput, _a,
|
|
1593
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1968
1594
|
var _c;
|
|
1969
1595
|
return __generator(this, function (_d) {
|
|
1970
1596
|
switch (_d.label) {
|
|
@@ -2005,14 +1631,14 @@ var deserializeAws_restJson1CreateNetworkSettingsCommandError = function (output
|
|
|
2005
1631
|
case 13: throw _d.sent();
|
|
2006
1632
|
case 14:
|
|
2007
1633
|
parsedBody = parsedOutput.body;
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
$metadata: $metadata,
|
|
1634
|
+
throwDefaultError({
|
|
1635
|
+
output: output,
|
|
1636
|
+
parsedBody: parsedBody,
|
|
1637
|
+
exceptionCtor: __BaseException,
|
|
1638
|
+
errorCode: errorCode,
|
|
2014
1639
|
});
|
|
2015
|
-
|
|
1640
|
+
_d.label = 15;
|
|
1641
|
+
case 15: return [2];
|
|
2016
1642
|
}
|
|
2017
1643
|
});
|
|
2018
1644
|
}); };
|
|
@@ -2024,28 +1650,26 @@ export var deserializeAws_restJson1CreatePortalCommand = function (output, conte
|
|
|
2024
1650
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2025
1651
|
return [2, deserializeAws_restJson1CreatePortalCommandError(output, context)];
|
|
2026
1652
|
}
|
|
2027
|
-
contents = {
|
|
1653
|
+
contents = map({
|
|
2028
1654
|
$metadata: deserializeMetadata(output),
|
|
2029
|
-
|
|
2030
|
-
portalEndpoint: undefined,
|
|
2031
|
-
};
|
|
1655
|
+
});
|
|
2032
1656
|
_a = __expectNonNull;
|
|
2033
1657
|
_b = __expectObject;
|
|
2034
1658
|
return [4, parseBody(output.body, context)];
|
|
2035
1659
|
case 1:
|
|
2036
1660
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2037
|
-
if (data.portalArn
|
|
1661
|
+
if (data.portalArn != null) {
|
|
2038
1662
|
contents.portalArn = __expectString(data.portalArn);
|
|
2039
1663
|
}
|
|
2040
|
-
if (data.portalEndpoint
|
|
1664
|
+
if (data.portalEndpoint != null) {
|
|
2041
1665
|
contents.portalEndpoint = __expectString(data.portalEndpoint);
|
|
2042
1666
|
}
|
|
2043
|
-
return [2,
|
|
1667
|
+
return [2, contents];
|
|
2044
1668
|
}
|
|
2045
1669
|
});
|
|
2046
1670
|
}); };
|
|
2047
1671
|
var deserializeAws_restJson1CreatePortalCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2048
|
-
var parsedOutput, _a,
|
|
1672
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2049
1673
|
var _c;
|
|
2050
1674
|
return __generator(this, function (_d) {
|
|
2051
1675
|
switch (_d.label) {
|
|
@@ -2090,14 +1714,14 @@ var deserializeAws_restJson1CreatePortalCommandError = function (output, context
|
|
|
2090
1714
|
case 15: throw _d.sent();
|
|
2091
1715
|
case 16:
|
|
2092
1716
|
parsedBody = parsedOutput.body;
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
$metadata: $metadata,
|
|
1717
|
+
throwDefaultError({
|
|
1718
|
+
output: output,
|
|
1719
|
+
parsedBody: parsedBody,
|
|
1720
|
+
exceptionCtor: __BaseException,
|
|
1721
|
+
errorCode: errorCode,
|
|
2099
1722
|
});
|
|
2100
|
-
|
|
1723
|
+
_d.label = 17;
|
|
1724
|
+
case 17: return [2];
|
|
2101
1725
|
}
|
|
2102
1726
|
});
|
|
2103
1727
|
}); };
|
|
@@ -2109,24 +1733,23 @@ export var deserializeAws_restJson1CreateTrustStoreCommand = function (output, c
|
|
|
2109
1733
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2110
1734
|
return [2, deserializeAws_restJson1CreateTrustStoreCommandError(output, context)];
|
|
2111
1735
|
}
|
|
2112
|
-
contents = {
|
|
1736
|
+
contents = map({
|
|
2113
1737
|
$metadata: deserializeMetadata(output),
|
|
2114
|
-
|
|
2115
|
-
};
|
|
1738
|
+
});
|
|
2116
1739
|
_a = __expectNonNull;
|
|
2117
1740
|
_b = __expectObject;
|
|
2118
1741
|
return [4, parseBody(output.body, context)];
|
|
2119
1742
|
case 1:
|
|
2120
1743
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2121
|
-
if (data.trustStoreArn
|
|
1744
|
+
if (data.trustStoreArn != null) {
|
|
2122
1745
|
contents.trustStoreArn = __expectString(data.trustStoreArn);
|
|
2123
1746
|
}
|
|
2124
|
-
return [2,
|
|
1747
|
+
return [2, contents];
|
|
2125
1748
|
}
|
|
2126
1749
|
});
|
|
2127
1750
|
}); };
|
|
2128
1751
|
var deserializeAws_restJson1CreateTrustStoreCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2129
|
-
var parsedOutput, _a,
|
|
1752
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2130
1753
|
var _c;
|
|
2131
1754
|
return __generator(this, function (_d) {
|
|
2132
1755
|
switch (_d.label) {
|
|
@@ -2167,14 +1790,14 @@ var deserializeAws_restJson1CreateTrustStoreCommandError = function (output, con
|
|
|
2167
1790
|
case 13: throw _d.sent();
|
|
2168
1791
|
case 14:
|
|
2169
1792
|
parsedBody = parsedOutput.body;
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
$metadata: $metadata,
|
|
1793
|
+
throwDefaultError({
|
|
1794
|
+
output: output,
|
|
1795
|
+
parsedBody: parsedBody,
|
|
1796
|
+
exceptionCtor: __BaseException,
|
|
1797
|
+
errorCode: errorCode,
|
|
2176
1798
|
});
|
|
2177
|
-
|
|
1799
|
+
_d.label = 15;
|
|
1800
|
+
case 15: return [2];
|
|
2178
1801
|
}
|
|
2179
1802
|
});
|
|
2180
1803
|
}); };
|
|
@@ -2186,24 +1809,23 @@ export var deserializeAws_restJson1CreateUserSettingsCommand = function (output,
|
|
|
2186
1809
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2187
1810
|
return [2, deserializeAws_restJson1CreateUserSettingsCommandError(output, context)];
|
|
2188
1811
|
}
|
|
2189
|
-
contents = {
|
|
1812
|
+
contents = map({
|
|
2190
1813
|
$metadata: deserializeMetadata(output),
|
|
2191
|
-
|
|
2192
|
-
};
|
|
1814
|
+
});
|
|
2193
1815
|
_a = __expectNonNull;
|
|
2194
1816
|
_b = __expectObject;
|
|
2195
1817
|
return [4, parseBody(output.body, context)];
|
|
2196
1818
|
case 1:
|
|
2197
1819
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2198
|
-
if (data.userSettingsArn
|
|
1820
|
+
if (data.userSettingsArn != null) {
|
|
2199
1821
|
contents.userSettingsArn = __expectString(data.userSettingsArn);
|
|
2200
1822
|
}
|
|
2201
|
-
return [2,
|
|
1823
|
+
return [2, contents];
|
|
2202
1824
|
}
|
|
2203
1825
|
});
|
|
2204
1826
|
}); };
|
|
2205
1827
|
var deserializeAws_restJson1CreateUserSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2206
|
-
var parsedOutput, _a,
|
|
1828
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2207
1829
|
var _c;
|
|
2208
1830
|
return __generator(this, function (_d) {
|
|
2209
1831
|
switch (_d.label) {
|
|
@@ -2244,14 +1866,14 @@ var deserializeAws_restJson1CreateUserSettingsCommandError = function (output, c
|
|
|
2244
1866
|
case 13: throw _d.sent();
|
|
2245
1867
|
case 14:
|
|
2246
1868
|
parsedBody = parsedOutput.body;
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
$metadata: $metadata,
|
|
1869
|
+
throwDefaultError({
|
|
1870
|
+
output: output,
|
|
1871
|
+
parsedBody: parsedBody,
|
|
1872
|
+
exceptionCtor: __BaseException,
|
|
1873
|
+
errorCode: errorCode,
|
|
2253
1874
|
});
|
|
2254
|
-
|
|
1875
|
+
_d.label = 15;
|
|
1876
|
+
case 15: return [2];
|
|
2255
1877
|
}
|
|
2256
1878
|
});
|
|
2257
1879
|
}); };
|
|
@@ -2263,18 +1885,18 @@ export var deserializeAws_restJson1DeleteBrowserSettingsCommand = function (outp
|
|
|
2263
1885
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2264
1886
|
return [2, deserializeAws_restJson1DeleteBrowserSettingsCommandError(output, context)];
|
|
2265
1887
|
}
|
|
2266
|
-
contents = {
|
|
1888
|
+
contents = map({
|
|
2267
1889
|
$metadata: deserializeMetadata(output),
|
|
2268
|
-
};
|
|
1890
|
+
});
|
|
2269
1891
|
return [4, collectBody(output.body, context)];
|
|
2270
1892
|
case 1:
|
|
2271
1893
|
_a.sent();
|
|
2272
|
-
return [2,
|
|
1894
|
+
return [2, contents];
|
|
2273
1895
|
}
|
|
2274
1896
|
});
|
|
2275
1897
|
}); };
|
|
2276
1898
|
var deserializeAws_restJson1DeleteBrowserSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2277
|
-
var parsedOutput, _a,
|
|
1899
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2278
1900
|
var _c;
|
|
2279
1901
|
return __generator(this, function (_d) {
|
|
2280
1902
|
switch (_d.label) {
|
|
@@ -2311,14 +1933,14 @@ var deserializeAws_restJson1DeleteBrowserSettingsCommandError = function (output
|
|
|
2311
1933
|
case 11: throw _d.sent();
|
|
2312
1934
|
case 12:
|
|
2313
1935
|
parsedBody = parsedOutput.body;
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
$metadata: $metadata,
|
|
1936
|
+
throwDefaultError({
|
|
1937
|
+
output: output,
|
|
1938
|
+
parsedBody: parsedBody,
|
|
1939
|
+
exceptionCtor: __BaseException,
|
|
1940
|
+
errorCode: errorCode,
|
|
2320
1941
|
});
|
|
2321
|
-
|
|
1942
|
+
_d.label = 13;
|
|
1943
|
+
case 13: return [2];
|
|
2322
1944
|
}
|
|
2323
1945
|
});
|
|
2324
1946
|
}); };
|
|
@@ -2330,18 +1952,18 @@ export var deserializeAws_restJson1DeleteIdentityProviderCommand = function (out
|
|
|
2330
1952
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2331
1953
|
return [2, deserializeAws_restJson1DeleteIdentityProviderCommandError(output, context)];
|
|
2332
1954
|
}
|
|
2333
|
-
contents = {
|
|
1955
|
+
contents = map({
|
|
2334
1956
|
$metadata: deserializeMetadata(output),
|
|
2335
|
-
};
|
|
1957
|
+
});
|
|
2336
1958
|
return [4, collectBody(output.body, context)];
|
|
2337
1959
|
case 1:
|
|
2338
1960
|
_a.sent();
|
|
2339
|
-
return [2,
|
|
1961
|
+
return [2, contents];
|
|
2340
1962
|
}
|
|
2341
1963
|
});
|
|
2342
1964
|
}); };
|
|
2343
1965
|
var deserializeAws_restJson1DeleteIdentityProviderCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2344
|
-
var parsedOutput, _a,
|
|
1966
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2345
1967
|
var _c;
|
|
2346
1968
|
return __generator(this, function (_d) {
|
|
2347
1969
|
switch (_d.label) {
|
|
@@ -2378,14 +2000,14 @@ var deserializeAws_restJson1DeleteIdentityProviderCommandError = function (outpu
|
|
|
2378
2000
|
case 11: throw _d.sent();
|
|
2379
2001
|
case 12:
|
|
2380
2002
|
parsedBody = parsedOutput.body;
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
$metadata: $metadata,
|
|
2003
|
+
throwDefaultError({
|
|
2004
|
+
output: output,
|
|
2005
|
+
parsedBody: parsedBody,
|
|
2006
|
+
exceptionCtor: __BaseException,
|
|
2007
|
+
errorCode: errorCode,
|
|
2387
2008
|
});
|
|
2388
|
-
|
|
2009
|
+
_d.label = 13;
|
|
2010
|
+
case 13: return [2];
|
|
2389
2011
|
}
|
|
2390
2012
|
});
|
|
2391
2013
|
}); };
|
|
@@ -2397,18 +2019,18 @@ export var deserializeAws_restJson1DeleteNetworkSettingsCommand = function (outp
|
|
|
2397
2019
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2398
2020
|
return [2, deserializeAws_restJson1DeleteNetworkSettingsCommandError(output, context)];
|
|
2399
2021
|
}
|
|
2400
|
-
contents = {
|
|
2022
|
+
contents = map({
|
|
2401
2023
|
$metadata: deserializeMetadata(output),
|
|
2402
|
-
};
|
|
2024
|
+
});
|
|
2403
2025
|
return [4, collectBody(output.body, context)];
|
|
2404
2026
|
case 1:
|
|
2405
2027
|
_a.sent();
|
|
2406
|
-
return [2,
|
|
2028
|
+
return [2, contents];
|
|
2407
2029
|
}
|
|
2408
2030
|
});
|
|
2409
2031
|
}); };
|
|
2410
2032
|
var deserializeAws_restJson1DeleteNetworkSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2411
|
-
var parsedOutput, _a,
|
|
2033
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2412
2034
|
var _c;
|
|
2413
2035
|
return __generator(this, function (_d) {
|
|
2414
2036
|
switch (_d.label) {
|
|
@@ -2445,14 +2067,14 @@ var deserializeAws_restJson1DeleteNetworkSettingsCommandError = function (output
|
|
|
2445
2067
|
case 11: throw _d.sent();
|
|
2446
2068
|
case 12:
|
|
2447
2069
|
parsedBody = parsedOutput.body;
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
$metadata: $metadata,
|
|
2070
|
+
throwDefaultError({
|
|
2071
|
+
output: output,
|
|
2072
|
+
parsedBody: parsedBody,
|
|
2073
|
+
exceptionCtor: __BaseException,
|
|
2074
|
+
errorCode: errorCode,
|
|
2454
2075
|
});
|
|
2455
|
-
|
|
2076
|
+
_d.label = 13;
|
|
2077
|
+
case 13: return [2];
|
|
2456
2078
|
}
|
|
2457
2079
|
});
|
|
2458
2080
|
}); };
|
|
@@ -2464,18 +2086,18 @@ export var deserializeAws_restJson1DeletePortalCommand = function (output, conte
|
|
|
2464
2086
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2465
2087
|
return [2, deserializeAws_restJson1DeletePortalCommandError(output, context)];
|
|
2466
2088
|
}
|
|
2467
|
-
contents = {
|
|
2089
|
+
contents = map({
|
|
2468
2090
|
$metadata: deserializeMetadata(output),
|
|
2469
|
-
};
|
|
2091
|
+
});
|
|
2470
2092
|
return [4, collectBody(output.body, context)];
|
|
2471
2093
|
case 1:
|
|
2472
2094
|
_a.sent();
|
|
2473
|
-
return [2,
|
|
2095
|
+
return [2, contents];
|
|
2474
2096
|
}
|
|
2475
2097
|
});
|
|
2476
2098
|
}); };
|
|
2477
2099
|
var deserializeAws_restJson1DeletePortalCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2478
|
-
var parsedOutput, _a,
|
|
2100
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2479
2101
|
var _c;
|
|
2480
2102
|
return __generator(this, function (_d) {
|
|
2481
2103
|
switch (_d.label) {
|
|
@@ -2512,14 +2134,14 @@ var deserializeAws_restJson1DeletePortalCommandError = function (output, context
|
|
|
2512
2134
|
case 11: throw _d.sent();
|
|
2513
2135
|
case 12:
|
|
2514
2136
|
parsedBody = parsedOutput.body;
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
$metadata: $metadata,
|
|
2137
|
+
throwDefaultError({
|
|
2138
|
+
output: output,
|
|
2139
|
+
parsedBody: parsedBody,
|
|
2140
|
+
exceptionCtor: __BaseException,
|
|
2141
|
+
errorCode: errorCode,
|
|
2521
2142
|
});
|
|
2522
|
-
|
|
2143
|
+
_d.label = 13;
|
|
2144
|
+
case 13: return [2];
|
|
2523
2145
|
}
|
|
2524
2146
|
});
|
|
2525
2147
|
}); };
|
|
@@ -2531,18 +2153,18 @@ export var deserializeAws_restJson1DeleteTrustStoreCommand = function (output, c
|
|
|
2531
2153
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2532
2154
|
return [2, deserializeAws_restJson1DeleteTrustStoreCommandError(output, context)];
|
|
2533
2155
|
}
|
|
2534
|
-
contents = {
|
|
2156
|
+
contents = map({
|
|
2535
2157
|
$metadata: deserializeMetadata(output),
|
|
2536
|
-
};
|
|
2158
|
+
});
|
|
2537
2159
|
return [4, collectBody(output.body, context)];
|
|
2538
2160
|
case 1:
|
|
2539
2161
|
_a.sent();
|
|
2540
|
-
return [2,
|
|
2162
|
+
return [2, contents];
|
|
2541
2163
|
}
|
|
2542
2164
|
});
|
|
2543
2165
|
}); };
|
|
2544
2166
|
var deserializeAws_restJson1DeleteTrustStoreCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2545
|
-
var parsedOutput, _a,
|
|
2167
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2546
2168
|
var _c;
|
|
2547
2169
|
return __generator(this, function (_d) {
|
|
2548
2170
|
switch (_d.label) {
|
|
@@ -2579,14 +2201,14 @@ var deserializeAws_restJson1DeleteTrustStoreCommandError = function (output, con
|
|
|
2579
2201
|
case 11: throw _d.sent();
|
|
2580
2202
|
case 12:
|
|
2581
2203
|
parsedBody = parsedOutput.body;
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
$metadata: $metadata,
|
|
2204
|
+
throwDefaultError({
|
|
2205
|
+
output: output,
|
|
2206
|
+
parsedBody: parsedBody,
|
|
2207
|
+
exceptionCtor: __BaseException,
|
|
2208
|
+
errorCode: errorCode,
|
|
2588
2209
|
});
|
|
2589
|
-
|
|
2210
|
+
_d.label = 13;
|
|
2211
|
+
case 13: return [2];
|
|
2590
2212
|
}
|
|
2591
2213
|
});
|
|
2592
2214
|
}); };
|
|
@@ -2598,18 +2220,18 @@ export var deserializeAws_restJson1DeleteUserSettingsCommand = function (output,
|
|
|
2598
2220
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2599
2221
|
return [2, deserializeAws_restJson1DeleteUserSettingsCommandError(output, context)];
|
|
2600
2222
|
}
|
|
2601
|
-
contents = {
|
|
2223
|
+
contents = map({
|
|
2602
2224
|
$metadata: deserializeMetadata(output),
|
|
2603
|
-
};
|
|
2225
|
+
});
|
|
2604
2226
|
return [4, collectBody(output.body, context)];
|
|
2605
2227
|
case 1:
|
|
2606
2228
|
_a.sent();
|
|
2607
|
-
return [2,
|
|
2229
|
+
return [2, contents];
|
|
2608
2230
|
}
|
|
2609
2231
|
});
|
|
2610
2232
|
}); };
|
|
2611
2233
|
var deserializeAws_restJson1DeleteUserSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2612
|
-
var parsedOutput, _a,
|
|
2234
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2613
2235
|
var _c;
|
|
2614
2236
|
return __generator(this, function (_d) {
|
|
2615
2237
|
switch (_d.label) {
|
|
@@ -2646,14 +2268,14 @@ var deserializeAws_restJson1DeleteUserSettingsCommandError = function (output, c
|
|
|
2646
2268
|
case 11: throw _d.sent();
|
|
2647
2269
|
case 12:
|
|
2648
2270
|
parsedBody = parsedOutput.body;
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
$metadata: $metadata,
|
|
2271
|
+
throwDefaultError({
|
|
2272
|
+
output: output,
|
|
2273
|
+
parsedBody: parsedBody,
|
|
2274
|
+
exceptionCtor: __BaseException,
|
|
2275
|
+
errorCode: errorCode,
|
|
2655
2276
|
});
|
|
2656
|
-
|
|
2277
|
+
_d.label = 13;
|
|
2278
|
+
case 13: return [2];
|
|
2657
2279
|
}
|
|
2658
2280
|
});
|
|
2659
2281
|
}); };
|
|
@@ -2665,18 +2287,18 @@ export var deserializeAws_restJson1DisassociateBrowserSettingsCommand = function
|
|
|
2665
2287
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2666
2288
|
return [2, deserializeAws_restJson1DisassociateBrowserSettingsCommandError(output, context)];
|
|
2667
2289
|
}
|
|
2668
|
-
contents = {
|
|
2290
|
+
contents = map({
|
|
2669
2291
|
$metadata: deserializeMetadata(output),
|
|
2670
|
-
};
|
|
2292
|
+
});
|
|
2671
2293
|
return [4, collectBody(output.body, context)];
|
|
2672
2294
|
case 1:
|
|
2673
2295
|
_a.sent();
|
|
2674
|
-
return [2,
|
|
2296
|
+
return [2, contents];
|
|
2675
2297
|
}
|
|
2676
2298
|
});
|
|
2677
2299
|
}); };
|
|
2678
2300
|
var deserializeAws_restJson1DisassociateBrowserSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2679
|
-
var parsedOutput, _a,
|
|
2301
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2680
2302
|
var _c;
|
|
2681
2303
|
return __generator(this, function (_d) {
|
|
2682
2304
|
switch (_d.label) {
|
|
@@ -2713,14 +2335,14 @@ var deserializeAws_restJson1DisassociateBrowserSettingsCommandError = function (
|
|
|
2713
2335
|
case 11: throw _d.sent();
|
|
2714
2336
|
case 12:
|
|
2715
2337
|
parsedBody = parsedOutput.body;
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
$metadata: $metadata,
|
|
2338
|
+
throwDefaultError({
|
|
2339
|
+
output: output,
|
|
2340
|
+
parsedBody: parsedBody,
|
|
2341
|
+
exceptionCtor: __BaseException,
|
|
2342
|
+
errorCode: errorCode,
|
|
2722
2343
|
});
|
|
2723
|
-
|
|
2344
|
+
_d.label = 13;
|
|
2345
|
+
case 13: return [2];
|
|
2724
2346
|
}
|
|
2725
2347
|
});
|
|
2726
2348
|
}); };
|
|
@@ -2732,18 +2354,18 @@ export var deserializeAws_restJson1DisassociateNetworkSettingsCommand = function
|
|
|
2732
2354
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2733
2355
|
return [2, deserializeAws_restJson1DisassociateNetworkSettingsCommandError(output, context)];
|
|
2734
2356
|
}
|
|
2735
|
-
contents = {
|
|
2357
|
+
contents = map({
|
|
2736
2358
|
$metadata: deserializeMetadata(output),
|
|
2737
|
-
};
|
|
2359
|
+
});
|
|
2738
2360
|
return [4, collectBody(output.body, context)];
|
|
2739
2361
|
case 1:
|
|
2740
2362
|
_a.sent();
|
|
2741
|
-
return [2,
|
|
2363
|
+
return [2, contents];
|
|
2742
2364
|
}
|
|
2743
2365
|
});
|
|
2744
2366
|
}); };
|
|
2745
2367
|
var deserializeAws_restJson1DisassociateNetworkSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2746
|
-
var parsedOutput, _a,
|
|
2368
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2747
2369
|
var _c;
|
|
2748
2370
|
return __generator(this, function (_d) {
|
|
2749
2371
|
switch (_d.label) {
|
|
@@ -2780,14 +2402,14 @@ var deserializeAws_restJson1DisassociateNetworkSettingsCommandError = function (
|
|
|
2780
2402
|
case 11: throw _d.sent();
|
|
2781
2403
|
case 12:
|
|
2782
2404
|
parsedBody = parsedOutput.body;
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
$metadata: $metadata,
|
|
2405
|
+
throwDefaultError({
|
|
2406
|
+
output: output,
|
|
2407
|
+
parsedBody: parsedBody,
|
|
2408
|
+
exceptionCtor: __BaseException,
|
|
2409
|
+
errorCode: errorCode,
|
|
2789
2410
|
});
|
|
2790
|
-
|
|
2411
|
+
_d.label = 13;
|
|
2412
|
+
case 13: return [2];
|
|
2791
2413
|
}
|
|
2792
2414
|
});
|
|
2793
2415
|
}); };
|
|
@@ -2799,18 +2421,18 @@ export var deserializeAws_restJson1DisassociateTrustStoreCommand = function (out
|
|
|
2799
2421
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2800
2422
|
return [2, deserializeAws_restJson1DisassociateTrustStoreCommandError(output, context)];
|
|
2801
2423
|
}
|
|
2802
|
-
contents = {
|
|
2424
|
+
contents = map({
|
|
2803
2425
|
$metadata: deserializeMetadata(output),
|
|
2804
|
-
};
|
|
2426
|
+
});
|
|
2805
2427
|
return [4, collectBody(output.body, context)];
|
|
2806
2428
|
case 1:
|
|
2807
2429
|
_a.sent();
|
|
2808
|
-
return [2,
|
|
2430
|
+
return [2, contents];
|
|
2809
2431
|
}
|
|
2810
2432
|
});
|
|
2811
2433
|
}); };
|
|
2812
2434
|
var deserializeAws_restJson1DisassociateTrustStoreCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2813
|
-
var parsedOutput, _a,
|
|
2435
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2814
2436
|
var _c;
|
|
2815
2437
|
return __generator(this, function (_d) {
|
|
2816
2438
|
switch (_d.label) {
|
|
@@ -2847,14 +2469,14 @@ var deserializeAws_restJson1DisassociateTrustStoreCommandError = function (outpu
|
|
|
2847
2469
|
case 11: throw _d.sent();
|
|
2848
2470
|
case 12:
|
|
2849
2471
|
parsedBody = parsedOutput.body;
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
$metadata: $metadata,
|
|
2472
|
+
throwDefaultError({
|
|
2473
|
+
output: output,
|
|
2474
|
+
parsedBody: parsedBody,
|
|
2475
|
+
exceptionCtor: __BaseException,
|
|
2476
|
+
errorCode: errorCode,
|
|
2856
2477
|
});
|
|
2857
|
-
|
|
2478
|
+
_d.label = 13;
|
|
2479
|
+
case 13: return [2];
|
|
2858
2480
|
}
|
|
2859
2481
|
});
|
|
2860
2482
|
}); };
|
|
@@ -2866,18 +2488,18 @@ export var deserializeAws_restJson1DisassociateUserSettingsCommand = function (o
|
|
|
2866
2488
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2867
2489
|
return [2, deserializeAws_restJson1DisassociateUserSettingsCommandError(output, context)];
|
|
2868
2490
|
}
|
|
2869
|
-
contents = {
|
|
2491
|
+
contents = map({
|
|
2870
2492
|
$metadata: deserializeMetadata(output),
|
|
2871
|
-
};
|
|
2493
|
+
});
|
|
2872
2494
|
return [4, collectBody(output.body, context)];
|
|
2873
2495
|
case 1:
|
|
2874
2496
|
_a.sent();
|
|
2875
|
-
return [2,
|
|
2497
|
+
return [2, contents];
|
|
2876
2498
|
}
|
|
2877
2499
|
});
|
|
2878
2500
|
}); };
|
|
2879
2501
|
var deserializeAws_restJson1DisassociateUserSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2880
|
-
var parsedOutput, _a,
|
|
2502
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2881
2503
|
var _c;
|
|
2882
2504
|
return __generator(this, function (_d) {
|
|
2883
2505
|
switch (_d.label) {
|
|
@@ -2914,14 +2536,14 @@ var deserializeAws_restJson1DisassociateUserSettingsCommandError = function (out
|
|
|
2914
2536
|
case 11: throw _d.sent();
|
|
2915
2537
|
case 12:
|
|
2916
2538
|
parsedBody = parsedOutput.body;
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
$metadata: $metadata,
|
|
2539
|
+
throwDefaultError({
|
|
2540
|
+
output: output,
|
|
2541
|
+
parsedBody: parsedBody,
|
|
2542
|
+
exceptionCtor: __BaseException,
|
|
2543
|
+
errorCode: errorCode,
|
|
2923
2544
|
});
|
|
2924
|
-
|
|
2545
|
+
_d.label = 13;
|
|
2546
|
+
case 13: return [2];
|
|
2925
2547
|
}
|
|
2926
2548
|
});
|
|
2927
2549
|
}); };
|
|
@@ -2933,24 +2555,23 @@ export var deserializeAws_restJson1GetBrowserSettingsCommand = function (output,
|
|
|
2933
2555
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2934
2556
|
return [2, deserializeAws_restJson1GetBrowserSettingsCommandError(output, context)];
|
|
2935
2557
|
}
|
|
2936
|
-
contents = {
|
|
2558
|
+
contents = map({
|
|
2937
2559
|
$metadata: deserializeMetadata(output),
|
|
2938
|
-
|
|
2939
|
-
};
|
|
2560
|
+
});
|
|
2940
2561
|
_a = __expectNonNull;
|
|
2941
2562
|
_b = __expectObject;
|
|
2942
2563
|
return [4, parseBody(output.body, context)];
|
|
2943
2564
|
case 1:
|
|
2944
2565
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2945
|
-
if (data.browserSettings
|
|
2566
|
+
if (data.browserSettings != null) {
|
|
2946
2567
|
contents.browserSettings = deserializeAws_restJson1BrowserSettings(data.browserSettings, context);
|
|
2947
2568
|
}
|
|
2948
|
-
return [2,
|
|
2569
|
+
return [2, contents];
|
|
2949
2570
|
}
|
|
2950
2571
|
});
|
|
2951
2572
|
}); };
|
|
2952
2573
|
var deserializeAws_restJson1GetBrowserSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2953
|
-
var parsedOutput, _a,
|
|
2574
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2954
2575
|
var _c;
|
|
2955
2576
|
return __generator(this, function (_d) {
|
|
2956
2577
|
switch (_d.label) {
|
|
@@ -2987,14 +2608,14 @@ var deserializeAws_restJson1GetBrowserSettingsCommandError = function (output, c
|
|
|
2987
2608
|
case 11: throw _d.sent();
|
|
2988
2609
|
case 12:
|
|
2989
2610
|
parsedBody = parsedOutput.body;
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
$metadata: $metadata,
|
|
2611
|
+
throwDefaultError({
|
|
2612
|
+
output: output,
|
|
2613
|
+
parsedBody: parsedBody,
|
|
2614
|
+
exceptionCtor: __BaseException,
|
|
2615
|
+
errorCode: errorCode,
|
|
2996
2616
|
});
|
|
2997
|
-
|
|
2617
|
+
_d.label = 13;
|
|
2618
|
+
case 13: return [2];
|
|
2998
2619
|
}
|
|
2999
2620
|
});
|
|
3000
2621
|
}); };
|
|
@@ -3006,24 +2627,23 @@ export var deserializeAws_restJson1GetIdentityProviderCommand = function (output
|
|
|
3006
2627
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3007
2628
|
return [2, deserializeAws_restJson1GetIdentityProviderCommandError(output, context)];
|
|
3008
2629
|
}
|
|
3009
|
-
contents = {
|
|
2630
|
+
contents = map({
|
|
3010
2631
|
$metadata: deserializeMetadata(output),
|
|
3011
|
-
|
|
3012
|
-
};
|
|
2632
|
+
});
|
|
3013
2633
|
_a = __expectNonNull;
|
|
3014
2634
|
_b = __expectObject;
|
|
3015
2635
|
return [4, parseBody(output.body, context)];
|
|
3016
2636
|
case 1:
|
|
3017
2637
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3018
|
-
if (data.identityProvider
|
|
2638
|
+
if (data.identityProvider != null) {
|
|
3019
2639
|
contents.identityProvider = deserializeAws_restJson1IdentityProvider(data.identityProvider, context);
|
|
3020
2640
|
}
|
|
3021
|
-
return [2,
|
|
2641
|
+
return [2, contents];
|
|
3022
2642
|
}
|
|
3023
2643
|
});
|
|
3024
2644
|
}); };
|
|
3025
2645
|
var deserializeAws_restJson1GetIdentityProviderCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3026
|
-
var parsedOutput, _a,
|
|
2646
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3027
2647
|
var _c;
|
|
3028
2648
|
return __generator(this, function (_d) {
|
|
3029
2649
|
switch (_d.label) {
|
|
@@ -3060,14 +2680,14 @@ var deserializeAws_restJson1GetIdentityProviderCommandError = function (output,
|
|
|
3060
2680
|
case 11: throw _d.sent();
|
|
3061
2681
|
case 12:
|
|
3062
2682
|
parsedBody = parsedOutput.body;
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
$metadata: $metadata,
|
|
2683
|
+
throwDefaultError({
|
|
2684
|
+
output: output,
|
|
2685
|
+
parsedBody: parsedBody,
|
|
2686
|
+
exceptionCtor: __BaseException,
|
|
2687
|
+
errorCode: errorCode,
|
|
3069
2688
|
});
|
|
3070
|
-
|
|
2689
|
+
_d.label = 13;
|
|
2690
|
+
case 13: return [2];
|
|
3071
2691
|
}
|
|
3072
2692
|
});
|
|
3073
2693
|
}); };
|
|
@@ -3079,24 +2699,23 @@ export var deserializeAws_restJson1GetNetworkSettingsCommand = function (output,
|
|
|
3079
2699
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3080
2700
|
return [2, deserializeAws_restJson1GetNetworkSettingsCommandError(output, context)];
|
|
3081
2701
|
}
|
|
3082
|
-
contents = {
|
|
2702
|
+
contents = map({
|
|
3083
2703
|
$metadata: deserializeMetadata(output),
|
|
3084
|
-
|
|
3085
|
-
};
|
|
2704
|
+
});
|
|
3086
2705
|
_a = __expectNonNull;
|
|
3087
2706
|
_b = __expectObject;
|
|
3088
2707
|
return [4, parseBody(output.body, context)];
|
|
3089
2708
|
case 1:
|
|
3090
2709
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3091
|
-
if (data.networkSettings
|
|
2710
|
+
if (data.networkSettings != null) {
|
|
3092
2711
|
contents.networkSettings = deserializeAws_restJson1NetworkSettings(data.networkSettings, context);
|
|
3093
2712
|
}
|
|
3094
|
-
return [2,
|
|
2713
|
+
return [2, contents];
|
|
3095
2714
|
}
|
|
3096
2715
|
});
|
|
3097
2716
|
}); };
|
|
3098
2717
|
var deserializeAws_restJson1GetNetworkSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3099
|
-
var parsedOutput, _a,
|
|
2718
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3100
2719
|
var _c;
|
|
3101
2720
|
return __generator(this, function (_d) {
|
|
3102
2721
|
switch (_d.label) {
|
|
@@ -3133,14 +2752,14 @@ var deserializeAws_restJson1GetNetworkSettingsCommandError = function (output, c
|
|
|
3133
2752
|
case 11: throw _d.sent();
|
|
3134
2753
|
case 12:
|
|
3135
2754
|
parsedBody = parsedOutput.body;
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
$metadata: $metadata,
|
|
2755
|
+
throwDefaultError({
|
|
2756
|
+
output: output,
|
|
2757
|
+
parsedBody: parsedBody,
|
|
2758
|
+
exceptionCtor: __BaseException,
|
|
2759
|
+
errorCode: errorCode,
|
|
3142
2760
|
});
|
|
3143
|
-
|
|
2761
|
+
_d.label = 13;
|
|
2762
|
+
case 13: return [2];
|
|
3144
2763
|
}
|
|
3145
2764
|
});
|
|
3146
2765
|
}); };
|
|
@@ -3152,24 +2771,23 @@ export var deserializeAws_restJson1GetPortalCommand = function (output, context)
|
|
|
3152
2771
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3153
2772
|
return [2, deserializeAws_restJson1GetPortalCommandError(output, context)];
|
|
3154
2773
|
}
|
|
3155
|
-
contents = {
|
|
2774
|
+
contents = map({
|
|
3156
2775
|
$metadata: deserializeMetadata(output),
|
|
3157
|
-
|
|
3158
|
-
};
|
|
2776
|
+
});
|
|
3159
2777
|
_a = __expectNonNull;
|
|
3160
2778
|
_b = __expectObject;
|
|
3161
2779
|
return [4, parseBody(output.body, context)];
|
|
3162
2780
|
case 1:
|
|
3163
2781
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3164
|
-
if (data.portal
|
|
2782
|
+
if (data.portal != null) {
|
|
3165
2783
|
contents.portal = deserializeAws_restJson1Portal(data.portal, context);
|
|
3166
2784
|
}
|
|
3167
|
-
return [2,
|
|
2785
|
+
return [2, contents];
|
|
3168
2786
|
}
|
|
3169
2787
|
});
|
|
3170
2788
|
}); };
|
|
3171
2789
|
var deserializeAws_restJson1GetPortalCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3172
|
-
var parsedOutput, _a,
|
|
2790
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3173
2791
|
var _c;
|
|
3174
2792
|
return __generator(this, function (_d) {
|
|
3175
2793
|
switch (_d.label) {
|
|
@@ -3206,14 +2824,14 @@ var deserializeAws_restJson1GetPortalCommandError = function (output, context) {
|
|
|
3206
2824
|
case 11: throw _d.sent();
|
|
3207
2825
|
case 12:
|
|
3208
2826
|
parsedBody = parsedOutput.body;
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
$metadata: $metadata,
|
|
2827
|
+
throwDefaultError({
|
|
2828
|
+
output: output,
|
|
2829
|
+
parsedBody: parsedBody,
|
|
2830
|
+
exceptionCtor: __BaseException,
|
|
2831
|
+
errorCode: errorCode,
|
|
3215
2832
|
});
|
|
3216
|
-
|
|
2833
|
+
_d.label = 13;
|
|
2834
|
+
case 13: return [2];
|
|
3217
2835
|
}
|
|
3218
2836
|
});
|
|
3219
2837
|
}); };
|
|
@@ -3225,28 +2843,26 @@ export var deserializeAws_restJson1GetPortalServiceProviderMetadataCommand = fun
|
|
|
3225
2843
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3226
2844
|
return [2, deserializeAws_restJson1GetPortalServiceProviderMetadataCommandError(output, context)];
|
|
3227
2845
|
}
|
|
3228
|
-
contents = {
|
|
2846
|
+
contents = map({
|
|
3229
2847
|
$metadata: deserializeMetadata(output),
|
|
3230
|
-
|
|
3231
|
-
serviceProviderSamlMetadata: undefined,
|
|
3232
|
-
};
|
|
2848
|
+
});
|
|
3233
2849
|
_a = __expectNonNull;
|
|
3234
2850
|
_b = __expectObject;
|
|
3235
2851
|
return [4, parseBody(output.body, context)];
|
|
3236
2852
|
case 1:
|
|
3237
2853
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3238
|
-
if (data.portalArn
|
|
2854
|
+
if (data.portalArn != null) {
|
|
3239
2855
|
contents.portalArn = __expectString(data.portalArn);
|
|
3240
2856
|
}
|
|
3241
|
-
if (data.serviceProviderSamlMetadata
|
|
2857
|
+
if (data.serviceProviderSamlMetadata != null) {
|
|
3242
2858
|
contents.serviceProviderSamlMetadata = __expectString(data.serviceProviderSamlMetadata);
|
|
3243
2859
|
}
|
|
3244
|
-
return [2,
|
|
2860
|
+
return [2, contents];
|
|
3245
2861
|
}
|
|
3246
2862
|
});
|
|
3247
2863
|
}); };
|
|
3248
2864
|
var deserializeAws_restJson1GetPortalServiceProviderMetadataCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3249
|
-
var parsedOutput, _a,
|
|
2865
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3250
2866
|
var _c;
|
|
3251
2867
|
return __generator(this, function (_d) {
|
|
3252
2868
|
switch (_d.label) {
|
|
@@ -3283,14 +2899,14 @@ var deserializeAws_restJson1GetPortalServiceProviderMetadataCommandError = funct
|
|
|
3283
2899
|
case 11: throw _d.sent();
|
|
3284
2900
|
case 12:
|
|
3285
2901
|
parsedBody = parsedOutput.body;
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
$metadata: $metadata,
|
|
2902
|
+
throwDefaultError({
|
|
2903
|
+
output: output,
|
|
2904
|
+
parsedBody: parsedBody,
|
|
2905
|
+
exceptionCtor: __BaseException,
|
|
2906
|
+
errorCode: errorCode,
|
|
3292
2907
|
});
|
|
3293
|
-
|
|
2908
|
+
_d.label = 13;
|
|
2909
|
+
case 13: return [2];
|
|
3294
2910
|
}
|
|
3295
2911
|
});
|
|
3296
2912
|
}); };
|
|
@@ -3302,24 +2918,23 @@ export var deserializeAws_restJson1GetTrustStoreCommand = function (output, cont
|
|
|
3302
2918
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3303
2919
|
return [2, deserializeAws_restJson1GetTrustStoreCommandError(output, context)];
|
|
3304
2920
|
}
|
|
3305
|
-
contents = {
|
|
2921
|
+
contents = map({
|
|
3306
2922
|
$metadata: deserializeMetadata(output),
|
|
3307
|
-
|
|
3308
|
-
};
|
|
2923
|
+
});
|
|
3309
2924
|
_a = __expectNonNull;
|
|
3310
2925
|
_b = __expectObject;
|
|
3311
2926
|
return [4, parseBody(output.body, context)];
|
|
3312
2927
|
case 1:
|
|
3313
2928
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3314
|
-
if (data.trustStore
|
|
2929
|
+
if (data.trustStore != null) {
|
|
3315
2930
|
contents.trustStore = deserializeAws_restJson1TrustStore(data.trustStore, context);
|
|
3316
2931
|
}
|
|
3317
|
-
return [2,
|
|
2932
|
+
return [2, contents];
|
|
3318
2933
|
}
|
|
3319
2934
|
});
|
|
3320
2935
|
}); };
|
|
3321
2936
|
var deserializeAws_restJson1GetTrustStoreCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3322
|
-
var parsedOutput, _a,
|
|
2937
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3323
2938
|
var _c;
|
|
3324
2939
|
return __generator(this, function (_d) {
|
|
3325
2940
|
switch (_d.label) {
|
|
@@ -3356,14 +2971,14 @@ var deserializeAws_restJson1GetTrustStoreCommandError = function (output, contex
|
|
|
3356
2971
|
case 11: throw _d.sent();
|
|
3357
2972
|
case 12:
|
|
3358
2973
|
parsedBody = parsedOutput.body;
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
$metadata: $metadata,
|
|
2974
|
+
throwDefaultError({
|
|
2975
|
+
output: output,
|
|
2976
|
+
parsedBody: parsedBody,
|
|
2977
|
+
exceptionCtor: __BaseException,
|
|
2978
|
+
errorCode: errorCode,
|
|
3365
2979
|
});
|
|
3366
|
-
|
|
2980
|
+
_d.label = 13;
|
|
2981
|
+
case 13: return [2];
|
|
3367
2982
|
}
|
|
3368
2983
|
});
|
|
3369
2984
|
}); };
|
|
@@ -3375,28 +2990,26 @@ export var deserializeAws_restJson1GetTrustStoreCertificateCommand = function (o
|
|
|
3375
2990
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3376
2991
|
return [2, deserializeAws_restJson1GetTrustStoreCertificateCommandError(output, context)];
|
|
3377
2992
|
}
|
|
3378
|
-
contents = {
|
|
2993
|
+
contents = map({
|
|
3379
2994
|
$metadata: deserializeMetadata(output),
|
|
3380
|
-
|
|
3381
|
-
trustStoreArn: undefined,
|
|
3382
|
-
};
|
|
2995
|
+
});
|
|
3383
2996
|
_a = __expectNonNull;
|
|
3384
2997
|
_b = __expectObject;
|
|
3385
2998
|
return [4, parseBody(output.body, context)];
|
|
3386
2999
|
case 1:
|
|
3387
3000
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3388
|
-
if (data.certificate
|
|
3001
|
+
if (data.certificate != null) {
|
|
3389
3002
|
contents.certificate = deserializeAws_restJson1Certificate(data.certificate, context);
|
|
3390
3003
|
}
|
|
3391
|
-
if (data.trustStoreArn
|
|
3004
|
+
if (data.trustStoreArn != null) {
|
|
3392
3005
|
contents.trustStoreArn = __expectString(data.trustStoreArn);
|
|
3393
3006
|
}
|
|
3394
|
-
return [2,
|
|
3007
|
+
return [2, contents];
|
|
3395
3008
|
}
|
|
3396
3009
|
});
|
|
3397
3010
|
}); };
|
|
3398
3011
|
var deserializeAws_restJson1GetTrustStoreCertificateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3399
|
-
var parsedOutput, _a,
|
|
3012
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3400
3013
|
var _c;
|
|
3401
3014
|
return __generator(this, function (_d) {
|
|
3402
3015
|
switch (_d.label) {
|
|
@@ -3433,14 +3046,14 @@ var deserializeAws_restJson1GetTrustStoreCertificateCommandError = function (out
|
|
|
3433
3046
|
case 11: throw _d.sent();
|
|
3434
3047
|
case 12:
|
|
3435
3048
|
parsedBody = parsedOutput.body;
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
$metadata: $metadata,
|
|
3049
|
+
throwDefaultError({
|
|
3050
|
+
output: output,
|
|
3051
|
+
parsedBody: parsedBody,
|
|
3052
|
+
exceptionCtor: __BaseException,
|
|
3053
|
+
errorCode: errorCode,
|
|
3442
3054
|
});
|
|
3443
|
-
|
|
3055
|
+
_d.label = 13;
|
|
3056
|
+
case 13: return [2];
|
|
3444
3057
|
}
|
|
3445
3058
|
});
|
|
3446
3059
|
}); };
|
|
@@ -3452,24 +3065,23 @@ export var deserializeAws_restJson1GetUserSettingsCommand = function (output, co
|
|
|
3452
3065
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3453
3066
|
return [2, deserializeAws_restJson1GetUserSettingsCommandError(output, context)];
|
|
3454
3067
|
}
|
|
3455
|
-
contents = {
|
|
3068
|
+
contents = map({
|
|
3456
3069
|
$metadata: deserializeMetadata(output),
|
|
3457
|
-
|
|
3458
|
-
};
|
|
3070
|
+
});
|
|
3459
3071
|
_a = __expectNonNull;
|
|
3460
3072
|
_b = __expectObject;
|
|
3461
3073
|
return [4, parseBody(output.body, context)];
|
|
3462
3074
|
case 1:
|
|
3463
3075
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3464
|
-
if (data.userSettings
|
|
3076
|
+
if (data.userSettings != null) {
|
|
3465
3077
|
contents.userSettings = deserializeAws_restJson1UserSettings(data.userSettings, context);
|
|
3466
3078
|
}
|
|
3467
|
-
return [2,
|
|
3079
|
+
return [2, contents];
|
|
3468
3080
|
}
|
|
3469
3081
|
});
|
|
3470
3082
|
}); };
|
|
3471
3083
|
var deserializeAws_restJson1GetUserSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3472
|
-
var parsedOutput, _a,
|
|
3084
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3473
3085
|
var _c;
|
|
3474
3086
|
return __generator(this, function (_d) {
|
|
3475
3087
|
switch (_d.label) {
|
|
@@ -3506,14 +3118,14 @@ var deserializeAws_restJson1GetUserSettingsCommandError = function (output, cont
|
|
|
3506
3118
|
case 11: throw _d.sent();
|
|
3507
3119
|
case 12:
|
|
3508
3120
|
parsedBody = parsedOutput.body;
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
$metadata: $metadata,
|
|
3121
|
+
throwDefaultError({
|
|
3122
|
+
output: output,
|
|
3123
|
+
parsedBody: parsedBody,
|
|
3124
|
+
exceptionCtor: __BaseException,
|
|
3125
|
+
errorCode: errorCode,
|
|
3515
3126
|
});
|
|
3516
|
-
|
|
3127
|
+
_d.label = 13;
|
|
3128
|
+
case 13: return [2];
|
|
3517
3129
|
}
|
|
3518
3130
|
});
|
|
3519
3131
|
}); };
|
|
@@ -3525,28 +3137,26 @@ export var deserializeAws_restJson1ListBrowserSettingsCommand = function (output
|
|
|
3525
3137
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3526
3138
|
return [2, deserializeAws_restJson1ListBrowserSettingsCommandError(output, context)];
|
|
3527
3139
|
}
|
|
3528
|
-
contents = {
|
|
3140
|
+
contents = map({
|
|
3529
3141
|
$metadata: deserializeMetadata(output),
|
|
3530
|
-
|
|
3531
|
-
nextToken: undefined,
|
|
3532
|
-
};
|
|
3142
|
+
});
|
|
3533
3143
|
_a = __expectNonNull;
|
|
3534
3144
|
_b = __expectObject;
|
|
3535
3145
|
return [4, parseBody(output.body, context)];
|
|
3536
3146
|
case 1:
|
|
3537
3147
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3538
|
-
if (data.browserSettings
|
|
3148
|
+
if (data.browserSettings != null) {
|
|
3539
3149
|
contents.browserSettings = deserializeAws_restJson1BrowserSettingsList(data.browserSettings, context);
|
|
3540
3150
|
}
|
|
3541
|
-
if (data.nextToken
|
|
3151
|
+
if (data.nextToken != null) {
|
|
3542
3152
|
contents.nextToken = __expectString(data.nextToken);
|
|
3543
3153
|
}
|
|
3544
|
-
return [2,
|
|
3154
|
+
return [2, contents];
|
|
3545
3155
|
}
|
|
3546
3156
|
});
|
|
3547
3157
|
}); };
|
|
3548
3158
|
var deserializeAws_restJson1ListBrowserSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3549
|
-
var parsedOutput, _a,
|
|
3159
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3550
3160
|
var _c;
|
|
3551
3161
|
return __generator(this, function (_d) {
|
|
3552
3162
|
switch (_d.label) {
|
|
@@ -3579,14 +3189,14 @@ var deserializeAws_restJson1ListBrowserSettingsCommandError = function (output,
|
|
|
3579
3189
|
case 9: throw _d.sent();
|
|
3580
3190
|
case 10:
|
|
3581
3191
|
parsedBody = parsedOutput.body;
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
$metadata: $metadata,
|
|
3192
|
+
throwDefaultError({
|
|
3193
|
+
output: output,
|
|
3194
|
+
parsedBody: parsedBody,
|
|
3195
|
+
exceptionCtor: __BaseException,
|
|
3196
|
+
errorCode: errorCode,
|
|
3588
3197
|
});
|
|
3589
|
-
|
|
3198
|
+
_d.label = 11;
|
|
3199
|
+
case 11: return [2];
|
|
3590
3200
|
}
|
|
3591
3201
|
});
|
|
3592
3202
|
}); };
|
|
@@ -3598,28 +3208,26 @@ export var deserializeAws_restJson1ListIdentityProvidersCommand = function (outp
|
|
|
3598
3208
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3599
3209
|
return [2, deserializeAws_restJson1ListIdentityProvidersCommandError(output, context)];
|
|
3600
3210
|
}
|
|
3601
|
-
contents = {
|
|
3211
|
+
contents = map({
|
|
3602
3212
|
$metadata: deserializeMetadata(output),
|
|
3603
|
-
|
|
3604
|
-
nextToken: undefined,
|
|
3605
|
-
};
|
|
3213
|
+
});
|
|
3606
3214
|
_a = __expectNonNull;
|
|
3607
3215
|
_b = __expectObject;
|
|
3608
3216
|
return [4, parseBody(output.body, context)];
|
|
3609
3217
|
case 1:
|
|
3610
3218
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3611
|
-
if (data.identityProviders
|
|
3219
|
+
if (data.identityProviders != null) {
|
|
3612
3220
|
contents.identityProviders = deserializeAws_restJson1IdentityProviderList(data.identityProviders, context);
|
|
3613
3221
|
}
|
|
3614
|
-
if (data.nextToken
|
|
3222
|
+
if (data.nextToken != null) {
|
|
3615
3223
|
contents.nextToken = __expectString(data.nextToken);
|
|
3616
3224
|
}
|
|
3617
|
-
return [2,
|
|
3225
|
+
return [2, contents];
|
|
3618
3226
|
}
|
|
3619
3227
|
});
|
|
3620
3228
|
}); };
|
|
3621
3229
|
var deserializeAws_restJson1ListIdentityProvidersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3622
|
-
var parsedOutput, _a,
|
|
3230
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3623
3231
|
var _c;
|
|
3624
3232
|
return __generator(this, function (_d) {
|
|
3625
3233
|
switch (_d.label) {
|
|
@@ -3652,14 +3260,14 @@ var deserializeAws_restJson1ListIdentityProvidersCommandError = function (output
|
|
|
3652
3260
|
case 9: throw _d.sent();
|
|
3653
3261
|
case 10:
|
|
3654
3262
|
parsedBody = parsedOutput.body;
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
$metadata: $metadata,
|
|
3263
|
+
throwDefaultError({
|
|
3264
|
+
output: output,
|
|
3265
|
+
parsedBody: parsedBody,
|
|
3266
|
+
exceptionCtor: __BaseException,
|
|
3267
|
+
errorCode: errorCode,
|
|
3661
3268
|
});
|
|
3662
|
-
|
|
3269
|
+
_d.label = 11;
|
|
3270
|
+
case 11: return [2];
|
|
3663
3271
|
}
|
|
3664
3272
|
});
|
|
3665
3273
|
}); };
|
|
@@ -3671,28 +3279,26 @@ export var deserializeAws_restJson1ListNetworkSettingsCommand = function (output
|
|
|
3671
3279
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3672
3280
|
return [2, deserializeAws_restJson1ListNetworkSettingsCommandError(output, context)];
|
|
3673
3281
|
}
|
|
3674
|
-
contents = {
|
|
3282
|
+
contents = map({
|
|
3675
3283
|
$metadata: deserializeMetadata(output),
|
|
3676
|
-
|
|
3677
|
-
nextToken: undefined,
|
|
3678
|
-
};
|
|
3284
|
+
});
|
|
3679
3285
|
_a = __expectNonNull;
|
|
3680
3286
|
_b = __expectObject;
|
|
3681
3287
|
return [4, parseBody(output.body, context)];
|
|
3682
3288
|
case 1:
|
|
3683
3289
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3684
|
-
if (data.networkSettings
|
|
3290
|
+
if (data.networkSettings != null) {
|
|
3685
3291
|
contents.networkSettings = deserializeAws_restJson1NetworkSettingsList(data.networkSettings, context);
|
|
3686
3292
|
}
|
|
3687
|
-
if (data.nextToken
|
|
3293
|
+
if (data.nextToken != null) {
|
|
3688
3294
|
contents.nextToken = __expectString(data.nextToken);
|
|
3689
3295
|
}
|
|
3690
|
-
return [2,
|
|
3296
|
+
return [2, contents];
|
|
3691
3297
|
}
|
|
3692
3298
|
});
|
|
3693
3299
|
}); };
|
|
3694
3300
|
var deserializeAws_restJson1ListNetworkSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3695
|
-
var parsedOutput, _a,
|
|
3301
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3696
3302
|
var _c;
|
|
3697
3303
|
return __generator(this, function (_d) {
|
|
3698
3304
|
switch (_d.label) {
|
|
@@ -3725,14 +3331,14 @@ var deserializeAws_restJson1ListNetworkSettingsCommandError = function (output,
|
|
|
3725
3331
|
case 9: throw _d.sent();
|
|
3726
3332
|
case 10:
|
|
3727
3333
|
parsedBody = parsedOutput.body;
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
$metadata: $metadata,
|
|
3334
|
+
throwDefaultError({
|
|
3335
|
+
output: output,
|
|
3336
|
+
parsedBody: parsedBody,
|
|
3337
|
+
exceptionCtor: __BaseException,
|
|
3338
|
+
errorCode: errorCode,
|
|
3734
3339
|
});
|
|
3735
|
-
|
|
3340
|
+
_d.label = 11;
|
|
3341
|
+
case 11: return [2];
|
|
3736
3342
|
}
|
|
3737
3343
|
});
|
|
3738
3344
|
}); };
|
|
@@ -3744,28 +3350,26 @@ export var deserializeAws_restJson1ListPortalsCommand = function (output, contex
|
|
|
3744
3350
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3745
3351
|
return [2, deserializeAws_restJson1ListPortalsCommandError(output, context)];
|
|
3746
3352
|
}
|
|
3747
|
-
contents = {
|
|
3353
|
+
contents = map({
|
|
3748
3354
|
$metadata: deserializeMetadata(output),
|
|
3749
|
-
|
|
3750
|
-
portals: undefined,
|
|
3751
|
-
};
|
|
3355
|
+
});
|
|
3752
3356
|
_a = __expectNonNull;
|
|
3753
3357
|
_b = __expectObject;
|
|
3754
3358
|
return [4, parseBody(output.body, context)];
|
|
3755
3359
|
case 1:
|
|
3756
3360
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3757
|
-
if (data.nextToken
|
|
3361
|
+
if (data.nextToken != null) {
|
|
3758
3362
|
contents.nextToken = __expectString(data.nextToken);
|
|
3759
3363
|
}
|
|
3760
|
-
if (data.portals
|
|
3364
|
+
if (data.portals != null) {
|
|
3761
3365
|
contents.portals = deserializeAws_restJson1PortalList(data.portals, context);
|
|
3762
3366
|
}
|
|
3763
|
-
return [2,
|
|
3367
|
+
return [2, contents];
|
|
3764
3368
|
}
|
|
3765
3369
|
});
|
|
3766
3370
|
}); };
|
|
3767
3371
|
var deserializeAws_restJson1ListPortalsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3768
|
-
var parsedOutput, _a,
|
|
3372
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3769
3373
|
var _c;
|
|
3770
3374
|
return __generator(this, function (_d) {
|
|
3771
3375
|
switch (_d.label) {
|
|
@@ -3798,14 +3402,14 @@ var deserializeAws_restJson1ListPortalsCommandError = function (output, context)
|
|
|
3798
3402
|
case 9: throw _d.sent();
|
|
3799
3403
|
case 10:
|
|
3800
3404
|
parsedBody = parsedOutput.body;
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
$metadata: $metadata,
|
|
3405
|
+
throwDefaultError({
|
|
3406
|
+
output: output,
|
|
3407
|
+
parsedBody: parsedBody,
|
|
3408
|
+
exceptionCtor: __BaseException,
|
|
3409
|
+
errorCode: errorCode,
|
|
3807
3410
|
});
|
|
3808
|
-
|
|
3411
|
+
_d.label = 11;
|
|
3412
|
+
case 11: return [2];
|
|
3809
3413
|
}
|
|
3810
3414
|
});
|
|
3811
3415
|
}); };
|
|
@@ -3817,24 +3421,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
3817
3421
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3818
3422
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
3819
3423
|
}
|
|
3820
|
-
contents = {
|
|
3424
|
+
contents = map({
|
|
3821
3425
|
$metadata: deserializeMetadata(output),
|
|
3822
|
-
|
|
3823
|
-
};
|
|
3426
|
+
});
|
|
3824
3427
|
_a = __expectNonNull;
|
|
3825
3428
|
_b = __expectObject;
|
|
3826
3429
|
return [4, parseBody(output.body, context)];
|
|
3827
3430
|
case 1:
|
|
3828
3431
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3829
|
-
if (data.tags
|
|
3432
|
+
if (data.tags != null) {
|
|
3830
3433
|
contents.tags = deserializeAws_restJson1TagList(data.tags, context);
|
|
3831
3434
|
}
|
|
3832
|
-
return [2,
|
|
3435
|
+
return [2, contents];
|
|
3833
3436
|
}
|
|
3834
3437
|
});
|
|
3835
3438
|
}); };
|
|
3836
3439
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3837
|
-
var parsedOutput, _a,
|
|
3440
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3838
3441
|
var _c;
|
|
3839
3442
|
return __generator(this, function (_d) {
|
|
3840
3443
|
switch (_d.label) {
|
|
@@ -3871,14 +3474,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
3871
3474
|
case 11: throw _d.sent();
|
|
3872
3475
|
case 12:
|
|
3873
3476
|
parsedBody = parsedOutput.body;
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
$metadata: $metadata,
|
|
3477
|
+
throwDefaultError({
|
|
3478
|
+
output: output,
|
|
3479
|
+
parsedBody: parsedBody,
|
|
3480
|
+
exceptionCtor: __BaseException,
|
|
3481
|
+
errorCode: errorCode,
|
|
3880
3482
|
});
|
|
3881
|
-
|
|
3483
|
+
_d.label = 13;
|
|
3484
|
+
case 13: return [2];
|
|
3882
3485
|
}
|
|
3883
3486
|
});
|
|
3884
3487
|
}); };
|
|
@@ -3890,32 +3493,29 @@ export var deserializeAws_restJson1ListTrustStoreCertificatesCommand = function
|
|
|
3890
3493
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3891
3494
|
return [2, deserializeAws_restJson1ListTrustStoreCertificatesCommandError(output, context)];
|
|
3892
3495
|
}
|
|
3893
|
-
contents = {
|
|
3496
|
+
contents = map({
|
|
3894
3497
|
$metadata: deserializeMetadata(output),
|
|
3895
|
-
|
|
3896
|
-
nextToken: undefined,
|
|
3897
|
-
trustStoreArn: undefined,
|
|
3898
|
-
};
|
|
3498
|
+
});
|
|
3899
3499
|
_a = __expectNonNull;
|
|
3900
3500
|
_b = __expectObject;
|
|
3901
3501
|
return [4, parseBody(output.body, context)];
|
|
3902
3502
|
case 1:
|
|
3903
3503
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3904
|
-
if (data.certificateList
|
|
3504
|
+
if (data.certificateList != null) {
|
|
3905
3505
|
contents.certificateList = deserializeAws_restJson1CertificateSummaryList(data.certificateList, context);
|
|
3906
3506
|
}
|
|
3907
|
-
if (data.nextToken
|
|
3507
|
+
if (data.nextToken != null) {
|
|
3908
3508
|
contents.nextToken = __expectString(data.nextToken);
|
|
3909
3509
|
}
|
|
3910
|
-
if (data.trustStoreArn
|
|
3510
|
+
if (data.trustStoreArn != null) {
|
|
3911
3511
|
contents.trustStoreArn = __expectString(data.trustStoreArn);
|
|
3912
3512
|
}
|
|
3913
|
-
return [2,
|
|
3513
|
+
return [2, contents];
|
|
3914
3514
|
}
|
|
3915
3515
|
});
|
|
3916
3516
|
}); };
|
|
3917
3517
|
var deserializeAws_restJson1ListTrustStoreCertificatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3918
|
-
var parsedOutput, _a,
|
|
3518
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3919
3519
|
var _c;
|
|
3920
3520
|
return __generator(this, function (_d) {
|
|
3921
3521
|
switch (_d.label) {
|
|
@@ -3952,14 +3552,14 @@ var deserializeAws_restJson1ListTrustStoreCertificatesCommandError = function (o
|
|
|
3952
3552
|
case 11: throw _d.sent();
|
|
3953
3553
|
case 12:
|
|
3954
3554
|
parsedBody = parsedOutput.body;
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
$metadata: $metadata,
|
|
3555
|
+
throwDefaultError({
|
|
3556
|
+
output: output,
|
|
3557
|
+
parsedBody: parsedBody,
|
|
3558
|
+
exceptionCtor: __BaseException,
|
|
3559
|
+
errorCode: errorCode,
|
|
3961
3560
|
});
|
|
3962
|
-
|
|
3561
|
+
_d.label = 13;
|
|
3562
|
+
case 13: return [2];
|
|
3963
3563
|
}
|
|
3964
3564
|
});
|
|
3965
3565
|
}); };
|
|
@@ -3971,28 +3571,26 @@ export var deserializeAws_restJson1ListTrustStoresCommand = function (output, co
|
|
|
3971
3571
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3972
3572
|
return [2, deserializeAws_restJson1ListTrustStoresCommandError(output, context)];
|
|
3973
3573
|
}
|
|
3974
|
-
contents = {
|
|
3574
|
+
contents = map({
|
|
3975
3575
|
$metadata: deserializeMetadata(output),
|
|
3976
|
-
|
|
3977
|
-
trustStores: undefined,
|
|
3978
|
-
};
|
|
3576
|
+
});
|
|
3979
3577
|
_a = __expectNonNull;
|
|
3980
3578
|
_b = __expectObject;
|
|
3981
3579
|
return [4, parseBody(output.body, context)];
|
|
3982
3580
|
case 1:
|
|
3983
3581
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3984
|
-
if (data.nextToken
|
|
3582
|
+
if (data.nextToken != null) {
|
|
3985
3583
|
contents.nextToken = __expectString(data.nextToken);
|
|
3986
3584
|
}
|
|
3987
|
-
if (data.trustStores
|
|
3585
|
+
if (data.trustStores != null) {
|
|
3988
3586
|
contents.trustStores = deserializeAws_restJson1TrustStoreSummaryList(data.trustStores, context);
|
|
3989
3587
|
}
|
|
3990
|
-
return [2,
|
|
3588
|
+
return [2, contents];
|
|
3991
3589
|
}
|
|
3992
3590
|
});
|
|
3993
3591
|
}); };
|
|
3994
3592
|
var deserializeAws_restJson1ListTrustStoresCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3995
|
-
var parsedOutput, _a,
|
|
3593
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3996
3594
|
var _c;
|
|
3997
3595
|
return __generator(this, function (_d) {
|
|
3998
3596
|
switch (_d.label) {
|
|
@@ -4025,14 +3623,14 @@ var deserializeAws_restJson1ListTrustStoresCommandError = function (output, cont
|
|
|
4025
3623
|
case 9: throw _d.sent();
|
|
4026
3624
|
case 10:
|
|
4027
3625
|
parsedBody = parsedOutput.body;
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
$metadata: $metadata,
|
|
3626
|
+
throwDefaultError({
|
|
3627
|
+
output: output,
|
|
3628
|
+
parsedBody: parsedBody,
|
|
3629
|
+
exceptionCtor: __BaseException,
|
|
3630
|
+
errorCode: errorCode,
|
|
4034
3631
|
});
|
|
4035
|
-
|
|
3632
|
+
_d.label = 11;
|
|
3633
|
+
case 11: return [2];
|
|
4036
3634
|
}
|
|
4037
3635
|
});
|
|
4038
3636
|
}); };
|
|
@@ -4044,28 +3642,26 @@ export var deserializeAws_restJson1ListUserSettingsCommand = function (output, c
|
|
|
4044
3642
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4045
3643
|
return [2, deserializeAws_restJson1ListUserSettingsCommandError(output, context)];
|
|
4046
3644
|
}
|
|
4047
|
-
contents = {
|
|
3645
|
+
contents = map({
|
|
4048
3646
|
$metadata: deserializeMetadata(output),
|
|
4049
|
-
|
|
4050
|
-
userSettings: undefined,
|
|
4051
|
-
};
|
|
3647
|
+
});
|
|
4052
3648
|
_a = __expectNonNull;
|
|
4053
3649
|
_b = __expectObject;
|
|
4054
3650
|
return [4, parseBody(output.body, context)];
|
|
4055
3651
|
case 1:
|
|
4056
3652
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4057
|
-
if (data.nextToken
|
|
3653
|
+
if (data.nextToken != null) {
|
|
4058
3654
|
contents.nextToken = __expectString(data.nextToken);
|
|
4059
3655
|
}
|
|
4060
|
-
if (data.userSettings
|
|
3656
|
+
if (data.userSettings != null) {
|
|
4061
3657
|
contents.userSettings = deserializeAws_restJson1UserSettingsList(data.userSettings, context);
|
|
4062
3658
|
}
|
|
4063
|
-
return [2,
|
|
3659
|
+
return [2, contents];
|
|
4064
3660
|
}
|
|
4065
3661
|
});
|
|
4066
3662
|
}); };
|
|
4067
3663
|
var deserializeAws_restJson1ListUserSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4068
|
-
var parsedOutput, _a,
|
|
3664
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4069
3665
|
var _c;
|
|
4070
3666
|
return __generator(this, function (_d) {
|
|
4071
3667
|
switch (_d.label) {
|
|
@@ -4098,14 +3694,14 @@ var deserializeAws_restJson1ListUserSettingsCommandError = function (output, con
|
|
|
4098
3694
|
case 9: throw _d.sent();
|
|
4099
3695
|
case 10:
|
|
4100
3696
|
parsedBody = parsedOutput.body;
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
$metadata: $metadata,
|
|
3697
|
+
throwDefaultError({
|
|
3698
|
+
output: output,
|
|
3699
|
+
parsedBody: parsedBody,
|
|
3700
|
+
exceptionCtor: __BaseException,
|
|
3701
|
+
errorCode: errorCode,
|
|
4107
3702
|
});
|
|
4108
|
-
|
|
3703
|
+
_d.label = 11;
|
|
3704
|
+
case 11: return [2];
|
|
4109
3705
|
}
|
|
4110
3706
|
});
|
|
4111
3707
|
}); };
|
|
@@ -4117,18 +3713,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
4117
3713
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4118
3714
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
4119
3715
|
}
|
|
4120
|
-
contents = {
|
|
3716
|
+
contents = map({
|
|
4121
3717
|
$metadata: deserializeMetadata(output),
|
|
4122
|
-
};
|
|
3718
|
+
});
|
|
4123
3719
|
return [4, collectBody(output.body, context)];
|
|
4124
3720
|
case 1:
|
|
4125
3721
|
_a.sent();
|
|
4126
|
-
return [2,
|
|
3722
|
+
return [2, contents];
|
|
4127
3723
|
}
|
|
4128
3724
|
});
|
|
4129
3725
|
}); };
|
|
4130
3726
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4131
|
-
var parsedOutput, _a,
|
|
3727
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4132
3728
|
var _c;
|
|
4133
3729
|
return __generator(this, function (_d) {
|
|
4134
3730
|
switch (_d.label) {
|
|
@@ -4169,14 +3765,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
4169
3765
|
case 13: throw _d.sent();
|
|
4170
3766
|
case 14:
|
|
4171
3767
|
parsedBody = parsedOutput.body;
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
$metadata: $metadata,
|
|
3768
|
+
throwDefaultError({
|
|
3769
|
+
output: output,
|
|
3770
|
+
parsedBody: parsedBody,
|
|
3771
|
+
exceptionCtor: __BaseException,
|
|
3772
|
+
errorCode: errorCode,
|
|
4178
3773
|
});
|
|
4179
|
-
|
|
3774
|
+
_d.label = 15;
|
|
3775
|
+
case 15: return [2];
|
|
4180
3776
|
}
|
|
4181
3777
|
});
|
|
4182
3778
|
}); };
|
|
@@ -4188,18 +3784,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
4188
3784
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4189
3785
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
4190
3786
|
}
|
|
4191
|
-
contents = {
|
|
3787
|
+
contents = map({
|
|
4192
3788
|
$metadata: deserializeMetadata(output),
|
|
4193
|
-
};
|
|
3789
|
+
});
|
|
4194
3790
|
return [4, collectBody(output.body, context)];
|
|
4195
3791
|
case 1:
|
|
4196
3792
|
_a.sent();
|
|
4197
|
-
return [2,
|
|
3793
|
+
return [2, contents];
|
|
4198
3794
|
}
|
|
4199
3795
|
});
|
|
4200
3796
|
}); };
|
|
4201
3797
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4202
|
-
var parsedOutput, _a,
|
|
3798
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4203
3799
|
var _c;
|
|
4204
3800
|
return __generator(this, function (_d) {
|
|
4205
3801
|
switch (_d.label) {
|
|
@@ -4236,14 +3832,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
4236
3832
|
case 11: throw _d.sent();
|
|
4237
3833
|
case 12:
|
|
4238
3834
|
parsedBody = parsedOutput.body;
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
$metadata: $metadata,
|
|
3835
|
+
throwDefaultError({
|
|
3836
|
+
output: output,
|
|
3837
|
+
parsedBody: parsedBody,
|
|
3838
|
+
exceptionCtor: __BaseException,
|
|
3839
|
+
errorCode: errorCode,
|
|
4245
3840
|
});
|
|
4246
|
-
|
|
3841
|
+
_d.label = 13;
|
|
3842
|
+
case 13: return [2];
|
|
4247
3843
|
}
|
|
4248
3844
|
});
|
|
4249
3845
|
}); };
|
|
@@ -4255,24 +3851,23 @@ export var deserializeAws_restJson1UpdateBrowserSettingsCommand = function (outp
|
|
|
4255
3851
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4256
3852
|
return [2, deserializeAws_restJson1UpdateBrowserSettingsCommandError(output, context)];
|
|
4257
3853
|
}
|
|
4258
|
-
contents = {
|
|
3854
|
+
contents = map({
|
|
4259
3855
|
$metadata: deserializeMetadata(output),
|
|
4260
|
-
|
|
4261
|
-
};
|
|
3856
|
+
});
|
|
4262
3857
|
_a = __expectNonNull;
|
|
4263
3858
|
_b = __expectObject;
|
|
4264
3859
|
return [4, parseBody(output.body, context)];
|
|
4265
3860
|
case 1:
|
|
4266
3861
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4267
|
-
if (data.browserSettings
|
|
3862
|
+
if (data.browserSettings != null) {
|
|
4268
3863
|
contents.browserSettings = deserializeAws_restJson1BrowserSettings(data.browserSettings, context);
|
|
4269
3864
|
}
|
|
4270
|
-
return [2,
|
|
3865
|
+
return [2, contents];
|
|
4271
3866
|
}
|
|
4272
3867
|
});
|
|
4273
3868
|
}); };
|
|
4274
3869
|
var deserializeAws_restJson1UpdateBrowserSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4275
|
-
var parsedOutput, _a,
|
|
3870
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4276
3871
|
var _c;
|
|
4277
3872
|
return __generator(this, function (_d) {
|
|
4278
3873
|
switch (_d.label) {
|
|
@@ -4309,14 +3904,14 @@ var deserializeAws_restJson1UpdateBrowserSettingsCommandError = function (output
|
|
|
4309
3904
|
case 11: throw _d.sent();
|
|
4310
3905
|
case 12:
|
|
4311
3906
|
parsedBody = parsedOutput.body;
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
$metadata: $metadata,
|
|
3907
|
+
throwDefaultError({
|
|
3908
|
+
output: output,
|
|
3909
|
+
parsedBody: parsedBody,
|
|
3910
|
+
exceptionCtor: __BaseException,
|
|
3911
|
+
errorCode: errorCode,
|
|
4318
3912
|
});
|
|
4319
|
-
|
|
3913
|
+
_d.label = 13;
|
|
3914
|
+
case 13: return [2];
|
|
4320
3915
|
}
|
|
4321
3916
|
});
|
|
4322
3917
|
}); };
|
|
@@ -4328,24 +3923,23 @@ export var deserializeAws_restJson1UpdateIdentityProviderCommand = function (out
|
|
|
4328
3923
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4329
3924
|
return [2, deserializeAws_restJson1UpdateIdentityProviderCommandError(output, context)];
|
|
4330
3925
|
}
|
|
4331
|
-
contents = {
|
|
3926
|
+
contents = map({
|
|
4332
3927
|
$metadata: deserializeMetadata(output),
|
|
4333
|
-
|
|
4334
|
-
};
|
|
3928
|
+
});
|
|
4335
3929
|
_a = __expectNonNull;
|
|
4336
3930
|
_b = __expectObject;
|
|
4337
3931
|
return [4, parseBody(output.body, context)];
|
|
4338
3932
|
case 1:
|
|
4339
3933
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4340
|
-
if (data.identityProvider
|
|
3934
|
+
if (data.identityProvider != null) {
|
|
4341
3935
|
contents.identityProvider = deserializeAws_restJson1IdentityProvider(data.identityProvider, context);
|
|
4342
3936
|
}
|
|
4343
|
-
return [2,
|
|
3937
|
+
return [2, contents];
|
|
4344
3938
|
}
|
|
4345
3939
|
});
|
|
4346
3940
|
}); };
|
|
4347
3941
|
var deserializeAws_restJson1UpdateIdentityProviderCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4348
|
-
var parsedOutput, _a,
|
|
3942
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4349
3943
|
var _c;
|
|
4350
3944
|
return __generator(this, function (_d) {
|
|
4351
3945
|
switch (_d.label) {
|
|
@@ -4382,14 +3976,14 @@ var deserializeAws_restJson1UpdateIdentityProviderCommandError = function (outpu
|
|
|
4382
3976
|
case 11: throw _d.sent();
|
|
4383
3977
|
case 12:
|
|
4384
3978
|
parsedBody = parsedOutput.body;
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
$metadata: $metadata,
|
|
3979
|
+
throwDefaultError({
|
|
3980
|
+
output: output,
|
|
3981
|
+
parsedBody: parsedBody,
|
|
3982
|
+
exceptionCtor: __BaseException,
|
|
3983
|
+
errorCode: errorCode,
|
|
4391
3984
|
});
|
|
4392
|
-
|
|
3985
|
+
_d.label = 13;
|
|
3986
|
+
case 13: return [2];
|
|
4393
3987
|
}
|
|
4394
3988
|
});
|
|
4395
3989
|
}); };
|
|
@@ -4401,24 +3995,23 @@ export var deserializeAws_restJson1UpdateNetworkSettingsCommand = function (outp
|
|
|
4401
3995
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4402
3996
|
return [2, deserializeAws_restJson1UpdateNetworkSettingsCommandError(output, context)];
|
|
4403
3997
|
}
|
|
4404
|
-
contents = {
|
|
3998
|
+
contents = map({
|
|
4405
3999
|
$metadata: deserializeMetadata(output),
|
|
4406
|
-
|
|
4407
|
-
};
|
|
4000
|
+
});
|
|
4408
4001
|
_a = __expectNonNull;
|
|
4409
4002
|
_b = __expectObject;
|
|
4410
4003
|
return [4, parseBody(output.body, context)];
|
|
4411
4004
|
case 1:
|
|
4412
4005
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4413
|
-
if (data.networkSettings
|
|
4006
|
+
if (data.networkSettings != null) {
|
|
4414
4007
|
contents.networkSettings = deserializeAws_restJson1NetworkSettings(data.networkSettings, context);
|
|
4415
4008
|
}
|
|
4416
|
-
return [2,
|
|
4009
|
+
return [2, contents];
|
|
4417
4010
|
}
|
|
4418
4011
|
});
|
|
4419
4012
|
}); };
|
|
4420
4013
|
var deserializeAws_restJson1UpdateNetworkSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4421
|
-
var parsedOutput, _a,
|
|
4014
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4422
4015
|
var _c;
|
|
4423
4016
|
return __generator(this, function (_d) {
|
|
4424
4017
|
switch (_d.label) {
|
|
@@ -4455,14 +4048,14 @@ var deserializeAws_restJson1UpdateNetworkSettingsCommandError = function (output
|
|
|
4455
4048
|
case 11: throw _d.sent();
|
|
4456
4049
|
case 12:
|
|
4457
4050
|
parsedBody = parsedOutput.body;
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
$metadata: $metadata,
|
|
4051
|
+
throwDefaultError({
|
|
4052
|
+
output: output,
|
|
4053
|
+
parsedBody: parsedBody,
|
|
4054
|
+
exceptionCtor: __BaseException,
|
|
4055
|
+
errorCode: errorCode,
|
|
4464
4056
|
});
|
|
4465
|
-
|
|
4057
|
+
_d.label = 13;
|
|
4058
|
+
case 13: return [2];
|
|
4466
4059
|
}
|
|
4467
4060
|
});
|
|
4468
4061
|
}); };
|
|
@@ -4474,24 +4067,23 @@ export var deserializeAws_restJson1UpdatePortalCommand = function (output, conte
|
|
|
4474
4067
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4475
4068
|
return [2, deserializeAws_restJson1UpdatePortalCommandError(output, context)];
|
|
4476
4069
|
}
|
|
4477
|
-
contents = {
|
|
4070
|
+
contents = map({
|
|
4478
4071
|
$metadata: deserializeMetadata(output),
|
|
4479
|
-
|
|
4480
|
-
};
|
|
4072
|
+
});
|
|
4481
4073
|
_a = __expectNonNull;
|
|
4482
4074
|
_b = __expectObject;
|
|
4483
4075
|
return [4, parseBody(output.body, context)];
|
|
4484
4076
|
case 1:
|
|
4485
4077
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4486
|
-
if (data.portal
|
|
4078
|
+
if (data.portal != null) {
|
|
4487
4079
|
contents.portal = deserializeAws_restJson1Portal(data.portal, context);
|
|
4488
4080
|
}
|
|
4489
|
-
return [2,
|
|
4081
|
+
return [2, contents];
|
|
4490
4082
|
}
|
|
4491
4083
|
});
|
|
4492
4084
|
}); };
|
|
4493
4085
|
var deserializeAws_restJson1UpdatePortalCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4494
|
-
var parsedOutput, _a,
|
|
4086
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4495
4087
|
var _c;
|
|
4496
4088
|
return __generator(this, function (_d) {
|
|
4497
4089
|
switch (_d.label) {
|
|
@@ -4528,14 +4120,14 @@ var deserializeAws_restJson1UpdatePortalCommandError = function (output, context
|
|
|
4528
4120
|
case 11: throw _d.sent();
|
|
4529
4121
|
case 12:
|
|
4530
4122
|
parsedBody = parsedOutput.body;
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
$metadata: $metadata,
|
|
4123
|
+
throwDefaultError({
|
|
4124
|
+
output: output,
|
|
4125
|
+
parsedBody: parsedBody,
|
|
4126
|
+
exceptionCtor: __BaseException,
|
|
4127
|
+
errorCode: errorCode,
|
|
4537
4128
|
});
|
|
4538
|
-
|
|
4129
|
+
_d.label = 13;
|
|
4130
|
+
case 13: return [2];
|
|
4539
4131
|
}
|
|
4540
4132
|
});
|
|
4541
4133
|
}); };
|
|
@@ -4547,24 +4139,23 @@ export var deserializeAws_restJson1UpdateTrustStoreCommand = function (output, c
|
|
|
4547
4139
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4548
4140
|
return [2, deserializeAws_restJson1UpdateTrustStoreCommandError(output, context)];
|
|
4549
4141
|
}
|
|
4550
|
-
contents = {
|
|
4142
|
+
contents = map({
|
|
4551
4143
|
$metadata: deserializeMetadata(output),
|
|
4552
|
-
|
|
4553
|
-
};
|
|
4144
|
+
});
|
|
4554
4145
|
_a = __expectNonNull;
|
|
4555
4146
|
_b = __expectObject;
|
|
4556
4147
|
return [4, parseBody(output.body, context)];
|
|
4557
4148
|
case 1:
|
|
4558
4149
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4559
|
-
if (data.trustStoreArn
|
|
4150
|
+
if (data.trustStoreArn != null) {
|
|
4560
4151
|
contents.trustStoreArn = __expectString(data.trustStoreArn);
|
|
4561
4152
|
}
|
|
4562
|
-
return [2,
|
|
4153
|
+
return [2, contents];
|
|
4563
4154
|
}
|
|
4564
4155
|
});
|
|
4565
4156
|
}); };
|
|
4566
4157
|
var deserializeAws_restJson1UpdateTrustStoreCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4567
|
-
var parsedOutput, _a,
|
|
4158
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4568
4159
|
var _c;
|
|
4569
4160
|
return __generator(this, function (_d) {
|
|
4570
4161
|
switch (_d.label) {
|
|
@@ -4605,14 +4196,14 @@ var deserializeAws_restJson1UpdateTrustStoreCommandError = function (output, con
|
|
|
4605
4196
|
case 13: throw _d.sent();
|
|
4606
4197
|
case 14:
|
|
4607
4198
|
parsedBody = parsedOutput.body;
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
$metadata: $metadata,
|
|
4199
|
+
throwDefaultError({
|
|
4200
|
+
output: output,
|
|
4201
|
+
parsedBody: parsedBody,
|
|
4202
|
+
exceptionCtor: __BaseException,
|
|
4203
|
+
errorCode: errorCode,
|
|
4614
4204
|
});
|
|
4615
|
-
|
|
4205
|
+
_d.label = 15;
|
|
4206
|
+
case 15: return [2];
|
|
4616
4207
|
}
|
|
4617
4208
|
});
|
|
4618
4209
|
}); };
|
|
@@ -4624,24 +4215,23 @@ export var deserializeAws_restJson1UpdateUserSettingsCommand = function (output,
|
|
|
4624
4215
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4625
4216
|
return [2, deserializeAws_restJson1UpdateUserSettingsCommandError(output, context)];
|
|
4626
4217
|
}
|
|
4627
|
-
contents = {
|
|
4218
|
+
contents = map({
|
|
4628
4219
|
$metadata: deserializeMetadata(output),
|
|
4629
|
-
|
|
4630
|
-
};
|
|
4220
|
+
});
|
|
4631
4221
|
_a = __expectNonNull;
|
|
4632
4222
|
_b = __expectObject;
|
|
4633
4223
|
return [4, parseBody(output.body, context)];
|
|
4634
4224
|
case 1:
|
|
4635
4225
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4636
|
-
if (data.userSettings
|
|
4226
|
+
if (data.userSettings != null) {
|
|
4637
4227
|
contents.userSettings = deserializeAws_restJson1UserSettings(data.userSettings, context);
|
|
4638
4228
|
}
|
|
4639
|
-
return [2,
|
|
4229
|
+
return [2, contents];
|
|
4640
4230
|
}
|
|
4641
4231
|
});
|
|
4642
4232
|
}); };
|
|
4643
4233
|
var deserializeAws_restJson1UpdateUserSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4644
|
-
var parsedOutput, _a,
|
|
4234
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4645
4235
|
var _c;
|
|
4646
4236
|
return __generator(this, function (_d) {
|
|
4647
4237
|
switch (_d.label) {
|
|
@@ -4678,23 +4268,24 @@ var deserializeAws_restJson1UpdateUserSettingsCommandError = function (output, c
|
|
|
4678
4268
|
case 11: throw _d.sent();
|
|
4679
4269
|
case 12:
|
|
4680
4270
|
parsedBody = parsedOutput.body;
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
$metadata: $metadata,
|
|
4271
|
+
throwDefaultError({
|
|
4272
|
+
output: output,
|
|
4273
|
+
parsedBody: parsedBody,
|
|
4274
|
+
exceptionCtor: __BaseException,
|
|
4275
|
+
errorCode: errorCode,
|
|
4687
4276
|
});
|
|
4688
|
-
|
|
4277
|
+
_d.label = 13;
|
|
4278
|
+
case 13: return [2];
|
|
4689
4279
|
}
|
|
4690
4280
|
});
|
|
4691
4281
|
}); };
|
|
4282
|
+
var map = __map;
|
|
4692
4283
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4693
4284
|
var contents, data, exception;
|
|
4694
4285
|
return __generator(this, function (_a) {
|
|
4695
|
-
contents = {};
|
|
4286
|
+
contents = map({});
|
|
4696
4287
|
data = parsedOutput.body;
|
|
4697
|
-
if (data.message
|
|
4288
|
+
if (data.message != null) {
|
|
4698
4289
|
contents.message = __expectString(data.message);
|
|
4699
4290
|
}
|
|
4700
4291
|
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4704,15 +4295,15 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
4704
4295
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4705
4296
|
var contents, data, exception;
|
|
4706
4297
|
return __generator(this, function (_a) {
|
|
4707
|
-
contents = {};
|
|
4298
|
+
contents = map({});
|
|
4708
4299
|
data = parsedOutput.body;
|
|
4709
|
-
if (data.message
|
|
4300
|
+
if (data.message != null) {
|
|
4710
4301
|
contents.message = __expectString(data.message);
|
|
4711
4302
|
}
|
|
4712
|
-
if (data.resourceId
|
|
4303
|
+
if (data.resourceId != null) {
|
|
4713
4304
|
contents.resourceId = __expectString(data.resourceId);
|
|
4714
4305
|
}
|
|
4715
|
-
if (data.resourceType
|
|
4306
|
+
if (data.resourceType != null) {
|
|
4716
4307
|
contents.resourceType = __expectString(data.resourceType);
|
|
4717
4308
|
}
|
|
4718
4309
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4722,12 +4313,14 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
4722
4313
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4723
4314
|
var contents, data, exception;
|
|
4724
4315
|
return __generator(this, function (_a) {
|
|
4725
|
-
contents = {
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4316
|
+
contents = map({
|
|
4317
|
+
retryAfterSeconds: [
|
|
4318
|
+
function () { return void 0 !== parsedOutput.headers["retry-after"]; },
|
|
4319
|
+
function () { return __strictParseInt32(parsedOutput.headers["retry-after"]); },
|
|
4320
|
+
],
|
|
4321
|
+
});
|
|
4729
4322
|
data = parsedOutput.body;
|
|
4730
|
-
if (data.message
|
|
4323
|
+
if (data.message != null) {
|
|
4731
4324
|
contents.message = __expectString(data.message);
|
|
4732
4325
|
}
|
|
4733
4326
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4737,15 +4330,15 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
4737
4330
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4738
4331
|
var contents, data, exception;
|
|
4739
4332
|
return __generator(this, function (_a) {
|
|
4740
|
-
contents = {};
|
|
4333
|
+
contents = map({});
|
|
4741
4334
|
data = parsedOutput.body;
|
|
4742
|
-
if (data.message
|
|
4335
|
+
if (data.message != null) {
|
|
4743
4336
|
contents.message = __expectString(data.message);
|
|
4744
4337
|
}
|
|
4745
|
-
if (data.resourceId
|
|
4338
|
+
if (data.resourceId != null) {
|
|
4746
4339
|
contents.resourceId = __expectString(data.resourceId);
|
|
4747
4340
|
}
|
|
4748
|
-
if (data.resourceType
|
|
4341
|
+
if (data.resourceType != null) {
|
|
4749
4342
|
contents.resourceType = __expectString(data.resourceType);
|
|
4750
4343
|
}
|
|
4751
4344
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4755,21 +4348,21 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
4755
4348
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4756
4349
|
var contents, data, exception;
|
|
4757
4350
|
return __generator(this, function (_a) {
|
|
4758
|
-
contents = {};
|
|
4351
|
+
contents = map({});
|
|
4759
4352
|
data = parsedOutput.body;
|
|
4760
|
-
if (data.message
|
|
4353
|
+
if (data.message != null) {
|
|
4761
4354
|
contents.message = __expectString(data.message);
|
|
4762
4355
|
}
|
|
4763
|
-
if (data.quotaCode
|
|
4356
|
+
if (data.quotaCode != null) {
|
|
4764
4357
|
contents.quotaCode = __expectString(data.quotaCode);
|
|
4765
4358
|
}
|
|
4766
|
-
if (data.resourceId
|
|
4359
|
+
if (data.resourceId != null) {
|
|
4767
4360
|
contents.resourceId = __expectString(data.resourceId);
|
|
4768
4361
|
}
|
|
4769
|
-
if (data.resourceType
|
|
4362
|
+
if (data.resourceType != null) {
|
|
4770
4363
|
contents.resourceType = __expectString(data.resourceType);
|
|
4771
4364
|
}
|
|
4772
|
-
if (data.serviceCode
|
|
4365
|
+
if (data.serviceCode != null) {
|
|
4773
4366
|
contents.serviceCode = __expectString(data.serviceCode);
|
|
4774
4367
|
}
|
|
4775
4368
|
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4779,18 +4372,20 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
4779
4372
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4780
4373
|
var contents, data, exception;
|
|
4781
4374
|
return __generator(this, function (_a) {
|
|
4782
|
-
contents = {
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4375
|
+
contents = map({
|
|
4376
|
+
retryAfterSeconds: [
|
|
4377
|
+
function () { return void 0 !== parsedOutput.headers["retry-after"]; },
|
|
4378
|
+
function () { return __strictParseInt32(parsedOutput.headers["retry-after"]); },
|
|
4379
|
+
],
|
|
4380
|
+
});
|
|
4786
4381
|
data = parsedOutput.body;
|
|
4787
|
-
if (data.message
|
|
4382
|
+
if (data.message != null) {
|
|
4788
4383
|
contents.message = __expectString(data.message);
|
|
4789
4384
|
}
|
|
4790
|
-
if (data.quotaCode
|
|
4385
|
+
if (data.quotaCode != null) {
|
|
4791
4386
|
contents.quotaCode = __expectString(data.quotaCode);
|
|
4792
4387
|
}
|
|
4793
|
-
if (data.serviceCode
|
|
4388
|
+
if (data.serviceCode != null) {
|
|
4794
4389
|
contents.serviceCode = __expectString(data.serviceCode);
|
|
4795
4390
|
}
|
|
4796
4391
|
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4800,12 +4395,12 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
4800
4395
|
var deserializeAws_restJson1TooManyTagsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4801
4396
|
var contents, data, exception;
|
|
4802
4397
|
return __generator(this, function (_a) {
|
|
4803
|
-
contents = {};
|
|
4398
|
+
contents = map({});
|
|
4804
4399
|
data = parsedOutput.body;
|
|
4805
|
-
if (data.message
|
|
4400
|
+
if (data.message != null) {
|
|
4806
4401
|
contents.message = __expectString(data.message);
|
|
4807
4402
|
}
|
|
4808
|
-
if (data.resourceName
|
|
4403
|
+
if (data.resourceName != null) {
|
|
4809
4404
|
contents.resourceName = __expectString(data.resourceName);
|
|
4810
4405
|
}
|
|
4811
4406
|
exception = new TooManyTagsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4815,15 +4410,15 @@ var deserializeAws_restJson1TooManyTagsExceptionResponse = function (parsedOutpu
|
|
|
4815
4410
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4816
4411
|
var contents, data, exception;
|
|
4817
4412
|
return __generator(this, function (_a) {
|
|
4818
|
-
contents = {};
|
|
4413
|
+
contents = map({});
|
|
4819
4414
|
data = parsedOutput.body;
|
|
4820
|
-
if (data.fieldList
|
|
4415
|
+
if (data.fieldList != null) {
|
|
4821
4416
|
contents.fieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
|
|
4822
4417
|
}
|
|
4823
|
-
if (data.message
|
|
4418
|
+
if (data.message != null) {
|
|
4824
4419
|
contents.message = __expectString(data.message);
|
|
4825
4420
|
}
|
|
4826
|
-
if (data.reason
|
|
4421
|
+
if (data.reason != null) {
|
|
4827
4422
|
contents.reason = __expectString(data.reason);
|
|
4828
4423
|
}
|
|
4829
4424
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4834,9 +4429,6 @@ var serializeAws_restJson1CertificateList = function (input, context) {
|
|
|
4834
4429
|
return input
|
|
4835
4430
|
.filter(function (e) { return e != null; })
|
|
4836
4431
|
.map(function (entry) {
|
|
4837
|
-
if (entry === null) {
|
|
4838
|
-
return null;
|
|
4839
|
-
}
|
|
4840
4432
|
return context.base64Encoder(entry);
|
|
4841
4433
|
});
|
|
4842
4434
|
};
|
|
@@ -4844,9 +4436,6 @@ var serializeAws_restJson1CertificateThumbprintList = function (input, context)
|
|
|
4844
4436
|
return input
|
|
4845
4437
|
.filter(function (e) { return e != null; })
|
|
4846
4438
|
.map(function (entry) {
|
|
4847
|
-
if (entry === null) {
|
|
4848
|
-
return null;
|
|
4849
|
-
}
|
|
4850
4439
|
return entry;
|
|
4851
4440
|
});
|
|
4852
4441
|
};
|
|
@@ -4874,9 +4463,6 @@ var serializeAws_restJson1SecurityGroupIdList = function (input, context) {
|
|
|
4874
4463
|
return input
|
|
4875
4464
|
.filter(function (e) { return e != null; })
|
|
4876
4465
|
.map(function (entry) {
|
|
4877
|
-
if (entry === null) {
|
|
4878
|
-
return null;
|
|
4879
|
-
}
|
|
4880
4466
|
return entry;
|
|
4881
4467
|
});
|
|
4882
4468
|
};
|
|
@@ -4884,9 +4470,6 @@ var serializeAws_restJson1SubnetIdList = function (input, context) {
|
|
|
4884
4470
|
return input
|
|
4885
4471
|
.filter(function (e) { return e != null; })
|
|
4886
4472
|
.map(function (entry) {
|
|
4887
|
-
if (entry === null) {
|
|
4888
|
-
return null;
|
|
4889
|
-
}
|
|
4890
4473
|
return entry;
|
|
4891
4474
|
});
|
|
4892
4475
|
};
|
|
@@ -4897,9 +4480,6 @@ var serializeAws_restJson1TagList = function (input, context) {
|
|
|
4897
4480
|
return input
|
|
4898
4481
|
.filter(function (e) { return e != null; })
|
|
4899
4482
|
.map(function (entry) {
|
|
4900
|
-
if (entry === null) {
|
|
4901
|
-
return null;
|
|
4902
|
-
}
|
|
4903
4483
|
return serializeAws_restJson1Tag(entry, context);
|
|
4904
4484
|
});
|
|
4905
4485
|
};
|