@aws-sdk/client-glue 3.449.0 → 3.451.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 (77) hide show
  1. package/README.md +49 -1
  2. package/dist-cjs/Glue.js +12 -0
  3. package/dist-cjs/commands/BatchGetTableOptimizerCommand.js +51 -0
  4. package/dist-cjs/commands/CreateTableOptimizerCommand.js +51 -0
  5. package/dist-cjs/commands/DeleteTableOptimizerCommand.js +51 -0
  6. package/dist-cjs/commands/GetTableOptimizerCommand.js +51 -0
  7. package/dist-cjs/commands/ListTableOptimizerRunsCommand.js +51 -0
  8. package/dist-cjs/commands/UpdateTableOptimizerCommand.js +51 -0
  9. package/dist-cjs/commands/index.js +6 -0
  10. package/dist-cjs/models/models_0.js +10 -16
  11. package/dist-cjs/models/models_1.js +16 -1
  12. package/dist-cjs/pagination/ListTableOptimizerRunsPaginator.js +29 -0
  13. package/dist-cjs/pagination/index.js +1 -0
  14. package/dist-cjs/protocols/Aws_json1_1.js +361 -10
  15. package/dist-es/Glue.js +12 -0
  16. package/dist-es/commands/BatchGetTableOptimizerCommand.js +47 -0
  17. package/dist-es/commands/CreateTableOptimizerCommand.js +47 -0
  18. package/dist-es/commands/DeleteTableOptimizerCommand.js +47 -0
  19. package/dist-es/commands/GetTableOptimizerCommand.js +47 -0
  20. package/dist-es/commands/ListTableOptimizerRunsCommand.js +47 -0
  21. package/dist-es/commands/UpdateTableOptimizerCommand.js +47 -0
  22. package/dist-es/commands/index.js +6 -0
  23. package/dist-es/models/models_0.js +9 -14
  24. package/dist-es/models/models_1.js +14 -0
  25. package/dist-es/pagination/ListTableOptimizerRunsPaginator.js +25 -0
  26. package/dist-es/pagination/index.js +1 -0
  27. package/dist-es/protocols/Aws_json1_1.js +341 -2
  28. package/dist-types/Glue.d.ts +42 -0
  29. package/dist-types/GlueClient.d.ts +8 -2
  30. package/dist-types/commands/BatchGetTableOptimizerCommand.d.ts +120 -0
  31. package/dist-types/commands/CreateDataQualityRulesetCommand.d.ts +1 -1
  32. package/dist-types/commands/CreateDatabaseCommand.d.ts +1 -1
  33. package/dist-types/commands/CreateTableOptimizerCommand.d.ts +93 -0
  34. package/dist-types/commands/DeleteTableOptimizerCommand.d.ts +86 -0
  35. package/dist-types/commands/GetTableCommand.d.ts +2 -1
  36. package/dist-types/commands/GetTableOptimizerCommand.d.ts +109 -0
  37. package/dist-types/commands/GetTableVersionCommand.d.ts +1 -1
  38. package/dist-types/commands/GetTableVersionsCommand.d.ts +1 -1
  39. package/dist-types/commands/GetTablesCommand.d.ts +1 -1
  40. package/dist-types/commands/GetTagsCommand.d.ts +1 -1
  41. package/dist-types/commands/GetTriggerCommand.d.ts +1 -1
  42. package/dist-types/commands/GetTriggersCommand.d.ts +1 -2
  43. package/dist-types/commands/ListTableOptimizerRunsCommand.d.ts +107 -0
  44. package/dist-types/commands/StartDataQualityRuleRecommendationRunCommand.d.ts +1 -0
  45. package/dist-types/commands/UpdateTableOptimizerCommand.d.ts +90 -0
  46. package/dist-types/commands/index.d.ts +6 -0
  47. package/dist-types/models/models_0.d.ts +227 -222
  48. package/dist-types/models/models_1.d.ts +288 -394
  49. package/dist-types/models/models_2.d.ts +545 -2
  50. package/dist-types/pagination/ListTableOptimizerRunsPaginator.d.ts +7 -0
  51. package/dist-types/pagination/index.d.ts +1 -0
  52. package/dist-types/protocols/Aws_json1_1.d.ts +54 -0
  53. package/dist-types/ts3.4/Glue.d.ts +102 -0
  54. package/dist-types/ts3.4/GlueClient.d.ts +36 -0
  55. package/dist-types/ts3.4/commands/BatchGetTableOptimizerCommand.d.ts +42 -0
  56. package/dist-types/ts3.4/commands/CreateDataQualityRulesetCommand.d.ts +1 -1
  57. package/dist-types/ts3.4/commands/CreateDatabaseCommand.d.ts +1 -1
  58. package/dist-types/ts3.4/commands/CreateTableOptimizerCommand.d.ts +42 -0
  59. package/dist-types/ts3.4/commands/DeleteTableOptimizerCommand.d.ts +42 -0
  60. package/dist-types/ts3.4/commands/GetTableCommand.d.ts +2 -1
  61. package/dist-types/ts3.4/commands/GetTableOptimizerCommand.d.ts +39 -0
  62. package/dist-types/ts3.4/commands/GetTableVersionCommand.d.ts +1 -1
  63. package/dist-types/ts3.4/commands/GetTableVersionsCommand.d.ts +1 -1
  64. package/dist-types/ts3.4/commands/GetTablesCommand.d.ts +1 -1
  65. package/dist-types/ts3.4/commands/GetTagsCommand.d.ts +1 -1
  66. package/dist-types/ts3.4/commands/GetTriggerCommand.d.ts +1 -1
  67. package/dist-types/ts3.4/commands/GetTriggersCommand.d.ts +1 -2
  68. package/dist-types/ts3.4/commands/ListTableOptimizerRunsCommand.d.ts +42 -0
  69. package/dist-types/ts3.4/commands/UpdateTableOptimizerCommand.d.ts +42 -0
  70. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  71. package/dist-types/ts3.4/models/models_0.d.ts +61 -59
  72. package/dist-types/ts3.4/models/models_1.d.ts +77 -90
  73. package/dist-types/ts3.4/models/models_2.d.ts +129 -3
  74. package/dist-types/ts3.4/pagination/ListTableOptimizerRunsPaginator.d.ts +11 -0
  75. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  76. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +72 -0
  77. package/package.json +35 -35
@@ -1,8 +1,8 @@
1
1
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
2
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { GlueServiceException as __BaseException } from "../models/GlueServiceException";
4
- import { AccessDeniedException, AlreadyExistsException, ConcurrentModificationException, EntityNotFoundException, FederatedResourceAlreadyExistsException, FederationSourceException, FederationSourceRetryableException, GlueEncryptionException, IdempotentParameterMismatchException, IllegalSessionStateException, InternalServiceException, InvalidInputException, InvalidStateException, OperationTimeoutException, ResourceNotReadyException, ResourceNumberLimitExceededException, } from "../models/models_0";
5
- import { ConditionCheckFailureException, ConflictException, CrawlerRunningException, SchedulerTransitioningException, ValidationException, } from "../models/models_1";
4
+ import { AccessDeniedException, AlreadyExistsException, ConcurrentModificationException, EntityNotFoundException, FederationSourceException, FederationSourceRetryableException, GlueEncryptionException, IdempotentParameterMismatchException, IllegalSessionStateException, InternalServiceException, InvalidInputException, InvalidStateException, OperationTimeoutException, ResourceNotReadyException, ResourceNumberLimitExceededException, } from "../models/models_0";
5
+ import { ConditionCheckFailureException, ConflictException, CrawlerRunningException, FederatedResourceAlreadyExistsException, SchedulerTransitioningException, ValidationException, } from "../models/models_1";
6
6
  import { ConcurrentRunsExceededException, CrawlerNotRunningException, CrawlerStoppingException, IllegalBlueprintStateException, IllegalWorkflowStateException, MLTransformNotReadyException, NoScheduleException, PermissionTypeMismatchException, SchedulerNotRunningException, SchedulerRunningException, VersionMismatchException, } from "../models/models_2";
7
7
  export const se_BatchCreatePartitionCommand = async (input, context) => {
8
8
  const headers = sharedHeaders("BatchCreatePartition");
@@ -76,6 +76,12 @@ export const se_BatchGetPartitionCommand = async (input, context) => {
76
76
  body = JSON.stringify(_json(input));
77
77
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
78
  };
79
+ export const se_BatchGetTableOptimizerCommand = async (input, context) => {
80
+ const headers = sharedHeaders("BatchGetTableOptimizer");
81
+ let body;
82
+ body = JSON.stringify(_json(input));
83
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
84
+ };
79
85
  export const se_BatchGetTriggersCommand = async (input, context) => {
80
86
  const headers = sharedHeaders("BatchGetTriggers");
81
87
  let body;
@@ -238,6 +244,12 @@ export const se_CreateTableCommand = async (input, context) => {
238
244
  body = JSON.stringify(se_CreateTableRequest(input, context));
239
245
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
240
246
  };
247
+ export const se_CreateTableOptimizerCommand = async (input, context) => {
248
+ const headers = sharedHeaders("CreateTableOptimizer");
249
+ let body;
250
+ body = JSON.stringify(_json(input));
251
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
252
+ };
241
253
  export const se_CreateTriggerCommand = async (input, context) => {
242
254
  const headers = sharedHeaders("CreateTrigger");
243
255
  let body;
@@ -382,6 +394,12 @@ export const se_DeleteTableCommand = async (input, context) => {
382
394
  body = JSON.stringify(_json(input));
383
395
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
384
396
  };
397
+ export const se_DeleteTableOptimizerCommand = async (input, context) => {
398
+ const headers = sharedHeaders("DeleteTableOptimizer");
399
+ let body;
400
+ body = JSON.stringify(_json(input));
401
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
402
+ };
385
403
  export const se_DeleteTableVersionCommand = async (input, context) => {
386
404
  const headers = sharedHeaders("DeleteTableVersion");
387
405
  let body;
@@ -706,6 +724,12 @@ export const se_GetTableCommand = async (input, context) => {
706
724
  body = JSON.stringify(se_GetTableRequest(input, context));
707
725
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
708
726
  };
727
+ export const se_GetTableOptimizerCommand = async (input, context) => {
728
+ const headers = sharedHeaders("GetTableOptimizer");
729
+ let body;
730
+ body = JSON.stringify(_json(input));
731
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
732
+ };
709
733
  export const se_GetTablesCommand = async (input, context) => {
710
734
  const headers = sharedHeaders("GetTables");
711
735
  let body;
@@ -898,6 +922,12 @@ export const se_ListStatementsCommand = async (input, context) => {
898
922
  body = JSON.stringify(_json(input));
899
923
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
900
924
  };
925
+ export const se_ListTableOptimizerRunsCommand = async (input, context) => {
926
+ const headers = sharedHeaders("ListTableOptimizerRuns");
927
+ let body;
928
+ body = JSON.stringify(_json(input));
929
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
930
+ };
901
931
  export const se_ListTriggersCommand = async (input, context) => {
902
932
  const headers = sharedHeaders("ListTriggers");
903
933
  let body;
@@ -1198,6 +1228,12 @@ export const se_UpdateTableCommand = async (input, context) => {
1198
1228
  body = JSON.stringify(se_UpdateTableRequest(input, context));
1199
1229
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1200
1230
  };
1231
+ export const se_UpdateTableOptimizerCommand = async (input, context) => {
1232
+ const headers = sharedHeaders("UpdateTableOptimizer");
1233
+ let body;
1234
+ body = JSON.stringify(_json(input));
1235
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
1236
+ };
1201
1237
  export const se_UpdateTriggerCommand = async (input, context) => {
1202
1238
  const headers = sharedHeaders("UpdateTrigger");
1203
1239
  let body;
@@ -1711,6 +1747,38 @@ const de_BatchGetPartitionCommandError = async (output, context) => {
1711
1747
  });
1712
1748
  }
1713
1749
  };
1750
+ export const de_BatchGetTableOptimizerCommand = async (output, context) => {
1751
+ if (output.statusCode >= 300) {
1752
+ return de_BatchGetTableOptimizerCommandError(output, context);
1753
+ }
1754
+ const data = await parseBody(output.body, context);
1755
+ let contents = {};
1756
+ contents = de_BatchGetTableOptimizerResponse(data, context);
1757
+ const response = {
1758
+ $metadata: deserializeMetadata(output),
1759
+ ...contents,
1760
+ };
1761
+ return response;
1762
+ };
1763
+ const de_BatchGetTableOptimizerCommandError = async (output, context) => {
1764
+ const parsedOutput = {
1765
+ ...output,
1766
+ body: await parseErrorBody(output.body, context),
1767
+ };
1768
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1769
+ switch (errorCode) {
1770
+ case "InternalServiceException":
1771
+ case "com.amazonaws.glue#InternalServiceException":
1772
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
1773
+ default:
1774
+ const parsedBody = parsedOutput.body;
1775
+ return throwDefaultError({
1776
+ output,
1777
+ parsedBody,
1778
+ errorCode,
1779
+ });
1780
+ }
1781
+ };
1714
1782
  export const de_BatchGetTriggersCommand = async (output, context) => {
1715
1783
  if (output.statusCode >= 300) {
1716
1784
  return de_BatchGetTriggersCommandError(output, context);
@@ -2932,6 +3000,50 @@ const de_CreateTableCommandError = async (output, context) => {
2932
3000
  });
2933
3001
  }
2934
3002
  };
3003
+ export const de_CreateTableOptimizerCommand = async (output, context) => {
3004
+ if (output.statusCode >= 300) {
3005
+ return de_CreateTableOptimizerCommandError(output, context);
3006
+ }
3007
+ const data = await parseBody(output.body, context);
3008
+ let contents = {};
3009
+ contents = _json(data);
3010
+ const response = {
3011
+ $metadata: deserializeMetadata(output),
3012
+ ...contents,
3013
+ };
3014
+ return response;
3015
+ };
3016
+ const de_CreateTableOptimizerCommandError = async (output, context) => {
3017
+ const parsedOutput = {
3018
+ ...output,
3019
+ body: await parseErrorBody(output.body, context),
3020
+ };
3021
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3022
+ switch (errorCode) {
3023
+ case "AccessDeniedException":
3024
+ case "com.amazonaws.glue#AccessDeniedException":
3025
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3026
+ case "AlreadyExistsException":
3027
+ case "com.amazonaws.glue#AlreadyExistsException":
3028
+ throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
3029
+ case "EntityNotFoundException":
3030
+ case "com.amazonaws.glue#EntityNotFoundException":
3031
+ throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
3032
+ case "InternalServiceException":
3033
+ case "com.amazonaws.glue#InternalServiceException":
3034
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
3035
+ case "InvalidInputException":
3036
+ case "com.amazonaws.glue#InvalidInputException":
3037
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
3038
+ default:
3039
+ const parsedBody = parsedOutput.body;
3040
+ return throwDefaultError({
3041
+ output,
3042
+ parsedBody,
3043
+ errorCode,
3044
+ });
3045
+ }
3046
+ };
2935
3047
  export const de_CreateTriggerCommand = async (output, context) => {
2936
3048
  if (output.statusCode >= 300) {
2937
3049
  return de_CreateTriggerCommandError(output, context);
@@ -3958,6 +4070,47 @@ const de_DeleteTableCommandError = async (output, context) => {
3958
4070
  });
3959
4071
  }
3960
4072
  };
4073
+ export const de_DeleteTableOptimizerCommand = async (output, context) => {
4074
+ if (output.statusCode >= 300) {
4075
+ return de_DeleteTableOptimizerCommandError(output, context);
4076
+ }
4077
+ const data = await parseBody(output.body, context);
4078
+ let contents = {};
4079
+ contents = _json(data);
4080
+ const response = {
4081
+ $metadata: deserializeMetadata(output),
4082
+ ...contents,
4083
+ };
4084
+ return response;
4085
+ };
4086
+ const de_DeleteTableOptimizerCommandError = async (output, context) => {
4087
+ const parsedOutput = {
4088
+ ...output,
4089
+ body: await parseErrorBody(output.body, context),
4090
+ };
4091
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4092
+ switch (errorCode) {
4093
+ case "AccessDeniedException":
4094
+ case "com.amazonaws.glue#AccessDeniedException":
4095
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4096
+ case "EntityNotFoundException":
4097
+ case "com.amazonaws.glue#EntityNotFoundException":
4098
+ throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
4099
+ case "InternalServiceException":
4100
+ case "com.amazonaws.glue#InternalServiceException":
4101
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
4102
+ case "InvalidInputException":
4103
+ case "com.amazonaws.glue#InvalidInputException":
4104
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
4105
+ default:
4106
+ const parsedBody = parsedOutput.body;
4107
+ return throwDefaultError({
4108
+ output,
4109
+ parsedBody,
4110
+ errorCode,
4111
+ });
4112
+ }
4113
+ };
3961
4114
  export const de_DeleteTableVersionCommand = async (output, context) => {
3962
4115
  if (output.statusCode >= 300) {
3963
4116
  return de_DeleteTableVersionCommandError(output, context);
@@ -6181,6 +6334,47 @@ const de_GetTableCommandError = async (output, context) => {
6181
6334
  });
6182
6335
  }
6183
6336
  };
6337
+ export const de_GetTableOptimizerCommand = async (output, context) => {
6338
+ if (output.statusCode >= 300) {
6339
+ return de_GetTableOptimizerCommandError(output, context);
6340
+ }
6341
+ const data = await parseBody(output.body, context);
6342
+ let contents = {};
6343
+ contents = de_GetTableOptimizerResponse(data, context);
6344
+ const response = {
6345
+ $metadata: deserializeMetadata(output),
6346
+ ...contents,
6347
+ };
6348
+ return response;
6349
+ };
6350
+ const de_GetTableOptimizerCommandError = async (output, context) => {
6351
+ const parsedOutput = {
6352
+ ...output,
6353
+ body: await parseErrorBody(output.body, context),
6354
+ };
6355
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6356
+ switch (errorCode) {
6357
+ case "AccessDeniedException":
6358
+ case "com.amazonaws.glue#AccessDeniedException":
6359
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
6360
+ case "EntityNotFoundException":
6361
+ case "com.amazonaws.glue#EntityNotFoundException":
6362
+ throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
6363
+ case "InternalServiceException":
6364
+ case "com.amazonaws.glue#InternalServiceException":
6365
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
6366
+ case "InvalidInputException":
6367
+ case "com.amazonaws.glue#InvalidInputException":
6368
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
6369
+ default:
6370
+ const parsedBody = parsedOutput.body;
6371
+ return throwDefaultError({
6372
+ output,
6373
+ parsedBody,
6374
+ errorCode,
6375
+ });
6376
+ }
6377
+ };
6184
6378
  export const de_GetTablesCommand = async (output, context) => {
6185
6379
  if (output.statusCode >= 300) {
6186
6380
  return de_GetTablesCommandError(output, context);
@@ -7520,6 +7714,47 @@ const de_ListStatementsCommandError = async (output, context) => {
7520
7714
  });
7521
7715
  }
7522
7716
  };
7717
+ export const de_ListTableOptimizerRunsCommand = async (output, context) => {
7718
+ if (output.statusCode >= 300) {
7719
+ return de_ListTableOptimizerRunsCommandError(output, context);
7720
+ }
7721
+ const data = await parseBody(output.body, context);
7722
+ let contents = {};
7723
+ contents = de_ListTableOptimizerRunsResponse(data, context);
7724
+ const response = {
7725
+ $metadata: deserializeMetadata(output),
7726
+ ...contents,
7727
+ };
7728
+ return response;
7729
+ };
7730
+ const de_ListTableOptimizerRunsCommandError = async (output, context) => {
7731
+ const parsedOutput = {
7732
+ ...output,
7733
+ body: await parseErrorBody(output.body, context),
7734
+ };
7735
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
7736
+ switch (errorCode) {
7737
+ case "AccessDeniedException":
7738
+ case "com.amazonaws.glue#AccessDeniedException":
7739
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
7740
+ case "EntityNotFoundException":
7741
+ case "com.amazonaws.glue#EntityNotFoundException":
7742
+ throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
7743
+ case "InternalServiceException":
7744
+ case "com.amazonaws.glue#InternalServiceException":
7745
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
7746
+ case "InvalidInputException":
7747
+ case "com.amazonaws.glue#InvalidInputException":
7748
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
7749
+ default:
7750
+ const parsedBody = parsedOutput.body;
7751
+ return throwDefaultError({
7752
+ output,
7753
+ parsedBody,
7754
+ errorCode,
7755
+ });
7756
+ }
7757
+ };
7523
7758
  export const de_ListTriggersCommand = async (output, context) => {
7524
7759
  if (output.statusCode >= 300) {
7525
7760
  return de_ListTriggersCommandError(output, context);
@@ -9726,6 +9961,47 @@ const de_UpdateTableCommandError = async (output, context) => {
9726
9961
  });
9727
9962
  }
9728
9963
  };
9964
+ export const de_UpdateTableOptimizerCommand = async (output, context) => {
9965
+ if (output.statusCode >= 300) {
9966
+ return de_UpdateTableOptimizerCommandError(output, context);
9967
+ }
9968
+ const data = await parseBody(output.body, context);
9969
+ let contents = {};
9970
+ contents = _json(data);
9971
+ const response = {
9972
+ $metadata: deserializeMetadata(output),
9973
+ ...contents,
9974
+ };
9975
+ return response;
9976
+ };
9977
+ const de_UpdateTableOptimizerCommandError = async (output, context) => {
9978
+ const parsedOutput = {
9979
+ ...output,
9980
+ body: await parseErrorBody(output.body, context),
9981
+ };
9982
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
9983
+ switch (errorCode) {
9984
+ case "AccessDeniedException":
9985
+ case "com.amazonaws.glue#AccessDeniedException":
9986
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
9987
+ case "EntityNotFoundException":
9988
+ case "com.amazonaws.glue#EntityNotFoundException":
9989
+ throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
9990
+ case "InternalServiceException":
9991
+ case "com.amazonaws.glue#InternalServiceException":
9992
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
9993
+ case "InvalidInputException":
9994
+ case "com.amazonaws.glue#InvalidInputException":
9995
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
9996
+ default:
9997
+ const parsedBody = parsedOutput.body;
9998
+ return throwDefaultError({
9999
+ output,
10000
+ parsedBody,
10001
+ errorCode,
10002
+ });
10003
+ }
10004
+ };
9729
10005
  export const de_UpdateTriggerCommand = async (output, context) => {
9730
10006
  if (output.statusCode >= 300) {
9731
10007
  return de_UpdateTriggerCommandError(output, context);
@@ -10937,12 +11213,34 @@ const de_BatchGetPartitionResponse = (output, context) => {
10937
11213
  UnprocessedKeys: _json,
10938
11214
  });
10939
11215
  };
11216
+ const de_BatchGetTableOptimizerResponse = (output, context) => {
11217
+ return take(output, {
11218
+ Failures: _json,
11219
+ TableOptimizers: (_) => de_BatchTableOptimizers(_, context),
11220
+ });
11221
+ };
10940
11222
  const de_BatchGetWorkflowsResponse = (output, context) => {
10941
11223
  return take(output, {
10942
11224
  MissingWorkflows: _json,
10943
11225
  Workflows: (_) => de_Workflows(_, context),
10944
11226
  });
10945
11227
  };
11228
+ const de_BatchTableOptimizer = (output, context) => {
11229
+ return take(output, {
11230
+ catalogId: __expectString,
11231
+ databaseName: __expectString,
11232
+ tableName: __expectString,
11233
+ tableOptimizer: (_) => de_TableOptimizer(_, context),
11234
+ });
11235
+ };
11236
+ const de_BatchTableOptimizers = (output, context) => {
11237
+ const retVal = (output || [])
11238
+ .filter((e) => e != null)
11239
+ .map((entry) => {
11240
+ return de_BatchTableOptimizer(entry, context);
11241
+ });
11242
+ return retVal;
11243
+ };
10946
11244
  const de_BinaryColumnStatisticsData = (output, context) => {
10947
11245
  return take(output, {
10948
11246
  AverageLength: __limitedParseDouble,
@@ -11903,6 +12201,14 @@ const de_GetStatementResponse = (output, context) => {
11903
12201
  Statement: (_) => de_Statement(_, context),
11904
12202
  });
11905
12203
  };
12204
+ const de_GetTableOptimizerResponse = (output, context) => {
12205
+ return take(output, {
12206
+ CatalogId: __expectString,
12207
+ DatabaseName: __expectString,
12208
+ TableName: __expectString,
12209
+ TableOptimizer: (_) => de_TableOptimizer(_, context),
12210
+ });
12211
+ };
11906
12212
  const de_GetTableResponse = (output, context) => {
11907
12213
  return take(output, {
11908
12214
  Table: (_) => de_Table(_, context),
@@ -12195,6 +12501,15 @@ const de_ListStatementsResponse = (output, context) => {
12195
12501
  Statements: (_) => de_StatementList(_, context),
12196
12502
  });
12197
12503
  };
12504
+ const de_ListTableOptimizerRunsResponse = (output, context) => {
12505
+ return take(output, {
12506
+ CatalogId: __expectString,
12507
+ DatabaseName: __expectString,
12508
+ NextToken: __expectString,
12509
+ TableName: __expectString,
12510
+ TableOptimizerRuns: (_) => de_TableOptimizerRuns(_, context),
12511
+ });
12512
+ };
12198
12513
  const de_Mapping = (output, context) => {
12199
12514
  return take(output, {
12200
12515
  Children: (_) => de_Mappings(_, context),
@@ -12408,6 +12723,30 @@ const de_TableList = (output, context) => {
12408
12723
  });
12409
12724
  return retVal;
12410
12725
  };
12726
+ const de_TableOptimizer = (output, context) => {
12727
+ return take(output, {
12728
+ configuration: _json,
12729
+ lastRun: (_) => de_TableOptimizerRun(_, context),
12730
+ type: __expectString,
12731
+ });
12732
+ };
12733
+ const de_TableOptimizerRun = (output, context) => {
12734
+ return take(output, {
12735
+ endTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
12736
+ error: __expectString,
12737
+ eventType: __expectString,
12738
+ metrics: _json,
12739
+ startTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
12740
+ });
12741
+ };
12742
+ const de_TableOptimizerRuns = (output, context) => {
12743
+ const retVal = (output || [])
12744
+ .filter((e) => e != null)
12745
+ .map((entry) => {
12746
+ return de_TableOptimizerRun(entry, context);
12747
+ });
12748
+ return retVal;
12749
+ };
12411
12750
  const de_TableVersion = (output, context) => {
12412
12751
  return take(output, {
12413
12752
  Table: (_) => de_Table(_, context),
@@ -11,6 +11,7 @@ import { BatchGetDataQualityResultCommandInput, BatchGetDataQualityResultCommand
11
11
  import { BatchGetDevEndpointsCommandInput, BatchGetDevEndpointsCommandOutput } from "./commands/BatchGetDevEndpointsCommand";
12
12
  import { BatchGetJobsCommandInput, BatchGetJobsCommandOutput } from "./commands/BatchGetJobsCommand";
13
13
  import { BatchGetPartitionCommandInput, BatchGetPartitionCommandOutput } from "./commands/BatchGetPartitionCommand";
14
+ import { BatchGetTableOptimizerCommandInput, BatchGetTableOptimizerCommandOutput } from "./commands/BatchGetTableOptimizerCommand";
14
15
  import { BatchGetTriggersCommandInput, BatchGetTriggersCommandOutput } from "./commands/BatchGetTriggersCommand";
15
16
  import { BatchGetWorkflowsCommandInput, BatchGetWorkflowsCommandOutput } from "./commands/BatchGetWorkflowsCommand";
16
17
  import { BatchStopJobRunCommandInput, BatchStopJobRunCommandOutput } from "./commands/BatchStopJobRunCommand";
@@ -38,6 +39,7 @@ import { CreateScriptCommandInput, CreateScriptCommandOutput } from "./commands/
38
39
  import { CreateSecurityConfigurationCommandInput, CreateSecurityConfigurationCommandOutput } from "./commands/CreateSecurityConfigurationCommand";
39
40
  import { CreateSessionCommandInput, CreateSessionCommandOutput } from "./commands/CreateSessionCommand";
40
41
  import { CreateTableCommandInput, CreateTableCommandOutput } from "./commands/CreateTableCommand";
42
+ import { CreateTableOptimizerCommandInput, CreateTableOptimizerCommandOutput } from "./commands/CreateTableOptimizerCommand";
41
43
  import { CreateTriggerCommandInput, CreateTriggerCommandOutput } from "./commands/CreateTriggerCommand";
42
44
  import { CreateUserDefinedFunctionCommandInput, CreateUserDefinedFunctionCommandOutput } from "./commands/CreateUserDefinedFunctionCommand";
43
45
  import { CreateWorkflowCommandInput, CreateWorkflowCommandOutput } from "./commands/CreateWorkflowCommand";
@@ -62,6 +64,7 @@ import { DeleteSchemaVersionsCommandInput, DeleteSchemaVersionsCommandOutput } f
62
64
  import { DeleteSecurityConfigurationCommandInput, DeleteSecurityConfigurationCommandOutput } from "./commands/DeleteSecurityConfigurationCommand";
63
65
  import { DeleteSessionCommandInput, DeleteSessionCommandOutput } from "./commands/DeleteSessionCommand";
64
66
  import { DeleteTableCommandInput, DeleteTableCommandOutput } from "./commands/DeleteTableCommand";
67
+ import { DeleteTableOptimizerCommandInput, DeleteTableOptimizerCommandOutput } from "./commands/DeleteTableOptimizerCommand";
65
68
  import { DeleteTableVersionCommandInput, DeleteTableVersionCommandOutput } from "./commands/DeleteTableVersionCommand";
66
69
  import { DeleteTriggerCommandInput, DeleteTriggerCommandOutput } from "./commands/DeleteTriggerCommand";
67
70
  import { DeleteUserDefinedFunctionCommandInput, DeleteUserDefinedFunctionCommandOutput } from "./commands/DeleteUserDefinedFunctionCommand";
@@ -116,6 +119,7 @@ import { GetSecurityConfigurationsCommandInput, GetSecurityConfigurationsCommand
116
119
  import { GetSessionCommandInput, GetSessionCommandOutput } from "./commands/GetSessionCommand";
117
120
  import { GetStatementCommandInput, GetStatementCommandOutput } from "./commands/GetStatementCommand";
118
121
  import { GetTableCommandInput, GetTableCommandOutput } from "./commands/GetTableCommand";
122
+ import { GetTableOptimizerCommandInput, GetTableOptimizerCommandOutput } from "./commands/GetTableOptimizerCommand";
119
123
  import { GetTablesCommandInput, GetTablesCommandOutput } from "./commands/GetTablesCommand";
120
124
  import { GetTableVersionCommandInput, GetTableVersionCommandOutput } from "./commands/GetTableVersionCommand";
121
125
  import { GetTableVersionsCommandInput, GetTableVersionsCommandOutput } from "./commands/GetTableVersionsCommand";
@@ -148,6 +152,7 @@ import { ListSchemasCommandInput, ListSchemasCommandOutput } from "./commands/Li
148
152
  import { ListSchemaVersionsCommandInput, ListSchemaVersionsCommandOutput } from "./commands/ListSchemaVersionsCommand";
149
153
  import { ListSessionsCommandInput, ListSessionsCommandOutput } from "./commands/ListSessionsCommand";
150
154
  import { ListStatementsCommandInput, ListStatementsCommandOutput } from "./commands/ListStatementsCommand";
155
+ import { ListTableOptimizerRunsCommandInput, ListTableOptimizerRunsCommandOutput } from "./commands/ListTableOptimizerRunsCommand";
151
156
  import { ListTriggersCommandInput, ListTriggersCommandOutput } from "./commands/ListTriggersCommand";
152
157
  import { ListWorkflowsCommandInput, ListWorkflowsCommandOutput } from "./commands/ListWorkflowsCommand";
153
158
  import { PutDataCatalogEncryptionSettingsCommandInput, PutDataCatalogEncryptionSettingsCommandOutput } from "./commands/PutDataCatalogEncryptionSettingsCommand";
@@ -198,6 +203,7 @@ import { UpdateRegistryCommandInput, UpdateRegistryCommandOutput } from "./comma
198
203
  import { UpdateSchemaCommandInput, UpdateSchemaCommandOutput } from "./commands/UpdateSchemaCommand";
199
204
  import { UpdateSourceControlFromJobCommandInput, UpdateSourceControlFromJobCommandOutput } from "./commands/UpdateSourceControlFromJobCommand";
200
205
  import { UpdateTableCommandInput, UpdateTableCommandOutput } from "./commands/UpdateTableCommand";
206
+ import { UpdateTableOptimizerCommandInput, UpdateTableOptimizerCommandOutput } from "./commands/UpdateTableOptimizerCommand";
201
207
  import { UpdateTriggerCommandInput, UpdateTriggerCommandOutput } from "./commands/UpdateTriggerCommand";
202
208
  import { UpdateUserDefinedFunctionCommandInput, UpdateUserDefinedFunctionCommandOutput } from "./commands/UpdateUserDefinedFunctionCommand";
203
209
  import { UpdateWorkflowCommandInput, UpdateWorkflowCommandOutput } from "./commands/UpdateWorkflowCommand";
@@ -275,6 +281,12 @@ export interface Glue {
275
281
  batchGetPartition(args: BatchGetPartitionCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetPartitionCommandOutput>;
276
282
  batchGetPartition(args: BatchGetPartitionCommandInput, cb: (err: any, data?: BatchGetPartitionCommandOutput) => void): void;
277
283
  batchGetPartition(args: BatchGetPartitionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetPartitionCommandOutput) => void): void;
284
+ /**
285
+ * @see {@link BatchGetTableOptimizerCommand}
286
+ */
287
+ batchGetTableOptimizer(args: BatchGetTableOptimizerCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetTableOptimizerCommandOutput>;
288
+ batchGetTableOptimizer(args: BatchGetTableOptimizerCommandInput, cb: (err: any, data?: BatchGetTableOptimizerCommandOutput) => void): void;
289
+ batchGetTableOptimizer(args: BatchGetTableOptimizerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetTableOptimizerCommandOutput) => void): void;
278
290
  /**
279
291
  * @see {@link BatchGetTriggersCommand}
280
292
  */
@@ -437,6 +449,12 @@ export interface Glue {
437
449
  createTable(args: CreateTableCommandInput, options?: __HttpHandlerOptions): Promise<CreateTableCommandOutput>;
438
450
  createTable(args: CreateTableCommandInput, cb: (err: any, data?: CreateTableCommandOutput) => void): void;
439
451
  createTable(args: CreateTableCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTableCommandOutput) => void): void;
452
+ /**
453
+ * @see {@link CreateTableOptimizerCommand}
454
+ */
455
+ createTableOptimizer(args: CreateTableOptimizerCommandInput, options?: __HttpHandlerOptions): Promise<CreateTableOptimizerCommandOutput>;
456
+ createTableOptimizer(args: CreateTableOptimizerCommandInput, cb: (err: any, data?: CreateTableOptimizerCommandOutput) => void): void;
457
+ createTableOptimizer(args: CreateTableOptimizerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTableOptimizerCommandOutput) => void): void;
440
458
  /**
441
459
  * @see {@link CreateTriggerCommand}
442
460
  */
@@ -581,6 +599,12 @@ export interface Glue {
581
599
  deleteTable(args: DeleteTableCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTableCommandOutput>;
582
600
  deleteTable(args: DeleteTableCommandInput, cb: (err: any, data?: DeleteTableCommandOutput) => void): void;
583
601
  deleteTable(args: DeleteTableCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTableCommandOutput) => void): void;
602
+ /**
603
+ * @see {@link DeleteTableOptimizerCommand}
604
+ */
605
+ deleteTableOptimizer(args: DeleteTableOptimizerCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTableOptimizerCommandOutput>;
606
+ deleteTableOptimizer(args: DeleteTableOptimizerCommandInput, cb: (err: any, data?: DeleteTableOptimizerCommandOutput) => void): void;
607
+ deleteTableOptimizer(args: DeleteTableOptimizerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTableOptimizerCommandOutput) => void): void;
584
608
  /**
585
609
  * @see {@link DeleteTableVersionCommand}
586
610
  */
@@ -905,6 +929,12 @@ export interface Glue {
905
929
  getTable(args: GetTableCommandInput, options?: __HttpHandlerOptions): Promise<GetTableCommandOutput>;
906
930
  getTable(args: GetTableCommandInput, cb: (err: any, data?: GetTableCommandOutput) => void): void;
907
931
  getTable(args: GetTableCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTableCommandOutput) => void): void;
932
+ /**
933
+ * @see {@link GetTableOptimizerCommand}
934
+ */
935
+ getTableOptimizer(args: GetTableOptimizerCommandInput, options?: __HttpHandlerOptions): Promise<GetTableOptimizerCommandOutput>;
936
+ getTableOptimizer(args: GetTableOptimizerCommandInput, cb: (err: any, data?: GetTableOptimizerCommandOutput) => void): void;
937
+ getTableOptimizer(args: GetTableOptimizerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTableOptimizerCommandOutput) => void): void;
908
938
  /**
909
939
  * @see {@link GetTablesCommand}
910
940
  */
@@ -1097,6 +1127,12 @@ export interface Glue {
1097
1127
  listStatements(args: ListStatementsCommandInput, options?: __HttpHandlerOptions): Promise<ListStatementsCommandOutput>;
1098
1128
  listStatements(args: ListStatementsCommandInput, cb: (err: any, data?: ListStatementsCommandOutput) => void): void;
1099
1129
  listStatements(args: ListStatementsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListStatementsCommandOutput) => void): void;
1130
+ /**
1131
+ * @see {@link ListTableOptimizerRunsCommand}
1132
+ */
1133
+ listTableOptimizerRuns(args: ListTableOptimizerRunsCommandInput, options?: __HttpHandlerOptions): Promise<ListTableOptimizerRunsCommandOutput>;
1134
+ listTableOptimizerRuns(args: ListTableOptimizerRunsCommandInput, cb: (err: any, data?: ListTableOptimizerRunsCommandOutput) => void): void;
1135
+ listTableOptimizerRuns(args: ListTableOptimizerRunsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTableOptimizerRunsCommandOutput) => void): void;
1100
1136
  /**
1101
1137
  * @see {@link ListTriggersCommand}
1102
1138
  */
@@ -1397,6 +1433,12 @@ export interface Glue {
1397
1433
  updateTable(args: UpdateTableCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTableCommandOutput>;
1398
1434
  updateTable(args: UpdateTableCommandInput, cb: (err: any, data?: UpdateTableCommandOutput) => void): void;
1399
1435
  updateTable(args: UpdateTableCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateTableCommandOutput) => void): void;
1436
+ /**
1437
+ * @see {@link UpdateTableOptimizerCommand}
1438
+ */
1439
+ updateTableOptimizer(args: UpdateTableOptimizerCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTableOptimizerCommandOutput>;
1440
+ updateTableOptimizer(args: UpdateTableOptimizerCommandInput, cb: (err: any, data?: UpdateTableOptimizerCommandOutput) => void): void;
1441
+ updateTableOptimizer(args: UpdateTableOptimizerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateTableOptimizerCommandOutput) => void): void;
1400
1442
  /**
1401
1443
  * @see {@link UpdateTriggerCommand}
1402
1444
  */