@aws-sdk/client-databrew 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-databrew
@@ -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: "databrew",
11
10
  };
12
11
  };
@@ -11,7 +11,7 @@ const serializeAws_restJson1BatchDeleteRecipeVersionCommand = async (input, cont
11
11
  const headers = {
12
12
  "content-type": "application/json",
13
13
  };
14
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/recipes/{Name}/batchDeleteRecipeVersion";
14
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipes/{Name}/batchDeleteRecipeVersion";
15
15
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
16
16
  let body;
17
17
  body = JSON.stringify({
@@ -35,7 +35,7 @@ const serializeAws_restJson1CreateDatasetCommand = async (input, context) => {
35
35
  const headers = {
36
36
  "content-type": "application/json",
37
37
  };
38
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/datasets";
38
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets";
39
39
  let body;
40
40
  body = JSON.stringify({
41
41
  ...(input.Format != null && { Format: input.Format }),
@@ -63,7 +63,7 @@ const serializeAws_restJson1CreateProfileJobCommand = async (input, context) =>
63
63
  const headers = {
64
64
  "content-type": "application/json",
65
65
  };
66
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/profileJobs";
66
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profileJobs";
67
67
  let body;
68
68
  body = JSON.stringify({
69
69
  ...(input.Configuration != null && {
@@ -103,7 +103,7 @@ const serializeAws_restJson1CreateProjectCommand = async (input, context) => {
103
103
  const headers = {
104
104
  "content-type": "application/json",
105
105
  };
106
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/projects";
106
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects";
107
107
  let body;
108
108
  body = JSON.stringify({
109
109
  ...(input.DatasetName != null && { DatasetName: input.DatasetName }),
@@ -129,7 +129,7 @@ const serializeAws_restJson1CreateRecipeCommand = async (input, context) => {
129
129
  const headers = {
130
130
  "content-type": "application/json",
131
131
  };
132
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/recipes";
132
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipes";
133
133
  let body;
134
134
  body = JSON.stringify({
135
135
  ...(input.Description != null && { Description: input.Description }),
@@ -153,7 +153,7 @@ const serializeAws_restJson1CreateRecipeJobCommand = async (input, context) => {
153
153
  const headers = {
154
154
  "content-type": "application/json",
155
155
  };
156
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/recipeJobs";
156
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipeJobs";
157
157
  let body;
158
158
  body = JSON.stringify({
159
159
  ...(input.DataCatalogOutputs != null && {
@@ -194,7 +194,7 @@ const serializeAws_restJson1CreateRulesetCommand = async (input, context) => {
194
194
  const headers = {
195
195
  "content-type": "application/json",
196
196
  };
197
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets";
197
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets";
198
198
  let body;
199
199
  body = JSON.stringify({
200
200
  ...(input.Description != null && { Description: input.Description }),
@@ -219,7 +219,7 @@ const serializeAws_restJson1CreateScheduleCommand = async (input, context) => {
219
219
  const headers = {
220
220
  "content-type": "application/json",
221
221
  };
222
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/schedules";
222
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules";
223
223
  let body;
224
224
  body = JSON.stringify({
225
225
  ...(input.CronExpression != null && { CronExpression: input.CronExpression }),
@@ -241,7 +241,7 @@ exports.serializeAws_restJson1CreateScheduleCommand = serializeAws_restJson1Crea
241
241
  const serializeAws_restJson1DeleteDatasetCommand = async (input, context) => {
242
242
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
243
243
  const headers = {};
244
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{Name}";
244
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{Name}";
245
245
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
246
246
  let body;
247
247
  return new protocol_http_1.HttpRequest({
@@ -258,7 +258,7 @@ exports.serializeAws_restJson1DeleteDatasetCommand = serializeAws_restJson1Delet
258
258
  const serializeAws_restJson1DeleteJobCommand = async (input, context) => {
259
259
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
260
260
  const headers = {};
261
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{Name}";
261
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{Name}";
262
262
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
263
263
  let body;
264
264
  return new protocol_http_1.HttpRequest({
@@ -275,7 +275,7 @@ exports.serializeAws_restJson1DeleteJobCommand = serializeAws_restJson1DeleteJob
275
275
  const serializeAws_restJson1DeleteProjectCommand = async (input, context) => {
276
276
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
277
277
  const headers = {};
278
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{Name}";
278
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{Name}";
279
279
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
280
280
  let body;
281
281
  return new protocol_http_1.HttpRequest({
@@ -292,7 +292,7 @@ exports.serializeAws_restJson1DeleteProjectCommand = serializeAws_restJson1Delet
292
292
  const serializeAws_restJson1DeleteRecipeVersionCommand = async (input, context) => {
293
293
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
294
294
  const headers = {};
295
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
295
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
296
296
  "/recipes/{Name}/recipeVersion/{RecipeVersion}";
297
297
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
298
298
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RecipeVersion", () => input.RecipeVersion, "{RecipeVersion}", false);
@@ -311,7 +311,7 @@ exports.serializeAws_restJson1DeleteRecipeVersionCommand = serializeAws_restJson
311
311
  const serializeAws_restJson1DeleteRulesetCommand = async (input, context) => {
312
312
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
313
313
  const headers = {};
314
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets/{Name}";
314
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets/{Name}";
315
315
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
316
316
  let body;
317
317
  return new protocol_http_1.HttpRequest({
@@ -328,7 +328,7 @@ exports.serializeAws_restJson1DeleteRulesetCommand = serializeAws_restJson1Delet
328
328
  const serializeAws_restJson1DeleteScheduleCommand = async (input, context) => {
329
329
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
330
330
  const headers = {};
331
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/schedules/{Name}";
331
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules/{Name}";
332
332
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
333
333
  let body;
334
334
  return new protocol_http_1.HttpRequest({
@@ -345,7 +345,7 @@ exports.serializeAws_restJson1DeleteScheduleCommand = serializeAws_restJson1Dele
345
345
  const serializeAws_restJson1DescribeDatasetCommand = async (input, context) => {
346
346
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
347
347
  const headers = {};
348
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{Name}";
348
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{Name}";
349
349
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
350
350
  let body;
351
351
  return new protocol_http_1.HttpRequest({
@@ -362,7 +362,7 @@ exports.serializeAws_restJson1DescribeDatasetCommand = serializeAws_restJson1Des
362
362
  const serializeAws_restJson1DescribeJobCommand = async (input, context) => {
363
363
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
364
364
  const headers = {};
365
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{Name}";
365
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{Name}";
366
366
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
367
367
  let body;
368
368
  return new protocol_http_1.HttpRequest({
@@ -379,7 +379,7 @@ exports.serializeAws_restJson1DescribeJobCommand = serializeAws_restJson1Describ
379
379
  const serializeAws_restJson1DescribeJobRunCommand = async (input, context) => {
380
380
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
381
381
  const headers = {};
382
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{Name}/jobRun/{RunId}";
382
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{Name}/jobRun/{RunId}";
383
383
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
384
384
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RunId", () => input.RunId, "{RunId}", false);
385
385
  let body;
@@ -397,7 +397,7 @@ exports.serializeAws_restJson1DescribeJobRunCommand = serializeAws_restJson1Desc
397
397
  const serializeAws_restJson1DescribeProjectCommand = async (input, context) => {
398
398
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
399
399
  const headers = {};
400
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{Name}";
400
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{Name}";
401
401
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
402
402
  let body;
403
403
  return new protocol_http_1.HttpRequest({
@@ -414,7 +414,7 @@ exports.serializeAws_restJson1DescribeProjectCommand = serializeAws_restJson1Des
414
414
  const serializeAws_restJson1DescribeRecipeCommand = async (input, context) => {
415
415
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
416
416
  const headers = {};
417
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/recipes/{Name}";
417
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipes/{Name}";
418
418
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
419
419
  const query = map({
420
420
  recipeVersion: [, input.RecipeVersion],
@@ -435,7 +435,7 @@ exports.serializeAws_restJson1DescribeRecipeCommand = serializeAws_restJson1Desc
435
435
  const serializeAws_restJson1DescribeRulesetCommand = async (input, context) => {
436
436
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
437
437
  const headers = {};
438
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets/{Name}";
438
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets/{Name}";
439
439
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
440
440
  let body;
441
441
  return new protocol_http_1.HttpRequest({
@@ -452,7 +452,7 @@ exports.serializeAws_restJson1DescribeRulesetCommand = serializeAws_restJson1Des
452
452
  const serializeAws_restJson1DescribeScheduleCommand = async (input, context) => {
453
453
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
454
454
  const headers = {};
455
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/schedules/{Name}";
455
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules/{Name}";
456
456
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
457
457
  let body;
458
458
  return new protocol_http_1.HttpRequest({
@@ -469,7 +469,7 @@ exports.serializeAws_restJson1DescribeScheduleCommand = serializeAws_restJson1De
469
469
  const serializeAws_restJson1ListDatasetsCommand = async (input, context) => {
470
470
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
471
471
  const headers = {};
472
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/datasets";
472
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets";
473
473
  const query = map({
474
474
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
475
475
  nextToken: [, input.NextToken],
@@ -490,7 +490,7 @@ exports.serializeAws_restJson1ListDatasetsCommand = serializeAws_restJson1ListDa
490
490
  const serializeAws_restJson1ListJobRunsCommand = async (input, context) => {
491
491
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
492
492
  const headers = {};
493
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{Name}/jobRuns";
493
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{Name}/jobRuns";
494
494
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
495
495
  const query = map({
496
496
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
@@ -512,7 +512,7 @@ exports.serializeAws_restJson1ListJobRunsCommand = serializeAws_restJson1ListJob
512
512
  const serializeAws_restJson1ListJobsCommand = async (input, context) => {
513
513
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
514
514
  const headers = {};
515
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/jobs";
515
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs";
516
516
  const query = map({
517
517
  datasetName: [, input.DatasetName],
518
518
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
@@ -535,7 +535,7 @@ exports.serializeAws_restJson1ListJobsCommand = serializeAws_restJson1ListJobsCo
535
535
  const serializeAws_restJson1ListProjectsCommand = async (input, context) => {
536
536
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
537
537
  const headers = {};
538
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/projects";
538
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects";
539
539
  const query = map({
540
540
  nextToken: [, input.NextToken],
541
541
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
@@ -556,7 +556,7 @@ exports.serializeAws_restJson1ListProjectsCommand = serializeAws_restJson1ListPr
556
556
  const serializeAws_restJson1ListRecipesCommand = async (input, context) => {
557
557
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
558
558
  const headers = {};
559
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/recipes";
559
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipes";
560
560
  const query = map({
561
561
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
562
562
  nextToken: [, input.NextToken],
@@ -578,7 +578,7 @@ exports.serializeAws_restJson1ListRecipesCommand = serializeAws_restJson1ListRec
578
578
  const serializeAws_restJson1ListRecipeVersionsCommand = async (input, context) => {
579
579
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
580
580
  const headers = {};
581
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/recipeVersions";
581
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipeVersions";
582
582
  const query = map({
583
583
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
584
584
  nextToken: [, input.NextToken],
@@ -600,7 +600,7 @@ exports.serializeAws_restJson1ListRecipeVersionsCommand = serializeAws_restJson1
600
600
  const serializeAws_restJson1ListRulesetsCommand = async (input, context) => {
601
601
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
602
602
  const headers = {};
603
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets";
603
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets";
604
604
  const query = map({
605
605
  targetArn: [, input.TargetArn],
606
606
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
@@ -622,7 +622,7 @@ exports.serializeAws_restJson1ListRulesetsCommand = serializeAws_restJson1ListRu
622
622
  const serializeAws_restJson1ListSchedulesCommand = async (input, context) => {
623
623
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
624
624
  const headers = {};
625
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/schedules";
625
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules";
626
626
  const query = map({
627
627
  jobName: [, input.JobName],
628
628
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
@@ -644,7 +644,7 @@ exports.serializeAws_restJson1ListSchedulesCommand = serializeAws_restJson1ListS
644
644
  const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
645
645
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
646
646
  const headers = {};
647
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
647
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
648
648
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
649
649
  let body;
650
650
  return new protocol_http_1.HttpRequest({
@@ -663,7 +663,7 @@ const serializeAws_restJson1PublishRecipeCommand = async (input, context) => {
663
663
  const headers = {
664
664
  "content-type": "application/json",
665
665
  };
666
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/recipes/{Name}/publishRecipe";
666
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipes/{Name}/publishRecipe";
667
667
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
668
668
  let body;
669
669
  body = JSON.stringify({
@@ -685,7 +685,7 @@ const serializeAws_restJson1SendProjectSessionActionCommand = async (input, cont
685
685
  const headers = {
686
686
  "content-type": "application/json",
687
687
  };
688
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{Name}/sendProjectSessionAction";
688
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{Name}/sendProjectSessionAction";
689
689
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
690
690
  let body;
691
691
  body = JSON.stringify({
@@ -709,7 +709,7 @@ exports.serializeAws_restJson1SendProjectSessionActionCommand = serializeAws_res
709
709
  const serializeAws_restJson1StartJobRunCommand = async (input, context) => {
710
710
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
711
711
  const headers = {};
712
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{Name}/startJobRun";
712
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{Name}/startJobRun";
713
713
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
714
714
  let body;
715
715
  return new protocol_http_1.HttpRequest({
@@ -728,7 +728,7 @@ const serializeAws_restJson1StartProjectSessionCommand = async (input, context)
728
728
  const headers = {
729
729
  "content-type": "application/json",
730
730
  };
731
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{Name}/startProjectSession";
731
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{Name}/startProjectSession";
732
732
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
733
733
  let body;
734
734
  body = JSON.stringify({
@@ -748,7 +748,7 @@ exports.serializeAws_restJson1StartProjectSessionCommand = serializeAws_restJson
748
748
  const serializeAws_restJson1StopJobRunCommand = async (input, context) => {
749
749
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
750
750
  const headers = {};
751
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{Name}/jobRun/{RunId}/stopJobRun";
751
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{Name}/jobRun/{RunId}/stopJobRun";
752
752
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
753
753
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RunId", () => input.RunId, "{RunId}", false);
754
754
  let body;
@@ -768,7 +768,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
768
768
  const headers = {
769
769
  "content-type": "application/json",
770
770
  };
771
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
771
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
772
772
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
773
773
  let body;
774
774
  body = JSON.stringify({
@@ -788,7 +788,7 @@ exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagReso
788
788
  const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
789
789
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
790
790
  const headers = {};
791
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
791
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
792
792
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
793
793
  const query = map({
794
794
  tagKeys: [() => input.TagKeys !== void 0, () => (input.TagKeys || []).map((_entry) => _entry)],
@@ -811,7 +811,7 @@ const serializeAws_restJson1UpdateDatasetCommand = async (input, context) => {
811
811
  const headers = {
812
812
  "content-type": "application/json",
813
813
  };
814
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{Name}";
814
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{Name}";
815
815
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
816
816
  let body;
817
817
  body = JSON.stringify({
@@ -838,7 +838,7 @@ const serializeAws_restJson1UpdateProfileJobCommand = async (input, context) =>
838
838
  const headers = {
839
839
  "content-type": "application/json",
840
840
  };
841
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/profileJobs/{Name}";
841
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profileJobs/{Name}";
842
842
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
843
843
  let body;
844
844
  body = JSON.stringify({
@@ -876,7 +876,7 @@ const serializeAws_restJson1UpdateProjectCommand = async (input, context) => {
876
876
  const headers = {
877
877
  "content-type": "application/json",
878
878
  };
879
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{Name}";
879
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{Name}";
880
880
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
881
881
  let body;
882
882
  body = JSON.stringify({
@@ -899,7 +899,7 @@ const serializeAws_restJson1UpdateRecipeCommand = async (input, context) => {
899
899
  const headers = {
900
900
  "content-type": "application/json",
901
901
  };
902
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/recipes/{Name}";
902
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipes/{Name}";
903
903
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
904
904
  let body;
905
905
  body = JSON.stringify({
@@ -922,7 +922,7 @@ const serializeAws_restJson1UpdateRecipeJobCommand = async (input, context) => {
922
922
  const headers = {
923
923
  "content-type": "application/json",
924
924
  };
925
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/recipeJobs/{Name}";
925
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recipeJobs/{Name}";
926
926
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
927
927
  let body;
928
928
  body = JSON.stringify({
@@ -957,7 +957,7 @@ const serializeAws_restJson1UpdateRulesetCommand = async (input, context) => {
957
957
  const headers = {
958
958
  "content-type": "application/json",
959
959
  };
960
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets/{Name}";
960
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets/{Name}";
961
961
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
962
962
  let body;
963
963
  body = JSON.stringify({
@@ -980,7 +980,7 @@ const serializeAws_restJson1UpdateScheduleCommand = async (input, context) => {
980
980
  const headers = {
981
981
  "content-type": "application/json",
982
982
  };
983
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/schedules/{Name}";
983
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules/{Name}";
984
984
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
985
985
  let body;
986
986
  body = JSON.stringify({
@@ -4355,15 +4355,12 @@ const deserializeAws_restJson1ValuesMap = (output, context) => {
4355
4355
  };
4356
4356
  }, {});
4357
4357
  };
4358
- const deserializeMetadata = (output) => {
4359
- var _a, _b;
4360
- return ({
4361
- httpStatusCode: output.statusCode,
4362
- 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"],
4363
- extendedRequestId: output.headers["x-amz-id-2"],
4364
- cfId: output.headers["x-amz-cf-id"],
4365
- });
4366
- };
4358
+ const deserializeMetadata = (output) => ({
4359
+ httpStatusCode: output.statusCode,
4360
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
4361
+ extendedRequestId: output.headers["x-amz-id-2"],
4362
+ cfId: output.headers["x-amz-cf-id"],
4363
+ });
4367
4364
  const collectBody = (streamBody = new Uint8Array(), context) => {
4368
4365
  if (streamBody instanceof Uint8Array) {
4369
4366
  return Promise.resolve(streamBody);
@@ -4383,9 +4380,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
4383
4380
  return {};
4384
4381
  });
4385
4382
  const parseErrorBody = async (errorBody, context) => {
4386
- var _a;
4387
4383
  const value = await parseBody(errorBody, context);
4388
- value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
4384
+ value.message = value.message ?? value.Message;
4389
4385
  return value;
4390
4386
  };
4391
4387
  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: "2017-07-25",
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 : "DataBrew",
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: "2017-07-25",
8
+ disableHostPrefix: config?.disableHostPrefix ?? false,
9
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
10
+ logger: config?.logger ?? {},
11
+ serviceId: config?.serviceId ?? "DataBrew",
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-databrew",
3
3
  "description": "AWS SDK for JavaScript Databrew 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,44 +19,44 @@
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
  },
57
57
  "devDependencies": {
58
58
  "@aws-sdk/service-client-documentation-generator": "3.188.0",
59
- "@tsconfig/recommended": "1.0.1",
59
+ "@tsconfig/node14": "1.0.3",
60
60
  "@types/node": "^12.7.5",
61
61
  "concurrently": "7.0.0",
62
62
  "downlevel-dts": "0.10.1",
@@ -70,7 +70,7 @@
70
70
  }
71
71
  },
72
72
  "engines": {
73
- "node": ">=12.0.0"
73
+ "node": ">=14.0.0"
74
74
  },
75
75
  "typesVersions": {
76
76
  "<4.0": {