@aws-sdk/client-databrew 3.40.0 → 3.44.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 (91) hide show
  1. package/CHANGELOG.md +41 -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 +8 -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-es/DataBrew.js +75 -0
  16. package/dist-es/DataBrewClient.js +2 -1
  17. package/dist-es/commands/CreateRulesetCommand.js +39 -0
  18. package/dist-es/commands/DeleteRulesetCommand.js +39 -0
  19. package/dist-es/commands/DescribeRulesetCommand.js +39 -0
  20. package/dist-es/commands/ListRulesetsCommand.js +39 -0
  21. package/dist-es/commands/UpdateRulesetCommand.js +39 -0
  22. package/dist-es/commands/index.js +5 -0
  23. package/dist-es/endpoints.js +8 -0
  24. package/dist-es/models/models_0.js +92 -2
  25. package/dist-es/pagination/ListRulesetsPaginator.js +74 -0
  26. package/dist-es/pagination/index.js +1 -0
  27. package/dist-es/protocols/Aws_restJson1.js +818 -42
  28. package/dist-types/DataBrew.d.ts +37 -0
  29. package/dist-types/DataBrewClient.d.ts +7 -2
  30. package/dist-types/commands/BatchDeleteRecipeVersionCommand.d.ts +1 -1
  31. package/dist-types/commands/CreateDatasetCommand.d.ts +1 -1
  32. package/dist-types/commands/CreateProfileJobCommand.d.ts +1 -1
  33. package/dist-types/commands/CreateProjectCommand.d.ts +1 -1
  34. package/dist-types/commands/CreateRecipeCommand.d.ts +1 -1
  35. package/dist-types/commands/CreateRecipeJobCommand.d.ts +1 -1
  36. package/dist-types/commands/CreateRulesetCommand.d.ts +36 -0
  37. package/dist-types/commands/CreateScheduleCommand.d.ts +1 -1
  38. package/dist-types/commands/DeleteDatasetCommand.d.ts +1 -1
  39. package/dist-types/commands/DeleteJobCommand.d.ts +1 -1
  40. package/dist-types/commands/DeleteProjectCommand.d.ts +1 -1
  41. package/dist-types/commands/DeleteRecipeVersionCommand.d.ts +1 -1
  42. package/dist-types/commands/DeleteRulesetCommand.d.ts +35 -0
  43. package/dist-types/commands/DeleteScheduleCommand.d.ts +1 -1
  44. package/dist-types/commands/DescribeDatasetCommand.d.ts +1 -1
  45. package/dist-types/commands/DescribeJobCommand.d.ts +1 -1
  46. package/dist-types/commands/DescribeJobRunCommand.d.ts +1 -1
  47. package/dist-types/commands/DescribeProjectCommand.d.ts +1 -1
  48. package/dist-types/commands/DescribeRecipeCommand.d.ts +1 -1
  49. package/dist-types/commands/DescribeRulesetCommand.d.ts +35 -0
  50. package/dist-types/commands/DescribeScheduleCommand.d.ts +1 -1
  51. package/dist-types/commands/ListDatasetsCommand.d.ts +1 -1
  52. package/dist-types/commands/ListJobRunsCommand.d.ts +1 -1
  53. package/dist-types/commands/ListJobsCommand.d.ts +1 -1
  54. package/dist-types/commands/ListProjectsCommand.d.ts +1 -1
  55. package/dist-types/commands/ListRecipeVersionsCommand.d.ts +1 -1
  56. package/dist-types/commands/ListRecipesCommand.d.ts +1 -1
  57. package/dist-types/commands/ListRulesetsCommand.d.ts +36 -0
  58. package/dist-types/commands/ListSchedulesCommand.d.ts +1 -1
  59. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  60. package/dist-types/commands/PublishRecipeCommand.d.ts +1 -1
  61. package/dist-types/commands/SendProjectSessionActionCommand.d.ts +1 -1
  62. package/dist-types/commands/StartJobRunCommand.d.ts +1 -1
  63. package/dist-types/commands/StartProjectSessionCommand.d.ts +1 -1
  64. package/dist-types/commands/StopJobRunCommand.d.ts +1 -1
  65. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  66. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  67. package/dist-types/commands/UpdateDatasetCommand.d.ts +1 -1
  68. package/dist-types/commands/UpdateProfileJobCommand.d.ts +1 -1
  69. package/dist-types/commands/UpdateProjectCommand.d.ts +1 -1
  70. package/dist-types/commands/UpdateRecipeCommand.d.ts +1 -1
  71. package/dist-types/commands/UpdateRecipeJobCommand.d.ts +1 -1
  72. package/dist-types/commands/UpdateRulesetCommand.d.ts +35 -0
  73. package/dist-types/commands/UpdateScheduleCommand.d.ts +1 -1
  74. package/dist-types/commands/index.d.ts +5 -0
  75. package/dist-types/models/models_0.d.ts +577 -17
  76. package/dist-types/pagination/ListRulesetsPaginator.d.ts +4 -0
  77. package/dist-types/pagination/index.d.ts +1 -0
  78. package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
  79. package/dist-types/ts3.4/DataBrew.d.ts +25 -0
  80. package/dist-types/ts3.4/DataBrewClient.d.ts +7 -2
  81. package/dist-types/ts3.4/commands/CreateRulesetCommand.d.ts +17 -0
  82. package/dist-types/ts3.4/commands/DeleteRulesetCommand.d.ts +17 -0
  83. package/dist-types/ts3.4/commands/DescribeRulesetCommand.d.ts +17 -0
  84. package/dist-types/ts3.4/commands/ListRulesetsCommand.d.ts +17 -0
  85. package/dist-types/ts3.4/commands/UpdateRulesetCommand.d.ts +17 -0
  86. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  87. package/dist-types/ts3.4/models/models_0.d.ts +267 -1
  88. package/dist-types/ts3.4/pagination/ListRulesetsPaginator.d.ts +4 -0
  89. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  90. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
  91. package/package.json +4 -4
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1DeleteRecipeVersionCommand = exports.deserializeAws_restJson1DeleteProjectCommand = exports.deserializeAws_restJson1DeleteJobCommand = exports.deserializeAws_restJson1DeleteDatasetCommand = exports.deserializeAws_restJson1CreateScheduleCommand = exports.deserializeAws_restJson1CreateRecipeJobCommand = exports.deserializeAws_restJson1CreateRecipeCommand = exports.deserializeAws_restJson1CreateProjectCommand = exports.deserializeAws_restJson1CreateProfileJobCommand = exports.deserializeAws_restJson1CreateDatasetCommand = exports.deserializeAws_restJson1BatchDeleteRecipeVersionCommand = exports.serializeAws_restJson1UpdateScheduleCommand = exports.serializeAws_restJson1UpdateRecipeJobCommand = exports.serializeAws_restJson1UpdateRecipeCommand = exports.serializeAws_restJson1UpdateProjectCommand = exports.serializeAws_restJson1UpdateProfileJobCommand = exports.serializeAws_restJson1UpdateDatasetCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopJobRunCommand = exports.serializeAws_restJson1StartProjectSessionCommand = exports.serializeAws_restJson1StartJobRunCommand = exports.serializeAws_restJson1SendProjectSessionActionCommand = exports.serializeAws_restJson1PublishRecipeCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSchedulesCommand = exports.serializeAws_restJson1ListRecipeVersionsCommand = exports.serializeAws_restJson1ListRecipesCommand = exports.serializeAws_restJson1ListProjectsCommand = exports.serializeAws_restJson1ListJobsCommand = exports.serializeAws_restJson1ListJobRunsCommand = exports.serializeAws_restJson1ListDatasetsCommand = exports.serializeAws_restJson1DescribeScheduleCommand = exports.serializeAws_restJson1DescribeRecipeCommand = exports.serializeAws_restJson1DescribeProjectCommand = exports.serializeAws_restJson1DescribeJobRunCommand = exports.serializeAws_restJson1DescribeJobCommand = exports.serializeAws_restJson1DescribeDatasetCommand = exports.serializeAws_restJson1DeleteScheduleCommand = exports.serializeAws_restJson1DeleteRecipeVersionCommand = exports.serializeAws_restJson1DeleteProjectCommand = exports.serializeAws_restJson1DeleteJobCommand = exports.serializeAws_restJson1DeleteDatasetCommand = exports.serializeAws_restJson1CreateScheduleCommand = exports.serializeAws_restJson1CreateRecipeJobCommand = exports.serializeAws_restJson1CreateRecipeCommand = exports.serializeAws_restJson1CreateProjectCommand = exports.serializeAws_restJson1CreateProfileJobCommand = exports.serializeAws_restJson1CreateDatasetCommand = exports.serializeAws_restJson1BatchDeleteRecipeVersionCommand = void 0;
4
- exports.deserializeAws_restJson1UpdateScheduleCommand = exports.deserializeAws_restJson1UpdateRecipeJobCommand = exports.deserializeAws_restJson1UpdateRecipeCommand = exports.deserializeAws_restJson1UpdateProjectCommand = exports.deserializeAws_restJson1UpdateProfileJobCommand = exports.deserializeAws_restJson1UpdateDatasetCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopJobRunCommand = exports.deserializeAws_restJson1StartProjectSessionCommand = exports.deserializeAws_restJson1StartJobRunCommand = exports.deserializeAws_restJson1SendProjectSessionActionCommand = exports.deserializeAws_restJson1PublishRecipeCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSchedulesCommand = exports.deserializeAws_restJson1ListRecipeVersionsCommand = exports.deserializeAws_restJson1ListRecipesCommand = exports.deserializeAws_restJson1ListProjectsCommand = exports.deserializeAws_restJson1ListJobsCommand = exports.deserializeAws_restJson1ListJobRunsCommand = exports.deserializeAws_restJson1ListDatasetsCommand = exports.deserializeAws_restJson1DescribeScheduleCommand = exports.deserializeAws_restJson1DescribeRecipeCommand = exports.deserializeAws_restJson1DescribeProjectCommand = exports.deserializeAws_restJson1DescribeJobRunCommand = exports.deserializeAws_restJson1DescribeJobCommand = exports.deserializeAws_restJson1DescribeDatasetCommand = exports.deserializeAws_restJson1DeleteScheduleCommand = void 0;
3
+ exports.deserializeAws_restJson1CreateRecipeJobCommand = exports.deserializeAws_restJson1CreateRecipeCommand = exports.deserializeAws_restJson1CreateProjectCommand = exports.deserializeAws_restJson1CreateProfileJobCommand = exports.deserializeAws_restJson1CreateDatasetCommand = exports.deserializeAws_restJson1BatchDeleteRecipeVersionCommand = exports.serializeAws_restJson1UpdateScheduleCommand = exports.serializeAws_restJson1UpdateRulesetCommand = exports.serializeAws_restJson1UpdateRecipeJobCommand = exports.serializeAws_restJson1UpdateRecipeCommand = exports.serializeAws_restJson1UpdateProjectCommand = exports.serializeAws_restJson1UpdateProfileJobCommand = exports.serializeAws_restJson1UpdateDatasetCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopJobRunCommand = exports.serializeAws_restJson1StartProjectSessionCommand = exports.serializeAws_restJson1StartJobRunCommand = exports.serializeAws_restJson1SendProjectSessionActionCommand = exports.serializeAws_restJson1PublishRecipeCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSchedulesCommand = exports.serializeAws_restJson1ListRulesetsCommand = exports.serializeAws_restJson1ListRecipeVersionsCommand = exports.serializeAws_restJson1ListRecipesCommand = exports.serializeAws_restJson1ListProjectsCommand = exports.serializeAws_restJson1ListJobsCommand = exports.serializeAws_restJson1ListJobRunsCommand = exports.serializeAws_restJson1ListDatasetsCommand = exports.serializeAws_restJson1DescribeScheduleCommand = exports.serializeAws_restJson1DescribeRulesetCommand = exports.serializeAws_restJson1DescribeRecipeCommand = exports.serializeAws_restJson1DescribeProjectCommand = exports.serializeAws_restJson1DescribeJobRunCommand = exports.serializeAws_restJson1DescribeJobCommand = exports.serializeAws_restJson1DescribeDatasetCommand = exports.serializeAws_restJson1DeleteScheduleCommand = exports.serializeAws_restJson1DeleteRulesetCommand = exports.serializeAws_restJson1DeleteRecipeVersionCommand = exports.serializeAws_restJson1DeleteProjectCommand = exports.serializeAws_restJson1DeleteJobCommand = exports.serializeAws_restJson1DeleteDatasetCommand = exports.serializeAws_restJson1CreateScheduleCommand = exports.serializeAws_restJson1CreateRulesetCommand = exports.serializeAws_restJson1CreateRecipeJobCommand = exports.serializeAws_restJson1CreateRecipeCommand = exports.serializeAws_restJson1CreateProjectCommand = exports.serializeAws_restJson1CreateProfileJobCommand = exports.serializeAws_restJson1CreateDatasetCommand = exports.serializeAws_restJson1BatchDeleteRecipeVersionCommand = void 0;
4
+ exports.deserializeAws_restJson1UpdateScheduleCommand = exports.deserializeAws_restJson1UpdateRulesetCommand = exports.deserializeAws_restJson1UpdateRecipeJobCommand = exports.deserializeAws_restJson1UpdateRecipeCommand = exports.deserializeAws_restJson1UpdateProjectCommand = exports.deserializeAws_restJson1UpdateProfileJobCommand = exports.deserializeAws_restJson1UpdateDatasetCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopJobRunCommand = exports.deserializeAws_restJson1StartProjectSessionCommand = exports.deserializeAws_restJson1StartJobRunCommand = exports.deserializeAws_restJson1SendProjectSessionActionCommand = exports.deserializeAws_restJson1PublishRecipeCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSchedulesCommand = exports.deserializeAws_restJson1ListRulesetsCommand = exports.deserializeAws_restJson1ListRecipeVersionsCommand = exports.deserializeAws_restJson1ListRecipesCommand = exports.deserializeAws_restJson1ListProjectsCommand = exports.deserializeAws_restJson1ListJobsCommand = exports.deserializeAws_restJson1ListJobRunsCommand = exports.deserializeAws_restJson1ListDatasetsCommand = exports.deserializeAws_restJson1DescribeScheduleCommand = exports.deserializeAws_restJson1DescribeRulesetCommand = exports.deserializeAws_restJson1DescribeRecipeCommand = exports.deserializeAws_restJson1DescribeProjectCommand = exports.deserializeAws_restJson1DescribeJobRunCommand = exports.deserializeAws_restJson1DescribeJobCommand = exports.deserializeAws_restJson1DescribeDatasetCommand = exports.deserializeAws_restJson1DeleteScheduleCommand = exports.deserializeAws_restJson1DeleteRulesetCommand = exports.deserializeAws_restJson1DeleteRecipeVersionCommand = exports.deserializeAws_restJson1DeleteProjectCommand = exports.deserializeAws_restJson1DeleteJobCommand = exports.deserializeAws_restJson1DeleteDatasetCommand = exports.deserializeAws_restJson1CreateScheduleCommand = exports.deserializeAws_restJson1CreateRulesetCommand = void 0;
5
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const serializeAws_restJson1BatchDeleteRecipeVersionCommand = async (input, context) => {
@@ -100,6 +100,10 @@ const serializeAws_restJson1CreateProfileJobCommand = async (input, context) =>
100
100
  ...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
101
101
  ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
102
102
  ...(input.Timeout !== undefined && input.Timeout !== null && { Timeout: input.Timeout }),
103
+ ...(input.ValidationConfigurations !== undefined &&
104
+ input.ValidationConfigurations !== null && {
105
+ ValidationConfigurations: serializeAws_restJson1ValidationConfigurationList(input.ValidationConfigurations, context),
106
+ }),
103
107
  });
104
108
  return new protocol_http_1.HttpRequest({
105
109
  protocol,
@@ -212,6 +216,32 @@ const serializeAws_restJson1CreateRecipeJobCommand = async (input, context) => {
212
216
  });
213
217
  };
214
218
  exports.serializeAws_restJson1CreateRecipeJobCommand = serializeAws_restJson1CreateRecipeJobCommand;
219
+ const serializeAws_restJson1CreateRulesetCommand = async (input, context) => {
220
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
221
+ const headers = {
222
+ "content-type": "application/json",
223
+ };
224
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets";
225
+ let body;
226
+ body = JSON.stringify({
227
+ ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
228
+ ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
229
+ ...(input.Rules !== undefined &&
230
+ input.Rules !== null && { Rules: serializeAws_restJson1RuleList(input.Rules, context) }),
231
+ ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
232
+ ...(input.TargetArn !== undefined && input.TargetArn !== null && { TargetArn: input.TargetArn }),
233
+ });
234
+ return new protocol_http_1.HttpRequest({
235
+ protocol,
236
+ hostname,
237
+ port,
238
+ method: "POST",
239
+ headers,
240
+ path: resolvedPath,
241
+ body,
242
+ });
243
+ };
244
+ exports.serializeAws_restJson1CreateRulesetCommand = serializeAws_restJson1CreateRulesetCommand;
215
245
  const serializeAws_restJson1CreateScheduleCommand = async (input, context) => {
216
246
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
217
247
  const headers = {
@@ -353,6 +383,32 @@ const serializeAws_restJson1DeleteRecipeVersionCommand = async (input, context)
353
383
  });
354
384
  };
355
385
  exports.serializeAws_restJson1DeleteRecipeVersionCommand = serializeAws_restJson1DeleteRecipeVersionCommand;
386
+ const serializeAws_restJson1DeleteRulesetCommand = async (input, context) => {
387
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
388
+ const headers = {};
389
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets/{Name}";
390
+ if (input.Name !== undefined) {
391
+ const labelValue = input.Name;
392
+ if (labelValue.length <= 0) {
393
+ throw new Error("Empty value provided for input HTTP label: Name.");
394
+ }
395
+ resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
396
+ }
397
+ else {
398
+ throw new Error("No value provided for input HTTP label: Name.");
399
+ }
400
+ let body;
401
+ return new protocol_http_1.HttpRequest({
402
+ protocol,
403
+ hostname,
404
+ port,
405
+ method: "DELETE",
406
+ headers,
407
+ path: resolvedPath,
408
+ body,
409
+ });
410
+ };
411
+ exports.serializeAws_restJson1DeleteRulesetCommand = serializeAws_restJson1DeleteRulesetCommand;
356
412
  const serializeAws_restJson1DeleteScheduleCommand = async (input, context) => {
357
413
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
358
414
  const headers = {};
@@ -523,6 +579,32 @@ const serializeAws_restJson1DescribeRecipeCommand = async (input, context) => {
523
579
  });
524
580
  };
525
581
  exports.serializeAws_restJson1DescribeRecipeCommand = serializeAws_restJson1DescribeRecipeCommand;
582
+ const serializeAws_restJson1DescribeRulesetCommand = async (input, context) => {
583
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
584
+ const headers = {};
585
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets/{Name}";
586
+ if (input.Name !== undefined) {
587
+ const labelValue = input.Name;
588
+ if (labelValue.length <= 0) {
589
+ throw new Error("Empty value provided for input HTTP label: Name.");
590
+ }
591
+ resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
592
+ }
593
+ else {
594
+ throw new Error("No value provided for input HTTP label: Name.");
595
+ }
596
+ let body;
597
+ return new protocol_http_1.HttpRequest({
598
+ protocol,
599
+ hostname,
600
+ port,
601
+ method: "GET",
602
+ headers,
603
+ path: resolvedPath,
604
+ body,
605
+ });
606
+ };
607
+ exports.serializeAws_restJson1DescribeRulesetCommand = serializeAws_restJson1DescribeRulesetCommand;
526
608
  const serializeAws_restJson1DescribeScheduleCommand = async (input, context) => {
527
609
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
528
610
  const headers = {};
@@ -689,6 +771,28 @@ const serializeAws_restJson1ListRecipeVersionsCommand = async (input, context) =
689
771
  });
690
772
  };
691
773
  exports.serializeAws_restJson1ListRecipeVersionsCommand = serializeAws_restJson1ListRecipeVersionsCommand;
774
+ const serializeAws_restJson1ListRulesetsCommand = async (input, context) => {
775
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
776
+ const headers = {};
777
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets";
778
+ const query = {
779
+ ...(input.TargetArn !== undefined && { targetArn: input.TargetArn }),
780
+ ...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
781
+ ...(input.NextToken !== undefined && { nextToken: input.NextToken }),
782
+ };
783
+ let body;
784
+ return new protocol_http_1.HttpRequest({
785
+ protocol,
786
+ hostname,
787
+ port,
788
+ method: "GET",
789
+ headers,
790
+ path: resolvedPath,
791
+ query,
792
+ body,
793
+ });
794
+ };
795
+ exports.serializeAws_restJson1ListRulesetsCommand = serializeAws_restJson1ListRulesetsCommand;
692
796
  const serializeAws_restJson1ListSchedulesCommand = async (input, context) => {
693
797
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
694
798
  const headers = {};
@@ -1037,6 +1141,10 @@ const serializeAws_restJson1UpdateProfileJobCommand = async (input, context) =>
1037
1141
  }),
1038
1142
  ...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
1039
1143
  ...(input.Timeout !== undefined && input.Timeout !== null && { Timeout: input.Timeout }),
1144
+ ...(input.ValidationConfigurations !== undefined &&
1145
+ input.ValidationConfigurations !== null && {
1146
+ ValidationConfigurations: serializeAws_restJson1ValidationConfigurationList(input.ValidationConfigurations, context),
1147
+ }),
1040
1148
  });
1041
1149
  return new protocol_http_1.HttpRequest({
1042
1150
  protocol,
@@ -1165,6 +1273,39 @@ const serializeAws_restJson1UpdateRecipeJobCommand = async (input, context) => {
1165
1273
  });
1166
1274
  };
1167
1275
  exports.serializeAws_restJson1UpdateRecipeJobCommand = serializeAws_restJson1UpdateRecipeJobCommand;
1276
+ const serializeAws_restJson1UpdateRulesetCommand = async (input, context) => {
1277
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1278
+ const headers = {
1279
+ "content-type": "application/json",
1280
+ };
1281
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets/{Name}";
1282
+ if (input.Name !== undefined) {
1283
+ const labelValue = input.Name;
1284
+ if (labelValue.length <= 0) {
1285
+ throw new Error("Empty value provided for input HTTP label: Name.");
1286
+ }
1287
+ resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1288
+ }
1289
+ else {
1290
+ throw new Error("No value provided for input HTTP label: Name.");
1291
+ }
1292
+ let body;
1293
+ body = JSON.stringify({
1294
+ ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
1295
+ ...(input.Rules !== undefined &&
1296
+ input.Rules !== null && { Rules: serializeAws_restJson1RuleList(input.Rules, context) }),
1297
+ });
1298
+ return new protocol_http_1.HttpRequest({
1299
+ protocol,
1300
+ hostname,
1301
+ port,
1302
+ method: "PUT",
1303
+ headers,
1304
+ path: resolvedPath,
1305
+ body,
1306
+ });
1307
+ };
1308
+ exports.serializeAws_restJson1UpdateRulesetCommand = serializeAws_restJson1UpdateRulesetCommand;
1168
1309
  const serializeAws_restJson1UpdateScheduleCommand = async (input, context) => {
1169
1310
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1170
1311
  const headers = {
@@ -1635,6 +1776,70 @@ const deserializeAws_restJson1CreateRecipeJobCommandError = async (output, conte
1635
1776
  delete response.Message;
1636
1777
  return Promise.reject(Object.assign(new Error(message), response));
1637
1778
  };
1779
+ const deserializeAws_restJson1CreateRulesetCommand = async (output, context) => {
1780
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1781
+ return deserializeAws_restJson1CreateRulesetCommandError(output, context);
1782
+ }
1783
+ const contents = {
1784
+ $metadata: deserializeMetadata(output),
1785
+ Name: undefined,
1786
+ };
1787
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1788
+ if (data.Name !== undefined && data.Name !== null) {
1789
+ contents.Name = smithy_client_1.expectString(data.Name);
1790
+ }
1791
+ return Promise.resolve(contents);
1792
+ };
1793
+ exports.deserializeAws_restJson1CreateRulesetCommand = deserializeAws_restJson1CreateRulesetCommand;
1794
+ const deserializeAws_restJson1CreateRulesetCommandError = async (output, context) => {
1795
+ const parsedOutput = {
1796
+ ...output,
1797
+ body: await parseBody(output.body, context),
1798
+ };
1799
+ let response;
1800
+ let errorCode = "UnknownError";
1801
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1802
+ switch (errorCode) {
1803
+ case "ConflictException":
1804
+ case "com.amazonaws.databrew#ConflictException":
1805
+ response = {
1806
+ ...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
1807
+ name: errorCode,
1808
+ $metadata: deserializeMetadata(output),
1809
+ };
1810
+ break;
1811
+ case "ServiceQuotaExceededException":
1812
+ case "com.amazonaws.databrew#ServiceQuotaExceededException":
1813
+ response = {
1814
+ ...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
1815
+ name: errorCode,
1816
+ $metadata: deserializeMetadata(output),
1817
+ };
1818
+ break;
1819
+ case "ValidationException":
1820
+ case "com.amazonaws.databrew#ValidationException":
1821
+ response = {
1822
+ ...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
1823
+ name: errorCode,
1824
+ $metadata: deserializeMetadata(output),
1825
+ };
1826
+ break;
1827
+ default:
1828
+ const parsedBody = parsedOutput.body;
1829
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1830
+ response = {
1831
+ ...parsedBody,
1832
+ name: `${errorCode}`,
1833
+ message: parsedBody.message || parsedBody.Message || errorCode,
1834
+ $fault: "client",
1835
+ $metadata: deserializeMetadata(output),
1836
+ };
1837
+ }
1838
+ const message = response.message || response.Message || errorCode;
1839
+ response.message = message;
1840
+ delete response.Message;
1841
+ return Promise.reject(Object.assign(new Error(message), response));
1842
+ };
1638
1843
  const deserializeAws_restJson1CreateScheduleCommand = async (output, context) => {
1639
1844
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1640
1845
  return deserializeAws_restJson1CreateScheduleCommandError(output, context);
@@ -1959,6 +2164,70 @@ const deserializeAws_restJson1DeleteRecipeVersionCommandError = async (output, c
1959
2164
  delete response.Message;
1960
2165
  return Promise.reject(Object.assign(new Error(message), response));
1961
2166
  };
2167
+ const deserializeAws_restJson1DeleteRulesetCommand = async (output, context) => {
2168
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2169
+ return deserializeAws_restJson1DeleteRulesetCommandError(output, context);
2170
+ }
2171
+ const contents = {
2172
+ $metadata: deserializeMetadata(output),
2173
+ Name: undefined,
2174
+ };
2175
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2176
+ if (data.Name !== undefined && data.Name !== null) {
2177
+ contents.Name = smithy_client_1.expectString(data.Name);
2178
+ }
2179
+ return Promise.resolve(contents);
2180
+ };
2181
+ exports.deserializeAws_restJson1DeleteRulesetCommand = deserializeAws_restJson1DeleteRulesetCommand;
2182
+ const deserializeAws_restJson1DeleteRulesetCommandError = async (output, context) => {
2183
+ const parsedOutput = {
2184
+ ...output,
2185
+ body: await parseBody(output.body, context),
2186
+ };
2187
+ let response;
2188
+ let errorCode = "UnknownError";
2189
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2190
+ switch (errorCode) {
2191
+ case "ConflictException":
2192
+ case "com.amazonaws.databrew#ConflictException":
2193
+ response = {
2194
+ ...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
2195
+ name: errorCode,
2196
+ $metadata: deserializeMetadata(output),
2197
+ };
2198
+ break;
2199
+ case "ResourceNotFoundException":
2200
+ case "com.amazonaws.databrew#ResourceNotFoundException":
2201
+ response = {
2202
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
2203
+ name: errorCode,
2204
+ $metadata: deserializeMetadata(output),
2205
+ };
2206
+ break;
2207
+ case "ValidationException":
2208
+ case "com.amazonaws.databrew#ValidationException":
2209
+ response = {
2210
+ ...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
2211
+ name: errorCode,
2212
+ $metadata: deserializeMetadata(output),
2213
+ };
2214
+ break;
2215
+ default:
2216
+ const parsedBody = parsedOutput.body;
2217
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2218
+ response = {
2219
+ ...parsedBody,
2220
+ name: `${errorCode}`,
2221
+ message: parsedBody.message || parsedBody.Message || errorCode,
2222
+ $fault: "client",
2223
+ $metadata: deserializeMetadata(output),
2224
+ };
2225
+ }
2226
+ const message = response.message || response.Message || errorCode;
2227
+ response.message = message;
2228
+ delete response.Message;
2229
+ return Promise.reject(Object.assign(new Error(message), response));
2230
+ };
1962
2231
  const deserializeAws_restJson1DeleteScheduleCommand = async (output, context) => {
1963
2232
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1964
2233
  return deserializeAws_restJson1DeleteScheduleCommandError(output, context);
@@ -2144,6 +2413,7 @@ const deserializeAws_restJson1DescribeJobCommand = async (output, context) => {
2144
2413
  Tags: undefined,
2145
2414
  Timeout: undefined,
2146
2415
  Type: undefined,
2416
+ ValidationConfigurations: undefined,
2147
2417
  };
2148
2418
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2149
2419
  if (data.CreateDate !== undefined && data.CreateDate !== null) {
@@ -2215,6 +2485,9 @@ const deserializeAws_restJson1DescribeJobCommand = async (output, context) => {
2215
2485
  if (data.Type !== undefined && data.Type !== null) {
2216
2486
  contents.Type = smithy_client_1.expectString(data.Type);
2217
2487
  }
2488
+ if (data.ValidationConfigurations !== undefined && data.ValidationConfigurations !== null) {
2489
+ contents.ValidationConfigurations = deserializeAws_restJson1ValidationConfigurationList(data.ValidationConfigurations, context);
2490
+ }
2218
2491
  return Promise.resolve(contents);
2219
2492
  };
2220
2493
  exports.deserializeAws_restJson1DescribeJobCommand = deserializeAws_restJson1DescribeJobCommand;
@@ -2283,6 +2556,7 @@ const deserializeAws_restJson1DescribeJobRunCommand = async (output, context) =>
2283
2556
  StartedBy: undefined,
2284
2557
  StartedOn: undefined,
2285
2558
  State: undefined,
2559
+ ValidationConfigurations: undefined,
2286
2560
  };
2287
2561
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2288
2562
  if (data.Attempt !== undefined && data.Attempt !== null) {
@@ -2339,6 +2613,9 @@ const deserializeAws_restJson1DescribeJobRunCommand = async (output, context) =>
2339
2613
  if (data.State !== undefined && data.State !== null) {
2340
2614
  contents.State = smithy_client_1.expectString(data.State);
2341
2615
  }
2616
+ if (data.ValidationConfigurations !== undefined && data.ValidationConfigurations !== null) {
2617
+ contents.ValidationConfigurations = deserializeAws_restJson1ValidationConfigurationList(data.ValidationConfigurations, context);
2618
+ }
2342
2619
  return Promise.resolve(contents);
2343
2620
  };
2344
2621
  exports.deserializeAws_restJson1DescribeJobRunCommand = deserializeAws_restJson1DescribeJobRunCommand;
@@ -2553,8 +2830,100 @@ const deserializeAws_restJson1DescribeRecipeCommand = async (output, context) =>
2553
2830
  }
2554
2831
  return Promise.resolve(contents);
2555
2832
  };
2556
- exports.deserializeAws_restJson1DescribeRecipeCommand = deserializeAws_restJson1DescribeRecipeCommand;
2557
- const deserializeAws_restJson1DescribeRecipeCommandError = async (output, context) => {
2833
+ exports.deserializeAws_restJson1DescribeRecipeCommand = deserializeAws_restJson1DescribeRecipeCommand;
2834
+ const deserializeAws_restJson1DescribeRecipeCommandError = async (output, context) => {
2835
+ const parsedOutput = {
2836
+ ...output,
2837
+ body: await parseBody(output.body, context),
2838
+ };
2839
+ let response;
2840
+ let errorCode = "UnknownError";
2841
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2842
+ switch (errorCode) {
2843
+ case "ResourceNotFoundException":
2844
+ case "com.amazonaws.databrew#ResourceNotFoundException":
2845
+ response = {
2846
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
2847
+ name: errorCode,
2848
+ $metadata: deserializeMetadata(output),
2849
+ };
2850
+ break;
2851
+ case "ValidationException":
2852
+ case "com.amazonaws.databrew#ValidationException":
2853
+ response = {
2854
+ ...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
2855
+ name: errorCode,
2856
+ $metadata: deserializeMetadata(output),
2857
+ };
2858
+ break;
2859
+ default:
2860
+ const parsedBody = parsedOutput.body;
2861
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2862
+ response = {
2863
+ ...parsedBody,
2864
+ name: `${errorCode}`,
2865
+ message: parsedBody.message || parsedBody.Message || errorCode,
2866
+ $fault: "client",
2867
+ $metadata: deserializeMetadata(output),
2868
+ };
2869
+ }
2870
+ const message = response.message || response.Message || errorCode;
2871
+ response.message = message;
2872
+ delete response.Message;
2873
+ return Promise.reject(Object.assign(new Error(message), response));
2874
+ };
2875
+ const deserializeAws_restJson1DescribeRulesetCommand = async (output, context) => {
2876
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2877
+ return deserializeAws_restJson1DescribeRulesetCommandError(output, context);
2878
+ }
2879
+ const contents = {
2880
+ $metadata: deserializeMetadata(output),
2881
+ CreateDate: undefined,
2882
+ CreatedBy: undefined,
2883
+ Description: undefined,
2884
+ LastModifiedBy: undefined,
2885
+ LastModifiedDate: undefined,
2886
+ Name: undefined,
2887
+ ResourceArn: undefined,
2888
+ Rules: undefined,
2889
+ Tags: undefined,
2890
+ TargetArn: undefined,
2891
+ };
2892
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2893
+ if (data.CreateDate !== undefined && data.CreateDate !== null) {
2894
+ contents.CreateDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreateDate)));
2895
+ }
2896
+ if (data.CreatedBy !== undefined && data.CreatedBy !== null) {
2897
+ contents.CreatedBy = smithy_client_1.expectString(data.CreatedBy);
2898
+ }
2899
+ if (data.Description !== undefined && data.Description !== null) {
2900
+ contents.Description = smithy_client_1.expectString(data.Description);
2901
+ }
2902
+ if (data.LastModifiedBy !== undefined && data.LastModifiedBy !== null) {
2903
+ contents.LastModifiedBy = smithy_client_1.expectString(data.LastModifiedBy);
2904
+ }
2905
+ if (data.LastModifiedDate !== undefined && data.LastModifiedDate !== null) {
2906
+ contents.LastModifiedDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModifiedDate)));
2907
+ }
2908
+ if (data.Name !== undefined && data.Name !== null) {
2909
+ contents.Name = smithy_client_1.expectString(data.Name);
2910
+ }
2911
+ if (data.ResourceArn !== undefined && data.ResourceArn !== null) {
2912
+ contents.ResourceArn = smithy_client_1.expectString(data.ResourceArn);
2913
+ }
2914
+ if (data.Rules !== undefined && data.Rules !== null) {
2915
+ contents.Rules = deserializeAws_restJson1RuleList(data.Rules, context);
2916
+ }
2917
+ if (data.Tags !== undefined && data.Tags !== null) {
2918
+ contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
2919
+ }
2920
+ if (data.TargetArn !== undefined && data.TargetArn !== null) {
2921
+ contents.TargetArn = smithy_client_1.expectString(data.TargetArn);
2922
+ }
2923
+ return Promise.resolve(contents);
2924
+ };
2925
+ exports.deserializeAws_restJson1DescribeRulesetCommand = deserializeAws_restJson1DescribeRulesetCommand;
2926
+ const deserializeAws_restJson1DescribeRulesetCommandError = async (output, context) => {
2558
2927
  const parsedOutput = {
2559
2928
  ...output,
2560
2929
  body: await parseBody(output.body, context),
@@ -3003,6 +3372,66 @@ const deserializeAws_restJson1ListRecipeVersionsCommandError = async (output, co
3003
3372
  delete response.Message;
3004
3373
  return Promise.reject(Object.assign(new Error(message), response));
3005
3374
  };
3375
+ const deserializeAws_restJson1ListRulesetsCommand = async (output, context) => {
3376
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3377
+ return deserializeAws_restJson1ListRulesetsCommandError(output, context);
3378
+ }
3379
+ const contents = {
3380
+ $metadata: deserializeMetadata(output),
3381
+ NextToken: undefined,
3382
+ Rulesets: undefined,
3383
+ };
3384
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3385
+ if (data.NextToken !== undefined && data.NextToken !== null) {
3386
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
3387
+ }
3388
+ if (data.Rulesets !== undefined && data.Rulesets !== null) {
3389
+ contents.Rulesets = deserializeAws_restJson1RulesetItemList(data.Rulesets, context);
3390
+ }
3391
+ return Promise.resolve(contents);
3392
+ };
3393
+ exports.deserializeAws_restJson1ListRulesetsCommand = deserializeAws_restJson1ListRulesetsCommand;
3394
+ const deserializeAws_restJson1ListRulesetsCommandError = async (output, context) => {
3395
+ const parsedOutput = {
3396
+ ...output,
3397
+ body: await parseBody(output.body, context),
3398
+ };
3399
+ let response;
3400
+ let errorCode = "UnknownError";
3401
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3402
+ switch (errorCode) {
3403
+ case "ResourceNotFoundException":
3404
+ case "com.amazonaws.databrew#ResourceNotFoundException":
3405
+ response = {
3406
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
3407
+ name: errorCode,
3408
+ $metadata: deserializeMetadata(output),
3409
+ };
3410
+ break;
3411
+ case "ValidationException":
3412
+ case "com.amazonaws.databrew#ValidationException":
3413
+ response = {
3414
+ ...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
3415
+ name: errorCode,
3416
+ $metadata: deserializeMetadata(output),
3417
+ };
3418
+ break;
3419
+ default:
3420
+ const parsedBody = parsedOutput.body;
3421
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
3422
+ response = {
3423
+ ...parsedBody,
3424
+ name: `${errorCode}`,
3425
+ message: parsedBody.message || parsedBody.Message || errorCode,
3426
+ $fault: "client",
3427
+ $metadata: deserializeMetadata(output),
3428
+ };
3429
+ }
3430
+ const message = response.message || response.Message || errorCode;
3431
+ response.message = message;
3432
+ delete response.Message;
3433
+ return Promise.reject(Object.assign(new Error(message), response));
3434
+ };
3006
3435
  const deserializeAws_restJson1ListSchedulesCommand = async (output, context) => {
3007
3436
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3008
3437
  return deserializeAws_restJson1ListSchedulesCommandError(output, context);
@@ -3887,6 +4316,62 @@ const deserializeAws_restJson1UpdateRecipeJobCommandError = async (output, conte
3887
4316
  delete response.Message;
3888
4317
  return Promise.reject(Object.assign(new Error(message), response));
3889
4318
  };
4319
+ const deserializeAws_restJson1UpdateRulesetCommand = async (output, context) => {
4320
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4321
+ return deserializeAws_restJson1UpdateRulesetCommandError(output, context);
4322
+ }
4323
+ const contents = {
4324
+ $metadata: deserializeMetadata(output),
4325
+ Name: undefined,
4326
+ };
4327
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4328
+ if (data.Name !== undefined && data.Name !== null) {
4329
+ contents.Name = smithy_client_1.expectString(data.Name);
4330
+ }
4331
+ return Promise.resolve(contents);
4332
+ };
4333
+ exports.deserializeAws_restJson1UpdateRulesetCommand = deserializeAws_restJson1UpdateRulesetCommand;
4334
+ const deserializeAws_restJson1UpdateRulesetCommandError = async (output, context) => {
4335
+ const parsedOutput = {
4336
+ ...output,
4337
+ body: await parseBody(output.body, context),
4338
+ };
4339
+ let response;
4340
+ let errorCode = "UnknownError";
4341
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4342
+ switch (errorCode) {
4343
+ case "ResourceNotFoundException":
4344
+ case "com.amazonaws.databrew#ResourceNotFoundException":
4345
+ response = {
4346
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
4347
+ name: errorCode,
4348
+ $metadata: deserializeMetadata(output),
4349
+ };
4350
+ break;
4351
+ case "ValidationException":
4352
+ case "com.amazonaws.databrew#ValidationException":
4353
+ response = {
4354
+ ...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
4355
+ name: errorCode,
4356
+ $metadata: deserializeMetadata(output),
4357
+ };
4358
+ break;
4359
+ default:
4360
+ const parsedBody = parsedOutput.body;
4361
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
4362
+ response = {
4363
+ ...parsedBody,
4364
+ name: `${errorCode}`,
4365
+ message: parsedBody.message || parsedBody.Message || errorCode,
4366
+ $fault: "client",
4367
+ $metadata: deserializeMetadata(output),
4368
+ };
4369
+ }
4370
+ const message = response.message || response.Message || errorCode;
4371
+ response.message = message;
4372
+ delete response.Message;
4373
+ return Promise.reject(Object.assign(new Error(message), response));
4374
+ };
3890
4375
  const deserializeAws_restJson1UpdateScheduleCommand = async (output, context) => {
3891
4376
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3892
4377
  return deserializeAws_restJson1UpdateScheduleCommandError(output, context);
@@ -4029,6 +4514,22 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
4029
4514
  }
4030
4515
  return contents;
4031
4516
  };
4517
+ const serializeAws_restJson1AllowedStatisticList = (input, context) => {
4518
+ return input
4519
+ .filter((e) => e != null)
4520
+ .map((entry) => {
4521
+ if (entry === null) {
4522
+ return null;
4523
+ }
4524
+ return serializeAws_restJson1AllowedStatistics(entry, context);
4525
+ });
4526
+ };
4527
+ const serializeAws_restJson1AllowedStatistics = (input, context) => {
4528
+ return {
4529
+ ...(input.Statistics !== undefined &&
4530
+ input.Statistics !== null && { Statistics: serializeAws_restJson1StatisticList(input.Statistics, context) }),
4531
+ };
4532
+ };
4032
4533
  const serializeAws_restJson1ColumnNameList = (input, context) => {
4033
4534
  return input
4034
4535
  .filter((e) => e != null)
@@ -4109,6 +4610,7 @@ const serializeAws_restJson1DatabaseInputDefinition = (input, context) => {
4109
4610
  input.DatabaseTableName !== null && { DatabaseTableName: input.DatabaseTableName }),
4110
4611
  ...(input.GlueConnectionName !== undefined &&
4111
4612
  input.GlueConnectionName !== null && { GlueConnectionName: input.GlueConnectionName }),
4613
+ ...(input.QueryString !== undefined && input.QueryString !== null && { QueryString: input.QueryString }),
4112
4614
  ...(input.TempDirectory !== undefined &&
4113
4615
  input.TempDirectory !== null && {
4114
4616
  TempDirectory: serializeAws_restJson1S3Location(input.TempDirectory, context),
@@ -4202,6 +4704,26 @@ const serializeAws_restJson1DatetimeOptions = (input, context) => {
4202
4704
  input.TimezoneOffset !== null && { TimezoneOffset: input.TimezoneOffset }),
4203
4705
  };
4204
4706
  };
4707
+ const serializeAws_restJson1EntityDetectorConfiguration = (input, context) => {
4708
+ return {
4709
+ ...(input.AllowedStatistics !== undefined &&
4710
+ input.AllowedStatistics !== null && {
4711
+ AllowedStatistics: serializeAws_restJson1AllowedStatisticList(input.AllowedStatistics, context),
4712
+ }),
4713
+ ...(input.EntityTypes !== undefined &&
4714
+ input.EntityTypes !== null && { EntityTypes: serializeAws_restJson1EntityTypeList(input.EntityTypes, context) }),
4715
+ };
4716
+ };
4717
+ const serializeAws_restJson1EntityTypeList = (input, context) => {
4718
+ return input
4719
+ .filter((e) => e != null)
4720
+ .map((entry) => {
4721
+ if (entry === null) {
4722
+ return null;
4723
+ }
4724
+ return entry;
4725
+ });
4726
+ };
4205
4727
  const serializeAws_restJson1ExcelOptions = (input, context) => {
4206
4728
  return {
4207
4729
  ...(input.HeaderRow !== undefined && input.HeaderRow !== null && { HeaderRow: input.HeaderRow }),
@@ -4256,6 +4778,8 @@ const serializeAws_restJson1Input = (input, context) => {
4256
4778
  input.DatabaseInputDefinition !== null && {
4257
4779
  DatabaseInputDefinition: serializeAws_restJson1DatabaseInputDefinition(input.DatabaseInputDefinition, context),
4258
4780
  }),
4781
+ ...(input.Metadata !== undefined &&
4782
+ input.Metadata !== null && { Metadata: serializeAws_restJson1Metadata(input.Metadata, context) }),
4259
4783
  ...(input.S3InputDefinition !== undefined &&
4260
4784
  input.S3InputDefinition !== null && {
4261
4785
  S3InputDefinition: serializeAws_restJson1S3Location(input.S3InputDefinition, context),
@@ -4283,6 +4807,11 @@ const serializeAws_restJson1JsonOptions = (input, context) => {
4283
4807
  ...(input.MultiLine !== undefined && input.MultiLine !== null && { MultiLine: input.MultiLine }),
4284
4808
  };
4285
4809
  };
4810
+ const serializeAws_restJson1Metadata = (input, context) => {
4811
+ return {
4812
+ ...(input.SourceArn !== undefined && input.SourceArn !== null && { SourceArn: input.SourceArn }),
4813
+ };
4814
+ };
4286
4815
  const serializeAws_restJson1Output = (input, context) => {
4287
4816
  return {
4288
4817
  ...(input.CompressionFormat !== undefined &&
@@ -4361,6 +4890,10 @@ const serializeAws_restJson1ProfileConfiguration = (input, context) => {
4361
4890
  input.DatasetStatisticsConfiguration !== null && {
4362
4891
  DatasetStatisticsConfiguration: serializeAws_restJson1StatisticsConfiguration(input.DatasetStatisticsConfiguration, context),
4363
4892
  }),
4893
+ ...(input.EntityDetectorConfiguration !== undefined &&
4894
+ input.EntityDetectorConfiguration !== null && {
4895
+ EntityDetectorConfiguration: serializeAws_restJson1EntityDetectorConfiguration(input.EntityDetectorConfiguration, context),
4896
+ }),
4364
4897
  ...(input.ProfileColumns !== undefined &&
4365
4898
  input.ProfileColumns !== null && {
4366
4899
  ProfileColumns: serializeAws_restJson1ColumnSelectorList(input.ProfileColumns, context),
@@ -4410,6 +4943,34 @@ const serializeAws_restJson1RecipeVersionList = (input, context) => {
4410
4943
  return entry;
4411
4944
  });
4412
4945
  };
4946
+ const serializeAws_restJson1Rule = (input, context) => {
4947
+ return {
4948
+ ...(input.CheckExpression !== undefined &&
4949
+ input.CheckExpression !== null && { CheckExpression: input.CheckExpression }),
4950
+ ...(input.ColumnSelectors !== undefined &&
4951
+ input.ColumnSelectors !== null && {
4952
+ ColumnSelectors: serializeAws_restJson1ColumnSelectorList(input.ColumnSelectors, context),
4953
+ }),
4954
+ ...(input.Disabled !== undefined && input.Disabled !== null && { Disabled: input.Disabled }),
4955
+ ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4956
+ ...(input.SubstitutionMap !== undefined &&
4957
+ input.SubstitutionMap !== null && {
4958
+ SubstitutionMap: serializeAws_restJson1ValuesMap(input.SubstitutionMap, context),
4959
+ }),
4960
+ ...(input.Threshold !== undefined &&
4961
+ input.Threshold !== null && { Threshold: serializeAws_restJson1Threshold(input.Threshold, context) }),
4962
+ };
4963
+ };
4964
+ const serializeAws_restJson1RuleList = (input, context) => {
4965
+ return input
4966
+ .filter((e) => e != null)
4967
+ .map((entry) => {
4968
+ if (entry === null) {
4969
+ return null;
4970
+ }
4971
+ return serializeAws_restJson1Rule(entry, context);
4972
+ });
4973
+ };
4413
4974
  const serializeAws_restJson1S3Location = (input, context) => {
4414
4975
  return {
4415
4976
  ...(input.Bucket !== undefined && input.Bucket !== null && { Bucket: input.Bucket }),
@@ -4496,6 +5057,30 @@ const serializeAws_restJson1TagMap = (input, context) => {
4496
5057
  };
4497
5058
  }, {});
4498
5059
  };
5060
+ const serializeAws_restJson1Threshold = (input, context) => {
5061
+ return {
5062
+ ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
5063
+ ...(input.Unit !== undefined && input.Unit !== null && { Unit: input.Unit }),
5064
+ ...(input.Value !== undefined && input.Value !== null && { Value: smithy_client_1.serializeFloat(input.Value) }),
5065
+ };
5066
+ };
5067
+ const serializeAws_restJson1ValidationConfiguration = (input, context) => {
5068
+ return {
5069
+ ...(input.RulesetArn !== undefined && input.RulesetArn !== null && { RulesetArn: input.RulesetArn }),
5070
+ ...(input.ValidationMode !== undefined &&
5071
+ input.ValidationMode !== null && { ValidationMode: input.ValidationMode }),
5072
+ };
5073
+ };
5074
+ const serializeAws_restJson1ValidationConfigurationList = (input, context) => {
5075
+ return input
5076
+ .filter((e) => e != null)
5077
+ .map((entry) => {
5078
+ if (entry === null) {
5079
+ return null;
5080
+ }
5081
+ return serializeAws_restJson1ValidationConfiguration(entry, context);
5082
+ });
5083
+ };
4499
5084
  const serializeAws_restJson1ValuesMap = (input, context) => {
4500
5085
  return Object.entries(input).reduce((acc, [key, value]) => {
4501
5086
  if (value === null) {
@@ -4509,13 +5094,33 @@ const serializeAws_restJson1ValuesMap = (input, context) => {
4509
5094
  };
4510
5095
  const serializeAws_restJson1ViewFrame = (input, context) => {
4511
5096
  return {
5097
+ ...(input.Analytics !== undefined && input.Analytics !== null && { Analytics: input.Analytics }),
4512
5098
  ...(input.ColumnRange !== undefined && input.ColumnRange !== null && { ColumnRange: input.ColumnRange }),
4513
5099
  ...(input.HiddenColumns !== undefined &&
4514
5100
  input.HiddenColumns !== null && {
4515
5101
  HiddenColumns: serializeAws_restJson1HiddenColumnList(input.HiddenColumns, context),
4516
5102
  }),
5103
+ ...(input.RowRange !== undefined && input.RowRange !== null && { RowRange: input.RowRange }),
4517
5104
  ...(input.StartColumnIndex !== undefined &&
4518
5105
  input.StartColumnIndex !== null && { StartColumnIndex: input.StartColumnIndex }),
5106
+ ...(input.StartRowIndex !== undefined && input.StartRowIndex !== null && { StartRowIndex: input.StartRowIndex }),
5107
+ };
5108
+ };
5109
+ const deserializeAws_restJson1AllowedStatisticList = (output, context) => {
5110
+ return (output || [])
5111
+ .filter((e) => e != null)
5112
+ .map((entry) => {
5113
+ if (entry === null) {
5114
+ return null;
5115
+ }
5116
+ return deserializeAws_restJson1AllowedStatistics(entry, context);
5117
+ });
5118
+ };
5119
+ const deserializeAws_restJson1AllowedStatistics = (output, context) => {
5120
+ return {
5121
+ Statistics: output.Statistics !== undefined && output.Statistics !== null
5122
+ ? deserializeAws_restJson1StatisticList(output.Statistics, context)
5123
+ : undefined,
4519
5124
  };
4520
5125
  };
4521
5126
  const deserializeAws_restJson1ColumnNameList = (output, context) => {
@@ -4596,6 +5201,7 @@ const deserializeAws_restJson1DatabaseInputDefinition = (output, context) => {
4596
5201
  return {
4597
5202
  DatabaseTableName: smithy_client_1.expectString(output.DatabaseTableName),
4598
5203
  GlueConnectionName: smithy_client_1.expectString(output.GlueConnectionName),
5204
+ QueryString: smithy_client_1.expectString(output.QueryString),
4599
5205
  TempDirectory: output.TempDirectory !== undefined && output.TempDirectory !== null
4600
5206
  ? deserializeAws_restJson1S3Location(output.TempDirectory, context)
4601
5207
  : undefined,
@@ -4721,6 +5327,26 @@ const deserializeAws_restJson1DatetimeOptions = (output, context) => {
4721
5327
  TimezoneOffset: smithy_client_1.expectString(output.TimezoneOffset),
4722
5328
  };
4723
5329
  };
5330
+ const deserializeAws_restJson1EntityDetectorConfiguration = (output, context) => {
5331
+ return {
5332
+ AllowedStatistics: output.AllowedStatistics !== undefined && output.AllowedStatistics !== null
5333
+ ? deserializeAws_restJson1AllowedStatisticList(output.AllowedStatistics, context)
5334
+ : undefined,
5335
+ EntityTypes: output.EntityTypes !== undefined && output.EntityTypes !== null
5336
+ ? deserializeAws_restJson1EntityTypeList(output.EntityTypes, context)
5337
+ : undefined,
5338
+ };
5339
+ };
5340
+ const deserializeAws_restJson1EntityTypeList = (output, context) => {
5341
+ return (output || [])
5342
+ .filter((e) => e != null)
5343
+ .map((entry) => {
5344
+ if (entry === null) {
5345
+ return null;
5346
+ }
5347
+ return smithy_client_1.expectString(entry);
5348
+ });
5349
+ };
4724
5350
  const deserializeAws_restJson1ExcelOptions = (output, context) => {
4725
5351
  return {
4726
5352
  HeaderRow: smithy_client_1.expectBoolean(output.HeaderRow),
@@ -4768,6 +5394,9 @@ const deserializeAws_restJson1Input = (output, context) => {
4768
5394
  DatabaseInputDefinition: output.DatabaseInputDefinition !== undefined && output.DatabaseInputDefinition !== null
4769
5395
  ? deserializeAws_restJson1DatabaseInputDefinition(output.DatabaseInputDefinition, context)
4770
5396
  : undefined,
5397
+ Metadata: output.Metadata !== undefined && output.Metadata !== null
5398
+ ? deserializeAws_restJson1Metadata(output.Metadata, context)
5399
+ : undefined,
4771
5400
  S3InputDefinition: output.S3InputDefinition !== undefined && output.S3InputDefinition !== null
4772
5401
  ? deserializeAws_restJson1S3Location(output.S3InputDefinition, context)
4773
5402
  : undefined,
@@ -4814,6 +5443,9 @@ const deserializeAws_restJson1Job = (output, context) => {
4814
5443
  : undefined,
4815
5444
  Timeout: smithy_client_1.expectInt32(output.Timeout),
4816
5445
  Type: smithy_client_1.expectString(output.Type),
5446
+ ValidationConfigurations: output.ValidationConfigurations !== undefined && output.ValidationConfigurations !== null
5447
+ ? deserializeAws_restJson1ValidationConfigurationList(output.ValidationConfigurations, context)
5448
+ : undefined,
4817
5449
  };
4818
5450
  };
4819
5451
  const deserializeAws_restJson1JobList = (output, context) => {
@@ -4869,6 +5501,9 @@ const deserializeAws_restJson1JobRun = (output, context) => {
4869
5501
  ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StartedOn)))
4870
5502
  : undefined,
4871
5503
  State: smithy_client_1.expectString(output.State),
5504
+ ValidationConfigurations: output.ValidationConfigurations !== undefined && output.ValidationConfigurations !== null
5505
+ ? deserializeAws_restJson1ValidationConfigurationList(output.ValidationConfigurations, context)
5506
+ : undefined,
4872
5507
  };
4873
5508
  };
4874
5509
  const deserializeAws_restJson1JobRunList = (output, context) => {
@@ -4892,6 +5527,11 @@ const deserializeAws_restJson1JsonOptions = (output, context) => {
4892
5527
  MultiLine: smithy_client_1.expectBoolean(output.MultiLine),
4893
5528
  };
4894
5529
  };
5530
+ const deserializeAws_restJson1Metadata = (output, context) => {
5531
+ return {
5532
+ SourceArn: smithy_client_1.expectString(output.SourceArn),
5533
+ };
5534
+ };
4895
5535
  const deserializeAws_restJson1Output = (output, context) => {
4896
5536
  return {
4897
5537
  CompressionFormat: smithy_client_1.expectString(output.CompressionFormat),
@@ -4968,6 +5608,9 @@ const deserializeAws_restJson1ProfileConfiguration = (output, context) => {
4968
5608
  DatasetStatisticsConfiguration: output.DatasetStatisticsConfiguration !== undefined && output.DatasetStatisticsConfiguration !== null
4969
5609
  ? deserializeAws_restJson1StatisticsConfiguration(output.DatasetStatisticsConfiguration, context)
4970
5610
  : undefined,
5611
+ EntityDetectorConfiguration: output.EntityDetectorConfiguration !== undefined && output.EntityDetectorConfiguration !== null
5612
+ ? deserializeAws_restJson1EntityDetectorConfiguration(output.EntityDetectorConfiguration, context)
5613
+ : undefined,
4971
5614
  ProfileColumns: output.ProfileColumns !== undefined && output.ProfileColumns !== null
4972
5615
  ? deserializeAws_restJson1ColumnSelectorList(output.ProfileColumns, context)
4973
5616
  : undefined,
@@ -5099,6 +5742,63 @@ const deserializeAws_restJson1RecipeVersionErrorDetail = (output, context) => {
5099
5742
  RecipeVersion: smithy_client_1.expectString(output.RecipeVersion),
5100
5743
  };
5101
5744
  };
5745
+ const deserializeAws_restJson1Rule = (output, context) => {
5746
+ return {
5747
+ CheckExpression: smithy_client_1.expectString(output.CheckExpression),
5748
+ ColumnSelectors: output.ColumnSelectors !== undefined && output.ColumnSelectors !== null
5749
+ ? deserializeAws_restJson1ColumnSelectorList(output.ColumnSelectors, context)
5750
+ : undefined,
5751
+ Disabled: smithy_client_1.expectBoolean(output.Disabled),
5752
+ Name: smithy_client_1.expectString(output.Name),
5753
+ SubstitutionMap: output.SubstitutionMap !== undefined && output.SubstitutionMap !== null
5754
+ ? deserializeAws_restJson1ValuesMap(output.SubstitutionMap, context)
5755
+ : undefined,
5756
+ Threshold: output.Threshold !== undefined && output.Threshold !== null
5757
+ ? deserializeAws_restJson1Threshold(output.Threshold, context)
5758
+ : undefined,
5759
+ };
5760
+ };
5761
+ const deserializeAws_restJson1RuleList = (output, context) => {
5762
+ return (output || [])
5763
+ .filter((e) => e != null)
5764
+ .map((entry) => {
5765
+ if (entry === null) {
5766
+ return null;
5767
+ }
5768
+ return deserializeAws_restJson1Rule(entry, context);
5769
+ });
5770
+ };
5771
+ const deserializeAws_restJson1RulesetItem = (output, context) => {
5772
+ return {
5773
+ AccountId: smithy_client_1.expectString(output.AccountId),
5774
+ CreateDate: output.CreateDate !== undefined && output.CreateDate !== null
5775
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreateDate)))
5776
+ : undefined,
5777
+ CreatedBy: smithy_client_1.expectString(output.CreatedBy),
5778
+ Description: smithy_client_1.expectString(output.Description),
5779
+ LastModifiedBy: smithy_client_1.expectString(output.LastModifiedBy),
5780
+ LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
5781
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModifiedDate)))
5782
+ : undefined,
5783
+ Name: smithy_client_1.expectString(output.Name),
5784
+ ResourceArn: smithy_client_1.expectString(output.ResourceArn),
5785
+ RuleCount: smithy_client_1.expectInt32(output.RuleCount),
5786
+ Tags: output.Tags !== undefined && output.Tags !== null
5787
+ ? deserializeAws_restJson1TagMap(output.Tags, context)
5788
+ : undefined,
5789
+ TargetArn: smithy_client_1.expectString(output.TargetArn),
5790
+ };
5791
+ };
5792
+ const deserializeAws_restJson1RulesetItemList = (output, context) => {
5793
+ return (output || [])
5794
+ .filter((e) => e != null)
5795
+ .map((entry) => {
5796
+ if (entry === null) {
5797
+ return null;
5798
+ }
5799
+ return deserializeAws_restJson1RulesetItem(entry, context);
5800
+ });
5801
+ };
5102
5802
  const deserializeAws_restJson1S3Location = (output, context) => {
5103
5803
  return {
5104
5804
  Bucket: smithy_client_1.expectString(output.Bucket),
@@ -5219,6 +5919,29 @@ const deserializeAws_restJson1TagMap = (output, context) => {
5219
5919
  };
5220
5920
  }, {});
5221
5921
  };
5922
+ const deserializeAws_restJson1Threshold = (output, context) => {
5923
+ return {
5924
+ Type: smithy_client_1.expectString(output.Type),
5925
+ Unit: smithy_client_1.expectString(output.Unit),
5926
+ Value: smithy_client_1.limitedParseDouble(output.Value),
5927
+ };
5928
+ };
5929
+ const deserializeAws_restJson1ValidationConfiguration = (output, context) => {
5930
+ return {
5931
+ RulesetArn: smithy_client_1.expectString(output.RulesetArn),
5932
+ ValidationMode: smithy_client_1.expectString(output.ValidationMode),
5933
+ };
5934
+ };
5935
+ const deserializeAws_restJson1ValidationConfigurationList = (output, context) => {
5936
+ return (output || [])
5937
+ .filter((e) => e != null)
5938
+ .map((entry) => {
5939
+ if (entry === null) {
5940
+ return null;
5941
+ }
5942
+ return deserializeAws_restJson1ValidationConfiguration(entry, context);
5943
+ });
5944
+ };
5222
5945
  const deserializeAws_restJson1ValuesMap = (output, context) => {
5223
5946
  return Object.entries(output).reduce((acc, [key, value]) => {
5224
5947
  if (value === null) {