@aws-sdk/client-databrew 3.41.0 → 3.45.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 (52) 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 +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-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 +1 -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/CreateRulesetCommand.d.ts +36 -0
  31. package/dist-types/commands/DeleteRulesetCommand.d.ts +35 -0
  32. package/dist-types/commands/DescribeRulesetCommand.d.ts +35 -0
  33. package/dist-types/commands/ListRulesetsCommand.d.ts +36 -0
  34. package/dist-types/commands/UpdateRulesetCommand.d.ts +35 -0
  35. package/dist-types/commands/index.d.ts +5 -0
  36. package/dist-types/models/models_0.d.ts +577 -17
  37. package/dist-types/pagination/ListRulesetsPaginator.d.ts +4 -0
  38. package/dist-types/pagination/index.d.ts +1 -0
  39. package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
  40. package/dist-types/ts3.4/DataBrew.d.ts +25 -0
  41. package/dist-types/ts3.4/DataBrewClient.d.ts +7 -2
  42. package/dist-types/ts3.4/commands/CreateRulesetCommand.d.ts +17 -0
  43. package/dist-types/ts3.4/commands/DeleteRulesetCommand.d.ts +17 -0
  44. package/dist-types/ts3.4/commands/DescribeRulesetCommand.d.ts +17 -0
  45. package/dist-types/ts3.4/commands/ListRulesetsCommand.d.ts +17 -0
  46. package/dist-types/ts3.4/commands/UpdateRulesetCommand.d.ts +17 -0
  47. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +267 -1
  49. package/dist-types/ts3.4/pagination/ListRulesetsPaginator.d.ts +4 -0
  50. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  51. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
  52. package/package.json +5 -5
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator, __read } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
3
+ import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
4
4
  export var serializeAws_restJson1BatchDeleteRecipeVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
5
5
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
6
6
  return __generator(this, function (_c) {
@@ -78,7 +78,7 @@ export var serializeAws_restJson1CreateProfileJobCommand = function (input, cont
78
78
  "content-type": "application/json",
79
79
  };
80
80
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/profileJobs";
81
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Configuration !== undefined &&
81
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Configuration !== undefined &&
82
82
  input.Configuration !== null && {
83
83
  Configuration: serializeAws_restJson1ProfileConfiguration(input.Configuration, context),
84
84
  })), (input.DatasetName !== undefined && input.DatasetName !== null && { DatasetName: input.DatasetName })), (input.EncryptionKeyArn !== undefined &&
@@ -88,7 +88,10 @@ export var serializeAws_restJson1CreateProfileJobCommand = function (input, cont
88
88
  input.LogSubscription !== null && { LogSubscription: input.LogSubscription })), (input.MaxCapacity !== undefined && input.MaxCapacity !== null && { MaxCapacity: input.MaxCapacity })), (input.MaxRetries !== undefined && input.MaxRetries !== null && { MaxRetries: input.MaxRetries })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.OutputLocation !== undefined &&
89
89
  input.OutputLocation !== null && {
90
90
  OutputLocation: serializeAws_restJson1S3Location(input.OutputLocation, context),
91
- })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.Timeout !== undefined && input.Timeout !== null && { Timeout: input.Timeout })));
91
+ })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.Timeout !== undefined && input.Timeout !== null && { Timeout: input.Timeout })), (input.ValidationConfigurations !== undefined &&
92
+ input.ValidationConfigurations !== null && {
93
+ ValidationConfigurations: serializeAws_restJson1ValidationConfigurationList(input.ValidationConfigurations, context),
94
+ })));
92
95
  return [2, new __HttpRequest({
93
96
  protocol: protocol,
94
97
  hostname: hostname,
@@ -188,6 +191,31 @@ export var serializeAws_restJson1CreateRecipeJobCommand = function (input, conte
188
191
  }
189
192
  });
190
193
  }); };
194
+ export var serializeAws_restJson1CreateRulesetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
195
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
196
+ return __generator(this, function (_c) {
197
+ switch (_c.label) {
198
+ case 0: return [4, context.endpoint()];
199
+ case 1:
200
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
201
+ headers = {
202
+ "content-type": "application/json",
203
+ };
204
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/rulesets";
205
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Rules !== undefined &&
206
+ input.Rules !== null && { Rules: serializeAws_restJson1RuleList(input.Rules, context) })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.TargetArn !== undefined && input.TargetArn !== null && { TargetArn: input.TargetArn })));
207
+ return [2, new __HttpRequest({
208
+ protocol: protocol,
209
+ hostname: hostname,
210
+ port: port,
211
+ method: "POST",
212
+ headers: headers,
213
+ path: resolvedPath,
214
+ body: body,
215
+ })];
216
+ }
217
+ });
218
+ }); };
191
219
  export var serializeAws_restJson1CreateScheduleCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
192
220
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
193
221
  return __generator(this, function (_c) {
@@ -349,6 +377,37 @@ export var serializeAws_restJson1DeleteRecipeVersionCommand = function (input, c
349
377
  }
350
378
  });
351
379
  }); };
380
+ export var serializeAws_restJson1DeleteRulesetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
381
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
382
+ return __generator(this, function (_c) {
383
+ switch (_c.label) {
384
+ case 0: return [4, context.endpoint()];
385
+ case 1:
386
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
387
+ headers = {};
388
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/rulesets/{Name}";
389
+ if (input.Name !== undefined) {
390
+ labelValue = input.Name;
391
+ if (labelValue.length <= 0) {
392
+ throw new Error("Empty value provided for input HTTP label: Name.");
393
+ }
394
+ resolvedPath = resolvedPath.replace("{Name}", __extendedEncodeURIComponent(labelValue));
395
+ }
396
+ else {
397
+ throw new Error("No value provided for input HTTP label: Name.");
398
+ }
399
+ return [2, new __HttpRequest({
400
+ protocol: protocol,
401
+ hostname: hostname,
402
+ port: port,
403
+ method: "DELETE",
404
+ headers: headers,
405
+ path: resolvedPath,
406
+ body: body,
407
+ })];
408
+ }
409
+ });
410
+ }); };
352
411
  export var serializeAws_restJson1DeleteScheduleCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
353
412
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
354
413
  return __generator(this, function (_c) {
@@ -547,6 +606,37 @@ export var serializeAws_restJson1DescribeRecipeCommand = function (input, contex
547
606
  }
548
607
  });
549
608
  }); };
609
+ export var serializeAws_restJson1DescribeRulesetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
610
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
611
+ return __generator(this, function (_c) {
612
+ switch (_c.label) {
613
+ case 0: return [4, context.endpoint()];
614
+ case 1:
615
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
616
+ headers = {};
617
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/rulesets/{Name}";
618
+ if (input.Name !== undefined) {
619
+ labelValue = input.Name;
620
+ if (labelValue.length <= 0) {
621
+ throw new Error("Empty value provided for input HTTP label: Name.");
622
+ }
623
+ resolvedPath = resolvedPath.replace("{Name}", __extendedEncodeURIComponent(labelValue));
624
+ }
625
+ else {
626
+ throw new Error("No value provided for input HTTP label: Name.");
627
+ }
628
+ return [2, new __HttpRequest({
629
+ protocol: protocol,
630
+ hostname: hostname,
631
+ port: port,
632
+ method: "GET",
633
+ headers: headers,
634
+ path: resolvedPath,
635
+ body: body,
636
+ })];
637
+ }
638
+ });
639
+ }); };
550
640
  export var serializeAws_restJson1DescribeScheduleCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
551
641
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
552
642
  return __generator(this, function (_c) {
@@ -726,6 +816,29 @@ export var serializeAws_restJson1ListRecipeVersionsCommand = function (input, co
726
816
  }
727
817
  });
728
818
  }); };
819
+ export var serializeAws_restJson1ListRulesetsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
820
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
821
+ return __generator(this, function (_c) {
822
+ switch (_c.label) {
823
+ case 0: return [4, context.endpoint()];
824
+ case 1:
825
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
826
+ headers = {};
827
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/rulesets";
828
+ query = __assign(__assign(__assign({}, (input.TargetArn !== undefined && { targetArn: input.TargetArn })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
829
+ return [2, new __HttpRequest({
830
+ protocol: protocol,
831
+ hostname: hostname,
832
+ port: port,
833
+ method: "GET",
834
+ headers: headers,
835
+ path: resolvedPath,
836
+ query: query,
837
+ body: body,
838
+ })];
839
+ }
840
+ });
841
+ }); };
729
842
  export var serializeAws_restJson1ListSchedulesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
730
843
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
731
844
  return __generator(this, function (_c) {
@@ -1084,7 +1197,7 @@ export var serializeAws_restJson1UpdateProfileJobCommand = function (input, cont
1084
1197
  else {
1085
1198
  throw new Error("No value provided for input HTTP label: Name.");
1086
1199
  }
1087
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Configuration !== undefined &&
1200
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Configuration !== undefined &&
1088
1201
  input.Configuration !== null && {
1089
1202
  Configuration: serializeAws_restJson1ProfileConfiguration(input.Configuration, context),
1090
1203
  })), (input.EncryptionKeyArn !== undefined &&
@@ -1094,7 +1207,10 @@ export var serializeAws_restJson1UpdateProfileJobCommand = function (input, cont
1094
1207
  input.LogSubscription !== null && { LogSubscription: input.LogSubscription })), (input.MaxCapacity !== undefined && input.MaxCapacity !== null && { MaxCapacity: input.MaxCapacity })), (input.MaxRetries !== undefined && input.MaxRetries !== null && { MaxRetries: input.MaxRetries })), (input.OutputLocation !== undefined &&
1095
1208
  input.OutputLocation !== null && {
1096
1209
  OutputLocation: serializeAws_restJson1S3Location(input.OutputLocation, context),
1097
- })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.Timeout !== undefined && input.Timeout !== null && { Timeout: input.Timeout })));
1210
+ })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.Timeout !== undefined && input.Timeout !== null && { Timeout: input.Timeout })), (input.ValidationConfigurations !== undefined &&
1211
+ input.ValidationConfigurations !== null && {
1212
+ ValidationConfigurations: serializeAws_restJson1ValidationConfigurationList(input.ValidationConfigurations, context),
1213
+ })));
1098
1214
  return [2, new __HttpRequest({
1099
1215
  protocol: protocol,
1100
1216
  hostname: hostname,
@@ -1221,6 +1337,41 @@ export var serializeAws_restJson1UpdateRecipeJobCommand = function (input, conte
1221
1337
  }
1222
1338
  });
1223
1339
  }); };
1340
+ export var serializeAws_restJson1UpdateRulesetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1341
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
1342
+ return __generator(this, function (_c) {
1343
+ switch (_c.label) {
1344
+ case 0: return [4, context.endpoint()];
1345
+ case 1:
1346
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1347
+ headers = {
1348
+ "content-type": "application/json",
1349
+ };
1350
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/rulesets/{Name}";
1351
+ if (input.Name !== undefined) {
1352
+ labelValue = input.Name;
1353
+ if (labelValue.length <= 0) {
1354
+ throw new Error("Empty value provided for input HTTP label: Name.");
1355
+ }
1356
+ resolvedPath = resolvedPath.replace("{Name}", __extendedEncodeURIComponent(labelValue));
1357
+ }
1358
+ else {
1359
+ throw new Error("No value provided for input HTTP label: Name.");
1360
+ }
1361
+ body = JSON.stringify(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Rules !== undefined &&
1362
+ input.Rules !== null && { Rules: serializeAws_restJson1RuleList(input.Rules, context) })));
1363
+ return [2, new __HttpRequest({
1364
+ protocol: protocol,
1365
+ hostname: hostname,
1366
+ port: port,
1367
+ method: "PUT",
1368
+ headers: headers,
1369
+ path: resolvedPath,
1370
+ body: body,
1371
+ })];
1372
+ }
1373
+ });
1374
+ }); };
1224
1375
  export var serializeAws_restJson1UpdateScheduleCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1225
1376
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
1226
1377
  return __generator(this, function (_c) {
@@ -1777,6 +1928,84 @@ var deserializeAws_restJson1CreateRecipeJobCommandError = function (output, cont
1777
1928
  }
1778
1929
  });
1779
1930
  }); };
1931
+ export var deserializeAws_restJson1CreateRulesetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1932
+ var contents, data, _a, _b;
1933
+ return __generator(this, function (_c) {
1934
+ switch (_c.label) {
1935
+ case 0:
1936
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1937
+ return [2, deserializeAws_restJson1CreateRulesetCommandError(output, context)];
1938
+ }
1939
+ contents = {
1940
+ $metadata: deserializeMetadata(output),
1941
+ Name: undefined,
1942
+ };
1943
+ _a = __expectNonNull;
1944
+ _b = __expectObject;
1945
+ return [4, parseBody(output.body, context)];
1946
+ case 1:
1947
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1948
+ if (data.Name !== undefined && data.Name !== null) {
1949
+ contents.Name = __expectString(data.Name);
1950
+ }
1951
+ return [2, Promise.resolve(contents)];
1952
+ }
1953
+ });
1954
+ }); };
1955
+ var deserializeAws_restJson1CreateRulesetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1956
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
1957
+ var _f;
1958
+ return __generator(this, function (_g) {
1959
+ switch (_g.label) {
1960
+ case 0:
1961
+ _a = [__assign({}, output)];
1962
+ _f = {};
1963
+ return [4, parseBody(output.body, context)];
1964
+ case 1:
1965
+ parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
1966
+ errorCode = "UnknownError";
1967
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1968
+ _b = errorCode;
1969
+ switch (_b) {
1970
+ case "ConflictException": return [3, 2];
1971
+ case "com.amazonaws.databrew#ConflictException": return [3, 2];
1972
+ case "ServiceQuotaExceededException": return [3, 4];
1973
+ case "com.amazonaws.databrew#ServiceQuotaExceededException": return [3, 4];
1974
+ case "ValidationException": return [3, 6];
1975
+ case "com.amazonaws.databrew#ValidationException": return [3, 6];
1976
+ }
1977
+ return [3, 8];
1978
+ case 2:
1979
+ _c = [{}];
1980
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1981
+ case 3:
1982
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1983
+ return [3, 9];
1984
+ case 4:
1985
+ _d = [{}];
1986
+ return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
1987
+ case 5:
1988
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1989
+ return [3, 9];
1990
+ case 6:
1991
+ _e = [{}];
1992
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1993
+ case 7:
1994
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1995
+ return [3, 9];
1996
+ case 8:
1997
+ parsedBody = parsedOutput.body;
1998
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1999
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2000
+ _g.label = 9;
2001
+ case 9:
2002
+ message = response.message || response.Message || errorCode;
2003
+ response.message = message;
2004
+ delete response.Message;
2005
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2006
+ }
2007
+ });
2008
+ }); };
1780
2009
  export var deserializeAws_restJson1CreateScheduleCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1781
2010
  var contents, data, _a, _b;
1782
2011
  return __generator(this, function (_c) {
@@ -2171,6 +2400,84 @@ var deserializeAws_restJson1DeleteRecipeVersionCommandError = function (output,
2171
2400
  }
2172
2401
  });
2173
2402
  }); };
2403
+ export var deserializeAws_restJson1DeleteRulesetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2404
+ var contents, data, _a, _b;
2405
+ return __generator(this, function (_c) {
2406
+ switch (_c.label) {
2407
+ case 0:
2408
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2409
+ return [2, deserializeAws_restJson1DeleteRulesetCommandError(output, context)];
2410
+ }
2411
+ contents = {
2412
+ $metadata: deserializeMetadata(output),
2413
+ Name: undefined,
2414
+ };
2415
+ _a = __expectNonNull;
2416
+ _b = __expectObject;
2417
+ return [4, parseBody(output.body, context)];
2418
+ case 1:
2419
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2420
+ if (data.Name !== undefined && data.Name !== null) {
2421
+ contents.Name = __expectString(data.Name);
2422
+ }
2423
+ return [2, Promise.resolve(contents)];
2424
+ }
2425
+ });
2426
+ }); };
2427
+ var deserializeAws_restJson1DeleteRulesetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2428
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
2429
+ var _f;
2430
+ return __generator(this, function (_g) {
2431
+ switch (_g.label) {
2432
+ case 0:
2433
+ _a = [__assign({}, output)];
2434
+ _f = {};
2435
+ return [4, parseBody(output.body, context)];
2436
+ case 1:
2437
+ parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2438
+ errorCode = "UnknownError";
2439
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2440
+ _b = errorCode;
2441
+ switch (_b) {
2442
+ case "ConflictException": return [3, 2];
2443
+ case "com.amazonaws.databrew#ConflictException": return [3, 2];
2444
+ case "ResourceNotFoundException": return [3, 4];
2445
+ case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 4];
2446
+ case "ValidationException": return [3, 6];
2447
+ case "com.amazonaws.databrew#ValidationException": return [3, 6];
2448
+ }
2449
+ return [3, 8];
2450
+ case 2:
2451
+ _c = [{}];
2452
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2453
+ case 3:
2454
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2455
+ return [3, 9];
2456
+ case 4:
2457
+ _d = [{}];
2458
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2459
+ case 5:
2460
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2461
+ return [3, 9];
2462
+ case 6:
2463
+ _e = [{}];
2464
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2465
+ case 7:
2466
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2467
+ return [3, 9];
2468
+ case 8:
2469
+ parsedBody = parsedOutput.body;
2470
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2471
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2472
+ _g.label = 9;
2473
+ case 9:
2474
+ message = response.message || response.Message || errorCode;
2475
+ response.message = message;
2476
+ delete response.Message;
2477
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2478
+ }
2479
+ });
2480
+ }); };
2174
2481
  export var deserializeAws_restJson1DeleteScheduleCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2175
2482
  var contents, data, _a, _b;
2176
2483
  return __generator(this, function (_c) {
@@ -2388,6 +2695,7 @@ export var deserializeAws_restJson1DescribeJobCommand = function (output, contex
2388
2695
  Tags: undefined,
2389
2696
  Timeout: undefined,
2390
2697
  Type: undefined,
2698
+ ValidationConfigurations: undefined,
2391
2699
  };
2392
2700
  _a = __expectNonNull;
2393
2701
  _b = __expectObject;
@@ -2463,6 +2771,9 @@ export var deserializeAws_restJson1DescribeJobCommand = function (output, contex
2463
2771
  if (data.Type !== undefined && data.Type !== null) {
2464
2772
  contents.Type = __expectString(data.Type);
2465
2773
  }
2774
+ if (data.ValidationConfigurations !== undefined && data.ValidationConfigurations !== null) {
2775
+ contents.ValidationConfigurations = deserializeAws_restJson1ValidationConfigurationList(data.ValidationConfigurations, context);
2776
+ }
2466
2777
  return [2, Promise.resolve(contents)];
2467
2778
  }
2468
2779
  });
@@ -2541,6 +2852,7 @@ export var deserializeAws_restJson1DescribeJobRunCommand = function (output, con
2541
2852
  StartedBy: undefined,
2542
2853
  StartedOn: undefined,
2543
2854
  State: undefined,
2855
+ ValidationConfigurations: undefined,
2544
2856
  };
2545
2857
  _a = __expectNonNull;
2546
2858
  _b = __expectObject;
@@ -2601,6 +2913,9 @@ export var deserializeAws_restJson1DescribeJobRunCommand = function (output, con
2601
2913
  if (data.State !== undefined && data.State !== null) {
2602
2914
  contents.State = __expectString(data.State);
2603
2915
  }
2916
+ if (data.ValidationConfigurations !== undefined && data.ValidationConfigurations !== null) {
2917
+ contents.ValidationConfigurations = deserializeAws_restJson1ValidationConfigurationList(data.ValidationConfigurations, context);
2918
+ }
2604
2919
  return [2, Promise.resolve(contents)];
2605
2920
  }
2606
2921
  });
@@ -2891,6 +3206,112 @@ var deserializeAws_restJson1DescribeRecipeCommandError = function (output, conte
2891
3206
  }
2892
3207
  });
2893
3208
  }); };
3209
+ export var deserializeAws_restJson1DescribeRulesetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3210
+ var contents, data, _a, _b;
3211
+ return __generator(this, function (_c) {
3212
+ switch (_c.label) {
3213
+ case 0:
3214
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3215
+ return [2, deserializeAws_restJson1DescribeRulesetCommandError(output, context)];
3216
+ }
3217
+ contents = {
3218
+ $metadata: deserializeMetadata(output),
3219
+ CreateDate: undefined,
3220
+ CreatedBy: undefined,
3221
+ Description: undefined,
3222
+ LastModifiedBy: undefined,
3223
+ LastModifiedDate: undefined,
3224
+ Name: undefined,
3225
+ ResourceArn: undefined,
3226
+ Rules: undefined,
3227
+ Tags: undefined,
3228
+ TargetArn: undefined,
3229
+ };
3230
+ _a = __expectNonNull;
3231
+ _b = __expectObject;
3232
+ return [4, parseBody(output.body, context)];
3233
+ case 1:
3234
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3235
+ if (data.CreateDate !== undefined && data.CreateDate !== null) {
3236
+ contents.CreateDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreateDate)));
3237
+ }
3238
+ if (data.CreatedBy !== undefined && data.CreatedBy !== null) {
3239
+ contents.CreatedBy = __expectString(data.CreatedBy);
3240
+ }
3241
+ if (data.Description !== undefined && data.Description !== null) {
3242
+ contents.Description = __expectString(data.Description);
3243
+ }
3244
+ if (data.LastModifiedBy !== undefined && data.LastModifiedBy !== null) {
3245
+ contents.LastModifiedBy = __expectString(data.LastModifiedBy);
3246
+ }
3247
+ if (data.LastModifiedDate !== undefined && data.LastModifiedDate !== null) {
3248
+ contents.LastModifiedDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedDate)));
3249
+ }
3250
+ if (data.Name !== undefined && data.Name !== null) {
3251
+ contents.Name = __expectString(data.Name);
3252
+ }
3253
+ if (data.ResourceArn !== undefined && data.ResourceArn !== null) {
3254
+ contents.ResourceArn = __expectString(data.ResourceArn);
3255
+ }
3256
+ if (data.Rules !== undefined && data.Rules !== null) {
3257
+ contents.Rules = deserializeAws_restJson1RuleList(data.Rules, context);
3258
+ }
3259
+ if (data.Tags !== undefined && data.Tags !== null) {
3260
+ contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
3261
+ }
3262
+ if (data.TargetArn !== undefined && data.TargetArn !== null) {
3263
+ contents.TargetArn = __expectString(data.TargetArn);
3264
+ }
3265
+ return [2, Promise.resolve(contents)];
3266
+ }
3267
+ });
3268
+ }); };
3269
+ var deserializeAws_restJson1DescribeRulesetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3270
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
3271
+ var _e;
3272
+ return __generator(this, function (_f) {
3273
+ switch (_f.label) {
3274
+ case 0:
3275
+ _a = [__assign({}, output)];
3276
+ _e = {};
3277
+ return [4, parseBody(output.body, context)];
3278
+ case 1:
3279
+ parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
3280
+ errorCode = "UnknownError";
3281
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3282
+ _b = errorCode;
3283
+ switch (_b) {
3284
+ case "ResourceNotFoundException": return [3, 2];
3285
+ case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 2];
3286
+ case "ValidationException": return [3, 4];
3287
+ case "com.amazonaws.databrew#ValidationException": return [3, 4];
3288
+ }
3289
+ return [3, 6];
3290
+ case 2:
3291
+ _c = [{}];
3292
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3293
+ case 3:
3294
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3295
+ return [3, 7];
3296
+ case 4:
3297
+ _d = [{}];
3298
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
3299
+ case 5:
3300
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3301
+ return [3, 7];
3302
+ case 6:
3303
+ parsedBody = parsedOutput.body;
3304
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
3305
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
3306
+ _f.label = 7;
3307
+ case 7:
3308
+ message = response.message || response.Message || errorCode;
3309
+ response.message = message;
3310
+ delete response.Message;
3311
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3312
+ }
3313
+ });
3314
+ }); };
2894
3315
  export var deserializeAws_restJson1DescribeScheduleCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2895
3316
  var contents, data, _a, _b;
2896
3317
  return __generator(this, function (_c) {
@@ -3199,18 +3620,84 @@ var deserializeAws_restJson1ListJobsCommandError = function (output, context) {
3199
3620
  }
3200
3621
  });
3201
3622
  }); };
3202
- export var deserializeAws_restJson1ListProjectsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3623
+ export var deserializeAws_restJson1ListProjectsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3624
+ var contents, data, _a, _b;
3625
+ return __generator(this, function (_c) {
3626
+ switch (_c.label) {
3627
+ case 0:
3628
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3629
+ return [2, deserializeAws_restJson1ListProjectsCommandError(output, context)];
3630
+ }
3631
+ contents = {
3632
+ $metadata: deserializeMetadata(output),
3633
+ NextToken: undefined,
3634
+ Projects: undefined,
3635
+ };
3636
+ _a = __expectNonNull;
3637
+ _b = __expectObject;
3638
+ return [4, parseBody(output.body, context)];
3639
+ case 1:
3640
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3641
+ if (data.NextToken !== undefined && data.NextToken !== null) {
3642
+ contents.NextToken = __expectString(data.NextToken);
3643
+ }
3644
+ if (data.Projects !== undefined && data.Projects !== null) {
3645
+ contents.Projects = deserializeAws_restJson1ProjectList(data.Projects, context);
3646
+ }
3647
+ return [2, Promise.resolve(contents)];
3648
+ }
3649
+ });
3650
+ }); };
3651
+ var deserializeAws_restJson1ListProjectsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3652
+ var parsedOutput, _a, response, errorCode, _b, _c, parsedBody, message;
3653
+ var _d;
3654
+ return __generator(this, function (_e) {
3655
+ switch (_e.label) {
3656
+ case 0:
3657
+ _a = [__assign({}, output)];
3658
+ _d = {};
3659
+ return [4, parseBody(output.body, context)];
3660
+ case 1:
3661
+ parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
3662
+ errorCode = "UnknownError";
3663
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3664
+ _b = errorCode;
3665
+ switch (_b) {
3666
+ case "ValidationException": return [3, 2];
3667
+ case "com.amazonaws.databrew#ValidationException": return [3, 2];
3668
+ }
3669
+ return [3, 4];
3670
+ case 2:
3671
+ _c = [{}];
3672
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
3673
+ case 3:
3674
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3675
+ return [3, 5];
3676
+ case 4:
3677
+ parsedBody = parsedOutput.body;
3678
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
3679
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
3680
+ _e.label = 5;
3681
+ case 5:
3682
+ message = response.message || response.Message || errorCode;
3683
+ response.message = message;
3684
+ delete response.Message;
3685
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3686
+ }
3687
+ });
3688
+ }); };
3689
+ export var deserializeAws_restJson1ListRecipesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3203
3690
  var contents, data, _a, _b;
3204
3691
  return __generator(this, function (_c) {
3205
3692
  switch (_c.label) {
3206
3693
  case 0:
3207
3694
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3208
- return [2, deserializeAws_restJson1ListProjectsCommandError(output, context)];
3695
+ return [2, deserializeAws_restJson1ListRecipesCommandError(output, context)];
3209
3696
  }
3210
3697
  contents = {
3211
3698
  $metadata: deserializeMetadata(output),
3212
3699
  NextToken: undefined,
3213
- Projects: undefined,
3700
+ Recipes: undefined,
3214
3701
  };
3215
3702
  _a = __expectNonNull;
3216
3703
  _b = __expectObject;
@@ -3220,14 +3707,14 @@ export var deserializeAws_restJson1ListProjectsCommand = function (output, conte
3220
3707
  if (data.NextToken !== undefined && data.NextToken !== null) {
3221
3708
  contents.NextToken = __expectString(data.NextToken);
3222
3709
  }
3223
- if (data.Projects !== undefined && data.Projects !== null) {
3224
- contents.Projects = deserializeAws_restJson1ProjectList(data.Projects, context);
3710
+ if (data.Recipes !== undefined && data.Recipes !== null) {
3711
+ contents.Recipes = deserializeAws_restJson1RecipeList(data.Recipes, context);
3225
3712
  }
3226
3713
  return [2, Promise.resolve(contents)];
3227
3714
  }
3228
3715
  });
3229
3716
  }); };
3230
- var deserializeAws_restJson1ListProjectsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3717
+ var deserializeAws_restJson1ListRecipesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3231
3718
  var parsedOutput, _a, response, errorCode, _b, _c, parsedBody, message;
3232
3719
  var _d;
3233
3720
  return __generator(this, function (_e) {
@@ -3265,13 +3752,13 @@ var deserializeAws_restJson1ListProjectsCommandError = function (output, context
3265
3752
  }
3266
3753
  });
3267
3754
  }); };
3268
- export var deserializeAws_restJson1ListRecipesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3755
+ export var deserializeAws_restJson1ListRecipeVersionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3269
3756
  var contents, data, _a, _b;
3270
3757
  return __generator(this, function (_c) {
3271
3758
  switch (_c.label) {
3272
3759
  case 0:
3273
3760
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3274
- return [2, deserializeAws_restJson1ListRecipesCommandError(output, context)];
3761
+ return [2, deserializeAws_restJson1ListRecipeVersionsCommandError(output, context)];
3275
3762
  }
3276
3763
  contents = {
3277
3764
  $metadata: deserializeMetadata(output),
@@ -3293,7 +3780,7 @@ export var deserializeAws_restJson1ListRecipesCommand = function (output, contex
3293
3780
  }
3294
3781
  });
3295
3782
  }); };
3296
- var deserializeAws_restJson1ListRecipesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3783
+ var deserializeAws_restJson1ListRecipeVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3297
3784
  var parsedOutput, _a, response, errorCode, _b, _c, parsedBody, message;
3298
3785
  var _d;
3299
3786
  return __generator(this, function (_e) {
@@ -3331,18 +3818,18 @@ var deserializeAws_restJson1ListRecipesCommandError = function (output, context)
3331
3818
  }
3332
3819
  });
3333
3820
  }); };
3334
- export var deserializeAws_restJson1ListRecipeVersionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3821
+ export var deserializeAws_restJson1ListRulesetsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3335
3822
  var contents, data, _a, _b;
3336
3823
  return __generator(this, function (_c) {
3337
3824
  switch (_c.label) {
3338
3825
  case 0:
3339
3826
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3340
- return [2, deserializeAws_restJson1ListRecipeVersionsCommandError(output, context)];
3827
+ return [2, deserializeAws_restJson1ListRulesetsCommandError(output, context)];
3341
3828
  }
3342
3829
  contents = {
3343
3830
  $metadata: deserializeMetadata(output),
3344
3831
  NextToken: undefined,
3345
- Recipes: undefined,
3832
+ Rulesets: undefined,
3346
3833
  };
3347
3834
  _a = __expectNonNull;
3348
3835
  _b = __expectObject;
@@ -3352,44 +3839,52 @@ export var deserializeAws_restJson1ListRecipeVersionsCommand = function (output,
3352
3839
  if (data.NextToken !== undefined && data.NextToken !== null) {
3353
3840
  contents.NextToken = __expectString(data.NextToken);
3354
3841
  }
3355
- if (data.Recipes !== undefined && data.Recipes !== null) {
3356
- contents.Recipes = deserializeAws_restJson1RecipeList(data.Recipes, context);
3842
+ if (data.Rulesets !== undefined && data.Rulesets !== null) {
3843
+ contents.Rulesets = deserializeAws_restJson1RulesetItemList(data.Rulesets, context);
3357
3844
  }
3358
3845
  return [2, Promise.resolve(contents)];
3359
3846
  }
3360
3847
  });
3361
3848
  }); };
3362
- var deserializeAws_restJson1ListRecipeVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3363
- var parsedOutput, _a, response, errorCode, _b, _c, parsedBody, message;
3364
- var _d;
3365
- return __generator(this, function (_e) {
3366
- switch (_e.label) {
3849
+ var deserializeAws_restJson1ListRulesetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3850
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
3851
+ var _e;
3852
+ return __generator(this, function (_f) {
3853
+ switch (_f.label) {
3367
3854
  case 0:
3368
3855
  _a = [__assign({}, output)];
3369
- _d = {};
3856
+ _e = {};
3370
3857
  return [4, parseBody(output.body, context)];
3371
3858
  case 1:
3372
- parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
3859
+ parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
3373
3860
  errorCode = "UnknownError";
3374
3861
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3375
3862
  _b = errorCode;
3376
3863
  switch (_b) {
3377
- case "ValidationException": return [3, 2];
3378
- case "com.amazonaws.databrew#ValidationException": return [3, 2];
3864
+ case "ResourceNotFoundException": return [3, 2];
3865
+ case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 2];
3866
+ case "ValidationException": return [3, 4];
3867
+ case "com.amazonaws.databrew#ValidationException": return [3, 4];
3379
3868
  }
3380
- return [3, 4];
3869
+ return [3, 6];
3381
3870
  case 2:
3382
3871
  _c = [{}];
3383
- return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
3872
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3384
3873
  case 3:
3385
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3386
- return [3, 5];
3874
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3875
+ return [3, 7];
3387
3876
  case 4:
3877
+ _d = [{}];
3878
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
3879
+ case 5:
3880
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3881
+ return [3, 7];
3882
+ case 6:
3388
3883
  parsedBody = parsedOutput.body;
3389
3884
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
3390
3885
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
3391
- _e.label = 5;
3392
- case 5:
3886
+ _f.label = 7;
3887
+ case 7:
3393
3888
  message = response.message || response.Message || errorCode;
3394
3889
  response.message = message;
3395
3890
  delete response.Message;
@@ -4473,6 +4968,76 @@ var deserializeAws_restJson1UpdateRecipeJobCommandError = function (output, cont
4473
4968
  }
4474
4969
  });
4475
4970
  }); };
4971
+ export var deserializeAws_restJson1UpdateRulesetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4972
+ var contents, data, _a, _b;
4973
+ return __generator(this, function (_c) {
4974
+ switch (_c.label) {
4975
+ case 0:
4976
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4977
+ return [2, deserializeAws_restJson1UpdateRulesetCommandError(output, context)];
4978
+ }
4979
+ contents = {
4980
+ $metadata: deserializeMetadata(output),
4981
+ Name: undefined,
4982
+ };
4983
+ _a = __expectNonNull;
4984
+ _b = __expectObject;
4985
+ return [4, parseBody(output.body, context)];
4986
+ case 1:
4987
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4988
+ if (data.Name !== undefined && data.Name !== null) {
4989
+ contents.Name = __expectString(data.Name);
4990
+ }
4991
+ return [2, Promise.resolve(contents)];
4992
+ }
4993
+ });
4994
+ }); };
4995
+ var deserializeAws_restJson1UpdateRulesetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4996
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
4997
+ var _e;
4998
+ return __generator(this, function (_f) {
4999
+ switch (_f.label) {
5000
+ case 0:
5001
+ _a = [__assign({}, output)];
5002
+ _e = {};
5003
+ return [4, parseBody(output.body, context)];
5004
+ case 1:
5005
+ parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
5006
+ errorCode = "UnknownError";
5007
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5008
+ _b = errorCode;
5009
+ switch (_b) {
5010
+ case "ResourceNotFoundException": return [3, 2];
5011
+ case "com.amazonaws.databrew#ResourceNotFoundException": return [3, 2];
5012
+ case "ValidationException": return [3, 4];
5013
+ case "com.amazonaws.databrew#ValidationException": return [3, 4];
5014
+ }
5015
+ return [3, 6];
5016
+ case 2:
5017
+ _c = [{}];
5018
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
5019
+ case 3:
5020
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5021
+ return [3, 7];
5022
+ case 4:
5023
+ _d = [{}];
5024
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
5025
+ case 5:
5026
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5027
+ return [3, 7];
5028
+ case 6:
5029
+ parsedBody = parsedOutput.body;
5030
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
5031
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
5032
+ _f.label = 7;
5033
+ case 7:
5034
+ message = response.message || response.Message || errorCode;
5035
+ response.message = message;
5036
+ delete response.Message;
5037
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
5038
+ }
5039
+ });
5040
+ }); };
4476
5041
  export var deserializeAws_restJson1UpdateScheduleCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4477
5042
  var contents, data, _a, _b;
4478
5043
  return __generator(this, function (_c) {
@@ -4647,6 +5212,20 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
4647
5212
  return [2, contents];
4648
5213
  });
4649
5214
  }); };
5215
+ var serializeAws_restJson1AllowedStatisticList = function (input, context) {
5216
+ return input
5217
+ .filter(function (e) { return e != null; })
5218
+ .map(function (entry) {
5219
+ if (entry === null) {
5220
+ return null;
5221
+ }
5222
+ return serializeAws_restJson1AllowedStatistics(entry, context);
5223
+ });
5224
+ };
5225
+ var serializeAws_restJson1AllowedStatistics = function (input, context) {
5226
+ return __assign({}, (input.Statistics !== undefined &&
5227
+ input.Statistics !== null && { Statistics: serializeAws_restJson1StatisticList(input.Statistics, context) }));
5228
+ };
4650
5229
  var serializeAws_restJson1ColumnNameList = function (input, context) {
4651
5230
  return input
4652
5231
  .filter(function (e) { return e != null; })
@@ -4707,9 +5286,9 @@ var serializeAws_restJson1CsvOutputOptions = function (input, context) {
4707
5286
  return __assign({}, (input.Delimiter !== undefined && input.Delimiter !== null && { Delimiter: input.Delimiter }));
4708
5287
  };
4709
5288
  var serializeAws_restJson1DatabaseInputDefinition = function (input, context) {
4710
- return __assign(__assign(__assign({}, (input.DatabaseTableName !== undefined &&
5289
+ return __assign(__assign(__assign(__assign({}, (input.DatabaseTableName !== undefined &&
4711
5290
  input.DatabaseTableName !== null && { DatabaseTableName: input.DatabaseTableName })), (input.GlueConnectionName !== undefined &&
4712
- input.GlueConnectionName !== null && { GlueConnectionName: input.GlueConnectionName })), (input.TempDirectory !== undefined &&
5291
+ input.GlueConnectionName !== null && { GlueConnectionName: input.GlueConnectionName })), (input.QueryString !== undefined && input.QueryString !== null && { QueryString: input.QueryString })), (input.TempDirectory !== undefined &&
4713
5292
  input.TempDirectory !== null && {
4714
5293
  TempDirectory: serializeAws_restJson1S3Location(input.TempDirectory, context),
4715
5294
  }));
@@ -4772,6 +5351,23 @@ var serializeAws_restJson1DatetimeOptions = function (input, context) {
4772
5351
  return __assign(__assign(__assign({}, (input.Format !== undefined && input.Format !== null && { Format: input.Format })), (input.LocaleCode !== undefined && input.LocaleCode !== null && { LocaleCode: input.LocaleCode })), (input.TimezoneOffset !== undefined &&
4773
5352
  input.TimezoneOffset !== null && { TimezoneOffset: input.TimezoneOffset }));
4774
5353
  };
5354
+ var serializeAws_restJson1EntityDetectorConfiguration = function (input, context) {
5355
+ return __assign(__assign({}, (input.AllowedStatistics !== undefined &&
5356
+ input.AllowedStatistics !== null && {
5357
+ AllowedStatistics: serializeAws_restJson1AllowedStatisticList(input.AllowedStatistics, context),
5358
+ })), (input.EntityTypes !== undefined &&
5359
+ input.EntityTypes !== null && { EntityTypes: serializeAws_restJson1EntityTypeList(input.EntityTypes, context) }));
5360
+ };
5361
+ var serializeAws_restJson1EntityTypeList = function (input, context) {
5362
+ return input
5363
+ .filter(function (e) { return e != null; })
5364
+ .map(function (entry) {
5365
+ if (entry === null) {
5366
+ return null;
5367
+ }
5368
+ return entry;
5369
+ });
5370
+ };
4775
5371
  var serializeAws_restJson1ExcelOptions = function (input, context) {
4776
5372
  return __assign(__assign(__assign({}, (input.HeaderRow !== undefined && input.HeaderRow !== null && { HeaderRow: input.HeaderRow })), (input.SheetIndexes !== undefined &&
4777
5373
  input.SheetIndexes !== null && {
@@ -4802,13 +5398,14 @@ var serializeAws_restJson1HiddenColumnList = function (input, context) {
4802
5398
  });
4803
5399
  };
4804
5400
  var serializeAws_restJson1Input = function (input, context) {
4805
- return __assign(__assign(__assign({}, (input.DataCatalogInputDefinition !== undefined &&
5401
+ return __assign(__assign(__assign(__assign({}, (input.DataCatalogInputDefinition !== undefined &&
4806
5402
  input.DataCatalogInputDefinition !== null && {
4807
5403
  DataCatalogInputDefinition: serializeAws_restJson1DataCatalogInputDefinition(input.DataCatalogInputDefinition, context),
4808
5404
  })), (input.DatabaseInputDefinition !== undefined &&
4809
5405
  input.DatabaseInputDefinition !== null && {
4810
5406
  DatabaseInputDefinition: serializeAws_restJson1DatabaseInputDefinition(input.DatabaseInputDefinition, context),
4811
- })), (input.S3InputDefinition !== undefined &&
5407
+ })), (input.Metadata !== undefined &&
5408
+ input.Metadata !== null && { Metadata: serializeAws_restJson1Metadata(input.Metadata, context) })), (input.S3InputDefinition !== undefined &&
4812
5409
  input.S3InputDefinition !== null && {
4813
5410
  S3InputDefinition: serializeAws_restJson1S3Location(input.S3InputDefinition, context),
4814
5411
  }));
@@ -4829,6 +5426,9 @@ var serializeAws_restJson1JobSample = function (input, context) {
4829
5426
  var serializeAws_restJson1JsonOptions = function (input, context) {
4830
5427
  return __assign({}, (input.MultiLine !== undefined && input.MultiLine !== null && { MultiLine: input.MultiLine }));
4831
5428
  };
5429
+ var serializeAws_restJson1Metadata = function (input, context) {
5430
+ return __assign({}, (input.SourceArn !== undefined && input.SourceArn !== null && { SourceArn: input.SourceArn }));
5431
+ };
4832
5432
  var serializeAws_restJson1Output = function (input, context) {
4833
5433
  return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.CompressionFormat !== undefined &&
4834
5434
  input.CompressionFormat !== null && { CompressionFormat: input.CompressionFormat })), (input.Format !== undefined && input.Format !== null && { Format: input.Format })), (input.FormatOptions !== undefined &&
@@ -4883,12 +5483,15 @@ var serializeAws_restJson1PathParametersMap = function (input, context) {
4883
5483
  }, {});
4884
5484
  };
4885
5485
  var serializeAws_restJson1ProfileConfiguration = function (input, context) {
4886
- return __assign(__assign(__assign({}, (input.ColumnStatisticsConfigurations !== undefined &&
5486
+ return __assign(__assign(__assign(__assign({}, (input.ColumnStatisticsConfigurations !== undefined &&
4887
5487
  input.ColumnStatisticsConfigurations !== null && {
4888
5488
  ColumnStatisticsConfigurations: serializeAws_restJson1ColumnStatisticsConfigurationList(input.ColumnStatisticsConfigurations, context),
4889
5489
  })), (input.DatasetStatisticsConfiguration !== undefined &&
4890
5490
  input.DatasetStatisticsConfiguration !== null && {
4891
5491
  DatasetStatisticsConfiguration: serializeAws_restJson1StatisticsConfiguration(input.DatasetStatisticsConfiguration, context),
5492
+ })), (input.EntityDetectorConfiguration !== undefined &&
5493
+ input.EntityDetectorConfiguration !== null && {
5494
+ EntityDetectorConfiguration: serializeAws_restJson1EntityDetectorConfiguration(input.EntityDetectorConfiguration, context),
4892
5495
  })), (input.ProfileColumns !== undefined &&
4893
5496
  input.ProfileColumns !== null && {
4894
5497
  ProfileColumns: serializeAws_restJson1ColumnSelectorList(input.ProfileColumns, context),
@@ -4928,6 +5531,27 @@ var serializeAws_restJson1RecipeVersionList = function (input, context) {
4928
5531
  return entry;
4929
5532
  });
4930
5533
  };
5534
+ var serializeAws_restJson1Rule = function (input, context) {
5535
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.CheckExpression !== undefined &&
5536
+ input.CheckExpression !== null && { CheckExpression: input.CheckExpression })), (input.ColumnSelectors !== undefined &&
5537
+ input.ColumnSelectors !== null && {
5538
+ ColumnSelectors: serializeAws_restJson1ColumnSelectorList(input.ColumnSelectors, context),
5539
+ })), (input.Disabled !== undefined && input.Disabled !== null && { Disabled: input.Disabled })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.SubstitutionMap !== undefined &&
5540
+ input.SubstitutionMap !== null && {
5541
+ SubstitutionMap: serializeAws_restJson1ValuesMap(input.SubstitutionMap, context),
5542
+ })), (input.Threshold !== undefined &&
5543
+ input.Threshold !== null && { Threshold: serializeAws_restJson1Threshold(input.Threshold, context) }));
5544
+ };
5545
+ var serializeAws_restJson1RuleList = function (input, context) {
5546
+ return input
5547
+ .filter(function (e) { return e != null; })
5548
+ .map(function (entry) {
5549
+ if (entry === null) {
5550
+ return null;
5551
+ }
5552
+ return serializeAws_restJson1Rule(entry, context);
5553
+ });
5554
+ };
4931
5555
  var serializeAws_restJson1S3Location = function (input, context) {
4932
5556
  return __assign(__assign({}, (input.Bucket !== undefined && input.Bucket !== null && { Bucket: input.Bucket })), (input.Key !== undefined && input.Key !== null && { Key: input.Key }));
4933
5557
  };
@@ -4999,6 +5623,23 @@ var serializeAws_restJson1TagMap = function (input, context) {
4999
5623
  return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
5000
5624
  }, {});
5001
5625
  };
5626
+ var serializeAws_restJson1Threshold = function (input, context) {
5627
+ return __assign(__assign(__assign({}, (input.Type !== undefined && input.Type !== null && { Type: input.Type })), (input.Unit !== undefined && input.Unit !== null && { Unit: input.Unit })), (input.Value !== undefined && input.Value !== null && { Value: __serializeFloat(input.Value) }));
5628
+ };
5629
+ var serializeAws_restJson1ValidationConfiguration = function (input, context) {
5630
+ return __assign(__assign({}, (input.RulesetArn !== undefined && input.RulesetArn !== null && { RulesetArn: input.RulesetArn })), (input.ValidationMode !== undefined &&
5631
+ input.ValidationMode !== null && { ValidationMode: input.ValidationMode }));
5632
+ };
5633
+ var serializeAws_restJson1ValidationConfigurationList = function (input, context) {
5634
+ return input
5635
+ .filter(function (e) { return e != null; })
5636
+ .map(function (entry) {
5637
+ if (entry === null) {
5638
+ return null;
5639
+ }
5640
+ return serializeAws_restJson1ValidationConfiguration(entry, context);
5641
+ });
5642
+ };
5002
5643
  var serializeAws_restJson1ValuesMap = function (input, context) {
5003
5644
  return Object.entries(input).reduce(function (acc, _a) {
5004
5645
  var _b;
@@ -5010,11 +5651,28 @@ var serializeAws_restJson1ValuesMap = function (input, context) {
5010
5651
  }, {});
5011
5652
  };
5012
5653
  var serializeAws_restJson1ViewFrame = function (input, context) {
5013
- return __assign(__assign(__assign({}, (input.ColumnRange !== undefined && input.ColumnRange !== null && { ColumnRange: input.ColumnRange })), (input.HiddenColumns !== undefined &&
5654
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Analytics !== undefined && input.Analytics !== null && { Analytics: input.Analytics })), (input.ColumnRange !== undefined && input.ColumnRange !== null && { ColumnRange: input.ColumnRange })), (input.HiddenColumns !== undefined &&
5014
5655
  input.HiddenColumns !== null && {
5015
5656
  HiddenColumns: serializeAws_restJson1HiddenColumnList(input.HiddenColumns, context),
5016
- })), (input.StartColumnIndex !== undefined &&
5017
- input.StartColumnIndex !== null && { StartColumnIndex: input.StartColumnIndex }));
5657
+ })), (input.RowRange !== undefined && input.RowRange !== null && { RowRange: input.RowRange })), (input.StartColumnIndex !== undefined &&
5658
+ input.StartColumnIndex !== null && { StartColumnIndex: input.StartColumnIndex })), (input.StartRowIndex !== undefined && input.StartRowIndex !== null && { StartRowIndex: input.StartRowIndex }));
5659
+ };
5660
+ var deserializeAws_restJson1AllowedStatisticList = function (output, context) {
5661
+ return (output || [])
5662
+ .filter(function (e) { return e != null; })
5663
+ .map(function (entry) {
5664
+ if (entry === null) {
5665
+ return null;
5666
+ }
5667
+ return deserializeAws_restJson1AllowedStatistics(entry, context);
5668
+ });
5669
+ };
5670
+ var deserializeAws_restJson1AllowedStatistics = function (output, context) {
5671
+ return {
5672
+ Statistics: output.Statistics !== undefined && output.Statistics !== null
5673
+ ? deserializeAws_restJson1StatisticList(output.Statistics, context)
5674
+ : undefined,
5675
+ };
5018
5676
  };
5019
5677
  var deserializeAws_restJson1ColumnNameList = function (output, context) {
5020
5678
  return (output || [])
@@ -5094,6 +5752,7 @@ var deserializeAws_restJson1DatabaseInputDefinition = function (output, context)
5094
5752
  return {
5095
5753
  DatabaseTableName: __expectString(output.DatabaseTableName),
5096
5754
  GlueConnectionName: __expectString(output.GlueConnectionName),
5755
+ QueryString: __expectString(output.QueryString),
5097
5756
  TempDirectory: output.TempDirectory !== undefined && output.TempDirectory !== null
5098
5757
  ? deserializeAws_restJson1S3Location(output.TempDirectory, context)
5099
5758
  : undefined,
@@ -5219,6 +5878,26 @@ var deserializeAws_restJson1DatetimeOptions = function (output, context) {
5219
5878
  TimezoneOffset: __expectString(output.TimezoneOffset),
5220
5879
  };
5221
5880
  };
5881
+ var deserializeAws_restJson1EntityDetectorConfiguration = function (output, context) {
5882
+ return {
5883
+ AllowedStatistics: output.AllowedStatistics !== undefined && output.AllowedStatistics !== null
5884
+ ? deserializeAws_restJson1AllowedStatisticList(output.AllowedStatistics, context)
5885
+ : undefined,
5886
+ EntityTypes: output.EntityTypes !== undefined && output.EntityTypes !== null
5887
+ ? deserializeAws_restJson1EntityTypeList(output.EntityTypes, context)
5888
+ : undefined,
5889
+ };
5890
+ };
5891
+ var deserializeAws_restJson1EntityTypeList = function (output, context) {
5892
+ return (output || [])
5893
+ .filter(function (e) { return e != null; })
5894
+ .map(function (entry) {
5895
+ if (entry === null) {
5896
+ return null;
5897
+ }
5898
+ return __expectString(entry);
5899
+ });
5900
+ };
5222
5901
  var deserializeAws_restJson1ExcelOptions = function (output, context) {
5223
5902
  return {
5224
5903
  HeaderRow: __expectBoolean(output.HeaderRow),
@@ -5266,6 +5945,9 @@ var deserializeAws_restJson1Input = function (output, context) {
5266
5945
  DatabaseInputDefinition: output.DatabaseInputDefinition !== undefined && output.DatabaseInputDefinition !== null
5267
5946
  ? deserializeAws_restJson1DatabaseInputDefinition(output.DatabaseInputDefinition, context)
5268
5947
  : undefined,
5948
+ Metadata: output.Metadata !== undefined && output.Metadata !== null
5949
+ ? deserializeAws_restJson1Metadata(output.Metadata, context)
5950
+ : undefined,
5269
5951
  S3InputDefinition: output.S3InputDefinition !== undefined && output.S3InputDefinition !== null
5270
5952
  ? deserializeAws_restJson1S3Location(output.S3InputDefinition, context)
5271
5953
  : undefined,
@@ -5312,6 +5994,9 @@ var deserializeAws_restJson1Job = function (output, context) {
5312
5994
  : undefined,
5313
5995
  Timeout: __expectInt32(output.Timeout),
5314
5996
  Type: __expectString(output.Type),
5997
+ ValidationConfigurations: output.ValidationConfigurations !== undefined && output.ValidationConfigurations !== null
5998
+ ? deserializeAws_restJson1ValidationConfigurationList(output.ValidationConfigurations, context)
5999
+ : undefined,
5315
6000
  };
5316
6001
  };
5317
6002
  var deserializeAws_restJson1JobList = function (output, context) {
@@ -5367,6 +6052,9 @@ var deserializeAws_restJson1JobRun = function (output, context) {
5367
6052
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartedOn)))
5368
6053
  : undefined,
5369
6054
  State: __expectString(output.State),
6055
+ ValidationConfigurations: output.ValidationConfigurations !== undefined && output.ValidationConfigurations !== null
6056
+ ? deserializeAws_restJson1ValidationConfigurationList(output.ValidationConfigurations, context)
6057
+ : undefined,
5370
6058
  };
5371
6059
  };
5372
6060
  var deserializeAws_restJson1JobRunList = function (output, context) {
@@ -5390,6 +6078,11 @@ var deserializeAws_restJson1JsonOptions = function (output, context) {
5390
6078
  MultiLine: __expectBoolean(output.MultiLine),
5391
6079
  };
5392
6080
  };
6081
+ var deserializeAws_restJson1Metadata = function (output, context) {
6082
+ return {
6083
+ SourceArn: __expectString(output.SourceArn),
6084
+ };
6085
+ };
5393
6086
  var deserializeAws_restJson1Output = function (output, context) {
5394
6087
  return {
5395
6088
  CompressionFormat: __expectString(output.CompressionFormat),
@@ -5464,6 +6157,9 @@ var deserializeAws_restJson1ProfileConfiguration = function (output, context) {
5464
6157
  DatasetStatisticsConfiguration: output.DatasetStatisticsConfiguration !== undefined && output.DatasetStatisticsConfiguration !== null
5465
6158
  ? deserializeAws_restJson1StatisticsConfiguration(output.DatasetStatisticsConfiguration, context)
5466
6159
  : undefined,
6160
+ EntityDetectorConfiguration: output.EntityDetectorConfiguration !== undefined && output.EntityDetectorConfiguration !== null
6161
+ ? deserializeAws_restJson1EntityDetectorConfiguration(output.EntityDetectorConfiguration, context)
6162
+ : undefined,
5467
6163
  ProfileColumns: output.ProfileColumns !== undefined && output.ProfileColumns !== null
5468
6164
  ? deserializeAws_restJson1ColumnSelectorList(output.ProfileColumns, context)
5469
6165
  : undefined,
@@ -5595,6 +6291,63 @@ var deserializeAws_restJson1RecipeVersionErrorDetail = function (output, context
5595
6291
  RecipeVersion: __expectString(output.RecipeVersion),
5596
6292
  };
5597
6293
  };
6294
+ var deserializeAws_restJson1Rule = function (output, context) {
6295
+ return {
6296
+ CheckExpression: __expectString(output.CheckExpression),
6297
+ ColumnSelectors: output.ColumnSelectors !== undefined && output.ColumnSelectors !== null
6298
+ ? deserializeAws_restJson1ColumnSelectorList(output.ColumnSelectors, context)
6299
+ : undefined,
6300
+ Disabled: __expectBoolean(output.Disabled),
6301
+ Name: __expectString(output.Name),
6302
+ SubstitutionMap: output.SubstitutionMap !== undefined && output.SubstitutionMap !== null
6303
+ ? deserializeAws_restJson1ValuesMap(output.SubstitutionMap, context)
6304
+ : undefined,
6305
+ Threshold: output.Threshold !== undefined && output.Threshold !== null
6306
+ ? deserializeAws_restJson1Threshold(output.Threshold, context)
6307
+ : undefined,
6308
+ };
6309
+ };
6310
+ var deserializeAws_restJson1RuleList = function (output, context) {
6311
+ return (output || [])
6312
+ .filter(function (e) { return e != null; })
6313
+ .map(function (entry) {
6314
+ if (entry === null) {
6315
+ return null;
6316
+ }
6317
+ return deserializeAws_restJson1Rule(entry, context);
6318
+ });
6319
+ };
6320
+ var deserializeAws_restJson1RulesetItem = function (output, context) {
6321
+ return {
6322
+ AccountId: __expectString(output.AccountId),
6323
+ CreateDate: output.CreateDate !== undefined && output.CreateDate !== null
6324
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate)))
6325
+ : undefined,
6326
+ CreatedBy: __expectString(output.CreatedBy),
6327
+ Description: __expectString(output.Description),
6328
+ LastModifiedBy: __expectString(output.LastModifiedBy),
6329
+ LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
6330
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedDate)))
6331
+ : undefined,
6332
+ Name: __expectString(output.Name),
6333
+ ResourceArn: __expectString(output.ResourceArn),
6334
+ RuleCount: __expectInt32(output.RuleCount),
6335
+ Tags: output.Tags !== undefined && output.Tags !== null
6336
+ ? deserializeAws_restJson1TagMap(output.Tags, context)
6337
+ : undefined,
6338
+ TargetArn: __expectString(output.TargetArn),
6339
+ };
6340
+ };
6341
+ var deserializeAws_restJson1RulesetItemList = function (output, context) {
6342
+ return (output || [])
6343
+ .filter(function (e) { return e != null; })
6344
+ .map(function (entry) {
6345
+ if (entry === null) {
6346
+ return null;
6347
+ }
6348
+ return deserializeAws_restJson1RulesetItem(entry, context);
6349
+ });
6350
+ };
5598
6351
  var deserializeAws_restJson1S3Location = function (output, context) {
5599
6352
  return {
5600
6353
  Bucket: __expectString(output.Bucket),
@@ -5714,6 +6467,29 @@ var deserializeAws_restJson1TagMap = function (output, context) {
5714
6467
  return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
5715
6468
  }, {});
5716
6469
  };
6470
+ var deserializeAws_restJson1Threshold = function (output, context) {
6471
+ return {
6472
+ Type: __expectString(output.Type),
6473
+ Unit: __expectString(output.Unit),
6474
+ Value: __limitedParseDouble(output.Value),
6475
+ };
6476
+ };
6477
+ var deserializeAws_restJson1ValidationConfiguration = function (output, context) {
6478
+ return {
6479
+ RulesetArn: __expectString(output.RulesetArn),
6480
+ ValidationMode: __expectString(output.ValidationMode),
6481
+ };
6482
+ };
6483
+ var deserializeAws_restJson1ValidationConfigurationList = function (output, context) {
6484
+ return (output || [])
6485
+ .filter(function (e) { return e != null; })
6486
+ .map(function (entry) {
6487
+ if (entry === null) {
6488
+ return null;
6489
+ }
6490
+ return deserializeAws_restJson1ValidationConfiguration(entry, context);
6491
+ });
6492
+ };
5717
6493
  var deserializeAws_restJson1ValuesMap = function (output, context) {
5718
6494
  return Object.entries(output).reduce(function (acc, _a) {
5719
6495
  var _b;