@aws-sdk/client-databrew 3.42.0 → 3.46.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist-cjs/DataBrew.js +75 -0
  3. package/dist-cjs/DataBrewClient.js +1 -0
  4. package/dist-cjs/commands/CreateRulesetCommand.js +36 -0
  5. package/dist-cjs/commands/DeleteRulesetCommand.js +36 -0
  6. package/dist-cjs/commands/DescribeRulesetCommand.js +36 -0
  7. package/dist-cjs/commands/ListRulesetsCommand.js +36 -0
  8. package/dist-cjs/commands/UpdateRulesetCommand.js +36 -0
  9. package/dist-cjs/commands/index.js +5 -0
  10. package/dist-cjs/endpoints.js +1 -0
  11. package/dist-cjs/models/models_0.js +130 -3
  12. package/dist-cjs/pagination/ListRulesetsPaginator.js +35 -0
  13. package/dist-cjs/pagination/index.js +1 -0
  14. package/dist-cjs/protocols/Aws_restJson1.js +727 -4
  15. package/dist-cjs/runtimeConfig.js +0 -2
  16. package/dist-es/DataBrew.js +75 -0
  17. package/dist-es/DataBrewClient.js +2 -1
  18. package/dist-es/commands/CreateRulesetCommand.js +39 -0
  19. package/dist-es/commands/DeleteRulesetCommand.js +39 -0
  20. package/dist-es/commands/DescribeRulesetCommand.js +39 -0
  21. package/dist-es/commands/ListRulesetsCommand.js +39 -0
  22. package/dist-es/commands/UpdateRulesetCommand.js +39 -0
  23. package/dist-es/commands/index.js +5 -0
  24. package/dist-es/endpoints.js +1 -0
  25. package/dist-es/models/models_0.js +92 -2
  26. package/dist-es/pagination/ListRulesetsPaginator.js +74 -0
  27. package/dist-es/pagination/index.js +1 -0
  28. package/dist-es/protocols/Aws_restJson1.js +818 -42
  29. package/dist-es/runtimeConfig.js +0 -2
  30. package/dist-types/DataBrew.d.ts +37 -0
  31. package/dist-types/DataBrewClient.d.ts +7 -2
  32. package/dist-types/commands/CreateRulesetCommand.d.ts +36 -0
  33. package/dist-types/commands/DeleteRulesetCommand.d.ts +35 -0
  34. package/dist-types/commands/DescribeRulesetCommand.d.ts +35 -0
  35. package/dist-types/commands/ListRulesetsCommand.d.ts +36 -0
  36. package/dist-types/commands/UpdateRulesetCommand.d.ts +35 -0
  37. package/dist-types/commands/index.d.ts +5 -0
  38. package/dist-types/models/models_0.d.ts +577 -17
  39. package/dist-types/pagination/ListRulesetsPaginator.d.ts +4 -0
  40. package/dist-types/pagination/index.d.ts +1 -0
  41. package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
  42. package/dist-types/ts3.4/DataBrew.d.ts +25 -0
  43. package/dist-types/ts3.4/DataBrewClient.d.ts +7 -2
  44. package/dist-types/ts3.4/commands/CreateRulesetCommand.d.ts +17 -0
  45. package/dist-types/ts3.4/commands/DeleteRulesetCommand.d.ts +17 -0
  46. package/dist-types/ts3.4/commands/DescribeRulesetCommand.d.ts +17 -0
  47. package/dist-types/ts3.4/commands/ListRulesetsCommand.d.ts +17 -0
  48. package/dist-types/ts3.4/commands/UpdateRulesetCommand.d.ts +17 -0
  49. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  50. package/dist-types/ts3.4/models/models_0.d.ts +267 -1
  51. package/dist-types/ts3.4/pagination/ListRulesetsPaginator.d.ts +4 -0
  52. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  53. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
  54. package/package.json +36 -43
@@ -15,10 +15,8 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
15
15
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
- const smithy_client_1 = require("@aws-sdk/smithy-client");
19
18
  const getRuntimeConfig = (config) => {
20
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
20
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
21
  return {
24
22
  ...clientSharedValues,
@@ -5,17 +5,20 @@ import { CreateProfileJobCommand, } from "./commands/CreateProfileJobCommand";
5
5
  import { CreateProjectCommand, } from "./commands/CreateProjectCommand";
6
6
  import { CreateRecipeCommand, } from "./commands/CreateRecipeCommand";
7
7
  import { CreateRecipeJobCommand, } from "./commands/CreateRecipeJobCommand";
8
+ import { CreateRulesetCommand, } from "./commands/CreateRulesetCommand";
8
9
  import { CreateScheduleCommand, } from "./commands/CreateScheduleCommand";
9
10
  import { DeleteDatasetCommand, } from "./commands/DeleteDatasetCommand";
10
11
  import { DeleteJobCommand } from "./commands/DeleteJobCommand";
11
12
  import { DeleteProjectCommand, } from "./commands/DeleteProjectCommand";
12
13
  import { DeleteRecipeVersionCommand, } from "./commands/DeleteRecipeVersionCommand";
14
+ import { DeleteRulesetCommand, } from "./commands/DeleteRulesetCommand";
13
15
  import { DeleteScheduleCommand, } from "./commands/DeleteScheduleCommand";
14
16
  import { DescribeDatasetCommand, } from "./commands/DescribeDatasetCommand";
15
17
  import { DescribeJobCommand } from "./commands/DescribeJobCommand";
16
18
  import { DescribeJobRunCommand, } from "./commands/DescribeJobRunCommand";
17
19
  import { DescribeProjectCommand, } from "./commands/DescribeProjectCommand";
18
20
  import { DescribeRecipeCommand, } from "./commands/DescribeRecipeCommand";
21
+ import { DescribeRulesetCommand, } from "./commands/DescribeRulesetCommand";
19
22
  import { DescribeScheduleCommand, } from "./commands/DescribeScheduleCommand";
20
23
  import { ListDatasetsCommand, } from "./commands/ListDatasetsCommand";
21
24
  import { ListJobRunsCommand } from "./commands/ListJobRunsCommand";
@@ -23,6 +26,7 @@ import { ListJobsCommand } from "./commands/ListJobsCommand";
23
26
  import { ListProjectsCommand, } from "./commands/ListProjectsCommand";
24
27
  import { ListRecipesCommand } from "./commands/ListRecipesCommand";
25
28
  import { ListRecipeVersionsCommand, } from "./commands/ListRecipeVersionsCommand";
29
+ import { ListRulesetsCommand, } from "./commands/ListRulesetsCommand";
26
30
  import { ListSchedulesCommand, } from "./commands/ListSchedulesCommand";
27
31
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
28
32
  import { PublishRecipeCommand, } from "./commands/PublishRecipeCommand";
@@ -37,6 +41,7 @@ import { UpdateProfileJobCommand, } from "./commands/UpdateProfileJobCommand";
37
41
  import { UpdateProjectCommand, } from "./commands/UpdateProjectCommand";
38
42
  import { UpdateRecipeCommand, } from "./commands/UpdateRecipeCommand";
39
43
  import { UpdateRecipeJobCommand, } from "./commands/UpdateRecipeJobCommand";
44
+ import { UpdateRulesetCommand, } from "./commands/UpdateRulesetCommand";
40
45
  import { UpdateScheduleCommand, } from "./commands/UpdateScheduleCommand";
41
46
  import { DataBrewClient } from "./DataBrewClient";
42
47
  var DataBrew = (function (_super) {
@@ -128,6 +133,20 @@ var DataBrew = (function (_super) {
128
133
  return this.send(command, optionsOrCb);
129
134
  }
130
135
  };
136
+ DataBrew.prototype.createRuleset = function (args, optionsOrCb, cb) {
137
+ var command = new CreateRulesetCommand(args);
138
+ if (typeof optionsOrCb === "function") {
139
+ this.send(command, optionsOrCb);
140
+ }
141
+ else if (typeof cb === "function") {
142
+ if (typeof optionsOrCb !== "object")
143
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
144
+ this.send(command, optionsOrCb || {}, cb);
145
+ }
146
+ else {
147
+ return this.send(command, optionsOrCb);
148
+ }
149
+ };
131
150
  DataBrew.prototype.createSchedule = function (args, optionsOrCb, cb) {
132
151
  var command = new CreateScheduleCommand(args);
133
152
  if (typeof optionsOrCb === "function") {
@@ -198,6 +217,20 @@ var DataBrew = (function (_super) {
198
217
  return this.send(command, optionsOrCb);
199
218
  }
200
219
  };
220
+ DataBrew.prototype.deleteRuleset = function (args, optionsOrCb, cb) {
221
+ var command = new DeleteRulesetCommand(args);
222
+ if (typeof optionsOrCb === "function") {
223
+ this.send(command, optionsOrCb);
224
+ }
225
+ else if (typeof cb === "function") {
226
+ if (typeof optionsOrCb !== "object")
227
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
228
+ this.send(command, optionsOrCb || {}, cb);
229
+ }
230
+ else {
231
+ return this.send(command, optionsOrCb);
232
+ }
233
+ };
201
234
  DataBrew.prototype.deleteSchedule = function (args, optionsOrCb, cb) {
202
235
  var command = new DeleteScheduleCommand(args);
203
236
  if (typeof optionsOrCb === "function") {
@@ -282,6 +315,20 @@ var DataBrew = (function (_super) {
282
315
  return this.send(command, optionsOrCb);
283
316
  }
284
317
  };
318
+ DataBrew.prototype.describeRuleset = function (args, optionsOrCb, cb) {
319
+ var command = new DescribeRulesetCommand(args);
320
+ if (typeof optionsOrCb === "function") {
321
+ this.send(command, optionsOrCb);
322
+ }
323
+ else if (typeof cb === "function") {
324
+ if (typeof optionsOrCb !== "object")
325
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
326
+ this.send(command, optionsOrCb || {}, cb);
327
+ }
328
+ else {
329
+ return this.send(command, optionsOrCb);
330
+ }
331
+ };
285
332
  DataBrew.prototype.describeSchedule = function (args, optionsOrCb, cb) {
286
333
  var command = new DescribeScheduleCommand(args);
287
334
  if (typeof optionsOrCb === "function") {
@@ -380,6 +427,20 @@ var DataBrew = (function (_super) {
380
427
  return this.send(command, optionsOrCb);
381
428
  }
382
429
  };
430
+ DataBrew.prototype.listRulesets = function (args, optionsOrCb, cb) {
431
+ var command = new ListRulesetsCommand(args);
432
+ if (typeof optionsOrCb === "function") {
433
+ this.send(command, optionsOrCb);
434
+ }
435
+ else if (typeof cb === "function") {
436
+ if (typeof optionsOrCb !== "object")
437
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
438
+ this.send(command, optionsOrCb || {}, cb);
439
+ }
440
+ else {
441
+ return this.send(command, optionsOrCb);
442
+ }
443
+ };
383
444
  DataBrew.prototype.listSchedules = function (args, optionsOrCb, cb) {
384
445
  var command = new ListSchedulesCommand(args);
385
446
  if (typeof optionsOrCb === "function") {
@@ -576,6 +637,20 @@ var DataBrew = (function (_super) {
576
637
  return this.send(command, optionsOrCb);
577
638
  }
578
639
  };
640
+ DataBrew.prototype.updateRuleset = function (args, optionsOrCb, cb) {
641
+ var command = new UpdateRulesetCommand(args);
642
+ if (typeof optionsOrCb === "function") {
643
+ this.send(command, optionsOrCb);
644
+ }
645
+ else if (typeof cb === "function") {
646
+ if (typeof optionsOrCb !== "object")
647
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
648
+ this.send(command, optionsOrCb || {}, cb);
649
+ }
650
+ else {
651
+ return this.send(command, optionsOrCb);
652
+ }
653
+ };
579
654
  DataBrew.prototype.updateSchedule = function (args, optionsOrCb, cb) {
580
655
  var command = new UpdateScheduleCommand(args);
581
656
  if (typeof optionsOrCb === "function") {
@@ -3,7 +3,7 @@ import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-re
3
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
5
5
  import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
6
- import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
6
+ import { getOmitRetryHeadersPlugin, getRetryPlugin, resolveRetryConfig, } from "@aws-sdk/middleware-retry";
7
7
  import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
8
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
@@ -27,6 +27,7 @@ var DataBrewClient = (function (_super) {
27
27
  _this.middlewareStack.use(getLoggerPlugin(_this.config));
28
28
  _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
29
29
  _this.middlewareStack.use(getUserAgentPlugin(_this.config));
30
+ _this.middlewareStack.use(getOmitRetryHeadersPlugin(_this.config));
30
31
  return _this;
31
32
  }
32
33
  DataBrewClient.prototype.destroy = function () {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateRulesetRequest, CreateRulesetResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1CreateRulesetCommand, serializeAws_restJson1CreateRulesetCommand, } from "../protocols/Aws_restJson1";
6
+ var CreateRulesetCommand = (function (_super) {
7
+ __extends(CreateRulesetCommand, _super);
8
+ function CreateRulesetCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CreateRulesetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "DataBrewClient";
18
+ var commandName = "CreateRulesetCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CreateRulesetRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: CreateRulesetResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateRulesetCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1CreateRulesetCommand(input, context);
33
+ };
34
+ CreateRulesetCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1CreateRulesetCommand(output, context);
36
+ };
37
+ return CreateRulesetCommand;
38
+ }($Command));
39
+ export { CreateRulesetCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DeleteRulesetRequest, DeleteRulesetResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1DeleteRulesetCommand, serializeAws_restJson1DeleteRulesetCommand, } from "../protocols/Aws_restJson1";
6
+ var DeleteRulesetCommand = (function (_super) {
7
+ __extends(DeleteRulesetCommand, _super);
8
+ function DeleteRulesetCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DeleteRulesetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "DataBrewClient";
18
+ var commandName = "DeleteRulesetCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DeleteRulesetRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DeleteRulesetResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteRulesetCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1DeleteRulesetCommand(input, context);
33
+ };
34
+ DeleteRulesetCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DeleteRulesetCommand(output, context);
36
+ };
37
+ return DeleteRulesetCommand;
38
+ }($Command));
39
+ export { DeleteRulesetCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DescribeRulesetRequest, DescribeRulesetResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1DescribeRulesetCommand, serializeAws_restJson1DescribeRulesetCommand, } from "../protocols/Aws_restJson1";
6
+ var DescribeRulesetCommand = (function (_super) {
7
+ __extends(DescribeRulesetCommand, _super);
8
+ function DescribeRulesetCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DescribeRulesetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "DataBrewClient";
18
+ var commandName = "DescribeRulesetCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DescribeRulesetRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeRulesetResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeRulesetCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1DescribeRulesetCommand(input, context);
33
+ };
34
+ DescribeRulesetCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DescribeRulesetCommand(output, context);
36
+ };
37
+ return DescribeRulesetCommand;
38
+ }($Command));
39
+ export { DescribeRulesetCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListRulesetsRequest, ListRulesetsResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListRulesetsCommand, serializeAws_restJson1ListRulesetsCommand, } from "../protocols/Aws_restJson1";
6
+ var ListRulesetsCommand = (function (_super) {
7
+ __extends(ListRulesetsCommand, _super);
8
+ function ListRulesetsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListRulesetsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "DataBrewClient";
18
+ var commandName = "ListRulesetsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListRulesetsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListRulesetsResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListRulesetsCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1ListRulesetsCommand(input, context);
33
+ };
34
+ ListRulesetsCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1ListRulesetsCommand(output, context);
36
+ };
37
+ return ListRulesetsCommand;
38
+ }($Command));
39
+ export { ListRulesetsCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateRulesetRequest, UpdateRulesetResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1UpdateRulesetCommand, serializeAws_restJson1UpdateRulesetCommand, } from "../protocols/Aws_restJson1";
6
+ var UpdateRulesetCommand = (function (_super) {
7
+ __extends(UpdateRulesetCommand, _super);
8
+ function UpdateRulesetCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ UpdateRulesetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "DataBrewClient";
18
+ var commandName = "UpdateRulesetCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: UpdateRulesetRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: UpdateRulesetResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateRulesetCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1UpdateRulesetCommand(input, context);
33
+ };
34
+ UpdateRulesetCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1UpdateRulesetCommand(output, context);
36
+ };
37
+ return UpdateRulesetCommand;
38
+ }($Command));
39
+ export { UpdateRulesetCommand };
@@ -4,17 +4,20 @@ export * from "./CreateProfileJobCommand";
4
4
  export * from "./CreateProjectCommand";
5
5
  export * from "./CreateRecipeCommand";
6
6
  export * from "./CreateRecipeJobCommand";
7
+ export * from "./CreateRulesetCommand";
7
8
  export * from "./CreateScheduleCommand";
8
9
  export * from "./DeleteDatasetCommand";
9
10
  export * from "./DeleteJobCommand";
10
11
  export * from "./DeleteProjectCommand";
11
12
  export * from "./DeleteRecipeVersionCommand";
13
+ export * from "./DeleteRulesetCommand";
12
14
  export * from "./DeleteScheduleCommand";
13
15
  export * from "./DescribeDatasetCommand";
14
16
  export * from "./DescribeJobCommand";
15
17
  export * from "./DescribeJobRunCommand";
16
18
  export * from "./DescribeProjectCommand";
17
19
  export * from "./DescribeRecipeCommand";
20
+ export * from "./DescribeRulesetCommand";
18
21
  export * from "./DescribeScheduleCommand";
19
22
  export * from "./ListDatasetsCommand";
20
23
  export * from "./ListJobRunsCommand";
@@ -22,6 +25,7 @@ export * from "./ListJobsCommand";
22
25
  export * from "./ListProjectsCommand";
23
26
  export * from "./ListRecipeVersionsCommand";
24
27
  export * from "./ListRecipesCommand";
28
+ export * from "./ListRulesetsCommand";
25
29
  export * from "./ListSchedulesCommand";
26
30
  export * from "./ListTagsForResourceCommand";
27
31
  export * from "./PublishRecipeCommand";
@@ -36,4 +40,5 @@ export * from "./UpdateProfileJobCommand";
36
40
  export * from "./UpdateProjectCommand";
37
41
  export * from "./UpdateRecipeCommand";
38
42
  export * from "./UpdateRecipeJobCommand";
43
+ export * from "./UpdateRulesetCommand";
39
44
  export * from "./UpdateScheduleCommand";
@@ -12,6 +12,7 @@ var partitionHash = {
12
12
  "ap-south-1",
13
13
  "ap-southeast-1",
14
14
  "ap-southeast-2",
15
+ "ap-southeast-3",
15
16
  "ca-central-1",
16
17
  "eu-central-1",
17
18
  "eu-north-1",
@@ -1,8 +1,18 @@
1
1
  import { __assign } from "tslib";
2
+ import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
2
3
  export var AccessDeniedException;
3
4
  (function (AccessDeniedException) {
4
5
  AccessDeniedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
5
6
  })(AccessDeniedException || (AccessDeniedException = {}));
7
+ export var AllowedStatistics;
8
+ (function (AllowedStatistics) {
9
+ AllowedStatistics.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
10
+ })(AllowedStatistics || (AllowedStatistics = {}));
11
+ export var AnalyticsMode;
12
+ (function (AnalyticsMode) {
13
+ AnalyticsMode["DISABLE"] = "DISABLE";
14
+ AnalyticsMode["ENABLE"] = "ENABLE";
15
+ })(AnalyticsMode || (AnalyticsMode = {}));
6
16
  export var BatchDeleteRecipeVersionRequest;
7
17
  (function (BatchDeleteRecipeVersionRequest) {
8
18
  BatchDeleteRecipeVersionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -62,6 +72,10 @@ export var DataCatalogInputDefinition;
62
72
  (function (DataCatalogInputDefinition) {
63
73
  DataCatalogInputDefinition.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
64
74
  })(DataCatalogInputDefinition || (DataCatalogInputDefinition = {}));
75
+ export var Metadata;
76
+ (function (Metadata) {
77
+ Metadata.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
78
+ })(Metadata || (Metadata = {}));
65
79
  export var Input;
66
80
  (function (Input) {
67
81
  Input.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -129,6 +143,10 @@ export var ColumnStatisticsConfiguration;
129
143
  (function (ColumnStatisticsConfiguration) {
130
144
  ColumnStatisticsConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
131
145
  })(ColumnStatisticsConfiguration || (ColumnStatisticsConfiguration = {}));
146
+ export var EntityDetectorConfiguration;
147
+ (function (EntityDetectorConfiguration) {
148
+ EntityDetectorConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
149
+ })(EntityDetectorConfiguration || (EntityDetectorConfiguration = {}));
132
150
  export var ProfileConfiguration;
133
151
  (function (ProfileConfiguration) {
134
152
  ProfileConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -152,6 +170,14 @@ export var LogSubscription;
152
170
  LogSubscription["DISABLE"] = "DISABLE";
153
171
  LogSubscription["ENABLE"] = "ENABLE";
154
172
  })(LogSubscription || (LogSubscription = {}));
173
+ export var ValidationMode;
174
+ (function (ValidationMode) {
175
+ ValidationMode["CHECK_ALL"] = "CHECK_ALL";
176
+ })(ValidationMode || (ValidationMode = {}));
177
+ export var ValidationConfiguration;
178
+ (function (ValidationConfiguration) {
179
+ ValidationConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
180
+ })(ValidationConfiguration || (ValidationConfiguration = {}));
155
181
  export var CreateProfileJobRequest;
156
182
  (function (CreateProfileJobRequest) {
157
183
  CreateProfileJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -269,6 +295,34 @@ export var CreateRecipeJobResponse;
269
295
  (function (CreateRecipeJobResponse) {
270
296
  CreateRecipeJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
271
297
  })(CreateRecipeJobResponse || (CreateRecipeJobResponse = {}));
298
+ export var ThresholdType;
299
+ (function (ThresholdType) {
300
+ ThresholdType["GREATER_THAN"] = "GREATER_THAN";
301
+ ThresholdType["GREATER_THAN_OR_EQUAL"] = "GREATER_THAN_OR_EQUAL";
302
+ ThresholdType["LESS_THAN"] = "LESS_THAN";
303
+ ThresholdType["LESS_THAN_OR_EQUAL"] = "LESS_THAN_OR_EQUAL";
304
+ })(ThresholdType || (ThresholdType = {}));
305
+ export var ThresholdUnit;
306
+ (function (ThresholdUnit) {
307
+ ThresholdUnit["COUNT"] = "COUNT";
308
+ ThresholdUnit["PERCENTAGE"] = "PERCENTAGE";
309
+ })(ThresholdUnit || (ThresholdUnit = {}));
310
+ export var Threshold;
311
+ (function (Threshold) {
312
+ Threshold.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
313
+ })(Threshold || (Threshold = {}));
314
+ export var Rule;
315
+ (function (Rule) {
316
+ Rule.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
317
+ })(Rule || (Rule = {}));
318
+ export var CreateRulesetRequest;
319
+ (function (CreateRulesetRequest) {
320
+ CreateRulesetRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
321
+ })(CreateRulesetRequest || (CreateRulesetRequest = {}));
322
+ export var CreateRulesetResponse;
323
+ (function (CreateRulesetResponse) {
324
+ CreateRulesetResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
325
+ })(CreateRulesetResponse || (CreateRulesetResponse = {}));
272
326
  export var CreateScheduleRequest;
273
327
  (function (CreateScheduleRequest) {
274
328
  CreateScheduleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -309,6 +363,14 @@ export var DeleteRecipeVersionResponse;
309
363
  (function (DeleteRecipeVersionResponse) {
310
364
  DeleteRecipeVersionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
311
365
  })(DeleteRecipeVersionResponse || (DeleteRecipeVersionResponse = {}));
366
+ export var DeleteRulesetRequest;
367
+ (function (DeleteRulesetRequest) {
368
+ DeleteRulesetRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
369
+ })(DeleteRulesetRequest || (DeleteRulesetRequest = {}));
370
+ export var DeleteRulesetResponse;
371
+ (function (DeleteRulesetResponse) {
372
+ DeleteRulesetResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
373
+ })(DeleteRulesetResponse || (DeleteRulesetResponse = {}));
312
374
  export var DeleteScheduleRequest;
313
375
  (function (DeleteScheduleRequest) {
314
376
  DeleteScheduleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -391,6 +453,14 @@ export var DescribeRecipeResponse;
391
453
  (function (DescribeRecipeResponse) {
392
454
  DescribeRecipeResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
393
455
  })(DescribeRecipeResponse || (DescribeRecipeResponse = {}));
456
+ export var DescribeRulesetRequest;
457
+ (function (DescribeRulesetRequest) {
458
+ DescribeRulesetRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
459
+ })(DescribeRulesetRequest || (DescribeRulesetRequest = {}));
460
+ export var DescribeRulesetResponse;
461
+ (function (DescribeRulesetResponse) {
462
+ DescribeRulesetResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
463
+ })(DescribeRulesetResponse || (DescribeRulesetResponse = {}));
394
464
  export var DescribeScheduleRequest;
395
465
  (function (DescribeScheduleRequest) {
396
466
  DescribeScheduleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -467,6 +537,18 @@ export var ListRecipeVersionsResponse;
467
537
  (function (ListRecipeVersionsResponse) {
468
538
  ListRecipeVersionsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
469
539
  })(ListRecipeVersionsResponse || (ListRecipeVersionsResponse = {}));
540
+ export var ListRulesetsRequest;
541
+ (function (ListRulesetsRequest) {
542
+ ListRulesetsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
543
+ })(ListRulesetsRequest || (ListRulesetsRequest = {}));
544
+ export var RulesetItem;
545
+ (function (RulesetItem) {
546
+ RulesetItem.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
547
+ })(RulesetItem || (RulesetItem = {}));
548
+ export var ListRulesetsResponse;
549
+ (function (ListRulesetsResponse) {
550
+ ListRulesetsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
551
+ })(ListRulesetsResponse || (ListRulesetsResponse = {}));
470
552
  export var ListSchedulesRequest;
471
553
  (function (ListSchedulesRequest) {
472
554
  ListSchedulesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -501,7 +583,7 @@ export var ViewFrame;
501
583
  })(ViewFrame || (ViewFrame = {}));
502
584
  export var SendProjectSessionActionRequest;
503
585
  (function (SendProjectSessionActionRequest) {
504
- SendProjectSessionActionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
586
+ SendProjectSessionActionRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.ClientSessionId && { ClientSessionId: SENSITIVE_STRING }))); };
505
587
  })(SendProjectSessionActionRequest || (SendProjectSessionActionRequest = {}));
506
588
  export var SendProjectSessionActionResponse;
507
589
  (function (SendProjectSessionActionResponse) {
@@ -521,7 +603,7 @@ export var StartProjectSessionRequest;
521
603
  })(StartProjectSessionRequest || (StartProjectSessionRequest = {}));
522
604
  export var StartProjectSessionResponse;
523
605
  (function (StartProjectSessionResponse) {
524
- StartProjectSessionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
606
+ StartProjectSessionResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.ClientSessionId && { ClientSessionId: SENSITIVE_STRING }))); };
525
607
  })(StartProjectSessionResponse || (StartProjectSessionResponse = {}));
526
608
  export var StopJobRunRequest;
527
609
  (function (StopJobRunRequest) {
@@ -587,6 +669,14 @@ export var UpdateRecipeJobResponse;
587
669
  (function (UpdateRecipeJobResponse) {
588
670
  UpdateRecipeJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
589
671
  })(UpdateRecipeJobResponse || (UpdateRecipeJobResponse = {}));
672
+ export var UpdateRulesetRequest;
673
+ (function (UpdateRulesetRequest) {
674
+ UpdateRulesetRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
675
+ })(UpdateRulesetRequest || (UpdateRulesetRequest = {}));
676
+ export var UpdateRulesetResponse;
677
+ (function (UpdateRulesetResponse) {
678
+ UpdateRulesetResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
679
+ })(UpdateRulesetResponse || (UpdateRulesetResponse = {}));
590
680
  export var UpdateScheduleRequest;
591
681
  (function (UpdateScheduleRequest) {
592
682
  UpdateScheduleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -0,0 +1,74 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { ListRulesetsCommand, } from "../commands/ListRulesetsCommand";
3
+ import { DataBrew } from "../DataBrew";
4
+ import { DataBrewClient } from "../DataBrewClient";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListRulesetsCommand(input)], __read(args)))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.listRulesets.apply(client, __spreadArray([input], __read(args)))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateListRulesets(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateListRulesets_1() {
39
+ var token, hasNext, page;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.NextToken = token;
49
+ input["MaxResults"] = config.pageSize;
50
+ if (!(config.client instanceof DataBrew)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof DataBrewClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected DataBrew | DataBrewClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ token = page.NextToken;
67
+ hasNext = !!token;
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
71
+ }
72
+ });
73
+ });
74
+ }