@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
|
@@ -11,22 +11,10 @@ const serializeAws_restJson1AssociateBrowserSettingsCommand = async (input, cont
|
|
|
11
11
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
12
12
|
const headers = {};
|
|
13
13
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/browserSettings";
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
resolvedPath = resolvedPath.replace("{portalArn+}", labelValue
|
|
20
|
-
.split("/")
|
|
21
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
22
|
-
.join("/"));
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
throw new Error("No value provided for input HTTP label: portalArn.");
|
|
26
|
-
}
|
|
27
|
-
const query = {
|
|
28
|
-
...(input.browserSettingsArn !== undefined && { browserSettingsArn: input.browserSettingsArn }),
|
|
29
|
-
};
|
|
14
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
|
|
15
|
+
const query = map({
|
|
16
|
+
browserSettingsArn: [, input.browserSettingsArn],
|
|
17
|
+
});
|
|
30
18
|
let body;
|
|
31
19
|
return new protocol_http_1.HttpRequest({
|
|
32
20
|
protocol,
|
|
@@ -44,22 +32,10 @@ const serializeAws_restJson1AssociateNetworkSettingsCommand = async (input, cont
|
|
|
44
32
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
45
33
|
const headers = {};
|
|
46
34
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/networkSettings";
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
resolvedPath = resolvedPath.replace("{portalArn+}", labelValue
|
|
53
|
-
.split("/")
|
|
54
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
55
|
-
.join("/"));
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
throw new Error("No value provided for input HTTP label: portalArn.");
|
|
59
|
-
}
|
|
60
|
-
const query = {
|
|
61
|
-
...(input.networkSettingsArn !== undefined && { networkSettingsArn: input.networkSettingsArn }),
|
|
62
|
-
};
|
|
35
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
|
|
36
|
+
const query = map({
|
|
37
|
+
networkSettingsArn: [, input.networkSettingsArn],
|
|
38
|
+
});
|
|
63
39
|
let body;
|
|
64
40
|
return new protocol_http_1.HttpRequest({
|
|
65
41
|
protocol,
|
|
@@ -77,22 +53,10 @@ const serializeAws_restJson1AssociateTrustStoreCommand = async (input, context)
|
|
|
77
53
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
78
54
|
const headers = {};
|
|
79
55
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/trustStores";
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
resolvedPath = resolvedPath.replace("{portalArn+}", labelValue
|
|
86
|
-
.split("/")
|
|
87
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
88
|
-
.join("/"));
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
throw new Error("No value provided for input HTTP label: portalArn.");
|
|
92
|
-
}
|
|
93
|
-
const query = {
|
|
94
|
-
...(input.trustStoreArn !== undefined && { trustStoreArn: input.trustStoreArn }),
|
|
95
|
-
};
|
|
56
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
|
|
57
|
+
const query = map({
|
|
58
|
+
trustStoreArn: [, input.trustStoreArn],
|
|
59
|
+
});
|
|
96
60
|
let body;
|
|
97
61
|
return new protocol_http_1.HttpRequest({
|
|
98
62
|
protocol,
|
|
@@ -110,22 +74,10 @@ const serializeAws_restJson1AssociateUserSettingsCommand = async (input, context
|
|
|
110
74
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
111
75
|
const headers = {};
|
|
112
76
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/userSettings";
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
resolvedPath = resolvedPath.replace("{portalArn+}", labelValue
|
|
119
|
-
.split("/")
|
|
120
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
121
|
-
.join("/"));
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
throw new Error("No value provided for input HTTP label: portalArn.");
|
|
125
|
-
}
|
|
126
|
-
const query = {
|
|
127
|
-
...(input.userSettingsArn !== undefined && { userSettingsArn: input.userSettingsArn }),
|
|
128
|
-
};
|
|
77
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
|
|
78
|
+
const query = map({
|
|
79
|
+
userSettingsArn: [, input.userSettingsArn],
|
|
80
|
+
});
|
|
129
81
|
let body;
|
|
130
82
|
return new protocol_http_1.HttpRequest({
|
|
131
83
|
protocol,
|
|
@@ -313,19 +265,7 @@ const serializeAws_restJson1DeleteBrowserSettingsCommand = async (input, context
|
|
|
313
265
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
314
266
|
const headers = {};
|
|
315
267
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings/{browserSettingsArn+}";
|
|
316
|
-
|
|
317
|
-
const labelValue = input.browserSettingsArn;
|
|
318
|
-
if (labelValue.length <= 0) {
|
|
319
|
-
throw new Error("Empty value provided for input HTTP label: browserSettingsArn.");
|
|
320
|
-
}
|
|
321
|
-
resolvedPath = resolvedPath.replace("{browserSettingsArn+}", labelValue
|
|
322
|
-
.split("/")
|
|
323
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
324
|
-
.join("/"));
|
|
325
|
-
}
|
|
326
|
-
else {
|
|
327
|
-
throw new Error("No value provided for input HTTP label: browserSettingsArn.");
|
|
328
|
-
}
|
|
268
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "browserSettingsArn", () => input.browserSettingsArn, "{browserSettingsArn+}", true);
|
|
329
269
|
let body;
|
|
330
270
|
return new protocol_http_1.HttpRequest({
|
|
331
271
|
protocol,
|
|
@@ -342,19 +282,7 @@ const serializeAws_restJson1DeleteIdentityProviderCommand = async (input, contex
|
|
|
342
282
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
343
283
|
const headers = {};
|
|
344
284
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/identityProviders/{identityProviderArn+}";
|
|
345
|
-
|
|
346
|
-
const labelValue = input.identityProviderArn;
|
|
347
|
-
if (labelValue.length <= 0) {
|
|
348
|
-
throw new Error("Empty value provided for input HTTP label: identityProviderArn.");
|
|
349
|
-
}
|
|
350
|
-
resolvedPath = resolvedPath.replace("{identityProviderArn+}", labelValue
|
|
351
|
-
.split("/")
|
|
352
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
353
|
-
.join("/"));
|
|
354
|
-
}
|
|
355
|
-
else {
|
|
356
|
-
throw new Error("No value provided for input HTTP label: identityProviderArn.");
|
|
357
|
-
}
|
|
285
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identityProviderArn", () => input.identityProviderArn, "{identityProviderArn+}", true);
|
|
358
286
|
let body;
|
|
359
287
|
return new protocol_http_1.HttpRequest({
|
|
360
288
|
protocol,
|
|
@@ -371,19 +299,7 @@ const serializeAws_restJson1DeleteNetworkSettingsCommand = async (input, context
|
|
|
371
299
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
372
300
|
const headers = {};
|
|
373
301
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings/{networkSettingsArn+}";
|
|
374
|
-
|
|
375
|
-
const labelValue = input.networkSettingsArn;
|
|
376
|
-
if (labelValue.length <= 0) {
|
|
377
|
-
throw new Error("Empty value provided for input HTTP label: networkSettingsArn.");
|
|
378
|
-
}
|
|
379
|
-
resolvedPath = resolvedPath.replace("{networkSettingsArn+}", labelValue
|
|
380
|
-
.split("/")
|
|
381
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
382
|
-
.join("/"));
|
|
383
|
-
}
|
|
384
|
-
else {
|
|
385
|
-
throw new Error("No value provided for input HTTP label: networkSettingsArn.");
|
|
386
|
-
}
|
|
302
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "networkSettingsArn", () => input.networkSettingsArn, "{networkSettingsArn+}", true);
|
|
387
303
|
let body;
|
|
388
304
|
return new protocol_http_1.HttpRequest({
|
|
389
305
|
protocol,
|
|
@@ -400,19 +316,7 @@ const serializeAws_restJson1DeletePortalCommand = async (input, context) => {
|
|
|
400
316
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
401
317
|
const headers = {};
|
|
402
318
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}";
|
|
403
|
-
|
|
404
|
-
const labelValue = input.portalArn;
|
|
405
|
-
if (labelValue.length <= 0) {
|
|
406
|
-
throw new Error("Empty value provided for input HTTP label: portalArn.");
|
|
407
|
-
}
|
|
408
|
-
resolvedPath = resolvedPath.replace("{portalArn+}", labelValue
|
|
409
|
-
.split("/")
|
|
410
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
411
|
-
.join("/"));
|
|
412
|
-
}
|
|
413
|
-
else {
|
|
414
|
-
throw new Error("No value provided for input HTTP label: portalArn.");
|
|
415
|
-
}
|
|
319
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
|
|
416
320
|
let body;
|
|
417
321
|
return new protocol_http_1.HttpRequest({
|
|
418
322
|
protocol,
|
|
@@ -429,19 +333,7 @@ const serializeAws_restJson1DeleteTrustStoreCommand = async (input, context) =>
|
|
|
429
333
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
430
334
|
const headers = {};
|
|
431
335
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores/{trustStoreArn+}";
|
|
432
|
-
|
|
433
|
-
const labelValue = input.trustStoreArn;
|
|
434
|
-
if (labelValue.length <= 0) {
|
|
435
|
-
throw new Error("Empty value provided for input HTTP label: trustStoreArn.");
|
|
436
|
-
}
|
|
437
|
-
resolvedPath = resolvedPath.replace("{trustStoreArn+}", labelValue
|
|
438
|
-
.split("/")
|
|
439
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
440
|
-
.join("/"));
|
|
441
|
-
}
|
|
442
|
-
else {
|
|
443
|
-
throw new Error("No value provided for input HTTP label: trustStoreArn.");
|
|
444
|
-
}
|
|
336
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "trustStoreArn", () => input.trustStoreArn, "{trustStoreArn+}", true);
|
|
445
337
|
let body;
|
|
446
338
|
return new protocol_http_1.HttpRequest({
|
|
447
339
|
protocol,
|
|
@@ -458,19 +350,7 @@ const serializeAws_restJson1DeleteUserSettingsCommand = async (input, context) =
|
|
|
458
350
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
459
351
|
const headers = {};
|
|
460
352
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings/{userSettingsArn+}";
|
|
461
|
-
|
|
462
|
-
const labelValue = input.userSettingsArn;
|
|
463
|
-
if (labelValue.length <= 0) {
|
|
464
|
-
throw new Error("Empty value provided for input HTTP label: userSettingsArn.");
|
|
465
|
-
}
|
|
466
|
-
resolvedPath = resolvedPath.replace("{userSettingsArn+}", labelValue
|
|
467
|
-
.split("/")
|
|
468
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
469
|
-
.join("/"));
|
|
470
|
-
}
|
|
471
|
-
else {
|
|
472
|
-
throw new Error("No value provided for input HTTP label: userSettingsArn.");
|
|
473
|
-
}
|
|
353
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userSettingsArn", () => input.userSettingsArn, "{userSettingsArn+}", true);
|
|
474
354
|
let body;
|
|
475
355
|
return new protocol_http_1.HttpRequest({
|
|
476
356
|
protocol,
|
|
@@ -487,19 +367,7 @@ const serializeAws_restJson1DisassociateBrowserSettingsCommand = async (input, c
|
|
|
487
367
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
488
368
|
const headers = {};
|
|
489
369
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/browserSettings";
|
|
490
|
-
|
|
491
|
-
const labelValue = input.portalArn;
|
|
492
|
-
if (labelValue.length <= 0) {
|
|
493
|
-
throw new Error("Empty value provided for input HTTP label: portalArn.");
|
|
494
|
-
}
|
|
495
|
-
resolvedPath = resolvedPath.replace("{portalArn+}", labelValue
|
|
496
|
-
.split("/")
|
|
497
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
498
|
-
.join("/"));
|
|
499
|
-
}
|
|
500
|
-
else {
|
|
501
|
-
throw new Error("No value provided for input HTTP label: portalArn.");
|
|
502
|
-
}
|
|
370
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
|
|
503
371
|
let body;
|
|
504
372
|
return new protocol_http_1.HttpRequest({
|
|
505
373
|
protocol,
|
|
@@ -516,19 +384,7 @@ const serializeAws_restJson1DisassociateNetworkSettingsCommand = async (input, c
|
|
|
516
384
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
517
385
|
const headers = {};
|
|
518
386
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/networkSettings";
|
|
519
|
-
|
|
520
|
-
const labelValue = input.portalArn;
|
|
521
|
-
if (labelValue.length <= 0) {
|
|
522
|
-
throw new Error("Empty value provided for input HTTP label: portalArn.");
|
|
523
|
-
}
|
|
524
|
-
resolvedPath = resolvedPath.replace("{portalArn+}", labelValue
|
|
525
|
-
.split("/")
|
|
526
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
527
|
-
.join("/"));
|
|
528
|
-
}
|
|
529
|
-
else {
|
|
530
|
-
throw new Error("No value provided for input HTTP label: portalArn.");
|
|
531
|
-
}
|
|
387
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
|
|
532
388
|
let body;
|
|
533
389
|
return new protocol_http_1.HttpRequest({
|
|
534
390
|
protocol,
|
|
@@ -545,19 +401,7 @@ const serializeAws_restJson1DisassociateTrustStoreCommand = async (input, contex
|
|
|
545
401
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
546
402
|
const headers = {};
|
|
547
403
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/trustStores";
|
|
548
|
-
|
|
549
|
-
const labelValue = input.portalArn;
|
|
550
|
-
if (labelValue.length <= 0) {
|
|
551
|
-
throw new Error("Empty value provided for input HTTP label: portalArn.");
|
|
552
|
-
}
|
|
553
|
-
resolvedPath = resolvedPath.replace("{portalArn+}", labelValue
|
|
554
|
-
.split("/")
|
|
555
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
556
|
-
.join("/"));
|
|
557
|
-
}
|
|
558
|
-
else {
|
|
559
|
-
throw new Error("No value provided for input HTTP label: portalArn.");
|
|
560
|
-
}
|
|
404
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
|
|
561
405
|
let body;
|
|
562
406
|
return new protocol_http_1.HttpRequest({
|
|
563
407
|
protocol,
|
|
@@ -574,19 +418,7 @@ const serializeAws_restJson1DisassociateUserSettingsCommand = async (input, cont
|
|
|
574
418
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
575
419
|
const headers = {};
|
|
576
420
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/userSettings";
|
|
577
|
-
|
|
578
|
-
const labelValue = input.portalArn;
|
|
579
|
-
if (labelValue.length <= 0) {
|
|
580
|
-
throw new Error("Empty value provided for input HTTP label: portalArn.");
|
|
581
|
-
}
|
|
582
|
-
resolvedPath = resolvedPath.replace("{portalArn+}", labelValue
|
|
583
|
-
.split("/")
|
|
584
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
585
|
-
.join("/"));
|
|
586
|
-
}
|
|
587
|
-
else {
|
|
588
|
-
throw new Error("No value provided for input HTTP label: portalArn.");
|
|
589
|
-
}
|
|
421
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
|
|
590
422
|
let body;
|
|
591
423
|
return new protocol_http_1.HttpRequest({
|
|
592
424
|
protocol,
|
|
@@ -603,19 +435,7 @@ const serializeAws_restJson1GetBrowserSettingsCommand = async (input, context) =
|
|
|
603
435
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
604
436
|
const headers = {};
|
|
605
437
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings/{browserSettingsArn+}";
|
|
606
|
-
|
|
607
|
-
const labelValue = input.browserSettingsArn;
|
|
608
|
-
if (labelValue.length <= 0) {
|
|
609
|
-
throw new Error("Empty value provided for input HTTP label: browserSettingsArn.");
|
|
610
|
-
}
|
|
611
|
-
resolvedPath = resolvedPath.replace("{browserSettingsArn+}", labelValue
|
|
612
|
-
.split("/")
|
|
613
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
614
|
-
.join("/"));
|
|
615
|
-
}
|
|
616
|
-
else {
|
|
617
|
-
throw new Error("No value provided for input HTTP label: browserSettingsArn.");
|
|
618
|
-
}
|
|
438
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "browserSettingsArn", () => input.browserSettingsArn, "{browserSettingsArn+}", true);
|
|
619
439
|
let body;
|
|
620
440
|
return new protocol_http_1.HttpRequest({
|
|
621
441
|
protocol,
|
|
@@ -632,19 +452,7 @@ const serializeAws_restJson1GetIdentityProviderCommand = async (input, context)
|
|
|
632
452
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
633
453
|
const headers = {};
|
|
634
454
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/identityProviders/{identityProviderArn+}";
|
|
635
|
-
|
|
636
|
-
const labelValue = input.identityProviderArn;
|
|
637
|
-
if (labelValue.length <= 0) {
|
|
638
|
-
throw new Error("Empty value provided for input HTTP label: identityProviderArn.");
|
|
639
|
-
}
|
|
640
|
-
resolvedPath = resolvedPath.replace("{identityProviderArn+}", labelValue
|
|
641
|
-
.split("/")
|
|
642
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
643
|
-
.join("/"));
|
|
644
|
-
}
|
|
645
|
-
else {
|
|
646
|
-
throw new Error("No value provided for input HTTP label: identityProviderArn.");
|
|
647
|
-
}
|
|
455
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identityProviderArn", () => input.identityProviderArn, "{identityProviderArn+}", true);
|
|
648
456
|
let body;
|
|
649
457
|
return new protocol_http_1.HttpRequest({
|
|
650
458
|
protocol,
|
|
@@ -661,19 +469,7 @@ const serializeAws_restJson1GetNetworkSettingsCommand = async (input, context) =
|
|
|
661
469
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
662
470
|
const headers = {};
|
|
663
471
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings/{networkSettingsArn+}";
|
|
664
|
-
|
|
665
|
-
const labelValue = input.networkSettingsArn;
|
|
666
|
-
if (labelValue.length <= 0) {
|
|
667
|
-
throw new Error("Empty value provided for input HTTP label: networkSettingsArn.");
|
|
668
|
-
}
|
|
669
|
-
resolvedPath = resolvedPath.replace("{networkSettingsArn+}", labelValue
|
|
670
|
-
.split("/")
|
|
671
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
672
|
-
.join("/"));
|
|
673
|
-
}
|
|
674
|
-
else {
|
|
675
|
-
throw new Error("No value provided for input HTTP label: networkSettingsArn.");
|
|
676
|
-
}
|
|
472
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "networkSettingsArn", () => input.networkSettingsArn, "{networkSettingsArn+}", true);
|
|
677
473
|
let body;
|
|
678
474
|
return new protocol_http_1.HttpRequest({
|
|
679
475
|
protocol,
|
|
@@ -690,19 +486,7 @@ const serializeAws_restJson1GetPortalCommand = async (input, context) => {
|
|
|
690
486
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
691
487
|
const headers = {};
|
|
692
488
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}";
|
|
693
|
-
|
|
694
|
-
const labelValue = input.portalArn;
|
|
695
|
-
if (labelValue.length <= 0) {
|
|
696
|
-
throw new Error("Empty value provided for input HTTP label: portalArn.");
|
|
697
|
-
}
|
|
698
|
-
resolvedPath = resolvedPath.replace("{portalArn+}", labelValue
|
|
699
|
-
.split("/")
|
|
700
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
701
|
-
.join("/"));
|
|
702
|
-
}
|
|
703
|
-
else {
|
|
704
|
-
throw new Error("No value provided for input HTTP label: portalArn.");
|
|
705
|
-
}
|
|
489
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
|
|
706
490
|
let body;
|
|
707
491
|
return new protocol_http_1.HttpRequest({
|
|
708
492
|
protocol,
|
|
@@ -719,19 +503,7 @@ const serializeAws_restJson1GetPortalServiceProviderMetadataCommand = async (inp
|
|
|
719
503
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
720
504
|
const headers = {};
|
|
721
505
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portalIdp/{portalArn+}";
|
|
722
|
-
|
|
723
|
-
const labelValue = input.portalArn;
|
|
724
|
-
if (labelValue.length <= 0) {
|
|
725
|
-
throw new Error("Empty value provided for input HTTP label: portalArn.");
|
|
726
|
-
}
|
|
727
|
-
resolvedPath = resolvedPath.replace("{portalArn+}", labelValue
|
|
728
|
-
.split("/")
|
|
729
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
730
|
-
.join("/"));
|
|
731
|
-
}
|
|
732
|
-
else {
|
|
733
|
-
throw new Error("No value provided for input HTTP label: portalArn.");
|
|
734
|
-
}
|
|
506
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
|
|
735
507
|
let body;
|
|
736
508
|
return new protocol_http_1.HttpRequest({
|
|
737
509
|
protocol,
|
|
@@ -748,19 +520,7 @@ const serializeAws_restJson1GetTrustStoreCommand = async (input, context) => {
|
|
|
748
520
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
749
521
|
const headers = {};
|
|
750
522
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores/{trustStoreArn+}";
|
|
751
|
-
|
|
752
|
-
const labelValue = input.trustStoreArn;
|
|
753
|
-
if (labelValue.length <= 0) {
|
|
754
|
-
throw new Error("Empty value provided for input HTTP label: trustStoreArn.");
|
|
755
|
-
}
|
|
756
|
-
resolvedPath = resolvedPath.replace("{trustStoreArn+}", labelValue
|
|
757
|
-
.split("/")
|
|
758
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
759
|
-
.join("/"));
|
|
760
|
-
}
|
|
761
|
-
else {
|
|
762
|
-
throw new Error("No value provided for input HTTP label: trustStoreArn.");
|
|
763
|
-
}
|
|
523
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "trustStoreArn", () => input.trustStoreArn, "{trustStoreArn+}", true);
|
|
764
524
|
let body;
|
|
765
525
|
return new protocol_http_1.HttpRequest({
|
|
766
526
|
protocol,
|
|
@@ -777,22 +537,10 @@ const serializeAws_restJson1GetTrustStoreCertificateCommand = async (input, cont
|
|
|
777
537
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
778
538
|
const headers = {};
|
|
779
539
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores/{trustStoreArn+}/certificate";
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
}
|
|
785
|
-
resolvedPath = resolvedPath.replace("{trustStoreArn+}", labelValue
|
|
786
|
-
.split("/")
|
|
787
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
788
|
-
.join("/"));
|
|
789
|
-
}
|
|
790
|
-
else {
|
|
791
|
-
throw new Error("No value provided for input HTTP label: trustStoreArn.");
|
|
792
|
-
}
|
|
793
|
-
const query = {
|
|
794
|
-
...(input.thumbprint !== undefined && { thumbprint: input.thumbprint }),
|
|
795
|
-
};
|
|
540
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "trustStoreArn", () => input.trustStoreArn, "{trustStoreArn+}", true);
|
|
541
|
+
const query = map({
|
|
542
|
+
thumbprint: [, input.thumbprint],
|
|
543
|
+
});
|
|
796
544
|
let body;
|
|
797
545
|
return new protocol_http_1.HttpRequest({
|
|
798
546
|
protocol,
|
|
@@ -810,19 +558,7 @@ const serializeAws_restJson1GetUserSettingsCommand = async (input, context) => {
|
|
|
810
558
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
811
559
|
const headers = {};
|
|
812
560
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings/{userSettingsArn+}";
|
|
813
|
-
|
|
814
|
-
const labelValue = input.userSettingsArn;
|
|
815
|
-
if (labelValue.length <= 0) {
|
|
816
|
-
throw new Error("Empty value provided for input HTTP label: userSettingsArn.");
|
|
817
|
-
}
|
|
818
|
-
resolvedPath = resolvedPath.replace("{userSettingsArn+}", labelValue
|
|
819
|
-
.split("/")
|
|
820
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
821
|
-
.join("/"));
|
|
822
|
-
}
|
|
823
|
-
else {
|
|
824
|
-
throw new Error("No value provided for input HTTP label: userSettingsArn.");
|
|
825
|
-
}
|
|
561
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userSettingsArn", () => input.userSettingsArn, "{userSettingsArn+}", true);
|
|
826
562
|
let body;
|
|
827
563
|
return new protocol_http_1.HttpRequest({
|
|
828
564
|
protocol,
|
|
@@ -839,10 +575,10 @@ const serializeAws_restJson1ListBrowserSettingsCommand = async (input, context)
|
|
|
839
575
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
840
576
|
const headers = {};
|
|
841
577
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings";
|
|
842
|
-
const query = {
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
};
|
|
578
|
+
const query = map({
|
|
579
|
+
nextToken: [, input.nextToken],
|
|
580
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
581
|
+
});
|
|
846
582
|
let body;
|
|
847
583
|
return new protocol_http_1.HttpRequest({
|
|
848
584
|
protocol,
|
|
@@ -860,23 +596,11 @@ const serializeAws_restJson1ListIdentityProvidersCommand = async (input, context
|
|
|
860
596
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
861
597
|
const headers = {};
|
|
862
598
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/identityProviders";
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
resolvedPath = resolvedPath.replace("{portalArn+}", labelValue
|
|
869
|
-
.split("/")
|
|
870
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
871
|
-
.join("/"));
|
|
872
|
-
}
|
|
873
|
-
else {
|
|
874
|
-
throw new Error("No value provided for input HTTP label: portalArn.");
|
|
875
|
-
}
|
|
876
|
-
const query = {
|
|
877
|
-
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
878
|
-
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
879
|
-
};
|
|
599
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
|
|
600
|
+
const query = map({
|
|
601
|
+
nextToken: [, input.nextToken],
|
|
602
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
603
|
+
});
|
|
880
604
|
let body;
|
|
881
605
|
return new protocol_http_1.HttpRequest({
|
|
882
606
|
protocol,
|
|
@@ -894,10 +618,10 @@ const serializeAws_restJson1ListNetworkSettingsCommand = async (input, context)
|
|
|
894
618
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
895
619
|
const headers = {};
|
|
896
620
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings";
|
|
897
|
-
const query = {
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
};
|
|
621
|
+
const query = map({
|
|
622
|
+
nextToken: [, input.nextToken],
|
|
623
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
624
|
+
});
|
|
901
625
|
let body;
|
|
902
626
|
return new protocol_http_1.HttpRequest({
|
|
903
627
|
protocol,
|
|
@@ -915,10 +639,10 @@ const serializeAws_restJson1ListPortalsCommand = async (input, context) => {
|
|
|
915
639
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
916
640
|
const headers = {};
|
|
917
641
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals";
|
|
918
|
-
const query = {
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
};
|
|
642
|
+
const query = map({
|
|
643
|
+
nextToken: [, input.nextToken],
|
|
644
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
645
|
+
});
|
|
922
646
|
let body;
|
|
923
647
|
return new protocol_http_1.HttpRequest({
|
|
924
648
|
protocol,
|
|
@@ -936,19 +660,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
936
660
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
937
661
|
const headers = {};
|
|
938
662
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn+}";
|
|
939
|
-
|
|
940
|
-
const labelValue = input.resourceArn;
|
|
941
|
-
if (labelValue.length <= 0) {
|
|
942
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
943
|
-
}
|
|
944
|
-
resolvedPath = resolvedPath.replace("{resourceArn+}", labelValue
|
|
945
|
-
.split("/")
|
|
946
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
947
|
-
.join("/"));
|
|
948
|
-
}
|
|
949
|
-
else {
|
|
950
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
951
|
-
}
|
|
663
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn+}", true);
|
|
952
664
|
let body;
|
|
953
665
|
return new protocol_http_1.HttpRequest({
|
|
954
666
|
protocol,
|
|
@@ -966,23 +678,11 @@ const serializeAws_restJson1ListTrustStoreCertificatesCommand = async (input, co
|
|
|
966
678
|
const headers = {};
|
|
967
679
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
968
680
|
"/trustStores/{trustStoreArn+}/certificates";
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
resolvedPath = resolvedPath.replace("{trustStoreArn+}", labelValue
|
|
975
|
-
.split("/")
|
|
976
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
977
|
-
.join("/"));
|
|
978
|
-
}
|
|
979
|
-
else {
|
|
980
|
-
throw new Error("No value provided for input HTTP label: trustStoreArn.");
|
|
981
|
-
}
|
|
982
|
-
const query = {
|
|
983
|
-
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
984
|
-
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
985
|
-
};
|
|
681
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "trustStoreArn", () => input.trustStoreArn, "{trustStoreArn+}", true);
|
|
682
|
+
const query = map({
|
|
683
|
+
nextToken: [, input.nextToken],
|
|
684
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
685
|
+
});
|
|
986
686
|
let body;
|
|
987
687
|
return new protocol_http_1.HttpRequest({
|
|
988
688
|
protocol,
|
|
@@ -1000,10 +700,10 @@ const serializeAws_restJson1ListTrustStoresCommand = async (input, context) => {
|
|
|
1000
700
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1001
701
|
const headers = {};
|
|
1002
702
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores";
|
|
1003
|
-
const query = {
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
};
|
|
703
|
+
const query = map({
|
|
704
|
+
nextToken: [, input.nextToken],
|
|
705
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
706
|
+
});
|
|
1007
707
|
let body;
|
|
1008
708
|
return new protocol_http_1.HttpRequest({
|
|
1009
709
|
protocol,
|
|
@@ -1021,10 +721,10 @@ const serializeAws_restJson1ListUserSettingsCommand = async (input, context) =>
|
|
|
1021
721
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1022
722
|
const headers = {};
|
|
1023
723
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings";
|
|
1024
|
-
const query = {
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
};
|
|
724
|
+
const query = map({
|
|
725
|
+
nextToken: [, input.nextToken],
|
|
726
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
727
|
+
});
|
|
1028
728
|
let body;
|
|
1029
729
|
return new protocol_http_1.HttpRequest({
|
|
1030
730
|
protocol,
|
|
@@ -1045,19 +745,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1045
745
|
"content-type": "application/json",
|
|
1046
746
|
};
|
|
1047
747
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn+}";
|
|
1048
|
-
|
|
1049
|
-
const labelValue = input.resourceArn;
|
|
1050
|
-
if (labelValue.length <= 0) {
|
|
1051
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
1052
|
-
}
|
|
1053
|
-
resolvedPath = resolvedPath.replace("{resourceArn+}", labelValue
|
|
1054
|
-
.split("/")
|
|
1055
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
1056
|
-
.join("/"));
|
|
1057
|
-
}
|
|
1058
|
-
else {
|
|
1059
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1060
|
-
}
|
|
748
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn+}", true);
|
|
1061
749
|
let body;
|
|
1062
750
|
body = JSON.stringify({
|
|
1063
751
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
@@ -1078,22 +766,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
1078
766
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1079
767
|
const headers = {};
|
|
1080
768
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn+}";
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
}
|
|
1086
|
-
resolvedPath = resolvedPath.replace("{resourceArn+}", labelValue
|
|
1087
|
-
.split("/")
|
|
1088
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
1089
|
-
.join("/"));
|
|
1090
|
-
}
|
|
1091
|
-
else {
|
|
1092
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1093
|
-
}
|
|
1094
|
-
const query = {
|
|
1095
|
-
...(input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map((_entry) => _entry) }),
|
|
1096
|
-
};
|
|
769
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn+}", true);
|
|
770
|
+
const query = map({
|
|
771
|
+
tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
|
|
772
|
+
});
|
|
1097
773
|
let body;
|
|
1098
774
|
return new protocol_http_1.HttpRequest({
|
|
1099
775
|
protocol,
|
|
@@ -1114,19 +790,7 @@ const serializeAws_restJson1UpdateBrowserSettingsCommand = async (input, context
|
|
|
1114
790
|
"content-type": "application/json",
|
|
1115
791
|
};
|
|
1116
792
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings/{browserSettingsArn+}";
|
|
1117
|
-
|
|
1118
|
-
const labelValue = input.browserSettingsArn;
|
|
1119
|
-
if (labelValue.length <= 0) {
|
|
1120
|
-
throw new Error("Empty value provided for input HTTP label: browserSettingsArn.");
|
|
1121
|
-
}
|
|
1122
|
-
resolvedPath = resolvedPath.replace("{browserSettingsArn+}", labelValue
|
|
1123
|
-
.split("/")
|
|
1124
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
1125
|
-
.join("/"));
|
|
1126
|
-
}
|
|
1127
|
-
else {
|
|
1128
|
-
throw new Error("No value provided for input HTTP label: browserSettingsArn.");
|
|
1129
|
-
}
|
|
793
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "browserSettingsArn", () => input.browserSettingsArn, "{browserSettingsArn+}", true);
|
|
1130
794
|
let body;
|
|
1131
795
|
body = JSON.stringify({
|
|
1132
796
|
...(input.browserPolicy != null && { browserPolicy: input.browserPolicy }),
|
|
@@ -1150,19 +814,7 @@ const serializeAws_restJson1UpdateIdentityProviderCommand = async (input, contex
|
|
|
1150
814
|
"content-type": "application/json",
|
|
1151
815
|
};
|
|
1152
816
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/identityProviders/{identityProviderArn+}";
|
|
1153
|
-
|
|
1154
|
-
const labelValue = input.identityProviderArn;
|
|
1155
|
-
if (labelValue.length <= 0) {
|
|
1156
|
-
throw new Error("Empty value provided for input HTTP label: identityProviderArn.");
|
|
1157
|
-
}
|
|
1158
|
-
resolvedPath = resolvedPath.replace("{identityProviderArn+}", labelValue
|
|
1159
|
-
.split("/")
|
|
1160
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
1161
|
-
.join("/"));
|
|
1162
|
-
}
|
|
1163
|
-
else {
|
|
1164
|
-
throw new Error("No value provided for input HTTP label: identityProviderArn.");
|
|
1165
|
-
}
|
|
817
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identityProviderArn", () => input.identityProviderArn, "{identityProviderArn+}", true);
|
|
1166
818
|
let body;
|
|
1167
819
|
body = JSON.stringify({
|
|
1168
820
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
@@ -1190,19 +842,7 @@ const serializeAws_restJson1UpdateNetworkSettingsCommand = async (input, context
|
|
|
1190
842
|
"content-type": "application/json",
|
|
1191
843
|
};
|
|
1192
844
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings/{networkSettingsArn+}";
|
|
1193
|
-
|
|
1194
|
-
const labelValue = input.networkSettingsArn;
|
|
1195
|
-
if (labelValue.length <= 0) {
|
|
1196
|
-
throw new Error("Empty value provided for input HTTP label: networkSettingsArn.");
|
|
1197
|
-
}
|
|
1198
|
-
resolvedPath = resolvedPath.replace("{networkSettingsArn+}", labelValue
|
|
1199
|
-
.split("/")
|
|
1200
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
1201
|
-
.join("/"));
|
|
1202
|
-
}
|
|
1203
|
-
else {
|
|
1204
|
-
throw new Error("No value provided for input HTTP label: networkSettingsArn.");
|
|
1205
|
-
}
|
|
845
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "networkSettingsArn", () => input.networkSettingsArn, "{networkSettingsArn+}", true);
|
|
1206
846
|
let body;
|
|
1207
847
|
body = JSON.stringify({
|
|
1208
848
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
@@ -1229,19 +869,7 @@ const serializeAws_restJson1UpdatePortalCommand = async (input, context) => {
|
|
|
1229
869
|
"content-type": "application/json",
|
|
1230
870
|
};
|
|
1231
871
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}";
|
|
1232
|
-
|
|
1233
|
-
const labelValue = input.portalArn;
|
|
1234
|
-
if (labelValue.length <= 0) {
|
|
1235
|
-
throw new Error("Empty value provided for input HTTP label: portalArn.");
|
|
1236
|
-
}
|
|
1237
|
-
resolvedPath = resolvedPath.replace("{portalArn+}", labelValue
|
|
1238
|
-
.split("/")
|
|
1239
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
1240
|
-
.join("/"));
|
|
1241
|
-
}
|
|
1242
|
-
else {
|
|
1243
|
-
throw new Error("No value provided for input HTTP label: portalArn.");
|
|
1244
|
-
}
|
|
872
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
|
|
1245
873
|
let body;
|
|
1246
874
|
body = JSON.stringify({
|
|
1247
875
|
...(input.displayName != null && { displayName: input.displayName }),
|
|
@@ -1264,19 +892,7 @@ const serializeAws_restJson1UpdateTrustStoreCommand = async (input, context) =>
|
|
|
1264
892
|
"content-type": "application/json",
|
|
1265
893
|
};
|
|
1266
894
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores/{trustStoreArn+}";
|
|
1267
|
-
|
|
1268
|
-
const labelValue = input.trustStoreArn;
|
|
1269
|
-
if (labelValue.length <= 0) {
|
|
1270
|
-
throw new Error("Empty value provided for input HTTP label: trustStoreArn.");
|
|
1271
|
-
}
|
|
1272
|
-
resolvedPath = resolvedPath.replace("{trustStoreArn+}", labelValue
|
|
1273
|
-
.split("/")
|
|
1274
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
1275
|
-
.join("/"));
|
|
1276
|
-
}
|
|
1277
|
-
else {
|
|
1278
|
-
throw new Error("No value provided for input HTTP label: trustStoreArn.");
|
|
1279
|
-
}
|
|
895
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "trustStoreArn", () => input.trustStoreArn, "{trustStoreArn+}", true);
|
|
1280
896
|
let body;
|
|
1281
897
|
body = JSON.stringify({
|
|
1282
898
|
...(input.certificatesToAdd != null && {
|
|
@@ -1305,19 +921,7 @@ const serializeAws_restJson1UpdateUserSettingsCommand = async (input, context) =
|
|
|
1305
921
|
"content-type": "application/json",
|
|
1306
922
|
};
|
|
1307
923
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings/{userSettingsArn+}";
|
|
1308
|
-
|
|
1309
|
-
const labelValue = input.userSettingsArn;
|
|
1310
|
-
if (labelValue.length <= 0) {
|
|
1311
|
-
throw new Error("Empty value provided for input HTTP label: userSettingsArn.");
|
|
1312
|
-
}
|
|
1313
|
-
resolvedPath = resolvedPath.replace("{userSettingsArn+}", labelValue
|
|
1314
|
-
.split("/")
|
|
1315
|
-
.map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
|
|
1316
|
-
.join("/"));
|
|
1317
|
-
}
|
|
1318
|
-
else {
|
|
1319
|
-
throw new Error("No value provided for input HTTP label: userSettingsArn.");
|
|
1320
|
-
}
|
|
924
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userSettingsArn", () => input.userSettingsArn, "{userSettingsArn+}", true);
|
|
1321
925
|
let body;
|
|
1322
926
|
body = JSON.stringify({
|
|
1323
927
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
@@ -1346,19 +950,17 @@ const deserializeAws_restJson1AssociateBrowserSettingsCommand = async (output, c
|
|
|
1346
950
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1347
951
|
return deserializeAws_restJson1AssociateBrowserSettingsCommandError(output, context);
|
|
1348
952
|
}
|
|
1349
|
-
const contents = {
|
|
953
|
+
const contents = map({
|
|
1350
954
|
$metadata: deserializeMetadata(output),
|
|
1351
|
-
|
|
1352
|
-
portalArn: undefined,
|
|
1353
|
-
};
|
|
955
|
+
});
|
|
1354
956
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1355
|
-
if (data.browserSettingsArn
|
|
957
|
+
if (data.browserSettingsArn != null) {
|
|
1356
958
|
contents.browserSettingsArn = (0, smithy_client_1.expectString)(data.browserSettingsArn);
|
|
1357
959
|
}
|
|
1358
|
-
if (data.portalArn
|
|
960
|
+
if (data.portalArn != null) {
|
|
1359
961
|
contents.portalArn = (0, smithy_client_1.expectString)(data.portalArn);
|
|
1360
962
|
}
|
|
1361
|
-
return
|
|
963
|
+
return contents;
|
|
1362
964
|
};
|
|
1363
965
|
exports.deserializeAws_restJson1AssociateBrowserSettingsCommand = deserializeAws_restJson1AssociateBrowserSettingsCommand;
|
|
1364
966
|
const deserializeAws_restJson1AssociateBrowserSettingsCommandError = async (output, context) => {
|
|
@@ -1366,7 +968,6 @@ const deserializeAws_restJson1AssociateBrowserSettingsCommandError = async (outp
|
|
|
1366
968
|
...output,
|
|
1367
969
|
body: await parseBody(output.body, context),
|
|
1368
970
|
};
|
|
1369
|
-
let response;
|
|
1370
971
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1371
972
|
switch (errorCode) {
|
|
1372
973
|
case "AccessDeniedException":
|
|
@@ -1389,33 +990,29 @@ const deserializeAws_restJson1AssociateBrowserSettingsCommandError = async (outp
|
|
|
1389
990
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1390
991
|
default:
|
|
1391
992
|
const parsedBody = parsedOutput.body;
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
$metadata,
|
|
993
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
994
|
+
output,
|
|
995
|
+
parsedBody,
|
|
996
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
997
|
+
errorCode,
|
|
1398
998
|
});
|
|
1399
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1400
999
|
}
|
|
1401
1000
|
};
|
|
1402
1001
|
const deserializeAws_restJson1AssociateNetworkSettingsCommand = async (output, context) => {
|
|
1403
1002
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1404
1003
|
return deserializeAws_restJson1AssociateNetworkSettingsCommandError(output, context);
|
|
1405
1004
|
}
|
|
1406
|
-
const contents = {
|
|
1005
|
+
const contents = map({
|
|
1407
1006
|
$metadata: deserializeMetadata(output),
|
|
1408
|
-
|
|
1409
|
-
portalArn: undefined,
|
|
1410
|
-
};
|
|
1007
|
+
});
|
|
1411
1008
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1412
|
-
if (data.networkSettingsArn
|
|
1009
|
+
if (data.networkSettingsArn != null) {
|
|
1413
1010
|
contents.networkSettingsArn = (0, smithy_client_1.expectString)(data.networkSettingsArn);
|
|
1414
1011
|
}
|
|
1415
|
-
if (data.portalArn
|
|
1012
|
+
if (data.portalArn != null) {
|
|
1416
1013
|
contents.portalArn = (0, smithy_client_1.expectString)(data.portalArn);
|
|
1417
1014
|
}
|
|
1418
|
-
return
|
|
1015
|
+
return contents;
|
|
1419
1016
|
};
|
|
1420
1017
|
exports.deserializeAws_restJson1AssociateNetworkSettingsCommand = deserializeAws_restJson1AssociateNetworkSettingsCommand;
|
|
1421
1018
|
const deserializeAws_restJson1AssociateNetworkSettingsCommandError = async (output, context) => {
|
|
@@ -1423,7 +1020,6 @@ const deserializeAws_restJson1AssociateNetworkSettingsCommandError = async (outp
|
|
|
1423
1020
|
...output,
|
|
1424
1021
|
body: await parseBody(output.body, context),
|
|
1425
1022
|
};
|
|
1426
|
-
let response;
|
|
1427
1023
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1428
1024
|
switch (errorCode) {
|
|
1429
1025
|
case "AccessDeniedException":
|
|
@@ -1446,33 +1042,29 @@ const deserializeAws_restJson1AssociateNetworkSettingsCommandError = async (outp
|
|
|
1446
1042
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1447
1043
|
default:
|
|
1448
1044
|
const parsedBody = parsedOutput.body;
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
$metadata,
|
|
1045
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1046
|
+
output,
|
|
1047
|
+
parsedBody,
|
|
1048
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1049
|
+
errorCode,
|
|
1455
1050
|
});
|
|
1456
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1457
1051
|
}
|
|
1458
1052
|
};
|
|
1459
1053
|
const deserializeAws_restJson1AssociateTrustStoreCommand = async (output, context) => {
|
|
1460
1054
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1461
1055
|
return deserializeAws_restJson1AssociateTrustStoreCommandError(output, context);
|
|
1462
1056
|
}
|
|
1463
|
-
const contents = {
|
|
1057
|
+
const contents = map({
|
|
1464
1058
|
$metadata: deserializeMetadata(output),
|
|
1465
|
-
|
|
1466
|
-
trustStoreArn: undefined,
|
|
1467
|
-
};
|
|
1059
|
+
});
|
|
1468
1060
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1469
|
-
if (data.portalArn
|
|
1061
|
+
if (data.portalArn != null) {
|
|
1470
1062
|
contents.portalArn = (0, smithy_client_1.expectString)(data.portalArn);
|
|
1471
1063
|
}
|
|
1472
|
-
if (data.trustStoreArn
|
|
1064
|
+
if (data.trustStoreArn != null) {
|
|
1473
1065
|
contents.trustStoreArn = (0, smithy_client_1.expectString)(data.trustStoreArn);
|
|
1474
1066
|
}
|
|
1475
|
-
return
|
|
1067
|
+
return contents;
|
|
1476
1068
|
};
|
|
1477
1069
|
exports.deserializeAws_restJson1AssociateTrustStoreCommand = deserializeAws_restJson1AssociateTrustStoreCommand;
|
|
1478
1070
|
const deserializeAws_restJson1AssociateTrustStoreCommandError = async (output, context) => {
|
|
@@ -1480,7 +1072,6 @@ const deserializeAws_restJson1AssociateTrustStoreCommandError = async (output, c
|
|
|
1480
1072
|
...output,
|
|
1481
1073
|
body: await parseBody(output.body, context),
|
|
1482
1074
|
};
|
|
1483
|
-
let response;
|
|
1484
1075
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1485
1076
|
switch (errorCode) {
|
|
1486
1077
|
case "AccessDeniedException":
|
|
@@ -1500,33 +1091,29 @@ const deserializeAws_restJson1AssociateTrustStoreCommandError = async (output, c
|
|
|
1500
1091
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1501
1092
|
default:
|
|
1502
1093
|
const parsedBody = parsedOutput.body;
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
$metadata,
|
|
1094
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1095
|
+
output,
|
|
1096
|
+
parsedBody,
|
|
1097
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1098
|
+
errorCode,
|
|
1509
1099
|
});
|
|
1510
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1511
1100
|
}
|
|
1512
1101
|
};
|
|
1513
1102
|
const deserializeAws_restJson1AssociateUserSettingsCommand = async (output, context) => {
|
|
1514
1103
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1515
1104
|
return deserializeAws_restJson1AssociateUserSettingsCommandError(output, context);
|
|
1516
1105
|
}
|
|
1517
|
-
const contents = {
|
|
1106
|
+
const contents = map({
|
|
1518
1107
|
$metadata: deserializeMetadata(output),
|
|
1519
|
-
|
|
1520
|
-
userSettingsArn: undefined,
|
|
1521
|
-
};
|
|
1108
|
+
});
|
|
1522
1109
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1523
|
-
if (data.portalArn
|
|
1110
|
+
if (data.portalArn != null) {
|
|
1524
1111
|
contents.portalArn = (0, smithy_client_1.expectString)(data.portalArn);
|
|
1525
1112
|
}
|
|
1526
|
-
if (data.userSettingsArn
|
|
1113
|
+
if (data.userSettingsArn != null) {
|
|
1527
1114
|
contents.userSettingsArn = (0, smithy_client_1.expectString)(data.userSettingsArn);
|
|
1528
1115
|
}
|
|
1529
|
-
return
|
|
1116
|
+
return contents;
|
|
1530
1117
|
};
|
|
1531
1118
|
exports.deserializeAws_restJson1AssociateUserSettingsCommand = deserializeAws_restJson1AssociateUserSettingsCommand;
|
|
1532
1119
|
const deserializeAws_restJson1AssociateUserSettingsCommandError = async (output, context) => {
|
|
@@ -1534,7 +1121,6 @@ const deserializeAws_restJson1AssociateUserSettingsCommandError = async (output,
|
|
|
1534
1121
|
...output,
|
|
1535
1122
|
body: await parseBody(output.body, context),
|
|
1536
1123
|
};
|
|
1537
|
-
let response;
|
|
1538
1124
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1539
1125
|
switch (errorCode) {
|
|
1540
1126
|
case "AccessDeniedException":
|
|
@@ -1557,29 +1143,26 @@ const deserializeAws_restJson1AssociateUserSettingsCommandError = async (output,
|
|
|
1557
1143
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1558
1144
|
default:
|
|
1559
1145
|
const parsedBody = parsedOutput.body;
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
$metadata,
|
|
1146
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1147
|
+
output,
|
|
1148
|
+
parsedBody,
|
|
1149
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1150
|
+
errorCode,
|
|
1566
1151
|
});
|
|
1567
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1568
1152
|
}
|
|
1569
1153
|
};
|
|
1570
1154
|
const deserializeAws_restJson1CreateBrowserSettingsCommand = async (output, context) => {
|
|
1571
1155
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1572
1156
|
return deserializeAws_restJson1CreateBrowserSettingsCommandError(output, context);
|
|
1573
1157
|
}
|
|
1574
|
-
const contents = {
|
|
1158
|
+
const contents = map({
|
|
1575
1159
|
$metadata: deserializeMetadata(output),
|
|
1576
|
-
|
|
1577
|
-
};
|
|
1160
|
+
});
|
|
1578
1161
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1579
|
-
if (data.browserSettingsArn
|
|
1162
|
+
if (data.browserSettingsArn != null) {
|
|
1580
1163
|
contents.browserSettingsArn = (0, smithy_client_1.expectString)(data.browserSettingsArn);
|
|
1581
1164
|
}
|
|
1582
|
-
return
|
|
1165
|
+
return contents;
|
|
1583
1166
|
};
|
|
1584
1167
|
exports.deserializeAws_restJson1CreateBrowserSettingsCommand = deserializeAws_restJson1CreateBrowserSettingsCommand;
|
|
1585
1168
|
const deserializeAws_restJson1CreateBrowserSettingsCommandError = async (output, context) => {
|
|
@@ -1587,7 +1170,6 @@ const deserializeAws_restJson1CreateBrowserSettingsCommandError = async (output,
|
|
|
1587
1170
|
...output,
|
|
1588
1171
|
body: await parseBody(output.body, context),
|
|
1589
1172
|
};
|
|
1590
|
-
let response;
|
|
1591
1173
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1592
1174
|
switch (errorCode) {
|
|
1593
1175
|
case "AccessDeniedException":
|
|
@@ -1613,29 +1195,26 @@ const deserializeAws_restJson1CreateBrowserSettingsCommandError = async (output,
|
|
|
1613
1195
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1614
1196
|
default:
|
|
1615
1197
|
const parsedBody = parsedOutput.body;
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
$metadata,
|
|
1198
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1199
|
+
output,
|
|
1200
|
+
parsedBody,
|
|
1201
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1202
|
+
errorCode,
|
|
1622
1203
|
});
|
|
1623
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1624
1204
|
}
|
|
1625
1205
|
};
|
|
1626
1206
|
const deserializeAws_restJson1CreateIdentityProviderCommand = async (output, context) => {
|
|
1627
1207
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1628
1208
|
return deserializeAws_restJson1CreateIdentityProviderCommandError(output, context);
|
|
1629
1209
|
}
|
|
1630
|
-
const contents = {
|
|
1210
|
+
const contents = map({
|
|
1631
1211
|
$metadata: deserializeMetadata(output),
|
|
1632
|
-
|
|
1633
|
-
};
|
|
1212
|
+
});
|
|
1634
1213
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1635
|
-
if (data.identityProviderArn
|
|
1214
|
+
if (data.identityProviderArn != null) {
|
|
1636
1215
|
contents.identityProviderArn = (0, smithy_client_1.expectString)(data.identityProviderArn);
|
|
1637
1216
|
}
|
|
1638
|
-
return
|
|
1217
|
+
return contents;
|
|
1639
1218
|
};
|
|
1640
1219
|
exports.deserializeAws_restJson1CreateIdentityProviderCommand = deserializeAws_restJson1CreateIdentityProviderCommand;
|
|
1641
1220
|
const deserializeAws_restJson1CreateIdentityProviderCommandError = async (output, context) => {
|
|
@@ -1643,7 +1222,6 @@ const deserializeAws_restJson1CreateIdentityProviderCommandError = async (output
|
|
|
1643
1222
|
...output,
|
|
1644
1223
|
body: await parseBody(output.body, context),
|
|
1645
1224
|
};
|
|
1646
|
-
let response;
|
|
1647
1225
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1648
1226
|
switch (errorCode) {
|
|
1649
1227
|
case "AccessDeniedException":
|
|
@@ -1669,29 +1247,26 @@ const deserializeAws_restJson1CreateIdentityProviderCommandError = async (output
|
|
|
1669
1247
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1670
1248
|
default:
|
|
1671
1249
|
const parsedBody = parsedOutput.body;
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
$metadata,
|
|
1250
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1251
|
+
output,
|
|
1252
|
+
parsedBody,
|
|
1253
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1254
|
+
errorCode,
|
|
1678
1255
|
});
|
|
1679
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1680
1256
|
}
|
|
1681
1257
|
};
|
|
1682
1258
|
const deserializeAws_restJson1CreateNetworkSettingsCommand = async (output, context) => {
|
|
1683
1259
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1684
1260
|
return deserializeAws_restJson1CreateNetworkSettingsCommandError(output, context);
|
|
1685
1261
|
}
|
|
1686
|
-
const contents = {
|
|
1262
|
+
const contents = map({
|
|
1687
1263
|
$metadata: deserializeMetadata(output),
|
|
1688
|
-
|
|
1689
|
-
};
|
|
1264
|
+
});
|
|
1690
1265
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1691
|
-
if (data.networkSettingsArn
|
|
1266
|
+
if (data.networkSettingsArn != null) {
|
|
1692
1267
|
contents.networkSettingsArn = (0, smithy_client_1.expectString)(data.networkSettingsArn);
|
|
1693
1268
|
}
|
|
1694
|
-
return
|
|
1269
|
+
return contents;
|
|
1695
1270
|
};
|
|
1696
1271
|
exports.deserializeAws_restJson1CreateNetworkSettingsCommand = deserializeAws_restJson1CreateNetworkSettingsCommand;
|
|
1697
1272
|
const deserializeAws_restJson1CreateNetworkSettingsCommandError = async (output, context) => {
|
|
@@ -1699,7 +1274,6 @@ const deserializeAws_restJson1CreateNetworkSettingsCommandError = async (output,
|
|
|
1699
1274
|
...output,
|
|
1700
1275
|
body: await parseBody(output.body, context),
|
|
1701
1276
|
};
|
|
1702
|
-
let response;
|
|
1703
1277
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1704
1278
|
switch (errorCode) {
|
|
1705
1279
|
case "AccessDeniedException":
|
|
@@ -1722,33 +1296,29 @@ const deserializeAws_restJson1CreateNetworkSettingsCommandError = async (output,
|
|
|
1722
1296
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1723
1297
|
default:
|
|
1724
1298
|
const parsedBody = parsedOutput.body;
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
$metadata,
|
|
1299
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1300
|
+
output,
|
|
1301
|
+
parsedBody,
|
|
1302
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1303
|
+
errorCode,
|
|
1731
1304
|
});
|
|
1732
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1733
1305
|
}
|
|
1734
1306
|
};
|
|
1735
1307
|
const deserializeAws_restJson1CreatePortalCommand = async (output, context) => {
|
|
1736
1308
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1737
1309
|
return deserializeAws_restJson1CreatePortalCommandError(output, context);
|
|
1738
1310
|
}
|
|
1739
|
-
const contents = {
|
|
1311
|
+
const contents = map({
|
|
1740
1312
|
$metadata: deserializeMetadata(output),
|
|
1741
|
-
|
|
1742
|
-
portalEndpoint: undefined,
|
|
1743
|
-
};
|
|
1313
|
+
});
|
|
1744
1314
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1745
|
-
if (data.portalArn
|
|
1315
|
+
if (data.portalArn != null) {
|
|
1746
1316
|
contents.portalArn = (0, smithy_client_1.expectString)(data.portalArn);
|
|
1747
1317
|
}
|
|
1748
|
-
if (data.portalEndpoint
|
|
1318
|
+
if (data.portalEndpoint != null) {
|
|
1749
1319
|
contents.portalEndpoint = (0, smithy_client_1.expectString)(data.portalEndpoint);
|
|
1750
1320
|
}
|
|
1751
|
-
return
|
|
1321
|
+
return contents;
|
|
1752
1322
|
};
|
|
1753
1323
|
exports.deserializeAws_restJson1CreatePortalCommand = deserializeAws_restJson1CreatePortalCommand;
|
|
1754
1324
|
const deserializeAws_restJson1CreatePortalCommandError = async (output, context) => {
|
|
@@ -1756,7 +1326,6 @@ const deserializeAws_restJson1CreatePortalCommandError = async (output, context)
|
|
|
1756
1326
|
...output,
|
|
1757
1327
|
body: await parseBody(output.body, context),
|
|
1758
1328
|
};
|
|
1759
|
-
let response;
|
|
1760
1329
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1761
1330
|
switch (errorCode) {
|
|
1762
1331
|
case "AccessDeniedException":
|
|
@@ -1782,29 +1351,26 @@ const deserializeAws_restJson1CreatePortalCommandError = async (output, context)
|
|
|
1782
1351
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1783
1352
|
default:
|
|
1784
1353
|
const parsedBody = parsedOutput.body;
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
$metadata,
|
|
1354
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1355
|
+
output,
|
|
1356
|
+
parsedBody,
|
|
1357
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1358
|
+
errorCode,
|
|
1791
1359
|
});
|
|
1792
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1793
1360
|
}
|
|
1794
1361
|
};
|
|
1795
1362
|
const deserializeAws_restJson1CreateTrustStoreCommand = async (output, context) => {
|
|
1796
1363
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1797
1364
|
return deserializeAws_restJson1CreateTrustStoreCommandError(output, context);
|
|
1798
1365
|
}
|
|
1799
|
-
const contents = {
|
|
1366
|
+
const contents = map({
|
|
1800
1367
|
$metadata: deserializeMetadata(output),
|
|
1801
|
-
|
|
1802
|
-
};
|
|
1368
|
+
});
|
|
1803
1369
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1804
|
-
if (data.trustStoreArn
|
|
1370
|
+
if (data.trustStoreArn != null) {
|
|
1805
1371
|
contents.trustStoreArn = (0, smithy_client_1.expectString)(data.trustStoreArn);
|
|
1806
1372
|
}
|
|
1807
|
-
return
|
|
1373
|
+
return contents;
|
|
1808
1374
|
};
|
|
1809
1375
|
exports.deserializeAws_restJson1CreateTrustStoreCommand = deserializeAws_restJson1CreateTrustStoreCommand;
|
|
1810
1376
|
const deserializeAws_restJson1CreateTrustStoreCommandError = async (output, context) => {
|
|
@@ -1812,7 +1378,6 @@ const deserializeAws_restJson1CreateTrustStoreCommandError = async (output, cont
|
|
|
1812
1378
|
...output,
|
|
1813
1379
|
body: await parseBody(output.body, context),
|
|
1814
1380
|
};
|
|
1815
|
-
let response;
|
|
1816
1381
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1817
1382
|
switch (errorCode) {
|
|
1818
1383
|
case "AccessDeniedException":
|
|
@@ -1835,29 +1400,26 @@ const deserializeAws_restJson1CreateTrustStoreCommandError = async (output, cont
|
|
|
1835
1400
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1836
1401
|
default:
|
|
1837
1402
|
const parsedBody = parsedOutput.body;
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
$metadata,
|
|
1403
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1404
|
+
output,
|
|
1405
|
+
parsedBody,
|
|
1406
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1407
|
+
errorCode,
|
|
1844
1408
|
});
|
|
1845
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1846
1409
|
}
|
|
1847
1410
|
};
|
|
1848
1411
|
const deserializeAws_restJson1CreateUserSettingsCommand = async (output, context) => {
|
|
1849
1412
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1850
1413
|
return deserializeAws_restJson1CreateUserSettingsCommandError(output, context);
|
|
1851
1414
|
}
|
|
1852
|
-
const contents = {
|
|
1415
|
+
const contents = map({
|
|
1853
1416
|
$metadata: deserializeMetadata(output),
|
|
1854
|
-
|
|
1855
|
-
};
|
|
1417
|
+
});
|
|
1856
1418
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1857
|
-
if (data.userSettingsArn
|
|
1419
|
+
if (data.userSettingsArn != null) {
|
|
1858
1420
|
contents.userSettingsArn = (0, smithy_client_1.expectString)(data.userSettingsArn);
|
|
1859
1421
|
}
|
|
1860
|
-
return
|
|
1422
|
+
return contents;
|
|
1861
1423
|
};
|
|
1862
1424
|
exports.deserializeAws_restJson1CreateUserSettingsCommand = deserializeAws_restJson1CreateUserSettingsCommand;
|
|
1863
1425
|
const deserializeAws_restJson1CreateUserSettingsCommandError = async (output, context) => {
|
|
@@ -1865,7 +1427,6 @@ const deserializeAws_restJson1CreateUserSettingsCommandError = async (output, co
|
|
|
1865
1427
|
...output,
|
|
1866
1428
|
body: await parseBody(output.body, context),
|
|
1867
1429
|
};
|
|
1868
|
-
let response;
|
|
1869
1430
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1870
1431
|
switch (errorCode) {
|
|
1871
1432
|
case "AccessDeniedException":
|
|
@@ -1888,25 +1449,23 @@ const deserializeAws_restJson1CreateUserSettingsCommandError = async (output, co
|
|
|
1888
1449
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1889
1450
|
default:
|
|
1890
1451
|
const parsedBody = parsedOutput.body;
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
$metadata,
|
|
1452
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1453
|
+
output,
|
|
1454
|
+
parsedBody,
|
|
1455
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1456
|
+
errorCode,
|
|
1897
1457
|
});
|
|
1898
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1899
1458
|
}
|
|
1900
1459
|
};
|
|
1901
1460
|
const deserializeAws_restJson1DeleteBrowserSettingsCommand = async (output, context) => {
|
|
1902
1461
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1903
1462
|
return deserializeAws_restJson1DeleteBrowserSettingsCommandError(output, context);
|
|
1904
1463
|
}
|
|
1905
|
-
const contents = {
|
|
1464
|
+
const contents = map({
|
|
1906
1465
|
$metadata: deserializeMetadata(output),
|
|
1907
|
-
};
|
|
1466
|
+
});
|
|
1908
1467
|
await collectBody(output.body, context);
|
|
1909
|
-
return
|
|
1468
|
+
return contents;
|
|
1910
1469
|
};
|
|
1911
1470
|
exports.deserializeAws_restJson1DeleteBrowserSettingsCommand = deserializeAws_restJson1DeleteBrowserSettingsCommand;
|
|
1912
1471
|
const deserializeAws_restJson1DeleteBrowserSettingsCommandError = async (output, context) => {
|
|
@@ -1914,7 +1473,6 @@ const deserializeAws_restJson1DeleteBrowserSettingsCommandError = async (output,
|
|
|
1914
1473
|
...output,
|
|
1915
1474
|
body: await parseBody(output.body, context),
|
|
1916
1475
|
};
|
|
1917
|
-
let response;
|
|
1918
1476
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1919
1477
|
switch (errorCode) {
|
|
1920
1478
|
case "AccessDeniedException":
|
|
@@ -1934,25 +1492,23 @@ const deserializeAws_restJson1DeleteBrowserSettingsCommandError = async (output,
|
|
|
1934
1492
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1935
1493
|
default:
|
|
1936
1494
|
const parsedBody = parsedOutput.body;
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
$metadata,
|
|
1495
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1496
|
+
output,
|
|
1497
|
+
parsedBody,
|
|
1498
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1499
|
+
errorCode,
|
|
1943
1500
|
});
|
|
1944
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1945
1501
|
}
|
|
1946
1502
|
};
|
|
1947
1503
|
const deserializeAws_restJson1DeleteIdentityProviderCommand = async (output, context) => {
|
|
1948
1504
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1949
1505
|
return deserializeAws_restJson1DeleteIdentityProviderCommandError(output, context);
|
|
1950
1506
|
}
|
|
1951
|
-
const contents = {
|
|
1507
|
+
const contents = map({
|
|
1952
1508
|
$metadata: deserializeMetadata(output),
|
|
1953
|
-
};
|
|
1509
|
+
});
|
|
1954
1510
|
await collectBody(output.body, context);
|
|
1955
|
-
return
|
|
1511
|
+
return contents;
|
|
1956
1512
|
};
|
|
1957
1513
|
exports.deserializeAws_restJson1DeleteIdentityProviderCommand = deserializeAws_restJson1DeleteIdentityProviderCommand;
|
|
1958
1514
|
const deserializeAws_restJson1DeleteIdentityProviderCommandError = async (output, context) => {
|
|
@@ -1960,7 +1516,6 @@ const deserializeAws_restJson1DeleteIdentityProviderCommandError = async (output
|
|
|
1960
1516
|
...output,
|
|
1961
1517
|
body: await parseBody(output.body, context),
|
|
1962
1518
|
};
|
|
1963
|
-
let response;
|
|
1964
1519
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1965
1520
|
switch (errorCode) {
|
|
1966
1521
|
case "AccessDeniedException":
|
|
@@ -1980,25 +1535,23 @@ const deserializeAws_restJson1DeleteIdentityProviderCommandError = async (output
|
|
|
1980
1535
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1981
1536
|
default:
|
|
1982
1537
|
const parsedBody = parsedOutput.body;
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
$metadata,
|
|
1538
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1539
|
+
output,
|
|
1540
|
+
parsedBody,
|
|
1541
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1542
|
+
errorCode,
|
|
1989
1543
|
});
|
|
1990
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1991
1544
|
}
|
|
1992
1545
|
};
|
|
1993
1546
|
const deserializeAws_restJson1DeleteNetworkSettingsCommand = async (output, context) => {
|
|
1994
1547
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1995
1548
|
return deserializeAws_restJson1DeleteNetworkSettingsCommandError(output, context);
|
|
1996
1549
|
}
|
|
1997
|
-
const contents = {
|
|
1550
|
+
const contents = map({
|
|
1998
1551
|
$metadata: deserializeMetadata(output),
|
|
1999
|
-
};
|
|
1552
|
+
});
|
|
2000
1553
|
await collectBody(output.body, context);
|
|
2001
|
-
return
|
|
1554
|
+
return contents;
|
|
2002
1555
|
};
|
|
2003
1556
|
exports.deserializeAws_restJson1DeleteNetworkSettingsCommand = deserializeAws_restJson1DeleteNetworkSettingsCommand;
|
|
2004
1557
|
const deserializeAws_restJson1DeleteNetworkSettingsCommandError = async (output, context) => {
|
|
@@ -2006,7 +1559,6 @@ const deserializeAws_restJson1DeleteNetworkSettingsCommandError = async (output,
|
|
|
2006
1559
|
...output,
|
|
2007
1560
|
body: await parseBody(output.body, context),
|
|
2008
1561
|
};
|
|
2009
|
-
let response;
|
|
2010
1562
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2011
1563
|
switch (errorCode) {
|
|
2012
1564
|
case "AccessDeniedException":
|
|
@@ -2026,25 +1578,23 @@ const deserializeAws_restJson1DeleteNetworkSettingsCommandError = async (output,
|
|
|
2026
1578
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2027
1579
|
default:
|
|
2028
1580
|
const parsedBody = parsedOutput.body;
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
$metadata,
|
|
1581
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1582
|
+
output,
|
|
1583
|
+
parsedBody,
|
|
1584
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1585
|
+
errorCode,
|
|
2035
1586
|
});
|
|
2036
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2037
1587
|
}
|
|
2038
1588
|
};
|
|
2039
1589
|
const deserializeAws_restJson1DeletePortalCommand = async (output, context) => {
|
|
2040
1590
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2041
1591
|
return deserializeAws_restJson1DeletePortalCommandError(output, context);
|
|
2042
1592
|
}
|
|
2043
|
-
const contents = {
|
|
1593
|
+
const contents = map({
|
|
2044
1594
|
$metadata: deserializeMetadata(output),
|
|
2045
|
-
};
|
|
1595
|
+
});
|
|
2046
1596
|
await collectBody(output.body, context);
|
|
2047
|
-
return
|
|
1597
|
+
return contents;
|
|
2048
1598
|
};
|
|
2049
1599
|
exports.deserializeAws_restJson1DeletePortalCommand = deserializeAws_restJson1DeletePortalCommand;
|
|
2050
1600
|
const deserializeAws_restJson1DeletePortalCommandError = async (output, context) => {
|
|
@@ -2052,7 +1602,6 @@ const deserializeAws_restJson1DeletePortalCommandError = async (output, context)
|
|
|
2052
1602
|
...output,
|
|
2053
1603
|
body: await parseBody(output.body, context),
|
|
2054
1604
|
};
|
|
2055
|
-
let response;
|
|
2056
1605
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2057
1606
|
switch (errorCode) {
|
|
2058
1607
|
case "AccessDeniedException":
|
|
@@ -2072,25 +1621,23 @@ const deserializeAws_restJson1DeletePortalCommandError = async (output, context)
|
|
|
2072
1621
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2073
1622
|
default:
|
|
2074
1623
|
const parsedBody = parsedOutput.body;
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
$metadata,
|
|
1624
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1625
|
+
output,
|
|
1626
|
+
parsedBody,
|
|
1627
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1628
|
+
errorCode,
|
|
2081
1629
|
});
|
|
2082
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2083
1630
|
}
|
|
2084
1631
|
};
|
|
2085
1632
|
const deserializeAws_restJson1DeleteTrustStoreCommand = async (output, context) => {
|
|
2086
1633
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2087
1634
|
return deserializeAws_restJson1DeleteTrustStoreCommandError(output, context);
|
|
2088
1635
|
}
|
|
2089
|
-
const contents = {
|
|
1636
|
+
const contents = map({
|
|
2090
1637
|
$metadata: deserializeMetadata(output),
|
|
2091
|
-
};
|
|
1638
|
+
});
|
|
2092
1639
|
await collectBody(output.body, context);
|
|
2093
|
-
return
|
|
1640
|
+
return contents;
|
|
2094
1641
|
};
|
|
2095
1642
|
exports.deserializeAws_restJson1DeleteTrustStoreCommand = deserializeAws_restJson1DeleteTrustStoreCommand;
|
|
2096
1643
|
const deserializeAws_restJson1DeleteTrustStoreCommandError = async (output, context) => {
|
|
@@ -2098,7 +1645,6 @@ const deserializeAws_restJson1DeleteTrustStoreCommandError = async (output, cont
|
|
|
2098
1645
|
...output,
|
|
2099
1646
|
body: await parseBody(output.body, context),
|
|
2100
1647
|
};
|
|
2101
|
-
let response;
|
|
2102
1648
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2103
1649
|
switch (errorCode) {
|
|
2104
1650
|
case "AccessDeniedException":
|
|
@@ -2118,25 +1664,23 @@ const deserializeAws_restJson1DeleteTrustStoreCommandError = async (output, cont
|
|
|
2118
1664
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2119
1665
|
default:
|
|
2120
1666
|
const parsedBody = parsedOutput.body;
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
$metadata,
|
|
1667
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1668
|
+
output,
|
|
1669
|
+
parsedBody,
|
|
1670
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1671
|
+
errorCode,
|
|
2127
1672
|
});
|
|
2128
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2129
1673
|
}
|
|
2130
1674
|
};
|
|
2131
1675
|
const deserializeAws_restJson1DeleteUserSettingsCommand = async (output, context) => {
|
|
2132
1676
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2133
1677
|
return deserializeAws_restJson1DeleteUserSettingsCommandError(output, context);
|
|
2134
1678
|
}
|
|
2135
|
-
const contents = {
|
|
1679
|
+
const contents = map({
|
|
2136
1680
|
$metadata: deserializeMetadata(output),
|
|
2137
|
-
};
|
|
1681
|
+
});
|
|
2138
1682
|
await collectBody(output.body, context);
|
|
2139
|
-
return
|
|
1683
|
+
return contents;
|
|
2140
1684
|
};
|
|
2141
1685
|
exports.deserializeAws_restJson1DeleteUserSettingsCommand = deserializeAws_restJson1DeleteUserSettingsCommand;
|
|
2142
1686
|
const deserializeAws_restJson1DeleteUserSettingsCommandError = async (output, context) => {
|
|
@@ -2144,7 +1688,6 @@ const deserializeAws_restJson1DeleteUserSettingsCommandError = async (output, co
|
|
|
2144
1688
|
...output,
|
|
2145
1689
|
body: await parseBody(output.body, context),
|
|
2146
1690
|
};
|
|
2147
|
-
let response;
|
|
2148
1691
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2149
1692
|
switch (errorCode) {
|
|
2150
1693
|
case "AccessDeniedException":
|
|
@@ -2164,25 +1707,23 @@ const deserializeAws_restJson1DeleteUserSettingsCommandError = async (output, co
|
|
|
2164
1707
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2165
1708
|
default:
|
|
2166
1709
|
const parsedBody = parsedOutput.body;
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
$metadata,
|
|
1710
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1711
|
+
output,
|
|
1712
|
+
parsedBody,
|
|
1713
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1714
|
+
errorCode,
|
|
2173
1715
|
});
|
|
2174
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2175
1716
|
}
|
|
2176
1717
|
};
|
|
2177
1718
|
const deserializeAws_restJson1DisassociateBrowserSettingsCommand = async (output, context) => {
|
|
2178
1719
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2179
1720
|
return deserializeAws_restJson1DisassociateBrowserSettingsCommandError(output, context);
|
|
2180
1721
|
}
|
|
2181
|
-
const contents = {
|
|
1722
|
+
const contents = map({
|
|
2182
1723
|
$metadata: deserializeMetadata(output),
|
|
2183
|
-
};
|
|
1724
|
+
});
|
|
2184
1725
|
await collectBody(output.body, context);
|
|
2185
|
-
return
|
|
1726
|
+
return contents;
|
|
2186
1727
|
};
|
|
2187
1728
|
exports.deserializeAws_restJson1DisassociateBrowserSettingsCommand = deserializeAws_restJson1DisassociateBrowserSettingsCommand;
|
|
2188
1729
|
const deserializeAws_restJson1DisassociateBrowserSettingsCommandError = async (output, context) => {
|
|
@@ -2190,7 +1731,6 @@ const deserializeAws_restJson1DisassociateBrowserSettingsCommandError = async (o
|
|
|
2190
1731
|
...output,
|
|
2191
1732
|
body: await parseBody(output.body, context),
|
|
2192
1733
|
};
|
|
2193
|
-
let response;
|
|
2194
1734
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2195
1735
|
switch (errorCode) {
|
|
2196
1736
|
case "AccessDeniedException":
|
|
@@ -2210,25 +1750,23 @@ const deserializeAws_restJson1DisassociateBrowserSettingsCommandError = async (o
|
|
|
2210
1750
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2211
1751
|
default:
|
|
2212
1752
|
const parsedBody = parsedOutput.body;
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
$metadata,
|
|
1753
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1754
|
+
output,
|
|
1755
|
+
parsedBody,
|
|
1756
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1757
|
+
errorCode,
|
|
2219
1758
|
});
|
|
2220
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2221
1759
|
}
|
|
2222
1760
|
};
|
|
2223
1761
|
const deserializeAws_restJson1DisassociateNetworkSettingsCommand = async (output, context) => {
|
|
2224
1762
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2225
1763
|
return deserializeAws_restJson1DisassociateNetworkSettingsCommandError(output, context);
|
|
2226
1764
|
}
|
|
2227
|
-
const contents = {
|
|
1765
|
+
const contents = map({
|
|
2228
1766
|
$metadata: deserializeMetadata(output),
|
|
2229
|
-
};
|
|
1767
|
+
});
|
|
2230
1768
|
await collectBody(output.body, context);
|
|
2231
|
-
return
|
|
1769
|
+
return contents;
|
|
2232
1770
|
};
|
|
2233
1771
|
exports.deserializeAws_restJson1DisassociateNetworkSettingsCommand = deserializeAws_restJson1DisassociateNetworkSettingsCommand;
|
|
2234
1772
|
const deserializeAws_restJson1DisassociateNetworkSettingsCommandError = async (output, context) => {
|
|
@@ -2236,7 +1774,6 @@ const deserializeAws_restJson1DisassociateNetworkSettingsCommandError = async (o
|
|
|
2236
1774
|
...output,
|
|
2237
1775
|
body: await parseBody(output.body, context),
|
|
2238
1776
|
};
|
|
2239
|
-
let response;
|
|
2240
1777
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2241
1778
|
switch (errorCode) {
|
|
2242
1779
|
case "AccessDeniedException":
|
|
@@ -2256,25 +1793,23 @@ const deserializeAws_restJson1DisassociateNetworkSettingsCommandError = async (o
|
|
|
2256
1793
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2257
1794
|
default:
|
|
2258
1795
|
const parsedBody = parsedOutput.body;
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
$metadata,
|
|
1796
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1797
|
+
output,
|
|
1798
|
+
parsedBody,
|
|
1799
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1800
|
+
errorCode,
|
|
2265
1801
|
});
|
|
2266
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2267
1802
|
}
|
|
2268
1803
|
};
|
|
2269
1804
|
const deserializeAws_restJson1DisassociateTrustStoreCommand = async (output, context) => {
|
|
2270
1805
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2271
1806
|
return deserializeAws_restJson1DisassociateTrustStoreCommandError(output, context);
|
|
2272
1807
|
}
|
|
2273
|
-
const contents = {
|
|
1808
|
+
const contents = map({
|
|
2274
1809
|
$metadata: deserializeMetadata(output),
|
|
2275
|
-
};
|
|
1810
|
+
});
|
|
2276
1811
|
await collectBody(output.body, context);
|
|
2277
|
-
return
|
|
1812
|
+
return contents;
|
|
2278
1813
|
};
|
|
2279
1814
|
exports.deserializeAws_restJson1DisassociateTrustStoreCommand = deserializeAws_restJson1DisassociateTrustStoreCommand;
|
|
2280
1815
|
const deserializeAws_restJson1DisassociateTrustStoreCommandError = async (output, context) => {
|
|
@@ -2282,7 +1817,6 @@ const deserializeAws_restJson1DisassociateTrustStoreCommandError = async (output
|
|
|
2282
1817
|
...output,
|
|
2283
1818
|
body: await parseBody(output.body, context),
|
|
2284
1819
|
};
|
|
2285
|
-
let response;
|
|
2286
1820
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2287
1821
|
switch (errorCode) {
|
|
2288
1822
|
case "AccessDeniedException":
|
|
@@ -2302,25 +1836,23 @@ const deserializeAws_restJson1DisassociateTrustStoreCommandError = async (output
|
|
|
2302
1836
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2303
1837
|
default:
|
|
2304
1838
|
const parsedBody = parsedOutput.body;
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
$metadata,
|
|
1839
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1840
|
+
output,
|
|
1841
|
+
parsedBody,
|
|
1842
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1843
|
+
errorCode,
|
|
2311
1844
|
});
|
|
2312
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2313
1845
|
}
|
|
2314
1846
|
};
|
|
2315
1847
|
const deserializeAws_restJson1DisassociateUserSettingsCommand = async (output, context) => {
|
|
2316
1848
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2317
1849
|
return deserializeAws_restJson1DisassociateUserSettingsCommandError(output, context);
|
|
2318
1850
|
}
|
|
2319
|
-
const contents = {
|
|
1851
|
+
const contents = map({
|
|
2320
1852
|
$metadata: deserializeMetadata(output),
|
|
2321
|
-
};
|
|
1853
|
+
});
|
|
2322
1854
|
await collectBody(output.body, context);
|
|
2323
|
-
return
|
|
1855
|
+
return contents;
|
|
2324
1856
|
};
|
|
2325
1857
|
exports.deserializeAws_restJson1DisassociateUserSettingsCommand = deserializeAws_restJson1DisassociateUserSettingsCommand;
|
|
2326
1858
|
const deserializeAws_restJson1DisassociateUserSettingsCommandError = async (output, context) => {
|
|
@@ -2328,7 +1860,6 @@ const deserializeAws_restJson1DisassociateUserSettingsCommandError = async (outp
|
|
|
2328
1860
|
...output,
|
|
2329
1861
|
body: await parseBody(output.body, context),
|
|
2330
1862
|
};
|
|
2331
|
-
let response;
|
|
2332
1863
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2333
1864
|
switch (errorCode) {
|
|
2334
1865
|
case "AccessDeniedException":
|
|
@@ -2348,29 +1879,26 @@ const deserializeAws_restJson1DisassociateUserSettingsCommandError = async (outp
|
|
|
2348
1879
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2349
1880
|
default:
|
|
2350
1881
|
const parsedBody = parsedOutput.body;
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
$metadata,
|
|
1882
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1883
|
+
output,
|
|
1884
|
+
parsedBody,
|
|
1885
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1886
|
+
errorCode,
|
|
2357
1887
|
});
|
|
2358
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2359
1888
|
}
|
|
2360
1889
|
};
|
|
2361
1890
|
const deserializeAws_restJson1GetBrowserSettingsCommand = async (output, context) => {
|
|
2362
1891
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2363
1892
|
return deserializeAws_restJson1GetBrowserSettingsCommandError(output, context);
|
|
2364
1893
|
}
|
|
2365
|
-
const contents = {
|
|
1894
|
+
const contents = map({
|
|
2366
1895
|
$metadata: deserializeMetadata(output),
|
|
2367
|
-
|
|
2368
|
-
};
|
|
1896
|
+
});
|
|
2369
1897
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2370
|
-
if (data.browserSettings
|
|
1898
|
+
if (data.browserSettings != null) {
|
|
2371
1899
|
contents.browserSettings = deserializeAws_restJson1BrowserSettings(data.browserSettings, context);
|
|
2372
1900
|
}
|
|
2373
|
-
return
|
|
1901
|
+
return contents;
|
|
2374
1902
|
};
|
|
2375
1903
|
exports.deserializeAws_restJson1GetBrowserSettingsCommand = deserializeAws_restJson1GetBrowserSettingsCommand;
|
|
2376
1904
|
const deserializeAws_restJson1GetBrowserSettingsCommandError = async (output, context) => {
|
|
@@ -2378,7 +1906,6 @@ const deserializeAws_restJson1GetBrowserSettingsCommandError = async (output, co
|
|
|
2378
1906
|
...output,
|
|
2379
1907
|
body: await parseBody(output.body, context),
|
|
2380
1908
|
};
|
|
2381
|
-
let response;
|
|
2382
1909
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2383
1910
|
switch (errorCode) {
|
|
2384
1911
|
case "AccessDeniedException":
|
|
@@ -2398,29 +1925,26 @@ const deserializeAws_restJson1GetBrowserSettingsCommandError = async (output, co
|
|
|
2398
1925
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2399
1926
|
default:
|
|
2400
1927
|
const parsedBody = parsedOutput.body;
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
$metadata,
|
|
1928
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1929
|
+
output,
|
|
1930
|
+
parsedBody,
|
|
1931
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1932
|
+
errorCode,
|
|
2407
1933
|
});
|
|
2408
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2409
1934
|
}
|
|
2410
1935
|
};
|
|
2411
1936
|
const deserializeAws_restJson1GetIdentityProviderCommand = async (output, context) => {
|
|
2412
1937
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2413
1938
|
return deserializeAws_restJson1GetIdentityProviderCommandError(output, context);
|
|
2414
1939
|
}
|
|
2415
|
-
const contents = {
|
|
1940
|
+
const contents = map({
|
|
2416
1941
|
$metadata: deserializeMetadata(output),
|
|
2417
|
-
|
|
2418
|
-
};
|
|
1942
|
+
});
|
|
2419
1943
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2420
|
-
if (data.identityProvider
|
|
1944
|
+
if (data.identityProvider != null) {
|
|
2421
1945
|
contents.identityProvider = deserializeAws_restJson1IdentityProvider(data.identityProvider, context);
|
|
2422
1946
|
}
|
|
2423
|
-
return
|
|
1947
|
+
return contents;
|
|
2424
1948
|
};
|
|
2425
1949
|
exports.deserializeAws_restJson1GetIdentityProviderCommand = deserializeAws_restJson1GetIdentityProviderCommand;
|
|
2426
1950
|
const deserializeAws_restJson1GetIdentityProviderCommandError = async (output, context) => {
|
|
@@ -2428,7 +1952,6 @@ const deserializeAws_restJson1GetIdentityProviderCommandError = async (output, c
|
|
|
2428
1952
|
...output,
|
|
2429
1953
|
body: await parseBody(output.body, context),
|
|
2430
1954
|
};
|
|
2431
|
-
let response;
|
|
2432
1955
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2433
1956
|
switch (errorCode) {
|
|
2434
1957
|
case "AccessDeniedException":
|
|
@@ -2448,29 +1971,26 @@ const deserializeAws_restJson1GetIdentityProviderCommandError = async (output, c
|
|
|
2448
1971
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2449
1972
|
default:
|
|
2450
1973
|
const parsedBody = parsedOutput.body;
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
$metadata,
|
|
1974
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1975
|
+
output,
|
|
1976
|
+
parsedBody,
|
|
1977
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1978
|
+
errorCode,
|
|
2457
1979
|
});
|
|
2458
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2459
1980
|
}
|
|
2460
1981
|
};
|
|
2461
1982
|
const deserializeAws_restJson1GetNetworkSettingsCommand = async (output, context) => {
|
|
2462
1983
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2463
1984
|
return deserializeAws_restJson1GetNetworkSettingsCommandError(output, context);
|
|
2464
1985
|
}
|
|
2465
|
-
const contents = {
|
|
1986
|
+
const contents = map({
|
|
2466
1987
|
$metadata: deserializeMetadata(output),
|
|
2467
|
-
|
|
2468
|
-
};
|
|
1988
|
+
});
|
|
2469
1989
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2470
|
-
if (data.networkSettings
|
|
1990
|
+
if (data.networkSettings != null) {
|
|
2471
1991
|
contents.networkSettings = deserializeAws_restJson1NetworkSettings(data.networkSettings, context);
|
|
2472
1992
|
}
|
|
2473
|
-
return
|
|
1993
|
+
return contents;
|
|
2474
1994
|
};
|
|
2475
1995
|
exports.deserializeAws_restJson1GetNetworkSettingsCommand = deserializeAws_restJson1GetNetworkSettingsCommand;
|
|
2476
1996
|
const deserializeAws_restJson1GetNetworkSettingsCommandError = async (output, context) => {
|
|
@@ -2478,7 +1998,6 @@ const deserializeAws_restJson1GetNetworkSettingsCommandError = async (output, co
|
|
|
2478
1998
|
...output,
|
|
2479
1999
|
body: await parseBody(output.body, context),
|
|
2480
2000
|
};
|
|
2481
|
-
let response;
|
|
2482
2001
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2483
2002
|
switch (errorCode) {
|
|
2484
2003
|
case "AccessDeniedException":
|
|
@@ -2498,29 +2017,26 @@ const deserializeAws_restJson1GetNetworkSettingsCommandError = async (output, co
|
|
|
2498
2017
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2499
2018
|
default:
|
|
2500
2019
|
const parsedBody = parsedOutput.body;
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
$metadata,
|
|
2020
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2021
|
+
output,
|
|
2022
|
+
parsedBody,
|
|
2023
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2024
|
+
errorCode,
|
|
2507
2025
|
});
|
|
2508
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2509
2026
|
}
|
|
2510
2027
|
};
|
|
2511
2028
|
const deserializeAws_restJson1GetPortalCommand = async (output, context) => {
|
|
2512
2029
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2513
2030
|
return deserializeAws_restJson1GetPortalCommandError(output, context);
|
|
2514
2031
|
}
|
|
2515
|
-
const contents = {
|
|
2032
|
+
const contents = map({
|
|
2516
2033
|
$metadata: deserializeMetadata(output),
|
|
2517
|
-
|
|
2518
|
-
};
|
|
2034
|
+
});
|
|
2519
2035
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2520
|
-
if (data.portal
|
|
2036
|
+
if (data.portal != null) {
|
|
2521
2037
|
contents.portal = deserializeAws_restJson1Portal(data.portal, context);
|
|
2522
2038
|
}
|
|
2523
|
-
return
|
|
2039
|
+
return contents;
|
|
2524
2040
|
};
|
|
2525
2041
|
exports.deserializeAws_restJson1GetPortalCommand = deserializeAws_restJson1GetPortalCommand;
|
|
2526
2042
|
const deserializeAws_restJson1GetPortalCommandError = async (output, context) => {
|
|
@@ -2528,7 +2044,6 @@ const deserializeAws_restJson1GetPortalCommandError = async (output, context) =>
|
|
|
2528
2044
|
...output,
|
|
2529
2045
|
body: await parseBody(output.body, context),
|
|
2530
2046
|
};
|
|
2531
|
-
let response;
|
|
2532
2047
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2533
2048
|
switch (errorCode) {
|
|
2534
2049
|
case "AccessDeniedException":
|
|
@@ -2548,33 +2063,29 @@ const deserializeAws_restJson1GetPortalCommandError = async (output, context) =>
|
|
|
2548
2063
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2549
2064
|
default:
|
|
2550
2065
|
const parsedBody = parsedOutput.body;
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
$metadata,
|
|
2066
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2067
|
+
output,
|
|
2068
|
+
parsedBody,
|
|
2069
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2070
|
+
errorCode,
|
|
2557
2071
|
});
|
|
2558
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2559
2072
|
}
|
|
2560
2073
|
};
|
|
2561
2074
|
const deserializeAws_restJson1GetPortalServiceProviderMetadataCommand = async (output, context) => {
|
|
2562
2075
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2563
2076
|
return deserializeAws_restJson1GetPortalServiceProviderMetadataCommandError(output, context);
|
|
2564
2077
|
}
|
|
2565
|
-
const contents = {
|
|
2078
|
+
const contents = map({
|
|
2566
2079
|
$metadata: deserializeMetadata(output),
|
|
2567
|
-
|
|
2568
|
-
serviceProviderSamlMetadata: undefined,
|
|
2569
|
-
};
|
|
2080
|
+
});
|
|
2570
2081
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2571
|
-
if (data.portalArn
|
|
2082
|
+
if (data.portalArn != null) {
|
|
2572
2083
|
contents.portalArn = (0, smithy_client_1.expectString)(data.portalArn);
|
|
2573
2084
|
}
|
|
2574
|
-
if (data.serviceProviderSamlMetadata
|
|
2085
|
+
if (data.serviceProviderSamlMetadata != null) {
|
|
2575
2086
|
contents.serviceProviderSamlMetadata = (0, smithy_client_1.expectString)(data.serviceProviderSamlMetadata);
|
|
2576
2087
|
}
|
|
2577
|
-
return
|
|
2088
|
+
return contents;
|
|
2578
2089
|
};
|
|
2579
2090
|
exports.deserializeAws_restJson1GetPortalServiceProviderMetadataCommand = deserializeAws_restJson1GetPortalServiceProviderMetadataCommand;
|
|
2580
2091
|
const deserializeAws_restJson1GetPortalServiceProviderMetadataCommandError = async (output, context) => {
|
|
@@ -2582,7 +2093,6 @@ const deserializeAws_restJson1GetPortalServiceProviderMetadataCommandError = asy
|
|
|
2582
2093
|
...output,
|
|
2583
2094
|
body: await parseBody(output.body, context),
|
|
2584
2095
|
};
|
|
2585
|
-
let response;
|
|
2586
2096
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2587
2097
|
switch (errorCode) {
|
|
2588
2098
|
case "AccessDeniedException":
|
|
@@ -2602,29 +2112,26 @@ const deserializeAws_restJson1GetPortalServiceProviderMetadataCommandError = asy
|
|
|
2602
2112
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2603
2113
|
default:
|
|
2604
2114
|
const parsedBody = parsedOutput.body;
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
$metadata,
|
|
2115
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2116
|
+
output,
|
|
2117
|
+
parsedBody,
|
|
2118
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2119
|
+
errorCode,
|
|
2611
2120
|
});
|
|
2612
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2613
2121
|
}
|
|
2614
2122
|
};
|
|
2615
2123
|
const deserializeAws_restJson1GetTrustStoreCommand = async (output, context) => {
|
|
2616
2124
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2617
2125
|
return deserializeAws_restJson1GetTrustStoreCommandError(output, context);
|
|
2618
2126
|
}
|
|
2619
|
-
const contents = {
|
|
2127
|
+
const contents = map({
|
|
2620
2128
|
$metadata: deserializeMetadata(output),
|
|
2621
|
-
|
|
2622
|
-
};
|
|
2129
|
+
});
|
|
2623
2130
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2624
|
-
if (data.trustStore
|
|
2131
|
+
if (data.trustStore != null) {
|
|
2625
2132
|
contents.trustStore = deserializeAws_restJson1TrustStore(data.trustStore, context);
|
|
2626
2133
|
}
|
|
2627
|
-
return
|
|
2134
|
+
return contents;
|
|
2628
2135
|
};
|
|
2629
2136
|
exports.deserializeAws_restJson1GetTrustStoreCommand = deserializeAws_restJson1GetTrustStoreCommand;
|
|
2630
2137
|
const deserializeAws_restJson1GetTrustStoreCommandError = async (output, context) => {
|
|
@@ -2632,7 +2139,6 @@ const deserializeAws_restJson1GetTrustStoreCommandError = async (output, context
|
|
|
2632
2139
|
...output,
|
|
2633
2140
|
body: await parseBody(output.body, context),
|
|
2634
2141
|
};
|
|
2635
|
-
let response;
|
|
2636
2142
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2637
2143
|
switch (errorCode) {
|
|
2638
2144
|
case "AccessDeniedException":
|
|
@@ -2652,33 +2158,29 @@ const deserializeAws_restJson1GetTrustStoreCommandError = async (output, context
|
|
|
2652
2158
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2653
2159
|
default:
|
|
2654
2160
|
const parsedBody = parsedOutput.body;
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
$metadata,
|
|
2161
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2162
|
+
output,
|
|
2163
|
+
parsedBody,
|
|
2164
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2165
|
+
errorCode,
|
|
2661
2166
|
});
|
|
2662
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2663
2167
|
}
|
|
2664
2168
|
};
|
|
2665
2169
|
const deserializeAws_restJson1GetTrustStoreCertificateCommand = async (output, context) => {
|
|
2666
2170
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2667
2171
|
return deserializeAws_restJson1GetTrustStoreCertificateCommandError(output, context);
|
|
2668
2172
|
}
|
|
2669
|
-
const contents = {
|
|
2173
|
+
const contents = map({
|
|
2670
2174
|
$metadata: deserializeMetadata(output),
|
|
2671
|
-
|
|
2672
|
-
trustStoreArn: undefined,
|
|
2673
|
-
};
|
|
2175
|
+
});
|
|
2674
2176
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2675
|
-
if (data.certificate
|
|
2177
|
+
if (data.certificate != null) {
|
|
2676
2178
|
contents.certificate = deserializeAws_restJson1Certificate(data.certificate, context);
|
|
2677
2179
|
}
|
|
2678
|
-
if (data.trustStoreArn
|
|
2180
|
+
if (data.trustStoreArn != null) {
|
|
2679
2181
|
contents.trustStoreArn = (0, smithy_client_1.expectString)(data.trustStoreArn);
|
|
2680
2182
|
}
|
|
2681
|
-
return
|
|
2183
|
+
return contents;
|
|
2682
2184
|
};
|
|
2683
2185
|
exports.deserializeAws_restJson1GetTrustStoreCertificateCommand = deserializeAws_restJson1GetTrustStoreCertificateCommand;
|
|
2684
2186
|
const deserializeAws_restJson1GetTrustStoreCertificateCommandError = async (output, context) => {
|
|
@@ -2686,7 +2188,6 @@ const deserializeAws_restJson1GetTrustStoreCertificateCommandError = async (outp
|
|
|
2686
2188
|
...output,
|
|
2687
2189
|
body: await parseBody(output.body, context),
|
|
2688
2190
|
};
|
|
2689
|
-
let response;
|
|
2690
2191
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2691
2192
|
switch (errorCode) {
|
|
2692
2193
|
case "AccessDeniedException":
|
|
@@ -2706,29 +2207,26 @@ const deserializeAws_restJson1GetTrustStoreCertificateCommandError = async (outp
|
|
|
2706
2207
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2707
2208
|
default:
|
|
2708
2209
|
const parsedBody = parsedOutput.body;
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
$metadata,
|
|
2210
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2211
|
+
output,
|
|
2212
|
+
parsedBody,
|
|
2213
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2214
|
+
errorCode,
|
|
2715
2215
|
});
|
|
2716
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2717
2216
|
}
|
|
2718
2217
|
};
|
|
2719
2218
|
const deserializeAws_restJson1GetUserSettingsCommand = async (output, context) => {
|
|
2720
2219
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2721
2220
|
return deserializeAws_restJson1GetUserSettingsCommandError(output, context);
|
|
2722
2221
|
}
|
|
2723
|
-
const contents = {
|
|
2222
|
+
const contents = map({
|
|
2724
2223
|
$metadata: deserializeMetadata(output),
|
|
2725
|
-
|
|
2726
|
-
};
|
|
2224
|
+
});
|
|
2727
2225
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2728
|
-
if (data.userSettings
|
|
2226
|
+
if (data.userSettings != null) {
|
|
2729
2227
|
contents.userSettings = deserializeAws_restJson1UserSettings(data.userSettings, context);
|
|
2730
2228
|
}
|
|
2731
|
-
return
|
|
2229
|
+
return contents;
|
|
2732
2230
|
};
|
|
2733
2231
|
exports.deserializeAws_restJson1GetUserSettingsCommand = deserializeAws_restJson1GetUserSettingsCommand;
|
|
2734
2232
|
const deserializeAws_restJson1GetUserSettingsCommandError = async (output, context) => {
|
|
@@ -2736,7 +2234,6 @@ const deserializeAws_restJson1GetUserSettingsCommandError = async (output, conte
|
|
|
2736
2234
|
...output,
|
|
2737
2235
|
body: await parseBody(output.body, context),
|
|
2738
2236
|
};
|
|
2739
|
-
let response;
|
|
2740
2237
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2741
2238
|
switch (errorCode) {
|
|
2742
2239
|
case "AccessDeniedException":
|
|
@@ -2756,33 +2253,29 @@ const deserializeAws_restJson1GetUserSettingsCommandError = async (output, conte
|
|
|
2756
2253
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2757
2254
|
default:
|
|
2758
2255
|
const parsedBody = parsedOutput.body;
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
$metadata,
|
|
2256
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2257
|
+
output,
|
|
2258
|
+
parsedBody,
|
|
2259
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2260
|
+
errorCode,
|
|
2765
2261
|
});
|
|
2766
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2767
2262
|
}
|
|
2768
2263
|
};
|
|
2769
2264
|
const deserializeAws_restJson1ListBrowserSettingsCommand = async (output, context) => {
|
|
2770
2265
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2771
2266
|
return deserializeAws_restJson1ListBrowserSettingsCommandError(output, context);
|
|
2772
2267
|
}
|
|
2773
|
-
const contents = {
|
|
2268
|
+
const contents = map({
|
|
2774
2269
|
$metadata: deserializeMetadata(output),
|
|
2775
|
-
|
|
2776
|
-
nextToken: undefined,
|
|
2777
|
-
};
|
|
2270
|
+
});
|
|
2778
2271
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2779
|
-
if (data.browserSettings
|
|
2272
|
+
if (data.browserSettings != null) {
|
|
2780
2273
|
contents.browserSettings = deserializeAws_restJson1BrowserSettingsList(data.browserSettings, context);
|
|
2781
2274
|
}
|
|
2782
|
-
if (data.nextToken
|
|
2275
|
+
if (data.nextToken != null) {
|
|
2783
2276
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2784
2277
|
}
|
|
2785
|
-
return
|
|
2278
|
+
return contents;
|
|
2786
2279
|
};
|
|
2787
2280
|
exports.deserializeAws_restJson1ListBrowserSettingsCommand = deserializeAws_restJson1ListBrowserSettingsCommand;
|
|
2788
2281
|
const deserializeAws_restJson1ListBrowserSettingsCommandError = async (output, context) => {
|
|
@@ -2790,7 +2283,6 @@ const deserializeAws_restJson1ListBrowserSettingsCommandError = async (output, c
|
|
|
2790
2283
|
...output,
|
|
2791
2284
|
body: await parseBody(output.body, context),
|
|
2792
2285
|
};
|
|
2793
|
-
let response;
|
|
2794
2286
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2795
2287
|
switch (errorCode) {
|
|
2796
2288
|
case "AccessDeniedException":
|
|
@@ -2807,33 +2299,29 @@ const deserializeAws_restJson1ListBrowserSettingsCommandError = async (output, c
|
|
|
2807
2299
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2808
2300
|
default:
|
|
2809
2301
|
const parsedBody = parsedOutput.body;
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
$metadata,
|
|
2302
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2303
|
+
output,
|
|
2304
|
+
parsedBody,
|
|
2305
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2306
|
+
errorCode,
|
|
2816
2307
|
});
|
|
2817
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2818
2308
|
}
|
|
2819
2309
|
};
|
|
2820
2310
|
const deserializeAws_restJson1ListIdentityProvidersCommand = async (output, context) => {
|
|
2821
2311
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2822
2312
|
return deserializeAws_restJson1ListIdentityProvidersCommandError(output, context);
|
|
2823
2313
|
}
|
|
2824
|
-
const contents = {
|
|
2314
|
+
const contents = map({
|
|
2825
2315
|
$metadata: deserializeMetadata(output),
|
|
2826
|
-
|
|
2827
|
-
nextToken: undefined,
|
|
2828
|
-
};
|
|
2316
|
+
});
|
|
2829
2317
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2830
|
-
if (data.identityProviders
|
|
2318
|
+
if (data.identityProviders != null) {
|
|
2831
2319
|
contents.identityProviders = deserializeAws_restJson1IdentityProviderList(data.identityProviders, context);
|
|
2832
2320
|
}
|
|
2833
|
-
if (data.nextToken
|
|
2321
|
+
if (data.nextToken != null) {
|
|
2834
2322
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2835
2323
|
}
|
|
2836
|
-
return
|
|
2324
|
+
return contents;
|
|
2837
2325
|
};
|
|
2838
2326
|
exports.deserializeAws_restJson1ListIdentityProvidersCommand = deserializeAws_restJson1ListIdentityProvidersCommand;
|
|
2839
2327
|
const deserializeAws_restJson1ListIdentityProvidersCommandError = async (output, context) => {
|
|
@@ -2841,7 +2329,6 @@ const deserializeAws_restJson1ListIdentityProvidersCommandError = async (output,
|
|
|
2841
2329
|
...output,
|
|
2842
2330
|
body: await parseBody(output.body, context),
|
|
2843
2331
|
};
|
|
2844
|
-
let response;
|
|
2845
2332
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2846
2333
|
switch (errorCode) {
|
|
2847
2334
|
case "AccessDeniedException":
|
|
@@ -2858,33 +2345,29 @@ const deserializeAws_restJson1ListIdentityProvidersCommandError = async (output,
|
|
|
2858
2345
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2859
2346
|
default:
|
|
2860
2347
|
const parsedBody = parsedOutput.body;
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
$metadata,
|
|
2348
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2349
|
+
output,
|
|
2350
|
+
parsedBody,
|
|
2351
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2352
|
+
errorCode,
|
|
2867
2353
|
});
|
|
2868
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2869
2354
|
}
|
|
2870
2355
|
};
|
|
2871
2356
|
const deserializeAws_restJson1ListNetworkSettingsCommand = async (output, context) => {
|
|
2872
2357
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2873
2358
|
return deserializeAws_restJson1ListNetworkSettingsCommandError(output, context);
|
|
2874
2359
|
}
|
|
2875
|
-
const contents = {
|
|
2360
|
+
const contents = map({
|
|
2876
2361
|
$metadata: deserializeMetadata(output),
|
|
2877
|
-
|
|
2878
|
-
nextToken: undefined,
|
|
2879
|
-
};
|
|
2362
|
+
});
|
|
2880
2363
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2881
|
-
if (data.networkSettings
|
|
2364
|
+
if (data.networkSettings != null) {
|
|
2882
2365
|
contents.networkSettings = deserializeAws_restJson1NetworkSettingsList(data.networkSettings, context);
|
|
2883
2366
|
}
|
|
2884
|
-
if (data.nextToken
|
|
2367
|
+
if (data.nextToken != null) {
|
|
2885
2368
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2886
2369
|
}
|
|
2887
|
-
return
|
|
2370
|
+
return contents;
|
|
2888
2371
|
};
|
|
2889
2372
|
exports.deserializeAws_restJson1ListNetworkSettingsCommand = deserializeAws_restJson1ListNetworkSettingsCommand;
|
|
2890
2373
|
const deserializeAws_restJson1ListNetworkSettingsCommandError = async (output, context) => {
|
|
@@ -2892,7 +2375,6 @@ const deserializeAws_restJson1ListNetworkSettingsCommandError = async (output, c
|
|
|
2892
2375
|
...output,
|
|
2893
2376
|
body: await parseBody(output.body, context),
|
|
2894
2377
|
};
|
|
2895
|
-
let response;
|
|
2896
2378
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2897
2379
|
switch (errorCode) {
|
|
2898
2380
|
case "AccessDeniedException":
|
|
@@ -2909,33 +2391,29 @@ const deserializeAws_restJson1ListNetworkSettingsCommandError = async (output, c
|
|
|
2909
2391
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2910
2392
|
default:
|
|
2911
2393
|
const parsedBody = parsedOutput.body;
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
$metadata,
|
|
2394
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2395
|
+
output,
|
|
2396
|
+
parsedBody,
|
|
2397
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2398
|
+
errorCode,
|
|
2918
2399
|
});
|
|
2919
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2920
2400
|
}
|
|
2921
2401
|
};
|
|
2922
2402
|
const deserializeAws_restJson1ListPortalsCommand = async (output, context) => {
|
|
2923
2403
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2924
2404
|
return deserializeAws_restJson1ListPortalsCommandError(output, context);
|
|
2925
2405
|
}
|
|
2926
|
-
const contents = {
|
|
2406
|
+
const contents = map({
|
|
2927
2407
|
$metadata: deserializeMetadata(output),
|
|
2928
|
-
|
|
2929
|
-
portals: undefined,
|
|
2930
|
-
};
|
|
2408
|
+
});
|
|
2931
2409
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2932
|
-
if (data.nextToken
|
|
2410
|
+
if (data.nextToken != null) {
|
|
2933
2411
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2934
2412
|
}
|
|
2935
|
-
if (data.portals
|
|
2413
|
+
if (data.portals != null) {
|
|
2936
2414
|
contents.portals = deserializeAws_restJson1PortalList(data.portals, context);
|
|
2937
2415
|
}
|
|
2938
|
-
return
|
|
2416
|
+
return contents;
|
|
2939
2417
|
};
|
|
2940
2418
|
exports.deserializeAws_restJson1ListPortalsCommand = deserializeAws_restJson1ListPortalsCommand;
|
|
2941
2419
|
const deserializeAws_restJson1ListPortalsCommandError = async (output, context) => {
|
|
@@ -2943,7 +2421,6 @@ const deserializeAws_restJson1ListPortalsCommandError = async (output, context)
|
|
|
2943
2421
|
...output,
|
|
2944
2422
|
body: await parseBody(output.body, context),
|
|
2945
2423
|
};
|
|
2946
|
-
let response;
|
|
2947
2424
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2948
2425
|
switch (errorCode) {
|
|
2949
2426
|
case "AccessDeniedException":
|
|
@@ -2960,29 +2437,26 @@ const deserializeAws_restJson1ListPortalsCommandError = async (output, context)
|
|
|
2960
2437
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2961
2438
|
default:
|
|
2962
2439
|
const parsedBody = parsedOutput.body;
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
$metadata,
|
|
2440
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2441
|
+
output,
|
|
2442
|
+
parsedBody,
|
|
2443
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2444
|
+
errorCode,
|
|
2969
2445
|
});
|
|
2970
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2971
2446
|
}
|
|
2972
2447
|
};
|
|
2973
2448
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
2974
2449
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2975
2450
|
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
2976
2451
|
}
|
|
2977
|
-
const contents = {
|
|
2452
|
+
const contents = map({
|
|
2978
2453
|
$metadata: deserializeMetadata(output),
|
|
2979
|
-
|
|
2980
|
-
};
|
|
2454
|
+
});
|
|
2981
2455
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2982
|
-
if (data.tags
|
|
2456
|
+
if (data.tags != null) {
|
|
2983
2457
|
contents.tags = deserializeAws_restJson1TagList(data.tags, context);
|
|
2984
2458
|
}
|
|
2985
|
-
return
|
|
2459
|
+
return contents;
|
|
2986
2460
|
};
|
|
2987
2461
|
exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
|
|
2988
2462
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -2990,7 +2464,6 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2990
2464
|
...output,
|
|
2991
2465
|
body: await parseBody(output.body, context),
|
|
2992
2466
|
};
|
|
2993
|
-
let response;
|
|
2994
2467
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2995
2468
|
switch (errorCode) {
|
|
2996
2469
|
case "AccessDeniedException":
|
|
@@ -3010,37 +2483,32 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
3010
2483
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3011
2484
|
default:
|
|
3012
2485
|
const parsedBody = parsedOutput.body;
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
$metadata,
|
|
2486
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2487
|
+
output,
|
|
2488
|
+
parsedBody,
|
|
2489
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2490
|
+
errorCode,
|
|
3019
2491
|
});
|
|
3020
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3021
2492
|
}
|
|
3022
2493
|
};
|
|
3023
2494
|
const deserializeAws_restJson1ListTrustStoreCertificatesCommand = async (output, context) => {
|
|
3024
2495
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3025
2496
|
return deserializeAws_restJson1ListTrustStoreCertificatesCommandError(output, context);
|
|
3026
2497
|
}
|
|
3027
|
-
const contents = {
|
|
2498
|
+
const contents = map({
|
|
3028
2499
|
$metadata: deserializeMetadata(output),
|
|
3029
|
-
|
|
3030
|
-
nextToken: undefined,
|
|
3031
|
-
trustStoreArn: undefined,
|
|
3032
|
-
};
|
|
2500
|
+
});
|
|
3033
2501
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3034
|
-
if (data.certificateList
|
|
2502
|
+
if (data.certificateList != null) {
|
|
3035
2503
|
contents.certificateList = deserializeAws_restJson1CertificateSummaryList(data.certificateList, context);
|
|
3036
2504
|
}
|
|
3037
|
-
if (data.nextToken
|
|
2505
|
+
if (data.nextToken != null) {
|
|
3038
2506
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3039
2507
|
}
|
|
3040
|
-
if (data.trustStoreArn
|
|
2508
|
+
if (data.trustStoreArn != null) {
|
|
3041
2509
|
contents.trustStoreArn = (0, smithy_client_1.expectString)(data.trustStoreArn);
|
|
3042
2510
|
}
|
|
3043
|
-
return
|
|
2511
|
+
return contents;
|
|
3044
2512
|
};
|
|
3045
2513
|
exports.deserializeAws_restJson1ListTrustStoreCertificatesCommand = deserializeAws_restJson1ListTrustStoreCertificatesCommand;
|
|
3046
2514
|
const deserializeAws_restJson1ListTrustStoreCertificatesCommandError = async (output, context) => {
|
|
@@ -3048,7 +2516,6 @@ const deserializeAws_restJson1ListTrustStoreCertificatesCommandError = async (ou
|
|
|
3048
2516
|
...output,
|
|
3049
2517
|
body: await parseBody(output.body, context),
|
|
3050
2518
|
};
|
|
3051
|
-
let response;
|
|
3052
2519
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3053
2520
|
switch (errorCode) {
|
|
3054
2521
|
case "AccessDeniedException":
|
|
@@ -3068,33 +2535,29 @@ const deserializeAws_restJson1ListTrustStoreCertificatesCommandError = async (ou
|
|
|
3068
2535
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3069
2536
|
default:
|
|
3070
2537
|
const parsedBody = parsedOutput.body;
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
$metadata,
|
|
2538
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2539
|
+
output,
|
|
2540
|
+
parsedBody,
|
|
2541
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2542
|
+
errorCode,
|
|
3077
2543
|
});
|
|
3078
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3079
2544
|
}
|
|
3080
2545
|
};
|
|
3081
2546
|
const deserializeAws_restJson1ListTrustStoresCommand = async (output, context) => {
|
|
3082
2547
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3083
2548
|
return deserializeAws_restJson1ListTrustStoresCommandError(output, context);
|
|
3084
2549
|
}
|
|
3085
|
-
const contents = {
|
|
2550
|
+
const contents = map({
|
|
3086
2551
|
$metadata: deserializeMetadata(output),
|
|
3087
|
-
|
|
3088
|
-
trustStores: undefined,
|
|
3089
|
-
};
|
|
2552
|
+
});
|
|
3090
2553
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3091
|
-
if (data.nextToken
|
|
2554
|
+
if (data.nextToken != null) {
|
|
3092
2555
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3093
2556
|
}
|
|
3094
|
-
if (data.trustStores
|
|
2557
|
+
if (data.trustStores != null) {
|
|
3095
2558
|
contents.trustStores = deserializeAws_restJson1TrustStoreSummaryList(data.trustStores, context);
|
|
3096
2559
|
}
|
|
3097
|
-
return
|
|
2560
|
+
return contents;
|
|
3098
2561
|
};
|
|
3099
2562
|
exports.deserializeAws_restJson1ListTrustStoresCommand = deserializeAws_restJson1ListTrustStoresCommand;
|
|
3100
2563
|
const deserializeAws_restJson1ListTrustStoresCommandError = async (output, context) => {
|
|
@@ -3102,7 +2565,6 @@ const deserializeAws_restJson1ListTrustStoresCommandError = async (output, conte
|
|
|
3102
2565
|
...output,
|
|
3103
2566
|
body: await parseBody(output.body, context),
|
|
3104
2567
|
};
|
|
3105
|
-
let response;
|
|
3106
2568
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3107
2569
|
switch (errorCode) {
|
|
3108
2570
|
case "AccessDeniedException":
|
|
@@ -3119,33 +2581,29 @@ const deserializeAws_restJson1ListTrustStoresCommandError = async (output, conte
|
|
|
3119
2581
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3120
2582
|
default:
|
|
3121
2583
|
const parsedBody = parsedOutput.body;
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
$metadata,
|
|
2584
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2585
|
+
output,
|
|
2586
|
+
parsedBody,
|
|
2587
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2588
|
+
errorCode,
|
|
3128
2589
|
});
|
|
3129
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3130
2590
|
}
|
|
3131
2591
|
};
|
|
3132
2592
|
const deserializeAws_restJson1ListUserSettingsCommand = async (output, context) => {
|
|
3133
2593
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3134
2594
|
return deserializeAws_restJson1ListUserSettingsCommandError(output, context);
|
|
3135
2595
|
}
|
|
3136
|
-
const contents = {
|
|
2596
|
+
const contents = map({
|
|
3137
2597
|
$metadata: deserializeMetadata(output),
|
|
3138
|
-
|
|
3139
|
-
userSettings: undefined,
|
|
3140
|
-
};
|
|
2598
|
+
});
|
|
3141
2599
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3142
|
-
if (data.nextToken
|
|
2600
|
+
if (data.nextToken != null) {
|
|
3143
2601
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3144
2602
|
}
|
|
3145
|
-
if (data.userSettings
|
|
2603
|
+
if (data.userSettings != null) {
|
|
3146
2604
|
contents.userSettings = deserializeAws_restJson1UserSettingsList(data.userSettings, context);
|
|
3147
2605
|
}
|
|
3148
|
-
return
|
|
2606
|
+
return contents;
|
|
3149
2607
|
};
|
|
3150
2608
|
exports.deserializeAws_restJson1ListUserSettingsCommand = deserializeAws_restJson1ListUserSettingsCommand;
|
|
3151
2609
|
const deserializeAws_restJson1ListUserSettingsCommandError = async (output, context) => {
|
|
@@ -3153,7 +2611,6 @@ const deserializeAws_restJson1ListUserSettingsCommandError = async (output, cont
|
|
|
3153
2611
|
...output,
|
|
3154
2612
|
body: await parseBody(output.body, context),
|
|
3155
2613
|
};
|
|
3156
|
-
let response;
|
|
3157
2614
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3158
2615
|
switch (errorCode) {
|
|
3159
2616
|
case "AccessDeniedException":
|
|
@@ -3170,25 +2627,23 @@ const deserializeAws_restJson1ListUserSettingsCommandError = async (output, cont
|
|
|
3170
2627
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3171
2628
|
default:
|
|
3172
2629
|
const parsedBody = parsedOutput.body;
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
$metadata,
|
|
2630
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2631
|
+
output,
|
|
2632
|
+
parsedBody,
|
|
2633
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2634
|
+
errorCode,
|
|
3179
2635
|
});
|
|
3180
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3181
2636
|
}
|
|
3182
2637
|
};
|
|
3183
2638
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
3184
2639
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3185
2640
|
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
3186
2641
|
}
|
|
3187
|
-
const contents = {
|
|
2642
|
+
const contents = map({
|
|
3188
2643
|
$metadata: deserializeMetadata(output),
|
|
3189
|
-
};
|
|
2644
|
+
});
|
|
3190
2645
|
await collectBody(output.body, context);
|
|
3191
|
-
return
|
|
2646
|
+
return contents;
|
|
3192
2647
|
};
|
|
3193
2648
|
exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
|
|
3194
2649
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
@@ -3196,7 +2651,6 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3196
2651
|
...output,
|
|
3197
2652
|
body: await parseBody(output.body, context),
|
|
3198
2653
|
};
|
|
3199
|
-
let response;
|
|
3200
2654
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3201
2655
|
switch (errorCode) {
|
|
3202
2656
|
case "AccessDeniedException":
|
|
@@ -3219,25 +2673,23 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3219
2673
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3220
2674
|
default:
|
|
3221
2675
|
const parsedBody = parsedOutput.body;
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
$metadata,
|
|
2676
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2677
|
+
output,
|
|
2678
|
+
parsedBody,
|
|
2679
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2680
|
+
errorCode,
|
|
3228
2681
|
});
|
|
3229
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3230
2682
|
}
|
|
3231
2683
|
};
|
|
3232
2684
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
3233
2685
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3234
2686
|
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
3235
2687
|
}
|
|
3236
|
-
const contents = {
|
|
2688
|
+
const contents = map({
|
|
3237
2689
|
$metadata: deserializeMetadata(output),
|
|
3238
|
-
};
|
|
2690
|
+
});
|
|
3239
2691
|
await collectBody(output.body, context);
|
|
3240
|
-
return
|
|
2692
|
+
return contents;
|
|
3241
2693
|
};
|
|
3242
2694
|
exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
|
|
3243
2695
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
@@ -3245,7 +2697,6 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3245
2697
|
...output,
|
|
3246
2698
|
body: await parseBody(output.body, context),
|
|
3247
2699
|
};
|
|
3248
|
-
let response;
|
|
3249
2700
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3250
2701
|
switch (errorCode) {
|
|
3251
2702
|
case "AccessDeniedException":
|
|
@@ -3265,29 +2716,26 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3265
2716
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3266
2717
|
default:
|
|
3267
2718
|
const parsedBody = parsedOutput.body;
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
$metadata,
|
|
2719
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2720
|
+
output,
|
|
2721
|
+
parsedBody,
|
|
2722
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2723
|
+
errorCode,
|
|
3274
2724
|
});
|
|
3275
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3276
2725
|
}
|
|
3277
2726
|
};
|
|
3278
2727
|
const deserializeAws_restJson1UpdateBrowserSettingsCommand = async (output, context) => {
|
|
3279
2728
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3280
2729
|
return deserializeAws_restJson1UpdateBrowserSettingsCommandError(output, context);
|
|
3281
2730
|
}
|
|
3282
|
-
const contents = {
|
|
2731
|
+
const contents = map({
|
|
3283
2732
|
$metadata: deserializeMetadata(output),
|
|
3284
|
-
|
|
3285
|
-
};
|
|
2733
|
+
});
|
|
3286
2734
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3287
|
-
if (data.browserSettings
|
|
2735
|
+
if (data.browserSettings != null) {
|
|
3288
2736
|
contents.browserSettings = deserializeAws_restJson1BrowserSettings(data.browserSettings, context);
|
|
3289
2737
|
}
|
|
3290
|
-
return
|
|
2738
|
+
return contents;
|
|
3291
2739
|
};
|
|
3292
2740
|
exports.deserializeAws_restJson1UpdateBrowserSettingsCommand = deserializeAws_restJson1UpdateBrowserSettingsCommand;
|
|
3293
2741
|
const deserializeAws_restJson1UpdateBrowserSettingsCommandError = async (output, context) => {
|
|
@@ -3295,7 +2743,6 @@ const deserializeAws_restJson1UpdateBrowserSettingsCommandError = async (output,
|
|
|
3295
2743
|
...output,
|
|
3296
2744
|
body: await parseBody(output.body, context),
|
|
3297
2745
|
};
|
|
3298
|
-
let response;
|
|
3299
2746
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3300
2747
|
switch (errorCode) {
|
|
3301
2748
|
case "AccessDeniedException":
|
|
@@ -3315,29 +2762,26 @@ const deserializeAws_restJson1UpdateBrowserSettingsCommandError = async (output,
|
|
|
3315
2762
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3316
2763
|
default:
|
|
3317
2764
|
const parsedBody = parsedOutput.body;
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
$metadata,
|
|
2765
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2766
|
+
output,
|
|
2767
|
+
parsedBody,
|
|
2768
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2769
|
+
errorCode,
|
|
3324
2770
|
});
|
|
3325
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3326
2771
|
}
|
|
3327
2772
|
};
|
|
3328
2773
|
const deserializeAws_restJson1UpdateIdentityProviderCommand = async (output, context) => {
|
|
3329
2774
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3330
2775
|
return deserializeAws_restJson1UpdateIdentityProviderCommandError(output, context);
|
|
3331
2776
|
}
|
|
3332
|
-
const contents = {
|
|
2777
|
+
const contents = map({
|
|
3333
2778
|
$metadata: deserializeMetadata(output),
|
|
3334
|
-
|
|
3335
|
-
};
|
|
2779
|
+
});
|
|
3336
2780
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3337
|
-
if (data.identityProvider
|
|
2781
|
+
if (data.identityProvider != null) {
|
|
3338
2782
|
contents.identityProvider = deserializeAws_restJson1IdentityProvider(data.identityProvider, context);
|
|
3339
2783
|
}
|
|
3340
|
-
return
|
|
2784
|
+
return contents;
|
|
3341
2785
|
};
|
|
3342
2786
|
exports.deserializeAws_restJson1UpdateIdentityProviderCommand = deserializeAws_restJson1UpdateIdentityProviderCommand;
|
|
3343
2787
|
const deserializeAws_restJson1UpdateIdentityProviderCommandError = async (output, context) => {
|
|
@@ -3345,7 +2789,6 @@ const deserializeAws_restJson1UpdateIdentityProviderCommandError = async (output
|
|
|
3345
2789
|
...output,
|
|
3346
2790
|
body: await parseBody(output.body, context),
|
|
3347
2791
|
};
|
|
3348
|
-
let response;
|
|
3349
2792
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3350
2793
|
switch (errorCode) {
|
|
3351
2794
|
case "AccessDeniedException":
|
|
@@ -3365,29 +2808,26 @@ const deserializeAws_restJson1UpdateIdentityProviderCommandError = async (output
|
|
|
3365
2808
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3366
2809
|
default:
|
|
3367
2810
|
const parsedBody = parsedOutput.body;
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
$metadata,
|
|
2811
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2812
|
+
output,
|
|
2813
|
+
parsedBody,
|
|
2814
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2815
|
+
errorCode,
|
|
3374
2816
|
});
|
|
3375
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3376
2817
|
}
|
|
3377
2818
|
};
|
|
3378
2819
|
const deserializeAws_restJson1UpdateNetworkSettingsCommand = async (output, context) => {
|
|
3379
2820
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3380
2821
|
return deserializeAws_restJson1UpdateNetworkSettingsCommandError(output, context);
|
|
3381
2822
|
}
|
|
3382
|
-
const contents = {
|
|
2823
|
+
const contents = map({
|
|
3383
2824
|
$metadata: deserializeMetadata(output),
|
|
3384
|
-
|
|
3385
|
-
};
|
|
2825
|
+
});
|
|
3386
2826
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3387
|
-
if (data.networkSettings
|
|
2827
|
+
if (data.networkSettings != null) {
|
|
3388
2828
|
contents.networkSettings = deserializeAws_restJson1NetworkSettings(data.networkSettings, context);
|
|
3389
2829
|
}
|
|
3390
|
-
return
|
|
2830
|
+
return contents;
|
|
3391
2831
|
};
|
|
3392
2832
|
exports.deserializeAws_restJson1UpdateNetworkSettingsCommand = deserializeAws_restJson1UpdateNetworkSettingsCommand;
|
|
3393
2833
|
const deserializeAws_restJson1UpdateNetworkSettingsCommandError = async (output, context) => {
|
|
@@ -3395,7 +2835,6 @@ const deserializeAws_restJson1UpdateNetworkSettingsCommandError = async (output,
|
|
|
3395
2835
|
...output,
|
|
3396
2836
|
body: await parseBody(output.body, context),
|
|
3397
2837
|
};
|
|
3398
|
-
let response;
|
|
3399
2838
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3400
2839
|
switch (errorCode) {
|
|
3401
2840
|
case "AccessDeniedException":
|
|
@@ -3415,29 +2854,26 @@ const deserializeAws_restJson1UpdateNetworkSettingsCommandError = async (output,
|
|
|
3415
2854
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3416
2855
|
default:
|
|
3417
2856
|
const parsedBody = parsedOutput.body;
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
$metadata,
|
|
2857
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2858
|
+
output,
|
|
2859
|
+
parsedBody,
|
|
2860
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2861
|
+
errorCode,
|
|
3424
2862
|
});
|
|
3425
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3426
2863
|
}
|
|
3427
2864
|
};
|
|
3428
2865
|
const deserializeAws_restJson1UpdatePortalCommand = async (output, context) => {
|
|
3429
2866
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3430
2867
|
return deserializeAws_restJson1UpdatePortalCommandError(output, context);
|
|
3431
2868
|
}
|
|
3432
|
-
const contents = {
|
|
2869
|
+
const contents = map({
|
|
3433
2870
|
$metadata: deserializeMetadata(output),
|
|
3434
|
-
|
|
3435
|
-
};
|
|
2871
|
+
});
|
|
3436
2872
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3437
|
-
if (data.portal
|
|
2873
|
+
if (data.portal != null) {
|
|
3438
2874
|
contents.portal = deserializeAws_restJson1Portal(data.portal, context);
|
|
3439
2875
|
}
|
|
3440
|
-
return
|
|
2876
|
+
return contents;
|
|
3441
2877
|
};
|
|
3442
2878
|
exports.deserializeAws_restJson1UpdatePortalCommand = deserializeAws_restJson1UpdatePortalCommand;
|
|
3443
2879
|
const deserializeAws_restJson1UpdatePortalCommandError = async (output, context) => {
|
|
@@ -3445,7 +2881,6 @@ const deserializeAws_restJson1UpdatePortalCommandError = async (output, context)
|
|
|
3445
2881
|
...output,
|
|
3446
2882
|
body: await parseBody(output.body, context),
|
|
3447
2883
|
};
|
|
3448
|
-
let response;
|
|
3449
2884
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3450
2885
|
switch (errorCode) {
|
|
3451
2886
|
case "AccessDeniedException":
|
|
@@ -3465,29 +2900,26 @@ const deserializeAws_restJson1UpdatePortalCommandError = async (output, context)
|
|
|
3465
2900
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3466
2901
|
default:
|
|
3467
2902
|
const parsedBody = parsedOutput.body;
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
$metadata,
|
|
2903
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2904
|
+
output,
|
|
2905
|
+
parsedBody,
|
|
2906
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2907
|
+
errorCode,
|
|
3474
2908
|
});
|
|
3475
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3476
2909
|
}
|
|
3477
2910
|
};
|
|
3478
2911
|
const deserializeAws_restJson1UpdateTrustStoreCommand = async (output, context) => {
|
|
3479
2912
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3480
2913
|
return deserializeAws_restJson1UpdateTrustStoreCommandError(output, context);
|
|
3481
2914
|
}
|
|
3482
|
-
const contents = {
|
|
2915
|
+
const contents = map({
|
|
3483
2916
|
$metadata: deserializeMetadata(output),
|
|
3484
|
-
|
|
3485
|
-
};
|
|
2917
|
+
});
|
|
3486
2918
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3487
|
-
if (data.trustStoreArn
|
|
2919
|
+
if (data.trustStoreArn != null) {
|
|
3488
2920
|
contents.trustStoreArn = (0, smithy_client_1.expectString)(data.trustStoreArn);
|
|
3489
2921
|
}
|
|
3490
|
-
return
|
|
2922
|
+
return contents;
|
|
3491
2923
|
};
|
|
3492
2924
|
exports.deserializeAws_restJson1UpdateTrustStoreCommand = deserializeAws_restJson1UpdateTrustStoreCommand;
|
|
3493
2925
|
const deserializeAws_restJson1UpdateTrustStoreCommandError = async (output, context) => {
|
|
@@ -3495,7 +2927,6 @@ const deserializeAws_restJson1UpdateTrustStoreCommandError = async (output, cont
|
|
|
3495
2927
|
...output,
|
|
3496
2928
|
body: await parseBody(output.body, context),
|
|
3497
2929
|
};
|
|
3498
|
-
let response;
|
|
3499
2930
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3500
2931
|
switch (errorCode) {
|
|
3501
2932
|
case "AccessDeniedException":
|
|
@@ -3518,29 +2949,26 @@ const deserializeAws_restJson1UpdateTrustStoreCommandError = async (output, cont
|
|
|
3518
2949
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3519
2950
|
default:
|
|
3520
2951
|
const parsedBody = parsedOutput.body;
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
$metadata,
|
|
2952
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2953
|
+
output,
|
|
2954
|
+
parsedBody,
|
|
2955
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2956
|
+
errorCode,
|
|
3527
2957
|
});
|
|
3528
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3529
2958
|
}
|
|
3530
2959
|
};
|
|
3531
2960
|
const deserializeAws_restJson1UpdateUserSettingsCommand = async (output, context) => {
|
|
3532
2961
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3533
2962
|
return deserializeAws_restJson1UpdateUserSettingsCommandError(output, context);
|
|
3534
2963
|
}
|
|
3535
|
-
const contents = {
|
|
2964
|
+
const contents = map({
|
|
3536
2965
|
$metadata: deserializeMetadata(output),
|
|
3537
|
-
|
|
3538
|
-
};
|
|
2966
|
+
});
|
|
3539
2967
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3540
|
-
if (data.userSettings
|
|
2968
|
+
if (data.userSettings != null) {
|
|
3541
2969
|
contents.userSettings = deserializeAws_restJson1UserSettings(data.userSettings, context);
|
|
3542
2970
|
}
|
|
3543
|
-
return
|
|
2971
|
+
return contents;
|
|
3544
2972
|
};
|
|
3545
2973
|
exports.deserializeAws_restJson1UpdateUserSettingsCommand = deserializeAws_restJson1UpdateUserSettingsCommand;
|
|
3546
2974
|
const deserializeAws_restJson1UpdateUserSettingsCommandError = async (output, context) => {
|
|
@@ -3548,7 +2976,6 @@ const deserializeAws_restJson1UpdateUserSettingsCommandError = async (output, co
|
|
|
3548
2976
|
...output,
|
|
3549
2977
|
body: await parseBody(output.body, context),
|
|
3550
2978
|
};
|
|
3551
|
-
let response;
|
|
3552
2979
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3553
2980
|
switch (errorCode) {
|
|
3554
2981
|
case "AccessDeniedException":
|
|
@@ -3568,20 +2995,19 @@ const deserializeAws_restJson1UpdateUserSettingsCommandError = async (output, co
|
|
|
3568
2995
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3569
2996
|
default:
|
|
3570
2997
|
const parsedBody = parsedOutput.body;
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
$metadata,
|
|
2998
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2999
|
+
output,
|
|
3000
|
+
parsedBody,
|
|
3001
|
+
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
3002
|
+
errorCode,
|
|
3577
3003
|
});
|
|
3578
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3579
3004
|
}
|
|
3580
3005
|
};
|
|
3006
|
+
const map = smithy_client_1.map;
|
|
3581
3007
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
3582
|
-
const contents = {};
|
|
3008
|
+
const contents = map({});
|
|
3583
3009
|
const data = parsedOutput.body;
|
|
3584
|
-
if (data.message
|
|
3010
|
+
if (data.message != null) {
|
|
3585
3011
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
3586
3012
|
}
|
|
3587
3013
|
const exception = new models_0_1.AccessDeniedException({
|
|
@@ -3591,15 +3017,15 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
3591
3017
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3592
3018
|
};
|
|
3593
3019
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
3594
|
-
const contents = {};
|
|
3020
|
+
const contents = map({});
|
|
3595
3021
|
const data = parsedOutput.body;
|
|
3596
|
-
if (data.message
|
|
3022
|
+
if (data.message != null) {
|
|
3597
3023
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
3598
3024
|
}
|
|
3599
|
-
if (data.resourceId
|
|
3025
|
+
if (data.resourceId != null) {
|
|
3600
3026
|
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
3601
3027
|
}
|
|
3602
|
-
if (data.resourceType
|
|
3028
|
+
if (data.resourceType != null) {
|
|
3603
3029
|
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
3604
3030
|
}
|
|
3605
3031
|
const exception = new models_0_1.ConflictException({
|
|
@@ -3609,12 +3035,14 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
3609
3035
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3610
3036
|
};
|
|
3611
3037
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
3612
|
-
const contents = {
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3038
|
+
const contents = map({
|
|
3039
|
+
retryAfterSeconds: [
|
|
3040
|
+
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
3041
|
+
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
3042
|
+
],
|
|
3043
|
+
});
|
|
3616
3044
|
const data = parsedOutput.body;
|
|
3617
|
-
if (data.message
|
|
3045
|
+
if (data.message != null) {
|
|
3618
3046
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
3619
3047
|
}
|
|
3620
3048
|
const exception = new models_0_1.InternalServerException({
|
|
@@ -3624,15 +3052,15 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
3624
3052
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3625
3053
|
};
|
|
3626
3054
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3627
|
-
const contents = {};
|
|
3055
|
+
const contents = map({});
|
|
3628
3056
|
const data = parsedOutput.body;
|
|
3629
|
-
if (data.message
|
|
3057
|
+
if (data.message != null) {
|
|
3630
3058
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
3631
3059
|
}
|
|
3632
|
-
if (data.resourceId
|
|
3060
|
+
if (data.resourceId != null) {
|
|
3633
3061
|
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
3634
3062
|
}
|
|
3635
|
-
if (data.resourceType
|
|
3063
|
+
if (data.resourceType != null) {
|
|
3636
3064
|
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
3637
3065
|
}
|
|
3638
3066
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
@@ -3642,21 +3070,21 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
3642
3070
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3643
3071
|
};
|
|
3644
3072
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
3645
|
-
const contents = {};
|
|
3073
|
+
const contents = map({});
|
|
3646
3074
|
const data = parsedOutput.body;
|
|
3647
|
-
if (data.message
|
|
3075
|
+
if (data.message != null) {
|
|
3648
3076
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
3649
3077
|
}
|
|
3650
|
-
if (data.quotaCode
|
|
3078
|
+
if (data.quotaCode != null) {
|
|
3651
3079
|
contents.quotaCode = (0, smithy_client_1.expectString)(data.quotaCode);
|
|
3652
3080
|
}
|
|
3653
|
-
if (data.resourceId
|
|
3081
|
+
if (data.resourceId != null) {
|
|
3654
3082
|
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
3655
3083
|
}
|
|
3656
|
-
if (data.resourceType
|
|
3084
|
+
if (data.resourceType != null) {
|
|
3657
3085
|
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
3658
3086
|
}
|
|
3659
|
-
if (data.serviceCode
|
|
3087
|
+
if (data.serviceCode != null) {
|
|
3660
3088
|
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
3661
3089
|
}
|
|
3662
3090
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
@@ -3666,18 +3094,20 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
3666
3094
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3667
3095
|
};
|
|
3668
3096
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
3669
|
-
const contents = {
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3097
|
+
const contents = map({
|
|
3098
|
+
retryAfterSeconds: [
|
|
3099
|
+
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
3100
|
+
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
3101
|
+
],
|
|
3102
|
+
});
|
|
3673
3103
|
const data = parsedOutput.body;
|
|
3674
|
-
if (data.message
|
|
3104
|
+
if (data.message != null) {
|
|
3675
3105
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
3676
3106
|
}
|
|
3677
|
-
if (data.quotaCode
|
|
3107
|
+
if (data.quotaCode != null) {
|
|
3678
3108
|
contents.quotaCode = (0, smithy_client_1.expectString)(data.quotaCode);
|
|
3679
3109
|
}
|
|
3680
|
-
if (data.serviceCode
|
|
3110
|
+
if (data.serviceCode != null) {
|
|
3681
3111
|
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
3682
3112
|
}
|
|
3683
3113
|
const exception = new models_0_1.ThrottlingException({
|
|
@@ -3687,12 +3117,12 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
3687
3117
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3688
3118
|
};
|
|
3689
3119
|
const deserializeAws_restJson1TooManyTagsExceptionResponse = async (parsedOutput, context) => {
|
|
3690
|
-
const contents = {};
|
|
3120
|
+
const contents = map({});
|
|
3691
3121
|
const data = parsedOutput.body;
|
|
3692
|
-
if (data.message
|
|
3122
|
+
if (data.message != null) {
|
|
3693
3123
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
3694
3124
|
}
|
|
3695
|
-
if (data.resourceName
|
|
3125
|
+
if (data.resourceName != null) {
|
|
3696
3126
|
contents.resourceName = (0, smithy_client_1.expectString)(data.resourceName);
|
|
3697
3127
|
}
|
|
3698
3128
|
const exception = new models_0_1.TooManyTagsException({
|
|
@@ -3702,15 +3132,15 @@ const deserializeAws_restJson1TooManyTagsExceptionResponse = async (parsedOutput
|
|
|
3702
3132
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3703
3133
|
};
|
|
3704
3134
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
3705
|
-
const contents = {};
|
|
3135
|
+
const contents = map({});
|
|
3706
3136
|
const data = parsedOutput.body;
|
|
3707
|
-
if (data.fieldList
|
|
3137
|
+
if (data.fieldList != null) {
|
|
3708
3138
|
contents.fieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
|
|
3709
3139
|
}
|
|
3710
|
-
if (data.message
|
|
3140
|
+
if (data.message != null) {
|
|
3711
3141
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
3712
3142
|
}
|
|
3713
|
-
if (data.reason
|
|
3143
|
+
if (data.reason != null) {
|
|
3714
3144
|
contents.reason = (0, smithy_client_1.expectString)(data.reason);
|
|
3715
3145
|
}
|
|
3716
3146
|
const exception = new models_0_1.ValidationException({
|
|
@@ -3723,9 +3153,6 @@ const serializeAws_restJson1CertificateList = (input, context) => {
|
|
|
3723
3153
|
return input
|
|
3724
3154
|
.filter((e) => e != null)
|
|
3725
3155
|
.map((entry) => {
|
|
3726
|
-
if (entry === null) {
|
|
3727
|
-
return null;
|
|
3728
|
-
}
|
|
3729
3156
|
return context.base64Encoder(entry);
|
|
3730
3157
|
});
|
|
3731
3158
|
};
|
|
@@ -3733,9 +3160,6 @@ const serializeAws_restJson1CertificateThumbprintList = (input, context) => {
|
|
|
3733
3160
|
return input
|
|
3734
3161
|
.filter((e) => e != null)
|
|
3735
3162
|
.map((entry) => {
|
|
3736
|
-
if (entry === null) {
|
|
3737
|
-
return null;
|
|
3738
|
-
}
|
|
3739
3163
|
return entry;
|
|
3740
3164
|
});
|
|
3741
3165
|
};
|
|
@@ -3765,9 +3189,6 @@ const serializeAws_restJson1SecurityGroupIdList = (input, context) => {
|
|
|
3765
3189
|
return input
|
|
3766
3190
|
.filter((e) => e != null)
|
|
3767
3191
|
.map((entry) => {
|
|
3768
|
-
if (entry === null) {
|
|
3769
|
-
return null;
|
|
3770
|
-
}
|
|
3771
3192
|
return entry;
|
|
3772
3193
|
});
|
|
3773
3194
|
};
|
|
@@ -3775,9 +3196,6 @@ const serializeAws_restJson1SubnetIdList = (input, context) => {
|
|
|
3775
3196
|
return input
|
|
3776
3197
|
.filter((e) => e != null)
|
|
3777
3198
|
.map((entry) => {
|
|
3778
|
-
if (entry === null) {
|
|
3779
|
-
return null;
|
|
3780
|
-
}
|
|
3781
3199
|
return entry;
|
|
3782
3200
|
});
|
|
3783
3201
|
};
|
|
@@ -3791,9 +3209,6 @@ const serializeAws_restJson1TagList = (input, context) => {
|
|
|
3791
3209
|
return input
|
|
3792
3210
|
.filter((e) => e != null)
|
|
3793
3211
|
.map((entry) => {
|
|
3794
|
-
if (entry === null) {
|
|
3795
|
-
return null;
|
|
3796
|
-
}
|
|
3797
3212
|
return serializeAws_restJson1Tag(entry, context);
|
|
3798
3213
|
});
|
|
3799
3214
|
};
|