@aws-sdk/client-glue 3.451.0 → 3.453.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 (60) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/Glue.js +10 -0
  3. package/dist-cjs/commands/GetColumnStatisticsTaskRunCommand.js +51 -0
  4. package/dist-cjs/commands/GetColumnStatisticsTaskRunsCommand.js +51 -0
  5. package/dist-cjs/commands/ListColumnStatisticsTaskRunsCommand.js +51 -0
  6. package/dist-cjs/commands/StartColumnStatisticsTaskRunCommand.js +51 -0
  7. package/dist-cjs/commands/StopColumnStatisticsTaskRunCommand.js +51 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/models/models_1.js +8 -9
  10. package/dist-cjs/models/models_2.js +51 -1
  11. package/dist-cjs/pagination/GetColumnStatisticsTaskRunsPaginator.js +29 -0
  12. package/dist-cjs/pagination/ListColumnStatisticsTaskRunsPaginator.js +29 -0
  13. package/dist-cjs/pagination/index.js +3 -1
  14. package/dist-cjs/protocols/Aws_json1_1.js +317 -8
  15. package/dist-es/Glue.js +10 -0
  16. package/dist-es/commands/GetColumnStatisticsTaskRunCommand.js +47 -0
  17. package/dist-es/commands/GetColumnStatisticsTaskRunsCommand.js +47 -0
  18. package/dist-es/commands/ListColumnStatisticsTaskRunsCommand.js +47 -0
  19. package/dist-es/commands/StartColumnStatisticsTaskRunCommand.js +47 -0
  20. package/dist-es/commands/StopColumnStatisticsTaskRunCommand.js +47 -0
  21. package/dist-es/commands/index.js +5 -0
  22. package/dist-es/models/models_1.js +7 -8
  23. package/dist-es/models/models_2.js +47 -0
  24. package/dist-es/pagination/GetColumnStatisticsTaskRunsPaginator.js +25 -0
  25. package/dist-es/pagination/ListColumnStatisticsTaskRunsPaginator.js +25 -0
  26. package/dist-es/pagination/index.js +3 -1
  27. package/dist-es/protocols/Aws_json1_1.js +300 -1
  28. package/dist-types/Glue.d.ts +35 -0
  29. package/dist-types/GlueClient.d.ts +7 -2
  30. package/dist-types/commands/GetColumnStatisticsTaskRunCommand.d.ts +103 -0
  31. package/dist-types/commands/GetColumnStatisticsTaskRunsCommand.d.ts +103 -0
  32. package/dist-types/commands/GetStatementCommand.d.ts +2 -1
  33. package/dist-types/commands/GetTableCommand.d.ts +1 -2
  34. package/dist-types/commands/ListColumnStatisticsTaskRunsCommand.d.ts +80 -0
  35. package/dist-types/commands/StartColumnStatisticsTaskRunCommand.d.ts +99 -0
  36. package/dist-types/commands/StopColumnStatisticsTaskRunCommand.d.ts +84 -0
  37. package/dist-types/commands/index.d.ts +5 -0
  38. package/dist-types/models/models_1.d.ts +171 -147
  39. package/dist-types/models/models_2.d.ts +299 -1
  40. package/dist-types/pagination/GetColumnStatisticsTaskRunsPaginator.d.ts +7 -0
  41. package/dist-types/pagination/ListColumnStatisticsTaskRunsPaginator.d.ts +7 -0
  42. package/dist-types/pagination/index.d.ts +3 -1
  43. package/dist-types/protocols/Aws_json1_1.d.ts +45 -0
  44. package/dist-types/ts3.4/Glue.d.ts +85 -0
  45. package/dist-types/ts3.4/GlueClient.d.ts +30 -0
  46. package/dist-types/ts3.4/commands/GetColumnStatisticsTaskRunCommand.d.ts +42 -0
  47. package/dist-types/ts3.4/commands/GetColumnStatisticsTaskRunsCommand.d.ts +42 -0
  48. package/dist-types/ts3.4/commands/GetStatementCommand.d.ts +2 -1
  49. package/dist-types/ts3.4/commands/GetTableCommand.d.ts +1 -2
  50. package/dist-types/ts3.4/commands/ListColumnStatisticsTaskRunsCommand.d.ts +42 -0
  51. package/dist-types/ts3.4/commands/StartColumnStatisticsTaskRunCommand.d.ts +42 -0
  52. package/dist-types/ts3.4/commands/StopColumnStatisticsTaskRunCommand.d.ts +42 -0
  53. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  54. package/dist-types/ts3.4/models/models_1.d.ts +45 -40
  55. package/dist-types/ts3.4/models/models_2.d.ts +98 -1
  56. package/dist-types/ts3.4/pagination/GetColumnStatisticsTaskRunsPaginator.d.ts +11 -0
  57. package/dist-types/ts3.4/pagination/ListColumnStatisticsTaskRunsPaginator.d.ts +11 -0
  58. package/dist-types/ts3.4/pagination/index.d.ts +3 -1
  59. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +60 -0
  60. package/package.json +1 -1
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_ListColumnStatisticsTaskRunsCommand, se_ListColumnStatisticsTaskRunsCommand, } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class ListColumnStatisticsTaskRunsCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListColumnStatisticsTaskRunsCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "GlueClient";
26
+ const commandName = "ListColumnStatisticsTaskRunsCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AWSGlue",
35
+ operation: "ListColumnStatisticsTaskRuns",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_ListColumnStatisticsTaskRunsCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_ListColumnStatisticsTaskRunsCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_StartColumnStatisticsTaskRunCommand, se_StartColumnStatisticsTaskRunCommand, } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class StartColumnStatisticsTaskRunCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, StartColumnStatisticsTaskRunCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "GlueClient";
26
+ const commandName = "StartColumnStatisticsTaskRunCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AWSGlue",
35
+ operation: "StartColumnStatisticsTaskRun",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_StartColumnStatisticsTaskRunCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_StartColumnStatisticsTaskRunCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_StopColumnStatisticsTaskRunCommand, se_StopColumnStatisticsTaskRunCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class StopColumnStatisticsTaskRunCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, StopColumnStatisticsTaskRunCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "GlueClient";
26
+ const commandName = "StopColumnStatisticsTaskRunCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AWSGlue",
35
+ operation: "StopColumnStatisticsTaskRun",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_StopColumnStatisticsTaskRunCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_StopColumnStatisticsTaskRunCommand(output, context);
46
+ }
47
+ }
@@ -76,6 +76,8 @@ export * from "./GetClassifierCommand";
76
76
  export * from "./GetClassifiersCommand";
77
77
  export * from "./GetColumnStatisticsForPartitionCommand";
78
78
  export * from "./GetColumnStatisticsForTableCommand";
79
+ export * from "./GetColumnStatisticsTaskRunCommand";
80
+ export * from "./GetColumnStatisticsTaskRunsCommand";
79
81
  export * from "./GetConnectionCommand";
80
82
  export * from "./GetConnectionsCommand";
81
83
  export * from "./GetCrawlerCommand";
@@ -136,6 +138,7 @@ export * from "./GetWorkflowRunPropertiesCommand";
136
138
  export * from "./GetWorkflowRunsCommand";
137
139
  export * from "./ImportCatalogToGlueCommand";
138
140
  export * from "./ListBlueprintsCommand";
141
+ export * from "./ListColumnStatisticsTaskRunsCommand";
139
142
  export * from "./ListCrawlersCommand";
140
143
  export * from "./ListCrawlsCommand";
141
144
  export * from "./ListCustomEntityTypesCommand";
@@ -166,6 +169,7 @@ export * from "./ResumeWorkflowRunCommand";
166
169
  export * from "./RunStatementCommand";
167
170
  export * from "./SearchTablesCommand";
168
171
  export * from "./StartBlueprintRunCommand";
172
+ export * from "./StartColumnStatisticsTaskRunCommand";
169
173
  export * from "./StartCrawlerCommand";
170
174
  export * from "./StartCrawlerScheduleCommand";
171
175
  export * from "./StartDataQualityRuleRecommendationRunCommand";
@@ -177,6 +181,7 @@ export * from "./StartMLEvaluationTaskRunCommand";
177
181
  export * from "./StartMLLabelingSetGenerationTaskRunCommand";
178
182
  export * from "./StartTriggerCommand";
179
183
  export * from "./StartWorkflowRunCommand";
184
+ export * from "./StopColumnStatisticsTaskRunCommand";
180
185
  export * from "./StopCrawlerCommand";
181
186
  export * from "./StopCrawlerScheduleCommand";
182
187
  export * from "./StopSessionCommand";
@@ -163,6 +163,13 @@ export const ColumnStatisticsType = {
163
163
  LONG: "LONG",
164
164
  STRING: "STRING",
165
165
  };
166
+ export const ColumnStatisticsState = {
167
+ FAILED: "FAILED",
168
+ RUNNING: "RUNNING",
169
+ STARTING: "STARTING",
170
+ STOPPED: "STOPPED",
171
+ SUCCEEDED: "SUCCEEDED",
172
+ };
166
173
  export const ResourceShareType = {
167
174
  ALL: "ALL",
168
175
  FEDERATED: "FEDERATED",
@@ -216,11 +223,3 @@ export const PartitionIndexStatus = {
216
223
  export const SchemaDiffType = {
217
224
  SYNTAX_DIFF: "SYNTAX_DIFF",
218
225
  };
219
- export const StatementState = {
220
- AVAILABLE: "AVAILABLE",
221
- CANCELLED: "CANCELLED",
222
- CANCELLING: "CANCELLING",
223
- ERROR: "ERROR",
224
- RUNNING: "RUNNING",
225
- WAITING: "WAITING",
226
- };
@@ -1,5 +1,13 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { GlueServiceException as __BaseException } from "./GlueServiceException";
3
+ export const StatementState = {
4
+ AVAILABLE: "AVAILABLE",
5
+ CANCELLED: "CANCELLED",
6
+ CANCELLING: "CANCELLING",
7
+ ERROR: "ERROR",
8
+ RUNNING: "RUNNING",
9
+ WAITING: "WAITING",
10
+ };
3
11
  export const PermissionType = {
4
12
  CELL_FILTER_PERMISSION: "CELL_FILTER_PERMISSION",
5
13
  COLUMN_PERMISSION: "COLUMN_PERMISSION",
@@ -99,6 +107,19 @@ export class IllegalBlueprintStateException extends __BaseException {
99
107
  this.Message = opts.Message;
100
108
  }
101
109
  }
110
+ export class ColumnStatisticsTaskRunningException extends __BaseException {
111
+ constructor(opts) {
112
+ super({
113
+ name: "ColumnStatisticsTaskRunningException",
114
+ $fault: "client",
115
+ ...opts,
116
+ });
117
+ this.name = "ColumnStatisticsTaskRunningException";
118
+ this.$fault = "client";
119
+ Object.setPrototypeOf(this, ColumnStatisticsTaskRunningException.prototype);
120
+ this.Message = opts.Message;
121
+ }
122
+ }
102
123
  export class NoScheduleException extends __BaseException {
103
124
  constructor(opts) {
104
125
  super({
@@ -138,6 +159,32 @@ export class MLTransformNotReadyException extends __BaseException {
138
159
  this.Message = opts.Message;
139
160
  }
140
161
  }
162
+ export class ColumnStatisticsTaskNotRunningException extends __BaseException {
163
+ constructor(opts) {
164
+ super({
165
+ name: "ColumnStatisticsTaskNotRunningException",
166
+ $fault: "client",
167
+ ...opts,
168
+ });
169
+ this.name = "ColumnStatisticsTaskNotRunningException";
170
+ this.$fault = "client";
171
+ Object.setPrototypeOf(this, ColumnStatisticsTaskNotRunningException.prototype);
172
+ this.Message = opts.Message;
173
+ }
174
+ }
175
+ export class ColumnStatisticsTaskStoppingException extends __BaseException {
176
+ constructor(opts) {
177
+ super({
178
+ name: "ColumnStatisticsTaskStoppingException",
179
+ $fault: "client",
180
+ ...opts,
181
+ });
182
+ this.name = "ColumnStatisticsTaskStoppingException";
183
+ this.$fault = "client";
184
+ Object.setPrototypeOf(this, ColumnStatisticsTaskStoppingException.prototype);
185
+ this.Message = opts.Message;
186
+ }
187
+ }
141
188
  export class CrawlerNotRunningException extends __BaseException {
142
189
  constructor(opts) {
143
190
  super({
@@ -0,0 +1,25 @@
1
+ import { GetColumnStatisticsTaskRunsCommand, } from "../commands/GetColumnStatisticsTaskRunsCommand";
2
+ import { GlueClient } from "../GlueClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new GetColumnStatisticsTaskRunsCommand(input), ...args);
5
+ };
6
+ export async function* paginateGetColumnStatisticsTaskRuns(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof GlueClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected Glue | GlueClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,25 @@
1
+ import { ListColumnStatisticsTaskRunsCommand, } from "../commands/ListColumnStatisticsTaskRunsCommand";
2
+ import { GlueClient } from "../GlueClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListColumnStatisticsTaskRunsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListColumnStatisticsTaskRuns(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof GlueClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected Glue | GlueClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -1,5 +1,6 @@
1
1
  export * from "./GetBlueprintRunsPaginator";
2
2
  export * from "./GetClassifiersPaginator";
3
+ export * from "./GetColumnStatisticsTaskRunsPaginator";
3
4
  export * from "./GetConnectionsPaginator";
4
5
  export * from "./GetCrawlerMetricsPaginator";
5
6
  export * from "./GetCrawlersPaginator";
@@ -7,8 +8,8 @@ export * from "./GetDatabasesPaginator";
7
8
  export * from "./GetDevEndpointsPaginator";
8
9
  export * from "./GetJobRunsPaginator";
9
10
  export * from "./GetJobsPaginator";
10
- export * from "./GetMLTaskRunsPaginator";
11
11
  export * from "./Interfaces";
12
+ export * from "./GetMLTaskRunsPaginator";
12
13
  export * from "./GetMLTransformsPaginator";
13
14
  export * from "./GetPartitionIndexesPaginator";
14
15
  export * from "./GetPartitionsPaginator";
@@ -21,6 +22,7 @@ export * from "./GetUnfilteredPartitionsMetadataPaginator";
21
22
  export * from "./GetUserDefinedFunctionsPaginator";
22
23
  export * from "./GetWorkflowRunsPaginator";
23
24
  export * from "./ListBlueprintsPaginator";
25
+ export * from "./ListColumnStatisticsTaskRunsPaginator";
24
26
  export * from "./ListCrawlersPaginator";
25
27
  export * from "./ListCustomEntityTypesPaginator";
26
28
  export * from "./ListDataQualityResultsPaginator";