@aws-sdk/client-workspaces-web 3.200.0 → 3.201.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.201.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.200.0...v3.201.0) (2022-11-01)
7
+
8
+
9
+ ### Features
10
+
11
+ * end support for Node.js 12.x ([#4123](https://github.com/aws/aws-sdk-js-v3/issues/4123)) ([83f913e](https://github.com/aws/aws-sdk-js-v3/commit/83f913ec2ac3878d8726c6964f585550dc5caf3e))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-workspaces-web
@@ -2,11 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
- var _a, _b;
6
5
  return {
7
6
  ...options,
8
- useDualstackEndpoint: (_a = options.useDualstackEndpoint) !== null && _a !== void 0 ? _a : false,
9
- useFipsEndpoint: (_b = options.useFipsEndpoint) !== null && _b !== void 0 ? _b : false,
7
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
8
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
10
9
  defaultSigningName: "workspaces-web",
11
10
  };
12
11
  };
@@ -11,7 +11,7 @@ const WorkSpacesWebServiceException_1 = require("../models/WorkSpacesWebServiceE
11
11
  const serializeAws_restJson1AssociateBrowserSettingsCommand = async (input, context) => {
12
12
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
13
13
  const headers = {};
14
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/browserSettings";
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
16
  const query = map({
17
17
  browserSettingsArn: [, input.browserSettingsArn],
@@ -32,7 +32,7 @@ exports.serializeAws_restJson1AssociateBrowserSettingsCommand = serializeAws_res
32
32
  const serializeAws_restJson1AssociateNetworkSettingsCommand = async (input, context) => {
33
33
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
34
34
  const headers = {};
35
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/networkSettings";
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
37
  const query = map({
38
38
  networkSettingsArn: [, input.networkSettingsArn],
@@ -53,7 +53,7 @@ exports.serializeAws_restJson1AssociateNetworkSettingsCommand = serializeAws_res
53
53
  const serializeAws_restJson1AssociateTrustStoreCommand = async (input, context) => {
54
54
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
55
55
  const headers = {};
56
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/trustStores";
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
58
  const query = map({
59
59
  trustStoreArn: [, input.trustStoreArn],
@@ -74,7 +74,7 @@ exports.serializeAws_restJson1AssociateTrustStoreCommand = serializeAws_restJson
74
74
  const serializeAws_restJson1AssociateUserAccessLoggingSettingsCommand = async (input, context) => {
75
75
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
76
76
  const headers = {};
77
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
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
80
  const query = map({
@@ -96,7 +96,7 @@ exports.serializeAws_restJson1AssociateUserAccessLoggingSettingsCommand = serial
96
96
  const serializeAws_restJson1AssociateUserSettingsCommand = async (input, context) => {
97
97
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
98
98
  const headers = {};
99
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/userSettings";
99
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/userSettings";
100
100
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
101
101
  const query = map({
102
102
  userSettingsArn: [, input.userSettingsArn],
@@ -115,19 +115,18 @@ const serializeAws_restJson1AssociateUserSettingsCommand = async (input, context
115
115
  };
116
116
  exports.serializeAws_restJson1AssociateUserSettingsCommand = serializeAws_restJson1AssociateUserSettingsCommand;
117
117
  const serializeAws_restJson1CreateBrowserSettingsCommand = async (input, context) => {
118
- var _a;
119
118
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
120
119
  const headers = {
121
120
  "content-type": "application/json",
122
121
  };
123
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings";
122
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings";
124
123
  let body;
125
124
  body = JSON.stringify({
126
125
  ...(input.additionalEncryptionContext != null && {
127
126
  additionalEncryptionContext: serializeAws_restJson1EncryptionContextMap(input.additionalEncryptionContext, context),
128
127
  }),
129
128
  ...(input.browserPolicy != null && { browserPolicy: input.browserPolicy }),
130
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
129
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
131
130
  ...(input.customerManagedKey != null && { customerManagedKey: input.customerManagedKey }),
132
131
  ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
133
132
  });
@@ -143,15 +142,14 @@ const serializeAws_restJson1CreateBrowserSettingsCommand = async (input, context
143
142
  };
144
143
  exports.serializeAws_restJson1CreateBrowserSettingsCommand = serializeAws_restJson1CreateBrowserSettingsCommand;
145
144
  const serializeAws_restJson1CreateIdentityProviderCommand = async (input, context) => {
146
- var _a;
147
145
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
148
146
  const headers = {
149
147
  "content-type": "application/json",
150
148
  };
151
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/identityProviders";
149
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/identityProviders";
152
150
  let body;
153
151
  body = JSON.stringify({
154
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
152
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
155
153
  ...(input.identityProviderDetails != null && {
156
154
  identityProviderDetails: serializeAws_restJson1IdentityProviderDetails(input.identityProviderDetails, context),
157
155
  }),
@@ -171,15 +169,14 @@ const serializeAws_restJson1CreateIdentityProviderCommand = async (input, contex
171
169
  };
172
170
  exports.serializeAws_restJson1CreateIdentityProviderCommand = serializeAws_restJson1CreateIdentityProviderCommand;
173
171
  const serializeAws_restJson1CreateNetworkSettingsCommand = async (input, context) => {
174
- var _a;
175
172
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
176
173
  const headers = {
177
174
  "content-type": "application/json",
178
175
  };
179
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings";
176
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings";
180
177
  let body;
181
178
  body = JSON.stringify({
182
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
179
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
183
180
  ...(input.securityGroupIds != null && {
184
181
  securityGroupIds: serializeAws_restJson1SecurityGroupIdList(input.securityGroupIds, context),
185
182
  }),
@@ -199,18 +196,17 @@ const serializeAws_restJson1CreateNetworkSettingsCommand = async (input, context
199
196
  };
200
197
  exports.serializeAws_restJson1CreateNetworkSettingsCommand = serializeAws_restJson1CreateNetworkSettingsCommand;
201
198
  const serializeAws_restJson1CreatePortalCommand = async (input, context) => {
202
- var _a;
203
199
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
204
200
  const headers = {
205
201
  "content-type": "application/json",
206
202
  };
207
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals";
203
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals";
208
204
  let body;
209
205
  body = JSON.stringify({
210
206
  ...(input.additionalEncryptionContext != null && {
211
207
  additionalEncryptionContext: serializeAws_restJson1EncryptionContextMap(input.additionalEncryptionContext, context),
212
208
  }),
213
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
209
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
214
210
  ...(input.customerManagedKey != null && { customerManagedKey: input.customerManagedKey }),
215
211
  ...(input.displayName != null && { displayName: input.displayName }),
216
212
  ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
@@ -227,18 +223,17 @@ const serializeAws_restJson1CreatePortalCommand = async (input, context) => {
227
223
  };
228
224
  exports.serializeAws_restJson1CreatePortalCommand = serializeAws_restJson1CreatePortalCommand;
229
225
  const serializeAws_restJson1CreateTrustStoreCommand = async (input, context) => {
230
- var _a;
231
226
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
232
227
  const headers = {
233
228
  "content-type": "application/json",
234
229
  };
235
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores";
230
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores";
236
231
  let body;
237
232
  body = JSON.stringify({
238
233
  ...(input.certificateList != null && {
239
234
  certificateList: serializeAws_restJson1CertificateList(input.certificateList, context),
240
235
  }),
241
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
236
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
242
237
  ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
243
238
  });
244
239
  return new protocol_http_1.HttpRequest({
@@ -253,15 +248,14 @@ const serializeAws_restJson1CreateTrustStoreCommand = async (input, context) =>
253
248
  };
254
249
  exports.serializeAws_restJson1CreateTrustStoreCommand = serializeAws_restJson1CreateTrustStoreCommand;
255
250
  const serializeAws_restJson1CreateUserAccessLoggingSettingsCommand = async (input, context) => {
256
- var _a;
257
251
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
258
252
  const headers = {
259
253
  "content-type": "application/json",
260
254
  };
261
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/userAccessLoggingSettings";
255
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userAccessLoggingSettings";
262
256
  let body;
263
257
  body = JSON.stringify({
264
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
258
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
265
259
  ...(input.kinesisStreamArn != null && { kinesisStreamArn: input.kinesisStreamArn }),
266
260
  ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
267
261
  });
@@ -277,15 +271,14 @@ const serializeAws_restJson1CreateUserAccessLoggingSettingsCommand = async (inpu
277
271
  };
278
272
  exports.serializeAws_restJson1CreateUserAccessLoggingSettingsCommand = serializeAws_restJson1CreateUserAccessLoggingSettingsCommand;
279
273
  const serializeAws_restJson1CreateUserSettingsCommand = async (input, context) => {
280
- var _a;
281
274
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
282
275
  const headers = {
283
276
  "content-type": "application/json",
284
277
  };
285
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings";
278
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings";
286
279
  let body;
287
280
  body = JSON.stringify({
288
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
281
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
289
282
  ...(input.copyAllowed != null && { copyAllowed: input.copyAllowed }),
290
283
  ...(input.disconnectTimeoutInMinutes != null && { disconnectTimeoutInMinutes: input.disconnectTimeoutInMinutes }),
291
284
  ...(input.downloadAllowed != null && { downloadAllowed: input.downloadAllowed }),
@@ -311,7 +304,7 @@ exports.serializeAws_restJson1CreateUserSettingsCommand = serializeAws_restJson1
311
304
  const serializeAws_restJson1DeleteBrowserSettingsCommand = async (input, context) => {
312
305
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
313
306
  const headers = {};
314
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings/{browserSettingsArn+}";
307
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings/{browserSettingsArn+}";
315
308
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "browserSettingsArn", () => input.browserSettingsArn, "{browserSettingsArn+}", true);
316
309
  let body;
317
310
  return new protocol_http_1.HttpRequest({
@@ -328,7 +321,7 @@ exports.serializeAws_restJson1DeleteBrowserSettingsCommand = serializeAws_restJs
328
321
  const serializeAws_restJson1DeleteIdentityProviderCommand = async (input, context) => {
329
322
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
330
323
  const headers = {};
331
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/identityProviders/{identityProviderArn+}";
324
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/identityProviders/{identityProviderArn+}";
332
325
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identityProviderArn", () => input.identityProviderArn, "{identityProviderArn+}", true);
333
326
  let body;
334
327
  return new protocol_http_1.HttpRequest({
@@ -345,7 +338,7 @@ exports.serializeAws_restJson1DeleteIdentityProviderCommand = serializeAws_restJ
345
338
  const serializeAws_restJson1DeleteNetworkSettingsCommand = async (input, context) => {
346
339
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
347
340
  const headers = {};
348
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings/{networkSettingsArn+}";
341
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings/{networkSettingsArn+}";
349
342
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "networkSettingsArn", () => input.networkSettingsArn, "{networkSettingsArn+}", true);
350
343
  let body;
351
344
  return new protocol_http_1.HttpRequest({
@@ -362,7 +355,7 @@ exports.serializeAws_restJson1DeleteNetworkSettingsCommand = serializeAws_restJs
362
355
  const serializeAws_restJson1DeletePortalCommand = async (input, context) => {
363
356
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
364
357
  const headers = {};
365
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}";
358
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}";
366
359
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
367
360
  let body;
368
361
  return new protocol_http_1.HttpRequest({
@@ -379,7 +372,7 @@ exports.serializeAws_restJson1DeletePortalCommand = serializeAws_restJson1Delete
379
372
  const serializeAws_restJson1DeleteTrustStoreCommand = async (input, context) => {
380
373
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
381
374
  const headers = {};
382
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores/{trustStoreArn+}";
375
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores/{trustStoreArn+}";
383
376
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "trustStoreArn", () => input.trustStoreArn, "{trustStoreArn+}", true);
384
377
  let body;
385
378
  return new protocol_http_1.HttpRequest({
@@ -396,7 +389,7 @@ exports.serializeAws_restJson1DeleteTrustStoreCommand = serializeAws_restJson1De
396
389
  const serializeAws_restJson1DeleteUserAccessLoggingSettingsCommand = async (input, context) => {
397
390
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
398
391
  const headers = {};
399
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
392
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
400
393
  "/userAccessLoggingSettings/{userAccessLoggingSettingsArn+}";
401
394
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userAccessLoggingSettingsArn", () => input.userAccessLoggingSettingsArn, "{userAccessLoggingSettingsArn+}", true);
402
395
  let body;
@@ -414,7 +407,7 @@ exports.serializeAws_restJson1DeleteUserAccessLoggingSettingsCommand = serialize
414
407
  const serializeAws_restJson1DeleteUserSettingsCommand = async (input, context) => {
415
408
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
416
409
  const headers = {};
417
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings/{userSettingsArn+}";
410
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings/{userSettingsArn+}";
418
411
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userSettingsArn", () => input.userSettingsArn, "{userSettingsArn+}", true);
419
412
  let body;
420
413
  return new protocol_http_1.HttpRequest({
@@ -431,7 +424,7 @@ exports.serializeAws_restJson1DeleteUserSettingsCommand = serializeAws_restJson1
431
424
  const serializeAws_restJson1DisassociateBrowserSettingsCommand = async (input, context) => {
432
425
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
433
426
  const headers = {};
434
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/browserSettings";
427
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/browserSettings";
435
428
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
436
429
  let body;
437
430
  return new protocol_http_1.HttpRequest({
@@ -448,7 +441,7 @@ exports.serializeAws_restJson1DisassociateBrowserSettingsCommand = serializeAws_
448
441
  const serializeAws_restJson1DisassociateNetworkSettingsCommand = async (input, context) => {
449
442
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
450
443
  const headers = {};
451
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/networkSettings";
444
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/networkSettings";
452
445
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
453
446
  let body;
454
447
  return new protocol_http_1.HttpRequest({
@@ -465,7 +458,7 @@ exports.serializeAws_restJson1DisassociateNetworkSettingsCommand = serializeAws_
465
458
  const serializeAws_restJson1DisassociateTrustStoreCommand = async (input, context) => {
466
459
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
467
460
  const headers = {};
468
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/trustStores";
461
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/trustStores";
469
462
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
470
463
  let body;
471
464
  return new protocol_http_1.HttpRequest({
@@ -482,7 +475,7 @@ exports.serializeAws_restJson1DisassociateTrustStoreCommand = serializeAws_restJ
482
475
  const serializeAws_restJson1DisassociateUserAccessLoggingSettingsCommand = async (input, context) => {
483
476
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
484
477
  const headers = {};
485
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
478
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
486
479
  "/portals/{portalArn+}/userAccessLoggingSettings";
487
480
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
488
481
  let body;
@@ -500,7 +493,7 @@ exports.serializeAws_restJson1DisassociateUserAccessLoggingSettingsCommand = ser
500
493
  const serializeAws_restJson1DisassociateUserSettingsCommand = async (input, context) => {
501
494
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
502
495
  const headers = {};
503
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/userSettings";
496
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/userSettings";
504
497
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
505
498
  let body;
506
499
  return new protocol_http_1.HttpRequest({
@@ -517,7 +510,7 @@ exports.serializeAws_restJson1DisassociateUserSettingsCommand = serializeAws_res
517
510
  const serializeAws_restJson1GetBrowserSettingsCommand = async (input, context) => {
518
511
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
519
512
  const headers = {};
520
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings/{browserSettingsArn+}";
513
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings/{browserSettingsArn+}";
521
514
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "browserSettingsArn", () => input.browserSettingsArn, "{browserSettingsArn+}", true);
522
515
  let body;
523
516
  return new protocol_http_1.HttpRequest({
@@ -534,7 +527,7 @@ exports.serializeAws_restJson1GetBrowserSettingsCommand = serializeAws_restJson1
534
527
  const serializeAws_restJson1GetIdentityProviderCommand = async (input, context) => {
535
528
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
536
529
  const headers = {};
537
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/identityProviders/{identityProviderArn+}";
530
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/identityProviders/{identityProviderArn+}";
538
531
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identityProviderArn", () => input.identityProviderArn, "{identityProviderArn+}", true);
539
532
  let body;
540
533
  return new protocol_http_1.HttpRequest({
@@ -551,7 +544,7 @@ exports.serializeAws_restJson1GetIdentityProviderCommand = serializeAws_restJson
551
544
  const serializeAws_restJson1GetNetworkSettingsCommand = async (input, context) => {
552
545
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
553
546
  const headers = {};
554
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings/{networkSettingsArn+}";
547
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings/{networkSettingsArn+}";
555
548
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "networkSettingsArn", () => input.networkSettingsArn, "{networkSettingsArn+}", true);
556
549
  let body;
557
550
  return new protocol_http_1.HttpRequest({
@@ -568,7 +561,7 @@ exports.serializeAws_restJson1GetNetworkSettingsCommand = serializeAws_restJson1
568
561
  const serializeAws_restJson1GetPortalCommand = async (input, context) => {
569
562
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
570
563
  const headers = {};
571
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}";
564
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}";
572
565
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
573
566
  let body;
574
567
  return new protocol_http_1.HttpRequest({
@@ -585,7 +578,7 @@ exports.serializeAws_restJson1GetPortalCommand = serializeAws_restJson1GetPortal
585
578
  const serializeAws_restJson1GetPortalServiceProviderMetadataCommand = async (input, context) => {
586
579
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
587
580
  const headers = {};
588
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portalIdp/{portalArn+}";
581
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portalIdp/{portalArn+}";
589
582
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
590
583
  let body;
591
584
  return new protocol_http_1.HttpRequest({
@@ -602,7 +595,7 @@ exports.serializeAws_restJson1GetPortalServiceProviderMetadataCommand = serializ
602
595
  const serializeAws_restJson1GetTrustStoreCommand = async (input, context) => {
603
596
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
604
597
  const headers = {};
605
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores/{trustStoreArn+}";
598
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores/{trustStoreArn+}";
606
599
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "trustStoreArn", () => input.trustStoreArn, "{trustStoreArn+}", true);
607
600
  let body;
608
601
  return new protocol_http_1.HttpRequest({
@@ -619,7 +612,7 @@ exports.serializeAws_restJson1GetTrustStoreCommand = serializeAws_restJson1GetTr
619
612
  const serializeAws_restJson1GetTrustStoreCertificateCommand = async (input, context) => {
620
613
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
621
614
  const headers = {};
622
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores/{trustStoreArn+}/certificate";
615
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores/{trustStoreArn+}/certificate";
623
616
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "trustStoreArn", () => input.trustStoreArn, "{trustStoreArn+}", true);
624
617
  const query = map({
625
618
  thumbprint: [, input.thumbprint],
@@ -640,7 +633,7 @@ exports.serializeAws_restJson1GetTrustStoreCertificateCommand = serializeAws_res
640
633
  const serializeAws_restJson1GetUserAccessLoggingSettingsCommand = async (input, context) => {
641
634
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
642
635
  const headers = {};
643
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
636
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
644
637
  "/userAccessLoggingSettings/{userAccessLoggingSettingsArn+}";
645
638
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userAccessLoggingSettingsArn", () => input.userAccessLoggingSettingsArn, "{userAccessLoggingSettingsArn+}", true);
646
639
  let body;
@@ -658,7 +651,7 @@ exports.serializeAws_restJson1GetUserAccessLoggingSettingsCommand = serializeAws
658
651
  const serializeAws_restJson1GetUserSettingsCommand = async (input, context) => {
659
652
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
660
653
  const headers = {};
661
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings/{userSettingsArn+}";
654
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings/{userSettingsArn+}";
662
655
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userSettingsArn", () => input.userSettingsArn, "{userSettingsArn+}", true);
663
656
  let body;
664
657
  return new protocol_http_1.HttpRequest({
@@ -675,7 +668,7 @@ exports.serializeAws_restJson1GetUserSettingsCommand = serializeAws_restJson1Get
675
668
  const serializeAws_restJson1ListBrowserSettingsCommand = async (input, context) => {
676
669
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
677
670
  const headers = {};
678
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings";
671
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings";
679
672
  const query = map({
680
673
  nextToken: [, input.nextToken],
681
674
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
@@ -696,7 +689,7 @@ exports.serializeAws_restJson1ListBrowserSettingsCommand = serializeAws_restJson
696
689
  const serializeAws_restJson1ListIdentityProvidersCommand = async (input, context) => {
697
690
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
698
691
  const headers = {};
699
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/identityProviders";
692
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}/identityProviders";
700
693
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
701
694
  const query = map({
702
695
  nextToken: [, input.nextToken],
@@ -718,7 +711,7 @@ exports.serializeAws_restJson1ListIdentityProvidersCommand = serializeAws_restJs
718
711
  const serializeAws_restJson1ListNetworkSettingsCommand = async (input, context) => {
719
712
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
720
713
  const headers = {};
721
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings";
714
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings";
722
715
  const query = map({
723
716
  nextToken: [, input.nextToken],
724
717
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
@@ -739,7 +732,7 @@ exports.serializeAws_restJson1ListNetworkSettingsCommand = serializeAws_restJson
739
732
  const serializeAws_restJson1ListPortalsCommand = async (input, context) => {
740
733
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
741
734
  const headers = {};
742
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals";
735
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals";
743
736
  const query = map({
744
737
  nextToken: [, input.nextToken],
745
738
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
@@ -760,7 +753,7 @@ exports.serializeAws_restJson1ListPortalsCommand = serializeAws_restJson1ListPor
760
753
  const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
761
754
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
762
755
  const headers = {};
763
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn+}";
756
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn+}";
764
757
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn+}", true);
765
758
  let body;
766
759
  return new protocol_http_1.HttpRequest({
@@ -777,7 +770,7 @@ exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson
777
770
  const serializeAws_restJson1ListTrustStoreCertificatesCommand = async (input, context) => {
778
771
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
779
772
  const headers = {};
780
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
773
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
781
774
  "/trustStores/{trustStoreArn+}/certificates";
782
775
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "trustStoreArn", () => input.trustStoreArn, "{trustStoreArn+}", true);
783
776
  const query = map({
@@ -800,7 +793,7 @@ exports.serializeAws_restJson1ListTrustStoreCertificatesCommand = serializeAws_r
800
793
  const serializeAws_restJson1ListTrustStoresCommand = async (input, context) => {
801
794
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
802
795
  const headers = {};
803
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores";
796
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores";
804
797
  const query = map({
805
798
  nextToken: [, input.nextToken],
806
799
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
@@ -821,7 +814,7 @@ exports.serializeAws_restJson1ListTrustStoresCommand = serializeAws_restJson1Lis
821
814
  const serializeAws_restJson1ListUserAccessLoggingSettingsCommand = async (input, context) => {
822
815
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
823
816
  const headers = {};
824
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/userAccessLoggingSettings";
817
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userAccessLoggingSettings";
825
818
  const query = map({
826
819
  nextToken: [, input.nextToken],
827
820
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
@@ -842,7 +835,7 @@ exports.serializeAws_restJson1ListUserAccessLoggingSettingsCommand = serializeAw
842
835
  const serializeAws_restJson1ListUserSettingsCommand = async (input, context) => {
843
836
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
844
837
  const headers = {};
845
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings";
838
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings";
846
839
  const query = map({
847
840
  nextToken: [, input.nextToken],
848
841
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
@@ -861,16 +854,15 @@ const serializeAws_restJson1ListUserSettingsCommand = async (input, context) =>
861
854
  };
862
855
  exports.serializeAws_restJson1ListUserSettingsCommand = serializeAws_restJson1ListUserSettingsCommand;
863
856
  const serializeAws_restJson1TagResourceCommand = async (input, context) => {
864
- var _a;
865
857
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
866
858
  const headers = {
867
859
  "content-type": "application/json",
868
860
  };
869
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn+}";
861
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn+}";
870
862
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn+}", true);
871
863
  let body;
872
864
  body = JSON.stringify({
873
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
865
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
874
866
  ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
875
867
  });
876
868
  return new protocol_http_1.HttpRequest({
@@ -887,7 +879,7 @@ exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagReso
887
879
  const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
888
880
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
889
881
  const headers = {};
890
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn+}";
882
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn+}";
891
883
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn+}", true);
892
884
  const query = map({
893
885
  tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
@@ -906,17 +898,16 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
906
898
  };
907
899
  exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
908
900
  const serializeAws_restJson1UpdateBrowserSettingsCommand = async (input, context) => {
909
- var _a;
910
901
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
911
902
  const headers = {
912
903
  "content-type": "application/json",
913
904
  };
914
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings/{browserSettingsArn+}";
905
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/browserSettings/{browserSettingsArn+}";
915
906
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "browserSettingsArn", () => input.browserSettingsArn, "{browserSettingsArn+}", true);
916
907
  let body;
917
908
  body = JSON.stringify({
918
909
  ...(input.browserPolicy != null && { browserPolicy: input.browserPolicy }),
919
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
910
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
920
911
  });
921
912
  return new protocol_http_1.HttpRequest({
922
913
  protocol,
@@ -930,16 +921,15 @@ const serializeAws_restJson1UpdateBrowserSettingsCommand = async (input, context
930
921
  };
931
922
  exports.serializeAws_restJson1UpdateBrowserSettingsCommand = serializeAws_restJson1UpdateBrowserSettingsCommand;
932
923
  const serializeAws_restJson1UpdateIdentityProviderCommand = async (input, context) => {
933
- var _a;
934
924
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
935
925
  const headers = {
936
926
  "content-type": "application/json",
937
927
  };
938
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/identityProviders/{identityProviderArn+}";
928
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/identityProviders/{identityProviderArn+}";
939
929
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "identityProviderArn", () => input.identityProviderArn, "{identityProviderArn+}", true);
940
930
  let body;
941
931
  body = JSON.stringify({
942
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
932
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
943
933
  ...(input.identityProviderDetails != null && {
944
934
  identityProviderDetails: serializeAws_restJson1IdentityProviderDetails(input.identityProviderDetails, context),
945
935
  }),
@@ -958,16 +948,15 @@ const serializeAws_restJson1UpdateIdentityProviderCommand = async (input, contex
958
948
  };
959
949
  exports.serializeAws_restJson1UpdateIdentityProviderCommand = serializeAws_restJson1UpdateIdentityProviderCommand;
960
950
  const serializeAws_restJson1UpdateNetworkSettingsCommand = async (input, context) => {
961
- var _a;
962
951
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
963
952
  const headers = {
964
953
  "content-type": "application/json",
965
954
  };
966
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings/{networkSettingsArn+}";
955
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networkSettings/{networkSettingsArn+}";
967
956
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "networkSettingsArn", () => input.networkSettingsArn, "{networkSettingsArn+}", true);
968
957
  let body;
969
958
  body = JSON.stringify({
970
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
959
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
971
960
  ...(input.securityGroupIds != null && {
972
961
  securityGroupIds: serializeAws_restJson1SecurityGroupIdList(input.securityGroupIds, context),
973
962
  }),
@@ -990,7 +979,7 @@ const serializeAws_restJson1UpdatePortalCommand = async (input, context) => {
990
979
  const headers = {
991
980
  "content-type": "application/json",
992
981
  };
993
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}";
982
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalArn+}";
994
983
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalArn", () => input.portalArn, "{portalArn+}", true);
995
984
  let body;
996
985
  body = JSON.stringify({
@@ -1008,12 +997,11 @@ const serializeAws_restJson1UpdatePortalCommand = async (input, context) => {
1008
997
  };
1009
998
  exports.serializeAws_restJson1UpdatePortalCommand = serializeAws_restJson1UpdatePortalCommand;
1010
999
  const serializeAws_restJson1UpdateTrustStoreCommand = async (input, context) => {
1011
- var _a;
1012
1000
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1013
1001
  const headers = {
1014
1002
  "content-type": "application/json",
1015
1003
  };
1016
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores/{trustStoreArn+}";
1004
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustStores/{trustStoreArn+}";
1017
1005
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "trustStoreArn", () => input.trustStoreArn, "{trustStoreArn+}", true);
1018
1006
  let body;
1019
1007
  body = JSON.stringify({
@@ -1023,7 +1011,7 @@ const serializeAws_restJson1UpdateTrustStoreCommand = async (input, context) =>
1023
1011
  ...(input.certificatesToDelete != null && {
1024
1012
  certificatesToDelete: serializeAws_restJson1CertificateThumbprintList(input.certificatesToDelete, context),
1025
1013
  }),
1026
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1014
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
1027
1015
  });
1028
1016
  return new protocol_http_1.HttpRequest({
1029
1017
  protocol,
@@ -1037,17 +1025,16 @@ const serializeAws_restJson1UpdateTrustStoreCommand = async (input, context) =>
1037
1025
  };
1038
1026
  exports.serializeAws_restJson1UpdateTrustStoreCommand = serializeAws_restJson1UpdateTrustStoreCommand;
1039
1027
  const serializeAws_restJson1UpdateUserAccessLoggingSettingsCommand = async (input, context) => {
1040
- var _a;
1041
1028
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1042
1029
  const headers = {
1043
1030
  "content-type": "application/json",
1044
1031
  };
1045
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1032
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1046
1033
  "/userAccessLoggingSettings/{userAccessLoggingSettingsArn+}";
1047
1034
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userAccessLoggingSettingsArn", () => input.userAccessLoggingSettingsArn, "{userAccessLoggingSettingsArn+}", true);
1048
1035
  let body;
1049
1036
  body = JSON.stringify({
1050
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1037
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
1051
1038
  ...(input.kinesisStreamArn != null && { kinesisStreamArn: input.kinesisStreamArn }),
1052
1039
  });
1053
1040
  return new protocol_http_1.HttpRequest({
@@ -1062,16 +1049,15 @@ const serializeAws_restJson1UpdateUserAccessLoggingSettingsCommand = async (inpu
1062
1049
  };
1063
1050
  exports.serializeAws_restJson1UpdateUserAccessLoggingSettingsCommand = serializeAws_restJson1UpdateUserAccessLoggingSettingsCommand;
1064
1051
  const serializeAws_restJson1UpdateUserSettingsCommand = async (input, context) => {
1065
- var _a;
1066
1052
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1067
1053
  const headers = {
1068
1054
  "content-type": "application/json",
1069
1055
  };
1070
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings/{userSettingsArn+}";
1056
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/userSettings/{userSettingsArn+}";
1071
1057
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userSettingsArn", () => input.userSettingsArn, "{userSettingsArn+}", true);
1072
1058
  let body;
1073
1059
  body = JSON.stringify({
1074
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1060
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
1075
1061
  ...(input.copyAllowed != null && { copyAllowed: input.copyAllowed }),
1076
1062
  ...(input.disconnectTimeoutInMinutes != null && { disconnectTimeoutInMinutes: input.disconnectTimeoutInMinutes }),
1077
1063
  ...(input.downloadAllowed != null && { downloadAllowed: input.downloadAllowed }),
@@ -4019,15 +4005,12 @@ const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) =
4019
4005
  });
4020
4006
  return retVal;
4021
4007
  };
4022
- const deserializeMetadata = (output) => {
4023
- var _a, _b;
4024
- return ({
4025
- httpStatusCode: output.statusCode,
4026
- requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
4027
- extendedRequestId: output.headers["x-amz-id-2"],
4028
- cfId: output.headers["x-amz-cf-id"],
4029
- });
4030
- };
4008
+ const deserializeMetadata = (output) => ({
4009
+ httpStatusCode: output.statusCode,
4010
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
4011
+ extendedRequestId: output.headers["x-amz-id-2"],
4012
+ cfId: output.headers["x-amz-cf-id"],
4013
+ });
4031
4014
  const collectBody = (streamBody = new Uint8Array(), context) => {
4032
4015
  if (streamBody instanceof Uint8Array) {
4033
4016
  return Promise.resolve(streamBody);
@@ -4047,9 +4030,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
4047
4030
  return {};
4048
4031
  });
4049
4032
  const parseErrorBody = async (errorBody, context) => {
4050
- var _a;
4051
4033
  const value = await parseBody(errorBody, context);
4052
- value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
4034
+ value.message = value.message ?? value.Message;
4053
4035
  return value;
4054
4036
  };
4055
4037
  const loadRestJsonErrorCode = (output, data) => {
@@ -16,7 +16,6 @@ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
16
  const smithy_client_1 = require("@aws-sdk/smithy-client");
17
17
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
18
18
  const getRuntimeConfig = (config) => {
19
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
19
  const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
21
20
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
21
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -25,21 +24,22 @@ const getRuntimeConfig = (config) => {
25
24
  ...config,
26
25
  runtime: "browser",
27
26
  defaultsMode,
28
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
29
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
30
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
31
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
32
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
- sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
38
- streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
39
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
40
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
41
- utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
42
- utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
27
+ base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
28
+ base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
29
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
30
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
31
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
32
+ (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
+ maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
+ region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
+ requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
+ sha256: config?.sha256 ?? sha256_browser_1.Sha256,
38
+ streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
39
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
40
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
41
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
42
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
43
43
  };
44
44
  };
45
45
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -19,7 +19,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
20
  const smithy_client_2 = require("@aws-sdk/smithy-client");
21
21
  const getRuntimeConfig = (config) => {
22
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
23
22
  (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
24
23
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
25
24
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
@@ -29,24 +28,26 @@ const getRuntimeConfig = (config) => {
29
28
  ...config,
30
29
  runtime: "node",
31
30
  defaultsMode,
32
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
33
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
34
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
35
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
36
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
38
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
39
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
40
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
41
- ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
42
- default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
43
- }),
44
- sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
45
- streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
46
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
47
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
48
- utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
49
- utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
31
+ base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
32
+ base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
33
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
34
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
35
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
36
+ (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
38
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
39
+ requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
40
+ retryMode: config?.retryMode ??
41
+ (0, node_config_provider_1.loadConfig)({
42
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
43
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
44
+ }),
45
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
46
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
47
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
48
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
49
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
50
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
50
51
  };
51
52
  };
52
53
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -4,13 +4,12 @@ exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
6
  const getRuntimeConfig = (config) => {
7
- var _a;
8
7
  const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
9
8
  return {
10
9
  ...browserDefaults,
11
10
  ...config,
12
11
  runtime: "react-native",
13
- sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : sha256_js_1.Sha256,
12
+ sha256: config?.sha256 ?? sha256_js_1.Sha256,
14
13
  };
15
14
  };
16
15
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -3,15 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
5
  const endpointResolver_1 = require("./endpoint/endpointResolver");
6
- const getRuntimeConfig = (config) => {
7
- var _a, _b, _c, _d, _e;
8
- return ({
9
- apiVersion: "2020-07-08",
10
- disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
11
- endpointProvider: (_b = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _b !== void 0 ? _b : endpointResolver_1.defaultEndpointResolver,
12
- logger: (_c = config === null || config === void 0 ? void 0 : config.logger) !== null && _c !== void 0 ? _c : {},
13
- serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "WorkSpaces Web",
14
- urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
15
- });
16
- };
6
+ const getRuntimeConfig = (config) => ({
7
+ apiVersion: "2020-07-08",
8
+ disableHostPrefix: config?.disableHostPrefix ?? false,
9
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
10
+ logger: config?.logger ?? {},
11
+ serviceId: config?.serviceId ?? "WorkSpaces Web",
12
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
13
+ });
17
14
  exports.getRuntimeConfig = getRuntimeConfig;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-workspaces-web",
3
3
  "description": "AWS SDK for JavaScript Workspaces Web Client for Node.js, Browser and React Native",
4
- "version": "3.200.0",
4
+ "version": "3.201.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,45 +19,45 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.200.0",
23
- "@aws-sdk/config-resolver": "3.200.0",
24
- "@aws-sdk/credential-provider-node": "3.200.0",
25
- "@aws-sdk/fetch-http-handler": "3.200.0",
26
- "@aws-sdk/hash-node": "3.200.0",
27
- "@aws-sdk/invalid-dependency": "3.200.0",
28
- "@aws-sdk/middleware-content-length": "3.200.0",
29
- "@aws-sdk/middleware-endpoint": "3.200.0",
30
- "@aws-sdk/middleware-host-header": "3.200.0",
31
- "@aws-sdk/middleware-logger": "3.200.0",
32
- "@aws-sdk/middleware-recursion-detection": "3.200.0",
33
- "@aws-sdk/middleware-retry": "3.200.0",
34
- "@aws-sdk/middleware-serde": "3.200.0",
35
- "@aws-sdk/middleware-signing": "3.200.0",
36
- "@aws-sdk/middleware-stack": "3.200.0",
37
- "@aws-sdk/middleware-user-agent": "3.200.0",
38
- "@aws-sdk/node-config-provider": "3.200.0",
39
- "@aws-sdk/node-http-handler": "3.200.0",
40
- "@aws-sdk/protocol-http": "3.200.0",
41
- "@aws-sdk/smithy-client": "3.200.0",
42
- "@aws-sdk/types": "3.200.0",
43
- "@aws-sdk/url-parser": "3.200.0",
22
+ "@aws-sdk/client-sts": "3.201.0",
23
+ "@aws-sdk/config-resolver": "3.201.0",
24
+ "@aws-sdk/credential-provider-node": "3.201.0",
25
+ "@aws-sdk/fetch-http-handler": "3.201.0",
26
+ "@aws-sdk/hash-node": "3.201.0",
27
+ "@aws-sdk/invalid-dependency": "3.201.0",
28
+ "@aws-sdk/middleware-content-length": "3.201.0",
29
+ "@aws-sdk/middleware-endpoint": "3.201.0",
30
+ "@aws-sdk/middleware-host-header": "3.201.0",
31
+ "@aws-sdk/middleware-logger": "3.201.0",
32
+ "@aws-sdk/middleware-recursion-detection": "3.201.0",
33
+ "@aws-sdk/middleware-retry": "3.201.0",
34
+ "@aws-sdk/middleware-serde": "3.201.0",
35
+ "@aws-sdk/middleware-signing": "3.201.0",
36
+ "@aws-sdk/middleware-stack": "3.201.0",
37
+ "@aws-sdk/middleware-user-agent": "3.201.0",
38
+ "@aws-sdk/node-config-provider": "3.201.0",
39
+ "@aws-sdk/node-http-handler": "3.201.0",
40
+ "@aws-sdk/protocol-http": "3.201.0",
41
+ "@aws-sdk/smithy-client": "3.201.0",
42
+ "@aws-sdk/types": "3.201.0",
43
+ "@aws-sdk/url-parser": "3.201.0",
44
44
  "@aws-sdk/util-base64-browser": "3.188.0",
45
- "@aws-sdk/util-base64-node": "3.188.0",
45
+ "@aws-sdk/util-base64-node": "3.201.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
- "@aws-sdk/util-body-length-node": "3.188.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.200.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.200.0",
50
- "@aws-sdk/util-endpoints": "3.200.0",
51
- "@aws-sdk/util-user-agent-browser": "3.200.0",
52
- "@aws-sdk/util-user-agent-node": "3.200.0",
47
+ "@aws-sdk/util-body-length-node": "3.201.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.201.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.201.0",
50
+ "@aws-sdk/util-endpoints": "3.201.0",
51
+ "@aws-sdk/util-user-agent-browser": "3.201.0",
52
+ "@aws-sdk/util-user-agent-node": "3.201.0",
53
53
  "@aws-sdk/util-utf8-browser": "3.188.0",
54
- "@aws-sdk/util-utf8-node": "3.199.0",
54
+ "@aws-sdk/util-utf8-node": "3.201.0",
55
55
  "tslib": "^2.3.1",
56
56
  "uuid": "^8.3.2"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@aws-sdk/service-client-documentation-generator": "3.188.0",
60
- "@tsconfig/recommended": "1.0.1",
60
+ "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^12.7.5",
62
62
  "@types/uuid": "^8.3.0",
63
63
  "concurrently": "7.0.0",
@@ -72,7 +72,7 @@
72
72
  }
73
73
  },
74
74
  "engines": {
75
- "node": ">=12.0.0"
75
+ "node": ">=14.0.0"
76
76
  },
77
77
  "typesVersions": {
78
78
  "<4.0": {