@aws-sdk/client-workspaces-web 3.310.0 → 3.315.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/dist-cjs/protocols/Aws_restJson1.js +474 -863
- package/dist-es/protocols/Aws_restJson1.js +401 -790
- package/package.json +6 -6
|
@@ -13,7 +13,7 @@ const se_AssociateBrowserSettingsCommand = async (input, context) => {
|
|
|
13
13
|
const headers = {};
|
|
14
14
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/browserSettings";
|
|
15
15
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
|
|
16
|
-
const query = map({
|
|
16
|
+
const query = (0, smithy_client_1.map)({
|
|
17
17
|
browserSettingsArn: [, (0, smithy_client_1.expectNonNull)(input.browserSettingsArn, `browserSettingsArn`)],
|
|
18
18
|
});
|
|
19
19
|
let body;
|
|
@@ -34,7 +34,7 @@ const se_AssociateNetworkSettingsCommand = async (input, context) => {
|
|
|
34
34
|
const headers = {};
|
|
35
35
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/networkSettings";
|
|
36
36
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
|
|
37
|
-
const query = map({
|
|
37
|
+
const query = (0, smithy_client_1.map)({
|
|
38
38
|
networkSettingsArn: [, (0, smithy_client_1.expectNonNull)(input.networkSettingsArn, `networkSettingsArn`)],
|
|
39
39
|
});
|
|
40
40
|
let body;
|
|
@@ -55,7 +55,7 @@ const se_AssociateTrustStoreCommand = async (input, context) => {
|
|
|
55
55
|
const headers = {};
|
|
56
56
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/trustStores";
|
|
57
57
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
|
|
58
|
-
const query = map({
|
|
58
|
+
const query = (0, smithy_client_1.map)({
|
|
59
59
|
trustStoreArn: [, (0, smithy_client_1.expectNonNull)(input.trustStoreArn, `trustStoreArn`)],
|
|
60
60
|
});
|
|
61
61
|
let body;
|
|
@@ -77,7 +77,7 @@ const se_AssociateUserAccessLoggingSettingsCommand = async (input, context) => {
|
|
|
77
77
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
78
78
|
"/portals/{portalArn+}/userAccessLoggingSettings";
|
|
79
79
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
|
|
80
|
-
const query = map({
|
|
80
|
+
const query = (0, smithy_client_1.map)({
|
|
81
81
|
userAccessLoggingSettingsArn: [
|
|
82
82
|
,
|
|
83
83
|
(0, smithy_client_1.expectNonNull)(input.userAccessLoggingSettingsArn, `userAccessLoggingSettingsArn`),
|
|
@@ -101,7 +101,7 @@ const se_AssociateUserSettingsCommand = async (input, context) => {
|
|
|
101
101
|
const headers = {};
|
|
102
102
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/userSettings";
|
|
103
103
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
|
|
104
|
-
const query = map({
|
|
104
|
+
const query = (0, smithy_client_1.map)({
|
|
105
105
|
userSettingsArn: [, (0, smithy_client_1.expectNonNull)(input.userSettingsArn, `userSettingsArn`)],
|
|
106
106
|
});
|
|
107
107
|
let body;
|
|
@@ -124,15 +124,13 @@ const se_CreateBrowserSettingsCommand = async (input, context) => {
|
|
|
124
124
|
};
|
|
125
125
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings";
|
|
126
126
|
let body;
|
|
127
|
-
body = JSON.stringify({
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
135
|
-
});
|
|
127
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
128
|
+
additionalEncryptionContext: (_) => (0, smithy_client_1._json)(_),
|
|
129
|
+
browserPolicy: [],
|
|
130
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
131
|
+
customerManagedKey: [],
|
|
132
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
133
|
+
}));
|
|
136
134
|
return new protocol_http_1.HttpRequest({
|
|
137
135
|
protocol,
|
|
138
136
|
hostname,
|
|
@@ -151,15 +149,13 @@ const se_CreateIdentityProviderCommand = async (input, context) => {
|
|
|
151
149
|
};
|
|
152
150
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/identityProviders";
|
|
153
151
|
let body;
|
|
154
|
-
body = JSON.stringify({
|
|
155
|
-
clientToken:
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
...(input.portalArn != null && { portalArn: input.portalArn }),
|
|
162
|
-
});
|
|
152
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
153
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
154
|
+
identityProviderDetails: (_) => (0, smithy_client_1._json)(_),
|
|
155
|
+
identityProviderName: [],
|
|
156
|
+
identityProviderType: [],
|
|
157
|
+
portalArn: [],
|
|
158
|
+
}));
|
|
163
159
|
return new protocol_http_1.HttpRequest({
|
|
164
160
|
protocol,
|
|
165
161
|
hostname,
|
|
@@ -178,15 +174,13 @@ const se_CreateNetworkSettingsCommand = async (input, context) => {
|
|
|
178
174
|
};
|
|
179
175
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings";
|
|
180
176
|
let body;
|
|
181
|
-
body = JSON.stringify({
|
|
182
|
-
clientToken:
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
...(input.vpcId != null && { vpcId: input.vpcId }),
|
|
189
|
-
});
|
|
177
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
178
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
179
|
+
securityGroupIds: (_) => (0, smithy_client_1._json)(_),
|
|
180
|
+
subnetIds: (_) => (0, smithy_client_1._json)(_),
|
|
181
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
182
|
+
vpcId: [],
|
|
183
|
+
}));
|
|
190
184
|
return new protocol_http_1.HttpRequest({
|
|
191
185
|
protocol,
|
|
192
186
|
hostname,
|
|
@@ -205,16 +199,14 @@ const se_CreatePortalCommand = async (input, context) => {
|
|
|
205
199
|
};
|
|
206
200
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals";
|
|
207
201
|
let body;
|
|
208
|
-
body = JSON.stringify({
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
217
|
-
});
|
|
202
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
203
|
+
additionalEncryptionContext: (_) => (0, smithy_client_1._json)(_),
|
|
204
|
+
authenticationType: [],
|
|
205
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
206
|
+
customerManagedKey: [],
|
|
207
|
+
displayName: [],
|
|
208
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
209
|
+
}));
|
|
218
210
|
return new protocol_http_1.HttpRequest({
|
|
219
211
|
protocol,
|
|
220
212
|
hostname,
|
|
@@ -233,11 +225,11 @@ const se_CreateTrustStoreCommand = async (input, context) => {
|
|
|
233
225
|
};
|
|
234
226
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores";
|
|
235
227
|
let body;
|
|
236
|
-
body = JSON.stringify({
|
|
237
|
-
|
|
238
|
-
clientToken:
|
|
239
|
-
|
|
240
|
-
});
|
|
228
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
229
|
+
certificateList: (_) => se_CertificateList(_, context),
|
|
230
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
231
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
232
|
+
}));
|
|
241
233
|
return new protocol_http_1.HttpRequest({
|
|
242
234
|
protocol,
|
|
243
235
|
hostname,
|
|
@@ -256,11 +248,11 @@ const se_CreateUserAccessLoggingSettingsCommand = async (input, context) => {
|
|
|
256
248
|
};
|
|
257
249
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userAccessLoggingSettings";
|
|
258
250
|
let body;
|
|
259
|
-
body = JSON.stringify({
|
|
260
|
-
clientToken:
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
});
|
|
251
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
252
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
253
|
+
kinesisStreamArn: [],
|
|
254
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
255
|
+
}));
|
|
264
256
|
return new protocol_http_1.HttpRequest({
|
|
265
257
|
protocol,
|
|
266
258
|
hostname,
|
|
@@ -279,19 +271,17 @@ const se_CreateUserSettingsCommand = async (input, context) => {
|
|
|
279
271
|
};
|
|
280
272
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings";
|
|
281
273
|
let body;
|
|
282
|
-
body = JSON.stringify({
|
|
283
|
-
clientToken:
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
...(input.uploadAllowed != null && { uploadAllowed: input.uploadAllowed }),
|
|
294
|
-
});
|
|
274
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
275
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
276
|
+
copyAllowed: [],
|
|
277
|
+
disconnectTimeoutInMinutes: [],
|
|
278
|
+
downloadAllowed: [],
|
|
279
|
+
idleDisconnectTimeoutInMinutes: [],
|
|
280
|
+
pasteAllowed: [],
|
|
281
|
+
printAllowed: [],
|
|
282
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
283
|
+
uploadAllowed: [],
|
|
284
|
+
}));
|
|
295
285
|
return new protocol_http_1.HttpRequest({
|
|
296
286
|
protocol,
|
|
297
287
|
hostname,
|
|
@@ -616,7 +606,7 @@ const se_GetTrustStoreCertificateCommand = async (input, context) => {
|
|
|
616
606
|
const headers = {};
|
|
617
607
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores/{trustStoreArn+}/certificate";
|
|
618
608
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "trustStoreArn", () => input.trustStoreArn, "{trustStoreArn+}", true);
|
|
619
|
-
const query = map({
|
|
609
|
+
const query = (0, smithy_client_1.map)({
|
|
620
610
|
thumbprint: [, (0, smithy_client_1.expectNonNull)(input.thumbprint, `thumbprint`)],
|
|
621
611
|
});
|
|
622
612
|
let body;
|
|
@@ -671,7 +661,7 @@ const se_ListBrowserSettingsCommand = async (input, context) => {
|
|
|
671
661
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
672
662
|
const headers = {};
|
|
673
663
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings";
|
|
674
|
-
const query = map({
|
|
664
|
+
const query = (0, smithy_client_1.map)({
|
|
675
665
|
nextToken: [, input.nextToken],
|
|
676
666
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
677
667
|
});
|
|
@@ -693,7 +683,7 @@ const se_ListIdentityProvidersCommand = async (input, context) => {
|
|
|
693
683
|
const headers = {};
|
|
694
684
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/identityProviders";
|
|
695
685
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
|
|
696
|
-
const query = map({
|
|
686
|
+
const query = (0, smithy_client_1.map)({
|
|
697
687
|
nextToken: [, input.nextToken],
|
|
698
688
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
699
689
|
});
|
|
@@ -714,7 +704,7 @@ const se_ListNetworkSettingsCommand = async (input, context) => {
|
|
|
714
704
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
715
705
|
const headers = {};
|
|
716
706
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings";
|
|
717
|
-
const query = map({
|
|
707
|
+
const query = (0, smithy_client_1.map)({
|
|
718
708
|
nextToken: [, input.nextToken],
|
|
719
709
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
720
710
|
});
|
|
@@ -735,7 +725,7 @@ const se_ListPortalsCommand = async (input, context) => {
|
|
|
735
725
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
736
726
|
const headers = {};
|
|
737
727
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals";
|
|
738
|
-
const query = map({
|
|
728
|
+
const query = (0, smithy_client_1.map)({
|
|
739
729
|
nextToken: [, input.nextToken],
|
|
740
730
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
741
731
|
});
|
|
@@ -775,7 +765,7 @@ const se_ListTrustStoreCertificatesCommand = async (input, context) => {
|
|
|
775
765
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
776
766
|
"/trustStores/{trustStoreArn+}/certificates";
|
|
777
767
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "trustStoreArn", () => input.trustStoreArn, "{trustStoreArn+}", true);
|
|
778
|
-
const query = map({
|
|
768
|
+
const query = (0, smithy_client_1.map)({
|
|
779
769
|
nextToken: [, input.nextToken],
|
|
780
770
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
781
771
|
});
|
|
@@ -796,7 +786,7 @@ const se_ListTrustStoresCommand = async (input, context) => {
|
|
|
796
786
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
797
787
|
const headers = {};
|
|
798
788
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores";
|
|
799
|
-
const query = map({
|
|
789
|
+
const query = (0, smithy_client_1.map)({
|
|
800
790
|
nextToken: [, input.nextToken],
|
|
801
791
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
802
792
|
});
|
|
@@ -817,7 +807,7 @@ const se_ListUserAccessLoggingSettingsCommand = async (input, context) => {
|
|
|
817
807
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
818
808
|
const headers = {};
|
|
819
809
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userAccessLoggingSettings";
|
|
820
|
-
const query = map({
|
|
810
|
+
const query = (0, smithy_client_1.map)({
|
|
821
811
|
nextToken: [, input.nextToken],
|
|
822
812
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
823
813
|
});
|
|
@@ -838,7 +828,7 @@ const se_ListUserSettingsCommand = async (input, context) => {
|
|
|
838
828
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
839
829
|
const headers = {};
|
|
840
830
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings";
|
|
841
|
-
const query = map({
|
|
831
|
+
const query = (0, smithy_client_1.map)({
|
|
842
832
|
nextToken: [, input.nextToken],
|
|
843
833
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
844
834
|
});
|
|
@@ -863,10 +853,10 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
863
853
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn+}";
|
|
864
854
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn+}", true);
|
|
865
855
|
let body;
|
|
866
|
-
body = JSON.stringify({
|
|
867
|
-
clientToken:
|
|
868
|
-
|
|
869
|
-
});
|
|
856
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
857
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
858
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
859
|
+
}));
|
|
870
860
|
return new protocol_http_1.HttpRequest({
|
|
871
861
|
protocol,
|
|
872
862
|
hostname,
|
|
@@ -883,7 +873,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
883
873
|
const headers = {};
|
|
884
874
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn+}";
|
|
885
875
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn+}", true);
|
|
886
|
-
const query = map({
|
|
876
|
+
const query = (0, smithy_client_1.map)({
|
|
887
877
|
tagKeys: [
|
|
888
878
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
889
879
|
() => (input.tagKeys || []).map((_entry) => _entry),
|
|
@@ -910,10 +900,10 @@ const se_UpdateBrowserSettingsCommand = async (input, context) => {
|
|
|
910
900
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings/{browserSettingsArn+}";
|
|
911
901
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "browserSettingsArn", () => input.browserSettingsArn, "{browserSettingsArn+}", true);
|
|
912
902
|
let body;
|
|
913
|
-
body = JSON.stringify({
|
|
914
|
-
|
|
915
|
-
clientToken:
|
|
916
|
-
});
|
|
903
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
904
|
+
browserPolicy: [],
|
|
905
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
906
|
+
}));
|
|
917
907
|
return new protocol_http_1.HttpRequest({
|
|
918
908
|
protocol,
|
|
919
909
|
hostname,
|
|
@@ -933,14 +923,12 @@ const se_UpdateIdentityProviderCommand = async (input, context) => {
|
|
|
933
923
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/identityProviders/{identityProviderArn+}";
|
|
934
924
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identityProviderArn", () => input.identityProviderArn, "{identityProviderArn+}", true);
|
|
935
925
|
let body;
|
|
936
|
-
body = JSON.stringify({
|
|
937
|
-
clientToken:
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
...(input.identityProviderType != null && { identityProviderType: input.identityProviderType }),
|
|
943
|
-
});
|
|
926
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
927
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
928
|
+
identityProviderDetails: (_) => (0, smithy_client_1._json)(_),
|
|
929
|
+
identityProviderName: [],
|
|
930
|
+
identityProviderType: [],
|
|
931
|
+
}));
|
|
944
932
|
return new protocol_http_1.HttpRequest({
|
|
945
933
|
protocol,
|
|
946
934
|
hostname,
|
|
@@ -960,14 +948,12 @@ const se_UpdateNetworkSettingsCommand = async (input, context) => {
|
|
|
960
948
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings/{networkSettingsArn+}";
|
|
961
949
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "networkSettingsArn", () => input.networkSettingsArn, "{networkSettingsArn+}", true);
|
|
962
950
|
let body;
|
|
963
|
-
body = JSON.stringify({
|
|
964
|
-
clientToken:
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
...(input.vpcId != null && { vpcId: input.vpcId }),
|
|
970
|
-
});
|
|
951
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
952
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
953
|
+
securityGroupIds: (_) => (0, smithy_client_1._json)(_),
|
|
954
|
+
subnetIds: (_) => (0, smithy_client_1._json)(_),
|
|
955
|
+
vpcId: [],
|
|
956
|
+
}));
|
|
971
957
|
return new protocol_http_1.HttpRequest({
|
|
972
958
|
protocol,
|
|
973
959
|
hostname,
|
|
@@ -987,10 +973,10 @@ const se_UpdatePortalCommand = async (input, context) => {
|
|
|
987
973
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}";
|
|
988
974
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
|
|
989
975
|
let body;
|
|
990
|
-
body = JSON.stringify({
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
});
|
|
976
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
977
|
+
authenticationType: [],
|
|
978
|
+
displayName: [],
|
|
979
|
+
}));
|
|
994
980
|
return new protocol_http_1.HttpRequest({
|
|
995
981
|
protocol,
|
|
996
982
|
hostname,
|
|
@@ -1010,13 +996,11 @@ const se_UpdateTrustStoreCommand = async (input, context) => {
|
|
|
1010
996
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores/{trustStoreArn+}";
|
|
1011
997
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "trustStoreArn", () => input.trustStoreArn, "{trustStoreArn+}", true);
|
|
1012
998
|
let body;
|
|
1013
|
-
body = JSON.stringify({
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1019
|
-
});
|
|
999
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1000
|
+
certificatesToAdd: (_) => se_CertificateList(_, context),
|
|
1001
|
+
certificatesToDelete: (_) => (0, smithy_client_1._json)(_),
|
|
1002
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1003
|
+
}));
|
|
1020
1004
|
return new protocol_http_1.HttpRequest({
|
|
1021
1005
|
protocol,
|
|
1022
1006
|
hostname,
|
|
@@ -1037,10 +1021,10 @@ const se_UpdateUserAccessLoggingSettingsCommand = async (input, context) => {
|
|
|
1037
1021
|
"/userAccessLoggingSettings/{userAccessLoggingSettingsArn+}";
|
|
1038
1022
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userAccessLoggingSettingsArn", () => input.userAccessLoggingSettingsArn, "{userAccessLoggingSettingsArn+}", true);
|
|
1039
1023
|
let body;
|
|
1040
|
-
body = JSON.stringify({
|
|
1041
|
-
clientToken:
|
|
1042
|
-
|
|
1043
|
-
});
|
|
1024
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1025
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1026
|
+
kinesisStreamArn: [],
|
|
1027
|
+
}));
|
|
1044
1028
|
return new protocol_http_1.HttpRequest({
|
|
1045
1029
|
protocol,
|
|
1046
1030
|
hostname,
|
|
@@ -1060,18 +1044,16 @@ const se_UpdateUserSettingsCommand = async (input, context) => {
|
|
|
1060
1044
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings/{userSettingsArn+}";
|
|
1061
1045
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userSettingsArn", () => input.userSettingsArn, "{userSettingsArn+}", true);
|
|
1062
1046
|
let body;
|
|
1063
|
-
body = JSON.stringify({
|
|
1064
|
-
clientToken:
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
...(input.uploadAllowed != null && { uploadAllowed: input.uploadAllowed }),
|
|
1074
|
-
});
|
|
1047
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1048
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1049
|
+
copyAllowed: [],
|
|
1050
|
+
disconnectTimeoutInMinutes: [],
|
|
1051
|
+
downloadAllowed: [],
|
|
1052
|
+
idleDisconnectTimeoutInMinutes: [],
|
|
1053
|
+
pasteAllowed: [],
|
|
1054
|
+
printAllowed: [],
|
|
1055
|
+
uploadAllowed: [],
|
|
1056
|
+
}));
|
|
1075
1057
|
return new protocol_http_1.HttpRequest({
|
|
1076
1058
|
protocol,
|
|
1077
1059
|
hostname,
|
|
@@ -1087,16 +1069,15 @@ const de_AssociateBrowserSettingsCommand = async (output, context) => {
|
|
|
1087
1069
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1088
1070
|
return de_AssociateBrowserSettingsCommandError(output, context);
|
|
1089
1071
|
}
|
|
1090
|
-
const contents = map({
|
|
1072
|
+
const contents = (0, smithy_client_1.map)({
|
|
1091
1073
|
$metadata: deserializeMetadata(output),
|
|
1092
1074
|
});
|
|
1093
1075
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
}
|
|
1076
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1077
|
+
browserSettingsArn: smithy_client_1.expectString,
|
|
1078
|
+
portalArn: smithy_client_1.expectString,
|
|
1079
|
+
});
|
|
1080
|
+
Object.assign(contents, doc);
|
|
1100
1081
|
return contents;
|
|
1101
1082
|
};
|
|
1102
1083
|
exports.de_AssociateBrowserSettingsCommand = de_AssociateBrowserSettingsCommand;
|
|
@@ -1127,10 +1108,9 @@ const de_AssociateBrowserSettingsCommandError = async (output, context) => {
|
|
|
1127
1108
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1128
1109
|
default:
|
|
1129
1110
|
const parsedBody = parsedOutput.body;
|
|
1130
|
-
|
|
1111
|
+
return throwDefaultError({
|
|
1131
1112
|
output,
|
|
1132
1113
|
parsedBody,
|
|
1133
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1134
1114
|
errorCode,
|
|
1135
1115
|
});
|
|
1136
1116
|
}
|
|
@@ -1139,16 +1119,15 @@ const de_AssociateNetworkSettingsCommand = async (output, context) => {
|
|
|
1139
1119
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1140
1120
|
return de_AssociateNetworkSettingsCommandError(output, context);
|
|
1141
1121
|
}
|
|
1142
|
-
const contents = map({
|
|
1122
|
+
const contents = (0, smithy_client_1.map)({
|
|
1143
1123
|
$metadata: deserializeMetadata(output),
|
|
1144
1124
|
});
|
|
1145
1125
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
}
|
|
1126
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1127
|
+
networkSettingsArn: smithy_client_1.expectString,
|
|
1128
|
+
portalArn: smithy_client_1.expectString,
|
|
1129
|
+
});
|
|
1130
|
+
Object.assign(contents, doc);
|
|
1152
1131
|
return contents;
|
|
1153
1132
|
};
|
|
1154
1133
|
exports.de_AssociateNetworkSettingsCommand = de_AssociateNetworkSettingsCommand;
|
|
@@ -1179,10 +1158,9 @@ const de_AssociateNetworkSettingsCommandError = async (output, context) => {
|
|
|
1179
1158
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1180
1159
|
default:
|
|
1181
1160
|
const parsedBody = parsedOutput.body;
|
|
1182
|
-
|
|
1161
|
+
return throwDefaultError({
|
|
1183
1162
|
output,
|
|
1184
1163
|
parsedBody,
|
|
1185
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1186
1164
|
errorCode,
|
|
1187
1165
|
});
|
|
1188
1166
|
}
|
|
@@ -1191,16 +1169,15 @@ const de_AssociateTrustStoreCommand = async (output, context) => {
|
|
|
1191
1169
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1192
1170
|
return de_AssociateTrustStoreCommandError(output, context);
|
|
1193
1171
|
}
|
|
1194
|
-
const contents = map({
|
|
1172
|
+
const contents = (0, smithy_client_1.map)({
|
|
1195
1173
|
$metadata: deserializeMetadata(output),
|
|
1196
1174
|
});
|
|
1197
1175
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
}
|
|
1176
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1177
|
+
portalArn: smithy_client_1.expectString,
|
|
1178
|
+
trustStoreArn: smithy_client_1.expectString,
|
|
1179
|
+
});
|
|
1180
|
+
Object.assign(contents, doc);
|
|
1204
1181
|
return contents;
|
|
1205
1182
|
};
|
|
1206
1183
|
exports.de_AssociateTrustStoreCommand = de_AssociateTrustStoreCommand;
|
|
@@ -1228,10 +1205,9 @@ const de_AssociateTrustStoreCommandError = async (output, context) => {
|
|
|
1228
1205
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1229
1206
|
default:
|
|
1230
1207
|
const parsedBody = parsedOutput.body;
|
|
1231
|
-
|
|
1208
|
+
return throwDefaultError({
|
|
1232
1209
|
output,
|
|
1233
1210
|
parsedBody,
|
|
1234
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1235
1211
|
errorCode,
|
|
1236
1212
|
});
|
|
1237
1213
|
}
|
|
@@ -1240,16 +1216,15 @@ const de_AssociateUserAccessLoggingSettingsCommand = async (output, context) =>
|
|
|
1240
1216
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1241
1217
|
return de_AssociateUserAccessLoggingSettingsCommandError(output, context);
|
|
1242
1218
|
}
|
|
1243
|
-
const contents = map({
|
|
1219
|
+
const contents = (0, smithy_client_1.map)({
|
|
1244
1220
|
$metadata: deserializeMetadata(output),
|
|
1245
1221
|
});
|
|
1246
1222
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
}
|
|
1223
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1224
|
+
portalArn: smithy_client_1.expectString,
|
|
1225
|
+
userAccessLoggingSettingsArn: smithy_client_1.expectString,
|
|
1226
|
+
});
|
|
1227
|
+
Object.assign(contents, doc);
|
|
1253
1228
|
return contents;
|
|
1254
1229
|
};
|
|
1255
1230
|
exports.de_AssociateUserAccessLoggingSettingsCommand = de_AssociateUserAccessLoggingSettingsCommand;
|
|
@@ -1280,10 +1255,9 @@ const de_AssociateUserAccessLoggingSettingsCommandError = async (output, context
|
|
|
1280
1255
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1281
1256
|
default:
|
|
1282
1257
|
const parsedBody = parsedOutput.body;
|
|
1283
|
-
|
|
1258
|
+
return throwDefaultError({
|
|
1284
1259
|
output,
|
|
1285
1260
|
parsedBody,
|
|
1286
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1287
1261
|
errorCode,
|
|
1288
1262
|
});
|
|
1289
1263
|
}
|
|
@@ -1292,16 +1266,15 @@ const de_AssociateUserSettingsCommand = async (output, context) => {
|
|
|
1292
1266
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1293
1267
|
return de_AssociateUserSettingsCommandError(output, context);
|
|
1294
1268
|
}
|
|
1295
|
-
const contents = map({
|
|
1269
|
+
const contents = (0, smithy_client_1.map)({
|
|
1296
1270
|
$metadata: deserializeMetadata(output),
|
|
1297
1271
|
});
|
|
1298
1272
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
}
|
|
1273
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1274
|
+
portalArn: smithy_client_1.expectString,
|
|
1275
|
+
userSettingsArn: smithy_client_1.expectString,
|
|
1276
|
+
});
|
|
1277
|
+
Object.assign(contents, doc);
|
|
1305
1278
|
return contents;
|
|
1306
1279
|
};
|
|
1307
1280
|
exports.de_AssociateUserSettingsCommand = de_AssociateUserSettingsCommand;
|
|
@@ -1332,10 +1305,9 @@ const de_AssociateUserSettingsCommandError = async (output, context) => {
|
|
|
1332
1305
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1333
1306
|
default:
|
|
1334
1307
|
const parsedBody = parsedOutput.body;
|
|
1335
|
-
|
|
1308
|
+
return throwDefaultError({
|
|
1336
1309
|
output,
|
|
1337
1310
|
parsedBody,
|
|
1338
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1339
1311
|
errorCode,
|
|
1340
1312
|
});
|
|
1341
1313
|
}
|
|
@@ -1344,13 +1316,14 @@ const de_CreateBrowserSettingsCommand = async (output, context) => {
|
|
|
1344
1316
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1345
1317
|
return de_CreateBrowserSettingsCommandError(output, context);
|
|
1346
1318
|
}
|
|
1347
|
-
const contents = map({
|
|
1319
|
+
const contents = (0, smithy_client_1.map)({
|
|
1348
1320
|
$metadata: deserializeMetadata(output),
|
|
1349
1321
|
});
|
|
1350
1322
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
}
|
|
1323
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1324
|
+
browserSettingsArn: smithy_client_1.expectString,
|
|
1325
|
+
});
|
|
1326
|
+
Object.assign(contents, doc);
|
|
1354
1327
|
return contents;
|
|
1355
1328
|
};
|
|
1356
1329
|
exports.de_CreateBrowserSettingsCommand = de_CreateBrowserSettingsCommand;
|
|
@@ -1384,10 +1357,9 @@ const de_CreateBrowserSettingsCommandError = async (output, context) => {
|
|
|
1384
1357
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1385
1358
|
default:
|
|
1386
1359
|
const parsedBody = parsedOutput.body;
|
|
1387
|
-
|
|
1360
|
+
return throwDefaultError({
|
|
1388
1361
|
output,
|
|
1389
1362
|
parsedBody,
|
|
1390
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1391
1363
|
errorCode,
|
|
1392
1364
|
});
|
|
1393
1365
|
}
|
|
@@ -1396,13 +1368,14 @@ const de_CreateIdentityProviderCommand = async (output, context) => {
|
|
|
1396
1368
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1397
1369
|
return de_CreateIdentityProviderCommandError(output, context);
|
|
1398
1370
|
}
|
|
1399
|
-
const contents = map({
|
|
1371
|
+
const contents = (0, smithy_client_1.map)({
|
|
1400
1372
|
$metadata: deserializeMetadata(output),
|
|
1401
1373
|
});
|
|
1402
1374
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
}
|
|
1375
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1376
|
+
identityProviderArn: smithy_client_1.expectString,
|
|
1377
|
+
});
|
|
1378
|
+
Object.assign(contents, doc);
|
|
1406
1379
|
return contents;
|
|
1407
1380
|
};
|
|
1408
1381
|
exports.de_CreateIdentityProviderCommand = de_CreateIdentityProviderCommand;
|
|
@@ -1436,10 +1409,9 @@ const de_CreateIdentityProviderCommandError = async (output, context) => {
|
|
|
1436
1409
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1437
1410
|
default:
|
|
1438
1411
|
const parsedBody = parsedOutput.body;
|
|
1439
|
-
|
|
1412
|
+
return throwDefaultError({
|
|
1440
1413
|
output,
|
|
1441
1414
|
parsedBody,
|
|
1442
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1443
1415
|
errorCode,
|
|
1444
1416
|
});
|
|
1445
1417
|
}
|
|
@@ -1448,13 +1420,14 @@ const de_CreateNetworkSettingsCommand = async (output, context) => {
|
|
|
1448
1420
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1449
1421
|
return de_CreateNetworkSettingsCommandError(output, context);
|
|
1450
1422
|
}
|
|
1451
|
-
const contents = map({
|
|
1423
|
+
const contents = (0, smithy_client_1.map)({
|
|
1452
1424
|
$metadata: deserializeMetadata(output),
|
|
1453
1425
|
});
|
|
1454
1426
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
}
|
|
1427
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1428
|
+
networkSettingsArn: smithy_client_1.expectString,
|
|
1429
|
+
});
|
|
1430
|
+
Object.assign(contents, doc);
|
|
1458
1431
|
return contents;
|
|
1459
1432
|
};
|
|
1460
1433
|
exports.de_CreateNetworkSettingsCommand = de_CreateNetworkSettingsCommand;
|
|
@@ -1485,10 +1458,9 @@ const de_CreateNetworkSettingsCommandError = async (output, context) => {
|
|
|
1485
1458
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1486
1459
|
default:
|
|
1487
1460
|
const parsedBody = parsedOutput.body;
|
|
1488
|
-
|
|
1461
|
+
return throwDefaultError({
|
|
1489
1462
|
output,
|
|
1490
1463
|
parsedBody,
|
|
1491
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1492
1464
|
errorCode,
|
|
1493
1465
|
});
|
|
1494
1466
|
}
|
|
@@ -1497,16 +1469,15 @@ const de_CreatePortalCommand = async (output, context) => {
|
|
|
1497
1469
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1498
1470
|
return de_CreatePortalCommandError(output, context);
|
|
1499
1471
|
}
|
|
1500
|
-
const contents = map({
|
|
1472
|
+
const contents = (0, smithy_client_1.map)({
|
|
1501
1473
|
$metadata: deserializeMetadata(output),
|
|
1502
1474
|
});
|
|
1503
1475
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
}
|
|
1476
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1477
|
+
portalArn: smithy_client_1.expectString,
|
|
1478
|
+
portalEndpoint: smithy_client_1.expectString,
|
|
1479
|
+
});
|
|
1480
|
+
Object.assign(contents, doc);
|
|
1510
1481
|
return contents;
|
|
1511
1482
|
};
|
|
1512
1483
|
exports.de_CreatePortalCommand = de_CreatePortalCommand;
|
|
@@ -1540,10 +1511,9 @@ const de_CreatePortalCommandError = async (output, context) => {
|
|
|
1540
1511
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1541
1512
|
default:
|
|
1542
1513
|
const parsedBody = parsedOutput.body;
|
|
1543
|
-
|
|
1514
|
+
return throwDefaultError({
|
|
1544
1515
|
output,
|
|
1545
1516
|
parsedBody,
|
|
1546
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1547
1517
|
errorCode,
|
|
1548
1518
|
});
|
|
1549
1519
|
}
|
|
@@ -1552,13 +1522,14 @@ const de_CreateTrustStoreCommand = async (output, context) => {
|
|
|
1552
1522
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1553
1523
|
return de_CreateTrustStoreCommandError(output, context);
|
|
1554
1524
|
}
|
|
1555
|
-
const contents = map({
|
|
1525
|
+
const contents = (0, smithy_client_1.map)({
|
|
1556
1526
|
$metadata: deserializeMetadata(output),
|
|
1557
1527
|
});
|
|
1558
1528
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
}
|
|
1529
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1530
|
+
trustStoreArn: smithy_client_1.expectString,
|
|
1531
|
+
});
|
|
1532
|
+
Object.assign(contents, doc);
|
|
1562
1533
|
return contents;
|
|
1563
1534
|
};
|
|
1564
1535
|
exports.de_CreateTrustStoreCommand = de_CreateTrustStoreCommand;
|
|
@@ -1589,10 +1560,9 @@ const de_CreateTrustStoreCommandError = async (output, context) => {
|
|
|
1589
1560
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1590
1561
|
default:
|
|
1591
1562
|
const parsedBody = parsedOutput.body;
|
|
1592
|
-
|
|
1563
|
+
return throwDefaultError({
|
|
1593
1564
|
output,
|
|
1594
1565
|
parsedBody,
|
|
1595
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1596
1566
|
errorCode,
|
|
1597
1567
|
});
|
|
1598
1568
|
}
|
|
@@ -1601,13 +1571,14 @@ const de_CreateUserAccessLoggingSettingsCommand = async (output, context) => {
|
|
|
1601
1571
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1602
1572
|
return de_CreateUserAccessLoggingSettingsCommandError(output, context);
|
|
1603
1573
|
}
|
|
1604
|
-
const contents = map({
|
|
1574
|
+
const contents = (0, smithy_client_1.map)({
|
|
1605
1575
|
$metadata: deserializeMetadata(output),
|
|
1606
1576
|
});
|
|
1607
1577
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
}
|
|
1578
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1579
|
+
userAccessLoggingSettingsArn: smithy_client_1.expectString,
|
|
1580
|
+
});
|
|
1581
|
+
Object.assign(contents, doc);
|
|
1611
1582
|
return contents;
|
|
1612
1583
|
};
|
|
1613
1584
|
exports.de_CreateUserAccessLoggingSettingsCommand = de_CreateUserAccessLoggingSettingsCommand;
|
|
@@ -1638,10 +1609,9 @@ const de_CreateUserAccessLoggingSettingsCommandError = async (output, context) =
|
|
|
1638
1609
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1639
1610
|
default:
|
|
1640
1611
|
const parsedBody = parsedOutput.body;
|
|
1641
|
-
|
|
1612
|
+
return throwDefaultError({
|
|
1642
1613
|
output,
|
|
1643
1614
|
parsedBody,
|
|
1644
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1645
1615
|
errorCode,
|
|
1646
1616
|
});
|
|
1647
1617
|
}
|
|
@@ -1650,13 +1620,14 @@ const de_CreateUserSettingsCommand = async (output, context) => {
|
|
|
1650
1620
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1651
1621
|
return de_CreateUserSettingsCommandError(output, context);
|
|
1652
1622
|
}
|
|
1653
|
-
const contents = map({
|
|
1623
|
+
const contents = (0, smithy_client_1.map)({
|
|
1654
1624
|
$metadata: deserializeMetadata(output),
|
|
1655
1625
|
});
|
|
1656
1626
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
}
|
|
1627
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1628
|
+
userSettingsArn: smithy_client_1.expectString,
|
|
1629
|
+
});
|
|
1630
|
+
Object.assign(contents, doc);
|
|
1660
1631
|
return contents;
|
|
1661
1632
|
};
|
|
1662
1633
|
exports.de_CreateUserSettingsCommand = de_CreateUserSettingsCommand;
|
|
@@ -1687,10 +1658,9 @@ const de_CreateUserSettingsCommandError = async (output, context) => {
|
|
|
1687
1658
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1688
1659
|
default:
|
|
1689
1660
|
const parsedBody = parsedOutput.body;
|
|
1690
|
-
|
|
1661
|
+
return throwDefaultError({
|
|
1691
1662
|
output,
|
|
1692
1663
|
parsedBody,
|
|
1693
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1694
1664
|
errorCode,
|
|
1695
1665
|
});
|
|
1696
1666
|
}
|
|
@@ -1699,7 +1669,7 @@ const de_DeleteBrowserSettingsCommand = async (output, context) => {
|
|
|
1699
1669
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1700
1670
|
return de_DeleteBrowserSettingsCommandError(output, context);
|
|
1701
1671
|
}
|
|
1702
|
-
const contents = map({
|
|
1672
|
+
const contents = (0, smithy_client_1.map)({
|
|
1703
1673
|
$metadata: deserializeMetadata(output),
|
|
1704
1674
|
});
|
|
1705
1675
|
await collectBody(output.body, context);
|
|
@@ -1730,10 +1700,9 @@ const de_DeleteBrowserSettingsCommandError = async (output, context) => {
|
|
|
1730
1700
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1731
1701
|
default:
|
|
1732
1702
|
const parsedBody = parsedOutput.body;
|
|
1733
|
-
|
|
1703
|
+
return throwDefaultError({
|
|
1734
1704
|
output,
|
|
1735
1705
|
parsedBody,
|
|
1736
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1737
1706
|
errorCode,
|
|
1738
1707
|
});
|
|
1739
1708
|
}
|
|
@@ -1742,7 +1711,7 @@ const de_DeleteIdentityProviderCommand = async (output, context) => {
|
|
|
1742
1711
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1743
1712
|
return de_DeleteIdentityProviderCommandError(output, context);
|
|
1744
1713
|
}
|
|
1745
|
-
const contents = map({
|
|
1714
|
+
const contents = (0, smithy_client_1.map)({
|
|
1746
1715
|
$metadata: deserializeMetadata(output),
|
|
1747
1716
|
});
|
|
1748
1717
|
await collectBody(output.body, context);
|
|
@@ -1773,10 +1742,9 @@ const de_DeleteIdentityProviderCommandError = async (output, context) => {
|
|
|
1773
1742
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1774
1743
|
default:
|
|
1775
1744
|
const parsedBody = parsedOutput.body;
|
|
1776
|
-
|
|
1745
|
+
return throwDefaultError({
|
|
1777
1746
|
output,
|
|
1778
1747
|
parsedBody,
|
|
1779
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1780
1748
|
errorCode,
|
|
1781
1749
|
});
|
|
1782
1750
|
}
|
|
@@ -1785,7 +1753,7 @@ const de_DeleteNetworkSettingsCommand = async (output, context) => {
|
|
|
1785
1753
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1786
1754
|
return de_DeleteNetworkSettingsCommandError(output, context);
|
|
1787
1755
|
}
|
|
1788
|
-
const contents = map({
|
|
1756
|
+
const contents = (0, smithy_client_1.map)({
|
|
1789
1757
|
$metadata: deserializeMetadata(output),
|
|
1790
1758
|
});
|
|
1791
1759
|
await collectBody(output.body, context);
|
|
@@ -1816,10 +1784,9 @@ const de_DeleteNetworkSettingsCommandError = async (output, context) => {
|
|
|
1816
1784
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1817
1785
|
default:
|
|
1818
1786
|
const parsedBody = parsedOutput.body;
|
|
1819
|
-
|
|
1787
|
+
return throwDefaultError({
|
|
1820
1788
|
output,
|
|
1821
1789
|
parsedBody,
|
|
1822
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1823
1790
|
errorCode,
|
|
1824
1791
|
});
|
|
1825
1792
|
}
|
|
@@ -1828,7 +1795,7 @@ const de_DeletePortalCommand = async (output, context) => {
|
|
|
1828
1795
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1829
1796
|
return de_DeletePortalCommandError(output, context);
|
|
1830
1797
|
}
|
|
1831
|
-
const contents = map({
|
|
1798
|
+
const contents = (0, smithy_client_1.map)({
|
|
1832
1799
|
$metadata: deserializeMetadata(output),
|
|
1833
1800
|
});
|
|
1834
1801
|
await collectBody(output.body, context);
|
|
@@ -1859,10 +1826,9 @@ const de_DeletePortalCommandError = async (output, context) => {
|
|
|
1859
1826
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1860
1827
|
default:
|
|
1861
1828
|
const parsedBody = parsedOutput.body;
|
|
1862
|
-
|
|
1829
|
+
return throwDefaultError({
|
|
1863
1830
|
output,
|
|
1864
1831
|
parsedBody,
|
|
1865
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1866
1832
|
errorCode,
|
|
1867
1833
|
});
|
|
1868
1834
|
}
|
|
@@ -1871,7 +1837,7 @@ const de_DeleteTrustStoreCommand = async (output, context) => {
|
|
|
1871
1837
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1872
1838
|
return de_DeleteTrustStoreCommandError(output, context);
|
|
1873
1839
|
}
|
|
1874
|
-
const contents = map({
|
|
1840
|
+
const contents = (0, smithy_client_1.map)({
|
|
1875
1841
|
$metadata: deserializeMetadata(output),
|
|
1876
1842
|
});
|
|
1877
1843
|
await collectBody(output.body, context);
|
|
@@ -1902,10 +1868,9 @@ const de_DeleteTrustStoreCommandError = async (output, context) => {
|
|
|
1902
1868
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1903
1869
|
default:
|
|
1904
1870
|
const parsedBody = parsedOutput.body;
|
|
1905
|
-
|
|
1871
|
+
return throwDefaultError({
|
|
1906
1872
|
output,
|
|
1907
1873
|
parsedBody,
|
|
1908
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1909
1874
|
errorCode,
|
|
1910
1875
|
});
|
|
1911
1876
|
}
|
|
@@ -1914,7 +1879,7 @@ const de_DeleteUserAccessLoggingSettingsCommand = async (output, context) => {
|
|
|
1914
1879
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1915
1880
|
return de_DeleteUserAccessLoggingSettingsCommandError(output, context);
|
|
1916
1881
|
}
|
|
1917
|
-
const contents = map({
|
|
1882
|
+
const contents = (0, smithy_client_1.map)({
|
|
1918
1883
|
$metadata: deserializeMetadata(output),
|
|
1919
1884
|
});
|
|
1920
1885
|
await collectBody(output.body, context);
|
|
@@ -1945,10 +1910,9 @@ const de_DeleteUserAccessLoggingSettingsCommandError = async (output, context) =
|
|
|
1945
1910
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1946
1911
|
default:
|
|
1947
1912
|
const parsedBody = parsedOutput.body;
|
|
1948
|
-
|
|
1913
|
+
return throwDefaultError({
|
|
1949
1914
|
output,
|
|
1950
1915
|
parsedBody,
|
|
1951
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1952
1916
|
errorCode,
|
|
1953
1917
|
});
|
|
1954
1918
|
}
|
|
@@ -1957,7 +1921,7 @@ const de_DeleteUserSettingsCommand = async (output, context) => {
|
|
|
1957
1921
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1958
1922
|
return de_DeleteUserSettingsCommandError(output, context);
|
|
1959
1923
|
}
|
|
1960
|
-
const contents = map({
|
|
1924
|
+
const contents = (0, smithy_client_1.map)({
|
|
1961
1925
|
$metadata: deserializeMetadata(output),
|
|
1962
1926
|
});
|
|
1963
1927
|
await collectBody(output.body, context);
|
|
@@ -1988,10 +1952,9 @@ const de_DeleteUserSettingsCommandError = async (output, context) => {
|
|
|
1988
1952
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1989
1953
|
default:
|
|
1990
1954
|
const parsedBody = parsedOutput.body;
|
|
1991
|
-
|
|
1955
|
+
return throwDefaultError({
|
|
1992
1956
|
output,
|
|
1993
1957
|
parsedBody,
|
|
1994
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
1995
1958
|
errorCode,
|
|
1996
1959
|
});
|
|
1997
1960
|
}
|
|
@@ -2000,7 +1963,7 @@ const de_DisassociateBrowserSettingsCommand = async (output, context) => {
|
|
|
2000
1963
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2001
1964
|
return de_DisassociateBrowserSettingsCommandError(output, context);
|
|
2002
1965
|
}
|
|
2003
|
-
const contents = map({
|
|
1966
|
+
const contents = (0, smithy_client_1.map)({
|
|
2004
1967
|
$metadata: deserializeMetadata(output),
|
|
2005
1968
|
});
|
|
2006
1969
|
await collectBody(output.body, context);
|
|
@@ -2031,10 +1994,9 @@ const de_DisassociateBrowserSettingsCommandError = async (output, context) => {
|
|
|
2031
1994
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2032
1995
|
default:
|
|
2033
1996
|
const parsedBody = parsedOutput.body;
|
|
2034
|
-
|
|
1997
|
+
return throwDefaultError({
|
|
2035
1998
|
output,
|
|
2036
1999
|
parsedBody,
|
|
2037
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2038
2000
|
errorCode,
|
|
2039
2001
|
});
|
|
2040
2002
|
}
|
|
@@ -2043,7 +2005,7 @@ const de_DisassociateNetworkSettingsCommand = async (output, context) => {
|
|
|
2043
2005
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2044
2006
|
return de_DisassociateNetworkSettingsCommandError(output, context);
|
|
2045
2007
|
}
|
|
2046
|
-
const contents = map({
|
|
2008
|
+
const contents = (0, smithy_client_1.map)({
|
|
2047
2009
|
$metadata: deserializeMetadata(output),
|
|
2048
2010
|
});
|
|
2049
2011
|
await collectBody(output.body, context);
|
|
@@ -2074,10 +2036,9 @@ const de_DisassociateNetworkSettingsCommandError = async (output, context) => {
|
|
|
2074
2036
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2075
2037
|
default:
|
|
2076
2038
|
const parsedBody = parsedOutput.body;
|
|
2077
|
-
|
|
2039
|
+
return throwDefaultError({
|
|
2078
2040
|
output,
|
|
2079
2041
|
parsedBody,
|
|
2080
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2081
2042
|
errorCode,
|
|
2082
2043
|
});
|
|
2083
2044
|
}
|
|
@@ -2086,7 +2047,7 @@ const de_DisassociateTrustStoreCommand = async (output, context) => {
|
|
|
2086
2047
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2087
2048
|
return de_DisassociateTrustStoreCommandError(output, context);
|
|
2088
2049
|
}
|
|
2089
|
-
const contents = map({
|
|
2050
|
+
const contents = (0, smithy_client_1.map)({
|
|
2090
2051
|
$metadata: deserializeMetadata(output),
|
|
2091
2052
|
});
|
|
2092
2053
|
await collectBody(output.body, context);
|
|
@@ -2117,10 +2078,9 @@ const de_DisassociateTrustStoreCommandError = async (output, context) => {
|
|
|
2117
2078
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2118
2079
|
default:
|
|
2119
2080
|
const parsedBody = parsedOutput.body;
|
|
2120
|
-
|
|
2081
|
+
return throwDefaultError({
|
|
2121
2082
|
output,
|
|
2122
2083
|
parsedBody,
|
|
2123
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2124
2084
|
errorCode,
|
|
2125
2085
|
});
|
|
2126
2086
|
}
|
|
@@ -2129,7 +2089,7 @@ const de_DisassociateUserAccessLoggingSettingsCommand = async (output, context)
|
|
|
2129
2089
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2130
2090
|
return de_DisassociateUserAccessLoggingSettingsCommandError(output, context);
|
|
2131
2091
|
}
|
|
2132
|
-
const contents = map({
|
|
2092
|
+
const contents = (0, smithy_client_1.map)({
|
|
2133
2093
|
$metadata: deserializeMetadata(output),
|
|
2134
2094
|
});
|
|
2135
2095
|
await collectBody(output.body, context);
|
|
@@ -2160,10 +2120,9 @@ const de_DisassociateUserAccessLoggingSettingsCommandError = async (output, cont
|
|
|
2160
2120
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2161
2121
|
default:
|
|
2162
2122
|
const parsedBody = parsedOutput.body;
|
|
2163
|
-
|
|
2123
|
+
return throwDefaultError({
|
|
2164
2124
|
output,
|
|
2165
2125
|
parsedBody,
|
|
2166
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2167
2126
|
errorCode,
|
|
2168
2127
|
});
|
|
2169
2128
|
}
|
|
@@ -2172,7 +2131,7 @@ const de_DisassociateUserSettingsCommand = async (output, context) => {
|
|
|
2172
2131
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2173
2132
|
return de_DisassociateUserSettingsCommandError(output, context);
|
|
2174
2133
|
}
|
|
2175
|
-
const contents = map({
|
|
2134
|
+
const contents = (0, smithy_client_1.map)({
|
|
2176
2135
|
$metadata: deserializeMetadata(output),
|
|
2177
2136
|
});
|
|
2178
2137
|
await collectBody(output.body, context);
|
|
@@ -2203,10 +2162,9 @@ const de_DisassociateUserSettingsCommandError = async (output, context) => {
|
|
|
2203
2162
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2204
2163
|
default:
|
|
2205
2164
|
const parsedBody = parsedOutput.body;
|
|
2206
|
-
|
|
2165
|
+
return throwDefaultError({
|
|
2207
2166
|
output,
|
|
2208
2167
|
parsedBody,
|
|
2209
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2210
2168
|
errorCode,
|
|
2211
2169
|
});
|
|
2212
2170
|
}
|
|
@@ -2215,13 +2173,14 @@ const de_GetBrowserSettingsCommand = async (output, context) => {
|
|
|
2215
2173
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2216
2174
|
return de_GetBrowserSettingsCommandError(output, context);
|
|
2217
2175
|
}
|
|
2218
|
-
const contents = map({
|
|
2176
|
+
const contents = (0, smithy_client_1.map)({
|
|
2219
2177
|
$metadata: deserializeMetadata(output),
|
|
2220
2178
|
});
|
|
2221
2179
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
}
|
|
2180
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2181
|
+
browserSettings: smithy_client_1._json,
|
|
2182
|
+
});
|
|
2183
|
+
Object.assign(contents, doc);
|
|
2225
2184
|
return contents;
|
|
2226
2185
|
};
|
|
2227
2186
|
exports.de_GetBrowserSettingsCommand = de_GetBrowserSettingsCommand;
|
|
@@ -2249,10 +2208,9 @@ const de_GetBrowserSettingsCommandError = async (output, context) => {
|
|
|
2249
2208
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2250
2209
|
default:
|
|
2251
2210
|
const parsedBody = parsedOutput.body;
|
|
2252
|
-
|
|
2211
|
+
return throwDefaultError({
|
|
2253
2212
|
output,
|
|
2254
2213
|
parsedBody,
|
|
2255
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2256
2214
|
errorCode,
|
|
2257
2215
|
});
|
|
2258
2216
|
}
|
|
@@ -2261,13 +2219,14 @@ const de_GetIdentityProviderCommand = async (output, context) => {
|
|
|
2261
2219
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2262
2220
|
return de_GetIdentityProviderCommandError(output, context);
|
|
2263
2221
|
}
|
|
2264
|
-
const contents = map({
|
|
2222
|
+
const contents = (0, smithy_client_1.map)({
|
|
2265
2223
|
$metadata: deserializeMetadata(output),
|
|
2266
2224
|
});
|
|
2267
2225
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
}
|
|
2226
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2227
|
+
identityProvider: smithy_client_1._json,
|
|
2228
|
+
});
|
|
2229
|
+
Object.assign(contents, doc);
|
|
2271
2230
|
return contents;
|
|
2272
2231
|
};
|
|
2273
2232
|
exports.de_GetIdentityProviderCommand = de_GetIdentityProviderCommand;
|
|
@@ -2295,10 +2254,9 @@ const de_GetIdentityProviderCommandError = async (output, context) => {
|
|
|
2295
2254
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2296
2255
|
default:
|
|
2297
2256
|
const parsedBody = parsedOutput.body;
|
|
2298
|
-
|
|
2257
|
+
return throwDefaultError({
|
|
2299
2258
|
output,
|
|
2300
2259
|
parsedBody,
|
|
2301
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2302
2260
|
errorCode,
|
|
2303
2261
|
});
|
|
2304
2262
|
}
|
|
@@ -2307,13 +2265,14 @@ const de_GetNetworkSettingsCommand = async (output, context) => {
|
|
|
2307
2265
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2308
2266
|
return de_GetNetworkSettingsCommandError(output, context);
|
|
2309
2267
|
}
|
|
2310
|
-
const contents = map({
|
|
2268
|
+
const contents = (0, smithy_client_1.map)({
|
|
2311
2269
|
$metadata: deserializeMetadata(output),
|
|
2312
2270
|
});
|
|
2313
2271
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
}
|
|
2272
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2273
|
+
networkSettings: smithy_client_1._json,
|
|
2274
|
+
});
|
|
2275
|
+
Object.assign(contents, doc);
|
|
2317
2276
|
return contents;
|
|
2318
2277
|
};
|
|
2319
2278
|
exports.de_GetNetworkSettingsCommand = de_GetNetworkSettingsCommand;
|
|
@@ -2341,10 +2300,9 @@ const de_GetNetworkSettingsCommandError = async (output, context) => {
|
|
|
2341
2300
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2342
2301
|
default:
|
|
2343
2302
|
const parsedBody = parsedOutput.body;
|
|
2344
|
-
|
|
2303
|
+
return throwDefaultError({
|
|
2345
2304
|
output,
|
|
2346
2305
|
parsedBody,
|
|
2347
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2348
2306
|
errorCode,
|
|
2349
2307
|
});
|
|
2350
2308
|
}
|
|
@@ -2353,13 +2311,14 @@ const de_GetPortalCommand = async (output, context) => {
|
|
|
2353
2311
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2354
2312
|
return de_GetPortalCommandError(output, context);
|
|
2355
2313
|
}
|
|
2356
|
-
const contents = map({
|
|
2314
|
+
const contents = (0, smithy_client_1.map)({
|
|
2357
2315
|
$metadata: deserializeMetadata(output),
|
|
2358
2316
|
});
|
|
2359
2317
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
}
|
|
2318
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2319
|
+
portal: (_) => de_Portal(_, context),
|
|
2320
|
+
});
|
|
2321
|
+
Object.assign(contents, doc);
|
|
2363
2322
|
return contents;
|
|
2364
2323
|
};
|
|
2365
2324
|
exports.de_GetPortalCommand = de_GetPortalCommand;
|
|
@@ -2387,10 +2346,9 @@ const de_GetPortalCommandError = async (output, context) => {
|
|
|
2387
2346
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2388
2347
|
default:
|
|
2389
2348
|
const parsedBody = parsedOutput.body;
|
|
2390
|
-
|
|
2349
|
+
return throwDefaultError({
|
|
2391
2350
|
output,
|
|
2392
2351
|
parsedBody,
|
|
2393
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2394
2352
|
errorCode,
|
|
2395
2353
|
});
|
|
2396
2354
|
}
|
|
@@ -2399,16 +2357,15 @@ const de_GetPortalServiceProviderMetadataCommand = async (output, context) => {
|
|
|
2399
2357
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2400
2358
|
return de_GetPortalServiceProviderMetadataCommandError(output, context);
|
|
2401
2359
|
}
|
|
2402
|
-
const contents = map({
|
|
2360
|
+
const contents = (0, smithy_client_1.map)({
|
|
2403
2361
|
$metadata: deserializeMetadata(output),
|
|
2404
2362
|
});
|
|
2405
2363
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
}
|
|
2364
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2365
|
+
portalArn: smithy_client_1.expectString,
|
|
2366
|
+
serviceProviderSamlMetadata: smithy_client_1.expectString,
|
|
2367
|
+
});
|
|
2368
|
+
Object.assign(contents, doc);
|
|
2412
2369
|
return contents;
|
|
2413
2370
|
};
|
|
2414
2371
|
exports.de_GetPortalServiceProviderMetadataCommand = de_GetPortalServiceProviderMetadataCommand;
|
|
@@ -2436,10 +2393,9 @@ const de_GetPortalServiceProviderMetadataCommandError = async (output, context)
|
|
|
2436
2393
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2437
2394
|
default:
|
|
2438
2395
|
const parsedBody = parsedOutput.body;
|
|
2439
|
-
|
|
2396
|
+
return throwDefaultError({
|
|
2440
2397
|
output,
|
|
2441
2398
|
parsedBody,
|
|
2442
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2443
2399
|
errorCode,
|
|
2444
2400
|
});
|
|
2445
2401
|
}
|
|
@@ -2448,13 +2404,14 @@ const de_GetTrustStoreCommand = async (output, context) => {
|
|
|
2448
2404
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2449
2405
|
return de_GetTrustStoreCommandError(output, context);
|
|
2450
2406
|
}
|
|
2451
|
-
const contents = map({
|
|
2407
|
+
const contents = (0, smithy_client_1.map)({
|
|
2452
2408
|
$metadata: deserializeMetadata(output),
|
|
2453
2409
|
});
|
|
2454
2410
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
}
|
|
2411
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2412
|
+
trustStore: smithy_client_1._json,
|
|
2413
|
+
});
|
|
2414
|
+
Object.assign(contents, doc);
|
|
2458
2415
|
return contents;
|
|
2459
2416
|
};
|
|
2460
2417
|
exports.de_GetTrustStoreCommand = de_GetTrustStoreCommand;
|
|
@@ -2482,10 +2439,9 @@ const de_GetTrustStoreCommandError = async (output, context) => {
|
|
|
2482
2439
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2483
2440
|
default:
|
|
2484
2441
|
const parsedBody = parsedOutput.body;
|
|
2485
|
-
|
|
2442
|
+
return throwDefaultError({
|
|
2486
2443
|
output,
|
|
2487
2444
|
parsedBody,
|
|
2488
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2489
2445
|
errorCode,
|
|
2490
2446
|
});
|
|
2491
2447
|
}
|
|
@@ -2494,16 +2450,15 @@ const de_GetTrustStoreCertificateCommand = async (output, context) => {
|
|
|
2494
2450
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2495
2451
|
return de_GetTrustStoreCertificateCommandError(output, context);
|
|
2496
2452
|
}
|
|
2497
|
-
const contents = map({
|
|
2453
|
+
const contents = (0, smithy_client_1.map)({
|
|
2498
2454
|
$metadata: deserializeMetadata(output),
|
|
2499
2455
|
});
|
|
2500
2456
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
}
|
|
2457
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2458
|
+
certificate: (_) => de_Certificate(_, context),
|
|
2459
|
+
trustStoreArn: smithy_client_1.expectString,
|
|
2460
|
+
});
|
|
2461
|
+
Object.assign(contents, doc);
|
|
2507
2462
|
return contents;
|
|
2508
2463
|
};
|
|
2509
2464
|
exports.de_GetTrustStoreCertificateCommand = de_GetTrustStoreCertificateCommand;
|
|
@@ -2531,10 +2486,9 @@ const de_GetTrustStoreCertificateCommandError = async (output, context) => {
|
|
|
2531
2486
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2532
2487
|
default:
|
|
2533
2488
|
const parsedBody = parsedOutput.body;
|
|
2534
|
-
|
|
2489
|
+
return throwDefaultError({
|
|
2535
2490
|
output,
|
|
2536
2491
|
parsedBody,
|
|
2537
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2538
2492
|
errorCode,
|
|
2539
2493
|
});
|
|
2540
2494
|
}
|
|
@@ -2543,13 +2497,14 @@ const de_GetUserAccessLoggingSettingsCommand = async (output, context) => {
|
|
|
2543
2497
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2544
2498
|
return de_GetUserAccessLoggingSettingsCommandError(output, context);
|
|
2545
2499
|
}
|
|
2546
|
-
const contents = map({
|
|
2500
|
+
const contents = (0, smithy_client_1.map)({
|
|
2547
2501
|
$metadata: deserializeMetadata(output),
|
|
2548
2502
|
});
|
|
2549
2503
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
}
|
|
2504
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2505
|
+
userAccessLoggingSettings: smithy_client_1._json,
|
|
2506
|
+
});
|
|
2507
|
+
Object.assign(contents, doc);
|
|
2553
2508
|
return contents;
|
|
2554
2509
|
};
|
|
2555
2510
|
exports.de_GetUserAccessLoggingSettingsCommand = de_GetUserAccessLoggingSettingsCommand;
|
|
@@ -2577,10 +2532,9 @@ const de_GetUserAccessLoggingSettingsCommandError = async (output, context) => {
|
|
|
2577
2532
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2578
2533
|
default:
|
|
2579
2534
|
const parsedBody = parsedOutput.body;
|
|
2580
|
-
|
|
2535
|
+
return throwDefaultError({
|
|
2581
2536
|
output,
|
|
2582
2537
|
parsedBody,
|
|
2583
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2584
2538
|
errorCode,
|
|
2585
2539
|
});
|
|
2586
2540
|
}
|
|
@@ -2589,13 +2543,14 @@ const de_GetUserSettingsCommand = async (output, context) => {
|
|
|
2589
2543
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2590
2544
|
return de_GetUserSettingsCommandError(output, context);
|
|
2591
2545
|
}
|
|
2592
|
-
const contents = map({
|
|
2546
|
+
const contents = (0, smithy_client_1.map)({
|
|
2593
2547
|
$metadata: deserializeMetadata(output),
|
|
2594
2548
|
});
|
|
2595
2549
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
}
|
|
2550
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2551
|
+
userSettings: smithy_client_1._json,
|
|
2552
|
+
});
|
|
2553
|
+
Object.assign(contents, doc);
|
|
2599
2554
|
return contents;
|
|
2600
2555
|
};
|
|
2601
2556
|
exports.de_GetUserSettingsCommand = de_GetUserSettingsCommand;
|
|
@@ -2623,10 +2578,9 @@ const de_GetUserSettingsCommandError = async (output, context) => {
|
|
|
2623
2578
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2624
2579
|
default:
|
|
2625
2580
|
const parsedBody = parsedOutput.body;
|
|
2626
|
-
|
|
2581
|
+
return throwDefaultError({
|
|
2627
2582
|
output,
|
|
2628
2583
|
parsedBody,
|
|
2629
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2630
2584
|
errorCode,
|
|
2631
2585
|
});
|
|
2632
2586
|
}
|
|
@@ -2635,16 +2589,15 @@ const de_ListBrowserSettingsCommand = async (output, context) => {
|
|
|
2635
2589
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2636
2590
|
return de_ListBrowserSettingsCommandError(output, context);
|
|
2637
2591
|
}
|
|
2638
|
-
const contents = map({
|
|
2592
|
+
const contents = (0, smithy_client_1.map)({
|
|
2639
2593
|
$metadata: deserializeMetadata(output),
|
|
2640
2594
|
});
|
|
2641
2595
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
}
|
|
2596
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2597
|
+
browserSettings: smithy_client_1._json,
|
|
2598
|
+
nextToken: smithy_client_1.expectString,
|
|
2599
|
+
});
|
|
2600
|
+
Object.assign(contents, doc);
|
|
2648
2601
|
return contents;
|
|
2649
2602
|
};
|
|
2650
2603
|
exports.de_ListBrowserSettingsCommand = de_ListBrowserSettingsCommand;
|
|
@@ -2669,10 +2622,9 @@ const de_ListBrowserSettingsCommandError = async (output, context) => {
|
|
|
2669
2622
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2670
2623
|
default:
|
|
2671
2624
|
const parsedBody = parsedOutput.body;
|
|
2672
|
-
|
|
2625
|
+
return throwDefaultError({
|
|
2673
2626
|
output,
|
|
2674
2627
|
parsedBody,
|
|
2675
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2676
2628
|
errorCode,
|
|
2677
2629
|
});
|
|
2678
2630
|
}
|
|
@@ -2681,16 +2633,15 @@ const de_ListIdentityProvidersCommand = async (output, context) => {
|
|
|
2681
2633
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2682
2634
|
return de_ListIdentityProvidersCommandError(output, context);
|
|
2683
2635
|
}
|
|
2684
|
-
const contents = map({
|
|
2636
|
+
const contents = (0, smithy_client_1.map)({
|
|
2685
2637
|
$metadata: deserializeMetadata(output),
|
|
2686
2638
|
});
|
|
2687
2639
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
}
|
|
2640
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2641
|
+
identityProviders: smithy_client_1._json,
|
|
2642
|
+
nextToken: smithy_client_1.expectString,
|
|
2643
|
+
});
|
|
2644
|
+
Object.assign(contents, doc);
|
|
2694
2645
|
return contents;
|
|
2695
2646
|
};
|
|
2696
2647
|
exports.de_ListIdentityProvidersCommand = de_ListIdentityProvidersCommand;
|
|
@@ -2715,10 +2666,9 @@ const de_ListIdentityProvidersCommandError = async (output, context) => {
|
|
|
2715
2666
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2716
2667
|
default:
|
|
2717
2668
|
const parsedBody = parsedOutput.body;
|
|
2718
|
-
|
|
2669
|
+
return throwDefaultError({
|
|
2719
2670
|
output,
|
|
2720
2671
|
parsedBody,
|
|
2721
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2722
2672
|
errorCode,
|
|
2723
2673
|
});
|
|
2724
2674
|
}
|
|
@@ -2727,16 +2677,15 @@ const de_ListNetworkSettingsCommand = async (output, context) => {
|
|
|
2727
2677
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2728
2678
|
return de_ListNetworkSettingsCommandError(output, context);
|
|
2729
2679
|
}
|
|
2730
|
-
const contents = map({
|
|
2680
|
+
const contents = (0, smithy_client_1.map)({
|
|
2731
2681
|
$metadata: deserializeMetadata(output),
|
|
2732
2682
|
});
|
|
2733
2683
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
}
|
|
2684
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2685
|
+
networkSettings: smithy_client_1._json,
|
|
2686
|
+
nextToken: smithy_client_1.expectString,
|
|
2687
|
+
});
|
|
2688
|
+
Object.assign(contents, doc);
|
|
2740
2689
|
return contents;
|
|
2741
2690
|
};
|
|
2742
2691
|
exports.de_ListNetworkSettingsCommand = de_ListNetworkSettingsCommand;
|
|
@@ -2761,10 +2710,9 @@ const de_ListNetworkSettingsCommandError = async (output, context) => {
|
|
|
2761
2710
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2762
2711
|
default:
|
|
2763
2712
|
const parsedBody = parsedOutput.body;
|
|
2764
|
-
|
|
2713
|
+
return throwDefaultError({
|
|
2765
2714
|
output,
|
|
2766
2715
|
parsedBody,
|
|
2767
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2768
2716
|
errorCode,
|
|
2769
2717
|
});
|
|
2770
2718
|
}
|
|
@@ -2773,16 +2721,15 @@ const de_ListPortalsCommand = async (output, context) => {
|
|
|
2773
2721
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2774
2722
|
return de_ListPortalsCommandError(output, context);
|
|
2775
2723
|
}
|
|
2776
|
-
const contents = map({
|
|
2724
|
+
const contents = (0, smithy_client_1.map)({
|
|
2777
2725
|
$metadata: deserializeMetadata(output),
|
|
2778
2726
|
});
|
|
2779
2727
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
}
|
|
2728
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2729
|
+
nextToken: smithy_client_1.expectString,
|
|
2730
|
+
portals: (_) => de_PortalList(_, context),
|
|
2731
|
+
});
|
|
2732
|
+
Object.assign(contents, doc);
|
|
2786
2733
|
return contents;
|
|
2787
2734
|
};
|
|
2788
2735
|
exports.de_ListPortalsCommand = de_ListPortalsCommand;
|
|
@@ -2807,10 +2754,9 @@ const de_ListPortalsCommandError = async (output, context) => {
|
|
|
2807
2754
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2808
2755
|
default:
|
|
2809
2756
|
const parsedBody = parsedOutput.body;
|
|
2810
|
-
|
|
2757
|
+
return throwDefaultError({
|
|
2811
2758
|
output,
|
|
2812
2759
|
parsedBody,
|
|
2813
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2814
2760
|
errorCode,
|
|
2815
2761
|
});
|
|
2816
2762
|
}
|
|
@@ -2819,13 +2765,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2819
2765
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2820
2766
|
return de_ListTagsForResourceCommandError(output, context);
|
|
2821
2767
|
}
|
|
2822
|
-
const contents = map({
|
|
2768
|
+
const contents = (0, smithy_client_1.map)({
|
|
2823
2769
|
$metadata: deserializeMetadata(output),
|
|
2824
2770
|
});
|
|
2825
2771
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
}
|
|
2772
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2773
|
+
tags: smithy_client_1._json,
|
|
2774
|
+
});
|
|
2775
|
+
Object.assign(contents, doc);
|
|
2829
2776
|
return contents;
|
|
2830
2777
|
};
|
|
2831
2778
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -2853,10 +2800,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
2853
2800
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2854
2801
|
default:
|
|
2855
2802
|
const parsedBody = parsedOutput.body;
|
|
2856
|
-
|
|
2803
|
+
return throwDefaultError({
|
|
2857
2804
|
output,
|
|
2858
2805
|
parsedBody,
|
|
2859
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2860
2806
|
errorCode,
|
|
2861
2807
|
});
|
|
2862
2808
|
}
|
|
@@ -2865,19 +2811,16 @@ const de_ListTrustStoreCertificatesCommand = async (output, context) => {
|
|
|
2865
2811
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2866
2812
|
return de_ListTrustStoreCertificatesCommandError(output, context);
|
|
2867
2813
|
}
|
|
2868
|
-
const contents = map({
|
|
2814
|
+
const contents = (0, smithy_client_1.map)({
|
|
2869
2815
|
$metadata: deserializeMetadata(output),
|
|
2870
2816
|
});
|
|
2871
2817
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
if (data.trustStoreArn != null) {
|
|
2879
|
-
contents.trustStoreArn = (0, smithy_client_1.expectString)(data.trustStoreArn);
|
|
2880
|
-
}
|
|
2818
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2819
|
+
certificateList: (_) => de_CertificateSummaryList(_, context),
|
|
2820
|
+
nextToken: smithy_client_1.expectString,
|
|
2821
|
+
trustStoreArn: smithy_client_1.expectString,
|
|
2822
|
+
});
|
|
2823
|
+
Object.assign(contents, doc);
|
|
2881
2824
|
return contents;
|
|
2882
2825
|
};
|
|
2883
2826
|
exports.de_ListTrustStoreCertificatesCommand = de_ListTrustStoreCertificatesCommand;
|
|
@@ -2905,10 +2848,9 @@ const de_ListTrustStoreCertificatesCommandError = async (output, context) => {
|
|
|
2905
2848
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2906
2849
|
default:
|
|
2907
2850
|
const parsedBody = parsedOutput.body;
|
|
2908
|
-
|
|
2851
|
+
return throwDefaultError({
|
|
2909
2852
|
output,
|
|
2910
2853
|
parsedBody,
|
|
2911
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2912
2854
|
errorCode,
|
|
2913
2855
|
});
|
|
2914
2856
|
}
|
|
@@ -2917,16 +2859,15 @@ const de_ListTrustStoresCommand = async (output, context) => {
|
|
|
2917
2859
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2918
2860
|
return de_ListTrustStoresCommandError(output, context);
|
|
2919
2861
|
}
|
|
2920
|
-
const contents = map({
|
|
2862
|
+
const contents = (0, smithy_client_1.map)({
|
|
2921
2863
|
$metadata: deserializeMetadata(output),
|
|
2922
2864
|
});
|
|
2923
2865
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
}
|
|
2866
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2867
|
+
nextToken: smithy_client_1.expectString,
|
|
2868
|
+
trustStores: smithy_client_1._json,
|
|
2869
|
+
});
|
|
2870
|
+
Object.assign(contents, doc);
|
|
2930
2871
|
return contents;
|
|
2931
2872
|
};
|
|
2932
2873
|
exports.de_ListTrustStoresCommand = de_ListTrustStoresCommand;
|
|
@@ -2951,10 +2892,9 @@ const de_ListTrustStoresCommandError = async (output, context) => {
|
|
|
2951
2892
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2952
2893
|
default:
|
|
2953
2894
|
const parsedBody = parsedOutput.body;
|
|
2954
|
-
|
|
2895
|
+
return throwDefaultError({
|
|
2955
2896
|
output,
|
|
2956
2897
|
parsedBody,
|
|
2957
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
2958
2898
|
errorCode,
|
|
2959
2899
|
});
|
|
2960
2900
|
}
|
|
@@ -2963,16 +2903,15 @@ const de_ListUserAccessLoggingSettingsCommand = async (output, context) => {
|
|
|
2963
2903
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2964
2904
|
return de_ListUserAccessLoggingSettingsCommandError(output, context);
|
|
2965
2905
|
}
|
|
2966
|
-
const contents = map({
|
|
2906
|
+
const contents = (0, smithy_client_1.map)({
|
|
2967
2907
|
$metadata: deserializeMetadata(output),
|
|
2968
2908
|
});
|
|
2969
2909
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
}
|
|
2910
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2911
|
+
nextToken: smithy_client_1.expectString,
|
|
2912
|
+
userAccessLoggingSettings: smithy_client_1._json,
|
|
2913
|
+
});
|
|
2914
|
+
Object.assign(contents, doc);
|
|
2976
2915
|
return contents;
|
|
2977
2916
|
};
|
|
2978
2917
|
exports.de_ListUserAccessLoggingSettingsCommand = de_ListUserAccessLoggingSettingsCommand;
|
|
@@ -2997,10 +2936,9 @@ const de_ListUserAccessLoggingSettingsCommandError = async (output, context) =>
|
|
|
2997
2936
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2998
2937
|
default:
|
|
2999
2938
|
const parsedBody = parsedOutput.body;
|
|
3000
|
-
|
|
2939
|
+
return throwDefaultError({
|
|
3001
2940
|
output,
|
|
3002
2941
|
parsedBody,
|
|
3003
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
3004
2942
|
errorCode,
|
|
3005
2943
|
});
|
|
3006
2944
|
}
|
|
@@ -3009,16 +2947,15 @@ const de_ListUserSettingsCommand = async (output, context) => {
|
|
|
3009
2947
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3010
2948
|
return de_ListUserSettingsCommandError(output, context);
|
|
3011
2949
|
}
|
|
3012
|
-
const contents = map({
|
|
2950
|
+
const contents = (0, smithy_client_1.map)({
|
|
3013
2951
|
$metadata: deserializeMetadata(output),
|
|
3014
2952
|
});
|
|
3015
2953
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
}
|
|
2954
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2955
|
+
nextToken: smithy_client_1.expectString,
|
|
2956
|
+
userSettings: smithy_client_1._json,
|
|
2957
|
+
});
|
|
2958
|
+
Object.assign(contents, doc);
|
|
3022
2959
|
return contents;
|
|
3023
2960
|
};
|
|
3024
2961
|
exports.de_ListUserSettingsCommand = de_ListUserSettingsCommand;
|
|
@@ -3043,10 +2980,9 @@ const de_ListUserSettingsCommandError = async (output, context) => {
|
|
|
3043
2980
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3044
2981
|
default:
|
|
3045
2982
|
const parsedBody = parsedOutput.body;
|
|
3046
|
-
|
|
2983
|
+
return throwDefaultError({
|
|
3047
2984
|
output,
|
|
3048
2985
|
parsedBody,
|
|
3049
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
3050
2986
|
errorCode,
|
|
3051
2987
|
});
|
|
3052
2988
|
}
|
|
@@ -3055,7 +2991,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
3055
2991
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3056
2992
|
return de_TagResourceCommandError(output, context);
|
|
3057
2993
|
}
|
|
3058
|
-
const contents = map({
|
|
2994
|
+
const contents = (0, smithy_client_1.map)({
|
|
3059
2995
|
$metadata: deserializeMetadata(output),
|
|
3060
2996
|
});
|
|
3061
2997
|
await collectBody(output.body, context);
|
|
@@ -3089,10 +3025,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
3089
3025
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3090
3026
|
default:
|
|
3091
3027
|
const parsedBody = parsedOutput.body;
|
|
3092
|
-
|
|
3028
|
+
return throwDefaultError({
|
|
3093
3029
|
output,
|
|
3094
3030
|
parsedBody,
|
|
3095
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
3096
3031
|
errorCode,
|
|
3097
3032
|
});
|
|
3098
3033
|
}
|
|
@@ -3101,7 +3036,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
3101
3036
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3102
3037
|
return de_UntagResourceCommandError(output, context);
|
|
3103
3038
|
}
|
|
3104
|
-
const contents = map({
|
|
3039
|
+
const contents = (0, smithy_client_1.map)({
|
|
3105
3040
|
$metadata: deserializeMetadata(output),
|
|
3106
3041
|
});
|
|
3107
3042
|
await collectBody(output.body, context);
|
|
@@ -3132,10 +3067,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
3132
3067
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3133
3068
|
default:
|
|
3134
3069
|
const parsedBody = parsedOutput.body;
|
|
3135
|
-
|
|
3070
|
+
return throwDefaultError({
|
|
3136
3071
|
output,
|
|
3137
3072
|
parsedBody,
|
|
3138
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
3139
3073
|
errorCode,
|
|
3140
3074
|
});
|
|
3141
3075
|
}
|
|
@@ -3144,13 +3078,14 @@ const de_UpdateBrowserSettingsCommand = async (output, context) => {
|
|
|
3144
3078
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3145
3079
|
return de_UpdateBrowserSettingsCommandError(output, context);
|
|
3146
3080
|
}
|
|
3147
|
-
const contents = map({
|
|
3081
|
+
const contents = (0, smithy_client_1.map)({
|
|
3148
3082
|
$metadata: deserializeMetadata(output),
|
|
3149
3083
|
});
|
|
3150
3084
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
}
|
|
3085
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3086
|
+
browserSettings: smithy_client_1._json,
|
|
3087
|
+
});
|
|
3088
|
+
Object.assign(contents, doc);
|
|
3154
3089
|
return contents;
|
|
3155
3090
|
};
|
|
3156
3091
|
exports.de_UpdateBrowserSettingsCommand = de_UpdateBrowserSettingsCommand;
|
|
@@ -3178,10 +3113,9 @@ const de_UpdateBrowserSettingsCommandError = async (output, context) => {
|
|
|
3178
3113
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3179
3114
|
default:
|
|
3180
3115
|
const parsedBody = parsedOutput.body;
|
|
3181
|
-
|
|
3116
|
+
return throwDefaultError({
|
|
3182
3117
|
output,
|
|
3183
3118
|
parsedBody,
|
|
3184
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
3185
3119
|
errorCode,
|
|
3186
3120
|
});
|
|
3187
3121
|
}
|
|
@@ -3190,13 +3124,14 @@ const de_UpdateIdentityProviderCommand = async (output, context) => {
|
|
|
3190
3124
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3191
3125
|
return de_UpdateIdentityProviderCommandError(output, context);
|
|
3192
3126
|
}
|
|
3193
|
-
const contents = map({
|
|
3127
|
+
const contents = (0, smithy_client_1.map)({
|
|
3194
3128
|
$metadata: deserializeMetadata(output),
|
|
3195
3129
|
});
|
|
3196
3130
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
}
|
|
3131
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3132
|
+
identityProvider: smithy_client_1._json,
|
|
3133
|
+
});
|
|
3134
|
+
Object.assign(contents, doc);
|
|
3200
3135
|
return contents;
|
|
3201
3136
|
};
|
|
3202
3137
|
exports.de_UpdateIdentityProviderCommand = de_UpdateIdentityProviderCommand;
|
|
@@ -3224,10 +3159,9 @@ const de_UpdateIdentityProviderCommandError = async (output, context) => {
|
|
|
3224
3159
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3225
3160
|
default:
|
|
3226
3161
|
const parsedBody = parsedOutput.body;
|
|
3227
|
-
|
|
3162
|
+
return throwDefaultError({
|
|
3228
3163
|
output,
|
|
3229
3164
|
parsedBody,
|
|
3230
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
3231
3165
|
errorCode,
|
|
3232
3166
|
});
|
|
3233
3167
|
}
|
|
@@ -3236,13 +3170,14 @@ const de_UpdateNetworkSettingsCommand = async (output, context) => {
|
|
|
3236
3170
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3237
3171
|
return de_UpdateNetworkSettingsCommandError(output, context);
|
|
3238
3172
|
}
|
|
3239
|
-
const contents = map({
|
|
3173
|
+
const contents = (0, smithy_client_1.map)({
|
|
3240
3174
|
$metadata: deserializeMetadata(output),
|
|
3241
3175
|
});
|
|
3242
3176
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
}
|
|
3177
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3178
|
+
networkSettings: smithy_client_1._json,
|
|
3179
|
+
});
|
|
3180
|
+
Object.assign(contents, doc);
|
|
3246
3181
|
return contents;
|
|
3247
3182
|
};
|
|
3248
3183
|
exports.de_UpdateNetworkSettingsCommand = de_UpdateNetworkSettingsCommand;
|
|
@@ -3270,10 +3205,9 @@ const de_UpdateNetworkSettingsCommandError = async (output, context) => {
|
|
|
3270
3205
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3271
3206
|
default:
|
|
3272
3207
|
const parsedBody = parsedOutput.body;
|
|
3273
|
-
|
|
3208
|
+
return throwDefaultError({
|
|
3274
3209
|
output,
|
|
3275
3210
|
parsedBody,
|
|
3276
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
3277
3211
|
errorCode,
|
|
3278
3212
|
});
|
|
3279
3213
|
}
|
|
@@ -3282,13 +3216,14 @@ const de_UpdatePortalCommand = async (output, context) => {
|
|
|
3282
3216
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3283
3217
|
return de_UpdatePortalCommandError(output, context);
|
|
3284
3218
|
}
|
|
3285
|
-
const contents = map({
|
|
3219
|
+
const contents = (0, smithy_client_1.map)({
|
|
3286
3220
|
$metadata: deserializeMetadata(output),
|
|
3287
3221
|
});
|
|
3288
3222
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
}
|
|
3223
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3224
|
+
portal: (_) => de_Portal(_, context),
|
|
3225
|
+
});
|
|
3226
|
+
Object.assign(contents, doc);
|
|
3292
3227
|
return contents;
|
|
3293
3228
|
};
|
|
3294
3229
|
exports.de_UpdatePortalCommand = de_UpdatePortalCommand;
|
|
@@ -3316,10 +3251,9 @@ const de_UpdatePortalCommandError = async (output, context) => {
|
|
|
3316
3251
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3317
3252
|
default:
|
|
3318
3253
|
const parsedBody = parsedOutput.body;
|
|
3319
|
-
|
|
3254
|
+
return throwDefaultError({
|
|
3320
3255
|
output,
|
|
3321
3256
|
parsedBody,
|
|
3322
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
3323
3257
|
errorCode,
|
|
3324
3258
|
});
|
|
3325
3259
|
}
|
|
@@ -3328,13 +3262,14 @@ const de_UpdateTrustStoreCommand = async (output, context) => {
|
|
|
3328
3262
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3329
3263
|
return de_UpdateTrustStoreCommandError(output, context);
|
|
3330
3264
|
}
|
|
3331
|
-
const contents = map({
|
|
3265
|
+
const contents = (0, smithy_client_1.map)({
|
|
3332
3266
|
$metadata: deserializeMetadata(output),
|
|
3333
3267
|
});
|
|
3334
3268
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
}
|
|
3269
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3270
|
+
trustStoreArn: smithy_client_1.expectString,
|
|
3271
|
+
});
|
|
3272
|
+
Object.assign(contents, doc);
|
|
3338
3273
|
return contents;
|
|
3339
3274
|
};
|
|
3340
3275
|
exports.de_UpdateTrustStoreCommand = de_UpdateTrustStoreCommand;
|
|
@@ -3365,10 +3300,9 @@ const de_UpdateTrustStoreCommandError = async (output, context) => {
|
|
|
3365
3300
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3366
3301
|
default:
|
|
3367
3302
|
const parsedBody = parsedOutput.body;
|
|
3368
|
-
|
|
3303
|
+
return throwDefaultError({
|
|
3369
3304
|
output,
|
|
3370
3305
|
parsedBody,
|
|
3371
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
3372
3306
|
errorCode,
|
|
3373
3307
|
});
|
|
3374
3308
|
}
|
|
@@ -3377,13 +3311,14 @@ const de_UpdateUserAccessLoggingSettingsCommand = async (output, context) => {
|
|
|
3377
3311
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3378
3312
|
return de_UpdateUserAccessLoggingSettingsCommandError(output, context);
|
|
3379
3313
|
}
|
|
3380
|
-
const contents = map({
|
|
3314
|
+
const contents = (0, smithy_client_1.map)({
|
|
3381
3315
|
$metadata: deserializeMetadata(output),
|
|
3382
3316
|
});
|
|
3383
3317
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
}
|
|
3318
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3319
|
+
userAccessLoggingSettings: smithy_client_1._json,
|
|
3320
|
+
});
|
|
3321
|
+
Object.assign(contents, doc);
|
|
3387
3322
|
return contents;
|
|
3388
3323
|
};
|
|
3389
3324
|
exports.de_UpdateUserAccessLoggingSettingsCommand = de_UpdateUserAccessLoggingSettingsCommand;
|
|
@@ -3411,10 +3346,9 @@ const de_UpdateUserAccessLoggingSettingsCommandError = async (output, context) =
|
|
|
3411
3346
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3412
3347
|
default:
|
|
3413
3348
|
const parsedBody = parsedOutput.body;
|
|
3414
|
-
|
|
3349
|
+
return throwDefaultError({
|
|
3415
3350
|
output,
|
|
3416
3351
|
parsedBody,
|
|
3417
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
3418
3352
|
errorCode,
|
|
3419
3353
|
});
|
|
3420
3354
|
}
|
|
@@ -3423,13 +3357,14 @@ const de_UpdateUserSettingsCommand = async (output, context) => {
|
|
|
3423
3357
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3424
3358
|
return de_UpdateUserSettingsCommandError(output, context);
|
|
3425
3359
|
}
|
|
3426
|
-
const contents = map({
|
|
3360
|
+
const contents = (0, smithy_client_1.map)({
|
|
3427
3361
|
$metadata: deserializeMetadata(output),
|
|
3428
3362
|
});
|
|
3429
3363
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
}
|
|
3364
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3365
|
+
userSettings: smithy_client_1._json,
|
|
3366
|
+
});
|
|
3367
|
+
Object.assign(contents, doc);
|
|
3433
3368
|
return contents;
|
|
3434
3369
|
};
|
|
3435
3370
|
exports.de_UpdateUserSettingsCommand = de_UpdateUserSettingsCommand;
|
|
@@ -3457,21 +3392,21 @@ const de_UpdateUserSettingsCommandError = async (output, context) => {
|
|
|
3457
3392
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3458
3393
|
default:
|
|
3459
3394
|
const parsedBody = parsedOutput.body;
|
|
3460
|
-
|
|
3395
|
+
return throwDefaultError({
|
|
3461
3396
|
output,
|
|
3462
3397
|
parsedBody,
|
|
3463
|
-
exceptionCtor: WorkSpacesWebServiceException_1.WorkSpacesWebServiceException,
|
|
3464
3398
|
errorCode,
|
|
3465
3399
|
});
|
|
3466
3400
|
}
|
|
3467
3401
|
};
|
|
3468
|
-
const
|
|
3402
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(WorkSpacesWebServiceException_1.WorkSpacesWebServiceException);
|
|
3469
3403
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3470
|
-
const contents = map({});
|
|
3404
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3471
3405
|
const data = parsedOutput.body;
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
}
|
|
3406
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3407
|
+
message: smithy_client_1.expectString,
|
|
3408
|
+
});
|
|
3409
|
+
Object.assign(contents, doc);
|
|
3475
3410
|
const exception = new models_0_1.AccessDeniedException({
|
|
3476
3411
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3477
3412
|
...contents,
|
|
@@ -3479,17 +3414,14 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
3479
3414
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3480
3415
|
};
|
|
3481
3416
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3482
|
-
const contents = map({});
|
|
3417
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3483
3418
|
const data = parsedOutput.body;
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
if (data.resourceType != null) {
|
|
3491
|
-
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
3492
|
-
}
|
|
3419
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3420
|
+
message: smithy_client_1.expectString,
|
|
3421
|
+
resourceId: smithy_client_1.expectString,
|
|
3422
|
+
resourceType: smithy_client_1.expectString,
|
|
3423
|
+
});
|
|
3424
|
+
Object.assign(contents, doc);
|
|
3493
3425
|
const exception = new models_0_1.ConflictException({
|
|
3494
3426
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3495
3427
|
...contents,
|
|
@@ -3497,16 +3429,17 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
3497
3429
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3498
3430
|
};
|
|
3499
3431
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
3500
|
-
const contents = map({
|
|
3432
|
+
const contents = (0, smithy_client_1.map)({
|
|
3501
3433
|
retryAfterSeconds: [
|
|
3502
3434
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
3503
3435
|
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
3504
3436
|
],
|
|
3505
3437
|
});
|
|
3506
3438
|
const data = parsedOutput.body;
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
}
|
|
3439
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3440
|
+
message: smithy_client_1.expectString,
|
|
3441
|
+
});
|
|
3442
|
+
Object.assign(contents, doc);
|
|
3510
3443
|
const exception = new models_0_1.InternalServerException({
|
|
3511
3444
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3512
3445
|
...contents,
|
|
@@ -3514,17 +3447,14 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
3514
3447
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3515
3448
|
};
|
|
3516
3449
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3517
|
-
const contents = map({});
|
|
3450
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3518
3451
|
const data = parsedOutput.body;
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
if (data.resourceType != null) {
|
|
3526
|
-
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
3527
|
-
}
|
|
3452
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3453
|
+
message: smithy_client_1.expectString,
|
|
3454
|
+
resourceId: smithy_client_1.expectString,
|
|
3455
|
+
resourceType: smithy_client_1.expectString,
|
|
3456
|
+
});
|
|
3457
|
+
Object.assign(contents, doc);
|
|
3528
3458
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
3529
3459
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3530
3460
|
...contents,
|
|
@@ -3532,23 +3462,16 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
3532
3462
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3533
3463
|
};
|
|
3534
3464
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
3535
|
-
const contents = map({});
|
|
3465
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3536
3466
|
const data = parsedOutput.body;
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
}
|
|
3546
|
-
if (data.resourceType != null) {
|
|
3547
|
-
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
3548
|
-
}
|
|
3549
|
-
if (data.serviceCode != null) {
|
|
3550
|
-
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
3551
|
-
}
|
|
3467
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3468
|
+
message: smithy_client_1.expectString,
|
|
3469
|
+
quotaCode: smithy_client_1.expectString,
|
|
3470
|
+
resourceId: smithy_client_1.expectString,
|
|
3471
|
+
resourceType: smithy_client_1.expectString,
|
|
3472
|
+
serviceCode: smithy_client_1.expectString,
|
|
3473
|
+
});
|
|
3474
|
+
Object.assign(contents, doc);
|
|
3552
3475
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
3553
3476
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3554
3477
|
...contents,
|
|
@@ -3556,22 +3479,19 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
3556
3479
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3557
3480
|
};
|
|
3558
3481
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
3559
|
-
const contents = map({
|
|
3482
|
+
const contents = (0, smithy_client_1.map)({
|
|
3560
3483
|
retryAfterSeconds: [
|
|
3561
3484
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
3562
3485
|
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
3563
3486
|
],
|
|
3564
3487
|
});
|
|
3565
3488
|
const data = parsedOutput.body;
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
if (data.serviceCode != null) {
|
|
3573
|
-
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
3574
|
-
}
|
|
3489
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3490
|
+
message: smithy_client_1.expectString,
|
|
3491
|
+
quotaCode: smithy_client_1.expectString,
|
|
3492
|
+
serviceCode: smithy_client_1.expectString,
|
|
3493
|
+
});
|
|
3494
|
+
Object.assign(contents, doc);
|
|
3575
3495
|
const exception = new models_0_1.ThrottlingException({
|
|
3576
3496
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3577
3497
|
...contents,
|
|
@@ -3579,14 +3499,13 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
3579
3499
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3580
3500
|
};
|
|
3581
3501
|
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
3582
|
-
const contents = map({});
|
|
3502
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3583
3503
|
const data = parsedOutput.body;
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
}
|
|
3504
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3505
|
+
message: smithy_client_1.expectString,
|
|
3506
|
+
resourceName: smithy_client_1.expectString,
|
|
3507
|
+
});
|
|
3508
|
+
Object.assign(contents, doc);
|
|
3590
3509
|
const exception = new models_0_1.TooManyTagsException({
|
|
3591
3510
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3592
3511
|
...contents,
|
|
@@ -3594,17 +3513,14 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
|
3594
3513
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3595
3514
|
};
|
|
3596
3515
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
3597
|
-
const contents = map({});
|
|
3516
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3598
3517
|
const data = parsedOutput.body;
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
if (data.reason != null) {
|
|
3606
|
-
contents.reason = (0, smithy_client_1.expectString)(data.reason);
|
|
3607
|
-
}
|
|
3518
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3519
|
+
fieldList: smithy_client_1._json,
|
|
3520
|
+
message: smithy_client_1.expectString,
|
|
3521
|
+
reason: smithy_client_1.expectString,
|
|
3522
|
+
});
|
|
3523
|
+
Object.assign(contents, doc);
|
|
3608
3524
|
const exception = new models_0_1.ValidationException({
|
|
3609
3525
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3610
3526
|
...contents,
|
|
@@ -3618,380 +3534,75 @@ const se_CertificateList = (input, context) => {
|
|
|
3618
3534
|
return context.base64Encoder(entry);
|
|
3619
3535
|
});
|
|
3620
3536
|
};
|
|
3621
|
-
const se_CertificateThumbprintList = (input, context) => {
|
|
3622
|
-
return input
|
|
3623
|
-
.filter((e) => e != null)
|
|
3624
|
-
.map((entry) => {
|
|
3625
|
-
return entry;
|
|
3626
|
-
});
|
|
3627
|
-
};
|
|
3628
|
-
const se_EncryptionContextMap = (input, context) => {
|
|
3629
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3630
|
-
if (value === null) {
|
|
3631
|
-
return acc;
|
|
3632
|
-
}
|
|
3633
|
-
acc[key] = value;
|
|
3634
|
-
return acc;
|
|
3635
|
-
}, {});
|
|
3636
|
-
};
|
|
3637
|
-
const se_IdentityProviderDetails = (input, context) => {
|
|
3638
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3639
|
-
if (value === null) {
|
|
3640
|
-
return acc;
|
|
3641
|
-
}
|
|
3642
|
-
acc[key] = value;
|
|
3643
|
-
return acc;
|
|
3644
|
-
}, {});
|
|
3645
|
-
};
|
|
3646
|
-
const se_SecurityGroupIdList = (input, context) => {
|
|
3647
|
-
return input
|
|
3648
|
-
.filter((e) => e != null)
|
|
3649
|
-
.map((entry) => {
|
|
3650
|
-
return entry;
|
|
3651
|
-
});
|
|
3652
|
-
};
|
|
3653
|
-
const se_SubnetIdList = (input, context) => {
|
|
3654
|
-
return input
|
|
3655
|
-
.filter((e) => e != null)
|
|
3656
|
-
.map((entry) => {
|
|
3657
|
-
return entry;
|
|
3658
|
-
});
|
|
3659
|
-
};
|
|
3660
|
-
const se_Tag = (input, context) => {
|
|
3661
|
-
return {
|
|
3662
|
-
...(input.Key != null && { Key: input.Key }),
|
|
3663
|
-
...(input.Value != null && { Value: input.Value }),
|
|
3664
|
-
};
|
|
3665
|
-
};
|
|
3666
|
-
const se_TagList = (input, context) => {
|
|
3667
|
-
return input
|
|
3668
|
-
.filter((e) => e != null)
|
|
3669
|
-
.map((entry) => {
|
|
3670
|
-
return se_Tag(entry, context);
|
|
3671
|
-
});
|
|
3672
|
-
};
|
|
3673
|
-
const de_ArnList = (output, context) => {
|
|
3674
|
-
const retVal = (output || [])
|
|
3675
|
-
.filter((e) => e != null)
|
|
3676
|
-
.map((entry) => {
|
|
3677
|
-
if (entry === null) {
|
|
3678
|
-
return null;
|
|
3679
|
-
}
|
|
3680
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3681
|
-
});
|
|
3682
|
-
return retVal;
|
|
3683
|
-
};
|
|
3684
|
-
const de_BrowserSettings = (output, context) => {
|
|
3685
|
-
return {
|
|
3686
|
-
associatedPortalArns: output.associatedPortalArns != null ? de_ArnList(output.associatedPortalArns, context) : undefined,
|
|
3687
|
-
browserPolicy: (0, smithy_client_1.expectString)(output.browserPolicy),
|
|
3688
|
-
browserSettingsArn: (0, smithy_client_1.expectString)(output.browserSettingsArn),
|
|
3689
|
-
};
|
|
3690
|
-
};
|
|
3691
|
-
const de_BrowserSettingsList = (output, context) => {
|
|
3692
|
-
const retVal = (output || [])
|
|
3693
|
-
.filter((e) => e != null)
|
|
3694
|
-
.map((entry) => {
|
|
3695
|
-
if (entry === null) {
|
|
3696
|
-
return null;
|
|
3697
|
-
}
|
|
3698
|
-
return de_BrowserSettingsSummary(entry, context);
|
|
3699
|
-
});
|
|
3700
|
-
return retVal;
|
|
3701
|
-
};
|
|
3702
|
-
const de_BrowserSettingsSummary = (output, context) => {
|
|
3703
|
-
return {
|
|
3704
|
-
browserSettingsArn: (0, smithy_client_1.expectString)(output.browserSettingsArn),
|
|
3705
|
-
};
|
|
3706
|
-
};
|
|
3707
3537
|
const de_Certificate = (output, context) => {
|
|
3708
|
-
return {
|
|
3709
|
-
body:
|
|
3710
|
-
issuer:
|
|
3711
|
-
notValidAfter:
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
: undefined,
|
|
3717
|
-
subject: (0, smithy_client_1.expectString)(output.subject),
|
|
3718
|
-
thumbprint: (0, smithy_client_1.expectString)(output.thumbprint),
|
|
3719
|
-
};
|
|
3538
|
+
return (0, smithy_client_1.take)(output, {
|
|
3539
|
+
body: context.base64Decoder,
|
|
3540
|
+
issuer: smithy_client_1.expectString,
|
|
3541
|
+
notValidAfter: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3542
|
+
notValidBefore: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3543
|
+
subject: smithy_client_1.expectString,
|
|
3544
|
+
thumbprint: smithy_client_1.expectString,
|
|
3545
|
+
});
|
|
3720
3546
|
};
|
|
3721
3547
|
const de_CertificateSummary = (output, context) => {
|
|
3722
|
-
return {
|
|
3723
|
-
issuer:
|
|
3724
|
-
notValidAfter:
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
: undefined,
|
|
3730
|
-
subject: (0, smithy_client_1.expectString)(output.subject),
|
|
3731
|
-
thumbprint: (0, smithy_client_1.expectString)(output.thumbprint),
|
|
3732
|
-
};
|
|
3548
|
+
return (0, smithy_client_1.take)(output, {
|
|
3549
|
+
issuer: smithy_client_1.expectString,
|
|
3550
|
+
notValidAfter: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3551
|
+
notValidBefore: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3552
|
+
subject: smithy_client_1.expectString,
|
|
3553
|
+
thumbprint: smithy_client_1.expectString,
|
|
3554
|
+
});
|
|
3733
3555
|
};
|
|
3734
3556
|
const de_CertificateSummaryList = (output, context) => {
|
|
3735
3557
|
const retVal = (output || [])
|
|
3736
3558
|
.filter((e) => e != null)
|
|
3737
3559
|
.map((entry) => {
|
|
3738
|
-
if (entry === null) {
|
|
3739
|
-
return null;
|
|
3740
|
-
}
|
|
3741
3560
|
return de_CertificateSummary(entry, context);
|
|
3742
3561
|
});
|
|
3743
3562
|
return retVal;
|
|
3744
3563
|
};
|
|
3745
|
-
const de_IdentityProvider = (output, context) => {
|
|
3746
|
-
return {
|
|
3747
|
-
identityProviderArn: (0, smithy_client_1.expectString)(output.identityProviderArn),
|
|
3748
|
-
identityProviderDetails: output.identityProviderDetails != null
|
|
3749
|
-
? de_IdentityProviderDetails(output.identityProviderDetails, context)
|
|
3750
|
-
: undefined,
|
|
3751
|
-
identityProviderName: (0, smithy_client_1.expectString)(output.identityProviderName),
|
|
3752
|
-
identityProviderType: (0, smithy_client_1.expectString)(output.identityProviderType),
|
|
3753
|
-
};
|
|
3754
|
-
};
|
|
3755
|
-
const de_IdentityProviderDetails = (output, context) => {
|
|
3756
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3757
|
-
if (value === null) {
|
|
3758
|
-
return acc;
|
|
3759
|
-
}
|
|
3760
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
3761
|
-
return acc;
|
|
3762
|
-
}, {});
|
|
3763
|
-
};
|
|
3764
|
-
const de_IdentityProviderList = (output, context) => {
|
|
3765
|
-
const retVal = (output || [])
|
|
3766
|
-
.filter((e) => e != null)
|
|
3767
|
-
.map((entry) => {
|
|
3768
|
-
if (entry === null) {
|
|
3769
|
-
return null;
|
|
3770
|
-
}
|
|
3771
|
-
return de_IdentityProviderSummary(entry, context);
|
|
3772
|
-
});
|
|
3773
|
-
return retVal;
|
|
3774
|
-
};
|
|
3775
|
-
const de_IdentityProviderSummary = (output, context) => {
|
|
3776
|
-
return {
|
|
3777
|
-
identityProviderArn: (0, smithy_client_1.expectString)(output.identityProviderArn),
|
|
3778
|
-
identityProviderName: (0, smithy_client_1.expectString)(output.identityProviderName),
|
|
3779
|
-
identityProviderType: (0, smithy_client_1.expectString)(output.identityProviderType),
|
|
3780
|
-
};
|
|
3781
|
-
};
|
|
3782
|
-
const de_NetworkSettings = (output, context) => {
|
|
3783
|
-
return {
|
|
3784
|
-
associatedPortalArns: output.associatedPortalArns != null ? de_ArnList(output.associatedPortalArns, context) : undefined,
|
|
3785
|
-
networkSettingsArn: (0, smithy_client_1.expectString)(output.networkSettingsArn),
|
|
3786
|
-
securityGroupIds: output.securityGroupIds != null ? de_SecurityGroupIdList(output.securityGroupIds, context) : undefined,
|
|
3787
|
-
subnetIds: output.subnetIds != null ? de_SubnetIdList(output.subnetIds, context) : undefined,
|
|
3788
|
-
vpcId: (0, smithy_client_1.expectString)(output.vpcId),
|
|
3789
|
-
};
|
|
3790
|
-
};
|
|
3791
|
-
const de_NetworkSettingsList = (output, context) => {
|
|
3792
|
-
const retVal = (output || [])
|
|
3793
|
-
.filter((e) => e != null)
|
|
3794
|
-
.map((entry) => {
|
|
3795
|
-
if (entry === null) {
|
|
3796
|
-
return null;
|
|
3797
|
-
}
|
|
3798
|
-
return de_NetworkSettingsSummary(entry, context);
|
|
3799
|
-
});
|
|
3800
|
-
return retVal;
|
|
3801
|
-
};
|
|
3802
|
-
const de_NetworkSettingsSummary = (output, context) => {
|
|
3803
|
-
return {
|
|
3804
|
-
networkSettingsArn: (0, smithy_client_1.expectString)(output.networkSettingsArn),
|
|
3805
|
-
vpcId: (0, smithy_client_1.expectString)(output.vpcId),
|
|
3806
|
-
};
|
|
3807
|
-
};
|
|
3808
3564
|
const de_Portal = (output, context) => {
|
|
3809
|
-
return {
|
|
3810
|
-
authenticationType:
|
|
3811
|
-
browserSettingsArn:
|
|
3812
|
-
browserType:
|
|
3813
|
-
creationDate:
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
userSettingsArn: (0, smithy_client_1.expectString)(output.userSettingsArn),
|
|
3826
|
-
};
|
|
3565
|
+
return (0, smithy_client_1.take)(output, {
|
|
3566
|
+
authenticationType: smithy_client_1.expectString,
|
|
3567
|
+
browserSettingsArn: smithy_client_1.expectString,
|
|
3568
|
+
browserType: smithy_client_1.expectString,
|
|
3569
|
+
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3570
|
+
displayName: smithy_client_1.expectString,
|
|
3571
|
+
networkSettingsArn: smithy_client_1.expectString,
|
|
3572
|
+
portalArn: smithy_client_1.expectString,
|
|
3573
|
+
portalEndpoint: smithy_client_1.expectString,
|
|
3574
|
+
portalStatus: smithy_client_1.expectString,
|
|
3575
|
+
rendererType: smithy_client_1.expectString,
|
|
3576
|
+
statusReason: smithy_client_1.expectString,
|
|
3577
|
+
trustStoreArn: smithy_client_1.expectString,
|
|
3578
|
+
userAccessLoggingSettingsArn: smithy_client_1.expectString,
|
|
3579
|
+
userSettingsArn: smithy_client_1.expectString,
|
|
3580
|
+
});
|
|
3827
3581
|
};
|
|
3828
3582
|
const de_PortalList = (output, context) => {
|
|
3829
3583
|
const retVal = (output || [])
|
|
3830
3584
|
.filter((e) => e != null)
|
|
3831
3585
|
.map((entry) => {
|
|
3832
|
-
if (entry === null) {
|
|
3833
|
-
return null;
|
|
3834
|
-
}
|
|
3835
3586
|
return de_PortalSummary(entry, context);
|
|
3836
3587
|
});
|
|
3837
3588
|
return retVal;
|
|
3838
3589
|
};
|
|
3839
3590
|
const de_PortalSummary = (output, context) => {
|
|
3840
|
-
return {
|
|
3841
|
-
authenticationType:
|
|
3842
|
-
browserSettingsArn:
|
|
3843
|
-
browserType:
|
|
3844
|
-
creationDate:
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
userAccessLoggingSettingsArn: (0, smithy_client_1.expectString)(output.userAccessLoggingSettingsArn),
|
|
3855
|
-
userSettingsArn: (0, smithy_client_1.expectString)(output.userSettingsArn),
|
|
3856
|
-
};
|
|
3857
|
-
};
|
|
3858
|
-
const de_SecurityGroupIdList = (output, context) => {
|
|
3859
|
-
const retVal = (output || [])
|
|
3860
|
-
.filter((e) => e != null)
|
|
3861
|
-
.map((entry) => {
|
|
3862
|
-
if (entry === null) {
|
|
3863
|
-
return null;
|
|
3864
|
-
}
|
|
3865
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3866
|
-
});
|
|
3867
|
-
return retVal;
|
|
3868
|
-
};
|
|
3869
|
-
const de_SubnetIdList = (output, context) => {
|
|
3870
|
-
const retVal = (output || [])
|
|
3871
|
-
.filter((e) => e != null)
|
|
3872
|
-
.map((entry) => {
|
|
3873
|
-
if (entry === null) {
|
|
3874
|
-
return null;
|
|
3875
|
-
}
|
|
3876
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3877
|
-
});
|
|
3878
|
-
return retVal;
|
|
3879
|
-
};
|
|
3880
|
-
const de_Tag = (output, context) => {
|
|
3881
|
-
return {
|
|
3882
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
3883
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
3884
|
-
};
|
|
3885
|
-
};
|
|
3886
|
-
const de_TagList = (output, context) => {
|
|
3887
|
-
const retVal = (output || [])
|
|
3888
|
-
.filter((e) => e != null)
|
|
3889
|
-
.map((entry) => {
|
|
3890
|
-
if (entry === null) {
|
|
3891
|
-
return null;
|
|
3892
|
-
}
|
|
3893
|
-
return de_Tag(entry, context);
|
|
3894
|
-
});
|
|
3895
|
-
return retVal;
|
|
3896
|
-
};
|
|
3897
|
-
const de_TrustStore = (output, context) => {
|
|
3898
|
-
return {
|
|
3899
|
-
associatedPortalArns: output.associatedPortalArns != null ? de_ArnList(output.associatedPortalArns, context) : undefined,
|
|
3900
|
-
trustStoreArn: (0, smithy_client_1.expectString)(output.trustStoreArn),
|
|
3901
|
-
};
|
|
3902
|
-
};
|
|
3903
|
-
const de_TrustStoreSummary = (output, context) => {
|
|
3904
|
-
return {
|
|
3905
|
-
trustStoreArn: (0, smithy_client_1.expectString)(output.trustStoreArn),
|
|
3906
|
-
};
|
|
3907
|
-
};
|
|
3908
|
-
const de_TrustStoreSummaryList = (output, context) => {
|
|
3909
|
-
const retVal = (output || [])
|
|
3910
|
-
.filter((e) => e != null)
|
|
3911
|
-
.map((entry) => {
|
|
3912
|
-
if (entry === null) {
|
|
3913
|
-
return null;
|
|
3914
|
-
}
|
|
3915
|
-
return de_TrustStoreSummary(entry, context);
|
|
3916
|
-
});
|
|
3917
|
-
return retVal;
|
|
3918
|
-
};
|
|
3919
|
-
const de_UserAccessLoggingSettings = (output, context) => {
|
|
3920
|
-
return {
|
|
3921
|
-
associatedPortalArns: output.associatedPortalArns != null ? de_ArnList(output.associatedPortalArns, context) : undefined,
|
|
3922
|
-
kinesisStreamArn: (0, smithy_client_1.expectString)(output.kinesisStreamArn),
|
|
3923
|
-
userAccessLoggingSettingsArn: (0, smithy_client_1.expectString)(output.userAccessLoggingSettingsArn),
|
|
3924
|
-
};
|
|
3925
|
-
};
|
|
3926
|
-
const de_UserAccessLoggingSettingsList = (output, context) => {
|
|
3927
|
-
const retVal = (output || [])
|
|
3928
|
-
.filter((e) => e != null)
|
|
3929
|
-
.map((entry) => {
|
|
3930
|
-
if (entry === null) {
|
|
3931
|
-
return null;
|
|
3932
|
-
}
|
|
3933
|
-
return de_UserAccessLoggingSettingsSummary(entry, context);
|
|
3934
|
-
});
|
|
3935
|
-
return retVal;
|
|
3936
|
-
};
|
|
3937
|
-
const de_UserAccessLoggingSettingsSummary = (output, context) => {
|
|
3938
|
-
return {
|
|
3939
|
-
kinesisStreamArn: (0, smithy_client_1.expectString)(output.kinesisStreamArn),
|
|
3940
|
-
userAccessLoggingSettingsArn: (0, smithy_client_1.expectString)(output.userAccessLoggingSettingsArn),
|
|
3941
|
-
};
|
|
3942
|
-
};
|
|
3943
|
-
const de_UserSettings = (output, context) => {
|
|
3944
|
-
return {
|
|
3945
|
-
associatedPortalArns: output.associatedPortalArns != null ? de_ArnList(output.associatedPortalArns, context) : undefined,
|
|
3946
|
-
copyAllowed: (0, smithy_client_1.expectString)(output.copyAllowed),
|
|
3947
|
-
disconnectTimeoutInMinutes: (0, smithy_client_1.expectInt32)(output.disconnectTimeoutInMinutes),
|
|
3948
|
-
downloadAllowed: (0, smithy_client_1.expectString)(output.downloadAllowed),
|
|
3949
|
-
idleDisconnectTimeoutInMinutes: (0, smithy_client_1.expectInt32)(output.idleDisconnectTimeoutInMinutes),
|
|
3950
|
-
pasteAllowed: (0, smithy_client_1.expectString)(output.pasteAllowed),
|
|
3951
|
-
printAllowed: (0, smithy_client_1.expectString)(output.printAllowed),
|
|
3952
|
-
uploadAllowed: (0, smithy_client_1.expectString)(output.uploadAllowed),
|
|
3953
|
-
userSettingsArn: (0, smithy_client_1.expectString)(output.userSettingsArn),
|
|
3954
|
-
};
|
|
3955
|
-
};
|
|
3956
|
-
const de_UserSettingsList = (output, context) => {
|
|
3957
|
-
const retVal = (output || [])
|
|
3958
|
-
.filter((e) => e != null)
|
|
3959
|
-
.map((entry) => {
|
|
3960
|
-
if (entry === null) {
|
|
3961
|
-
return null;
|
|
3962
|
-
}
|
|
3963
|
-
return de_UserSettingsSummary(entry, context);
|
|
3591
|
+
return (0, smithy_client_1.take)(output, {
|
|
3592
|
+
authenticationType: smithy_client_1.expectString,
|
|
3593
|
+
browserSettingsArn: smithy_client_1.expectString,
|
|
3594
|
+
browserType: smithy_client_1.expectString,
|
|
3595
|
+
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3596
|
+
displayName: smithy_client_1.expectString,
|
|
3597
|
+
networkSettingsArn: smithy_client_1.expectString,
|
|
3598
|
+
portalArn: smithy_client_1.expectString,
|
|
3599
|
+
portalEndpoint: smithy_client_1.expectString,
|
|
3600
|
+
portalStatus: smithy_client_1.expectString,
|
|
3601
|
+
rendererType: smithy_client_1.expectString,
|
|
3602
|
+
trustStoreArn: smithy_client_1.expectString,
|
|
3603
|
+
userAccessLoggingSettingsArn: smithy_client_1.expectString,
|
|
3604
|
+
userSettingsArn: smithy_client_1.expectString,
|
|
3964
3605
|
});
|
|
3965
|
-
return retVal;
|
|
3966
|
-
};
|
|
3967
|
-
const de_UserSettingsSummary = (output, context) => {
|
|
3968
|
-
return {
|
|
3969
|
-
copyAllowed: (0, smithy_client_1.expectString)(output.copyAllowed),
|
|
3970
|
-
disconnectTimeoutInMinutes: (0, smithy_client_1.expectInt32)(output.disconnectTimeoutInMinutes),
|
|
3971
|
-
downloadAllowed: (0, smithy_client_1.expectString)(output.downloadAllowed),
|
|
3972
|
-
idleDisconnectTimeoutInMinutes: (0, smithy_client_1.expectInt32)(output.idleDisconnectTimeoutInMinutes),
|
|
3973
|
-
pasteAllowed: (0, smithy_client_1.expectString)(output.pasteAllowed),
|
|
3974
|
-
printAllowed: (0, smithy_client_1.expectString)(output.printAllowed),
|
|
3975
|
-
uploadAllowed: (0, smithy_client_1.expectString)(output.uploadAllowed),
|
|
3976
|
-
userSettingsArn: (0, smithy_client_1.expectString)(output.userSettingsArn),
|
|
3977
|
-
};
|
|
3978
|
-
};
|
|
3979
|
-
const de_ValidationExceptionField = (output, context) => {
|
|
3980
|
-
return {
|
|
3981
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3982
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
3983
|
-
};
|
|
3984
|
-
};
|
|
3985
|
-
const de_ValidationExceptionFieldList = (output, context) => {
|
|
3986
|
-
const retVal = (output || [])
|
|
3987
|
-
.filter((e) => e != null)
|
|
3988
|
-
.map((entry) => {
|
|
3989
|
-
if (entry === null) {
|
|
3990
|
-
return null;
|
|
3991
|
-
}
|
|
3992
|
-
return de_ValidationExceptionField(entry, context);
|
|
3993
|
-
});
|
|
3994
|
-
return retVal;
|
|
3995
3606
|
};
|
|
3996
3607
|
const deserializeMetadata = (output) => ({
|
|
3997
3608
|
httpStatusCode: output.statusCode,
|