@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.
- package/README.md +49 -1
- package/dist-cjs/Glue.js +12 -0
- package/dist-cjs/commands/BatchGetTableOptimizerCommand.js +51 -0
- package/dist-cjs/commands/CreateTableOptimizerCommand.js +51 -0
- package/dist-cjs/commands/DeleteTableOptimizerCommand.js +51 -0
- package/dist-cjs/commands/GetTableOptimizerCommand.js +51 -0
- package/dist-cjs/commands/ListTableOptimizerRunsCommand.js +51 -0
- package/dist-cjs/commands/UpdateTableOptimizerCommand.js +51 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/models/models_0.js +10 -16
- package/dist-cjs/models/models_1.js +16 -1
- package/dist-cjs/pagination/ListTableOptimizerRunsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +361 -10
- package/dist-es/Glue.js +12 -0
- package/dist-es/commands/BatchGetTableOptimizerCommand.js +47 -0
- package/dist-es/commands/CreateTableOptimizerCommand.js +47 -0
- package/dist-es/commands/DeleteTableOptimizerCommand.js +47 -0
- package/dist-es/commands/GetTableOptimizerCommand.js +47 -0
- package/dist-es/commands/ListTableOptimizerRunsCommand.js +47 -0
- package/dist-es/commands/UpdateTableOptimizerCommand.js +47 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/models/models_0.js +9 -14
- package/dist-es/models/models_1.js +14 -0
- package/dist-es/pagination/ListTableOptimizerRunsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +341 -2
- package/dist-types/Glue.d.ts +42 -0
- package/dist-types/GlueClient.d.ts +8 -2
- package/dist-types/commands/BatchGetTableOptimizerCommand.d.ts +120 -0
- package/dist-types/commands/CreateDataQualityRulesetCommand.d.ts +1 -1
- package/dist-types/commands/CreateDatabaseCommand.d.ts +1 -1
- package/dist-types/commands/CreateTableOptimizerCommand.d.ts +93 -0
- package/dist-types/commands/DeleteTableOptimizerCommand.d.ts +86 -0
- package/dist-types/commands/GetTableCommand.d.ts +2 -1
- package/dist-types/commands/GetTableOptimizerCommand.d.ts +109 -0
- package/dist-types/commands/GetTableVersionCommand.d.ts +1 -1
- package/dist-types/commands/GetTableVersionsCommand.d.ts +1 -1
- package/dist-types/commands/GetTablesCommand.d.ts +1 -1
- package/dist-types/commands/GetTagsCommand.d.ts +1 -1
- package/dist-types/commands/GetTriggerCommand.d.ts +1 -1
- package/dist-types/commands/GetTriggersCommand.d.ts +1 -2
- package/dist-types/commands/ListTableOptimizerRunsCommand.d.ts +107 -0
- package/dist-types/commands/StartDataQualityRuleRecommendationRunCommand.d.ts +1 -0
- package/dist-types/commands/UpdateTableOptimizerCommand.d.ts +90 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +227 -222
- package/dist-types/models/models_1.d.ts +288 -394
- package/dist-types/models/models_2.d.ts +545 -2
- package/dist-types/pagination/ListTableOptimizerRunsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +54 -0
- package/dist-types/ts3.4/Glue.d.ts +102 -0
- package/dist-types/ts3.4/GlueClient.d.ts +36 -0
- package/dist-types/ts3.4/commands/BatchGetTableOptimizerCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateDataQualityRulesetCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateDatabaseCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateTableOptimizerCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteTableOptimizerCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetTableCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetTableOptimizerCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetTableVersionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetTableVersionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetTablesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetTagsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetTriggerCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetTriggersCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/ListTableOptimizerRunsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateTableOptimizerCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +61 -59
- package/dist-types/ts3.4/models/models_1.d.ts +77 -90
- package/dist-types/ts3.4/models/models_2.d.ts +129 -3
- package/dist-types/ts3.4/pagination/ListTableOptimizerRunsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +72 -0
- package/package.json +35 -35
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { GlueClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlueClient";
|
|
5
|
+
import { ListTableOptimizerRunsRequest, ListTableOptimizerRunsResponse } from "../models/models_2";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListTableOptimizerRunsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListTableOptimizerRunsCommandInput extends ListTableOptimizerRunsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListTableOptimizerRunsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListTableOptimizerRunsCommandOutput extends ListTableOptimizerRunsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Lists the history of previous optimizer runs for a specific table.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { GlueClient, ListTableOptimizerRunsCommand } from "@aws-sdk/client-glue"; // ES Modules import
|
|
31
|
+
* // const { GlueClient, ListTableOptimizerRunsCommand } = require("@aws-sdk/client-glue"); // CommonJS import
|
|
32
|
+
* const client = new GlueClient(config);
|
|
33
|
+
* const input = { // ListTableOptimizerRunsRequest
|
|
34
|
+
* CatalogId: "STRING_VALUE", // required
|
|
35
|
+
* DatabaseName: "STRING_VALUE", // required
|
|
36
|
+
* TableName: "STRING_VALUE", // required
|
|
37
|
+
* Type: "compaction", // required
|
|
38
|
+
* MaxResults: Number("int"),
|
|
39
|
+
* NextToken: "STRING_VALUE",
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListTableOptimizerRunsCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // ListTableOptimizerRunsResponse
|
|
44
|
+
* // CatalogId: "STRING_VALUE",
|
|
45
|
+
* // DatabaseName: "STRING_VALUE",
|
|
46
|
+
* // TableName: "STRING_VALUE",
|
|
47
|
+
* // NextToken: "STRING_VALUE",
|
|
48
|
+
* // TableOptimizerRuns: [ // TableOptimizerRuns
|
|
49
|
+
* // { // TableOptimizerRun
|
|
50
|
+
* // eventType: "starting" || "completed" || "failed" || "in_progress",
|
|
51
|
+
* // startTimestamp: new Date("TIMESTAMP"),
|
|
52
|
+
* // endTimestamp: new Date("TIMESTAMP"),
|
|
53
|
+
* // metrics: { // RunMetrics
|
|
54
|
+
* // NumberOfBytesCompacted: "STRING_VALUE",
|
|
55
|
+
* // NumberOfFilesCompacted: "STRING_VALUE",
|
|
56
|
+
* // NumberOfDpus: "STRING_VALUE",
|
|
57
|
+
* // JobDurationInHour: "STRING_VALUE",
|
|
58
|
+
* // },
|
|
59
|
+
* // error: "STRING_VALUE",
|
|
60
|
+
* // },
|
|
61
|
+
* // ],
|
|
62
|
+
* // };
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param ListTableOptimizerRunsCommandInput - {@link ListTableOptimizerRunsCommandInput}
|
|
67
|
+
* @returns {@link ListTableOptimizerRunsCommandOutput}
|
|
68
|
+
* @see {@link ListTableOptimizerRunsCommandInput} for command's `input` shape.
|
|
69
|
+
* @see {@link ListTableOptimizerRunsCommandOutput} for command's `response` shape.
|
|
70
|
+
* @see {@link GlueClientResolvedConfig | config} for GlueClient's `config` shape.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
73
|
+
* <p>Access to a resource was denied.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link EntityNotFoundException} (client fault)
|
|
76
|
+
* <p>A specified entity does not exist</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
79
|
+
* <p>An internal service error occurred.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link InvalidInputException} (client fault)
|
|
82
|
+
* <p>The input provided was not valid.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link GlueServiceException}
|
|
85
|
+
* <p>Base exception class for all service exceptions from Glue service.</p>
|
|
86
|
+
*
|
|
87
|
+
*/
|
|
88
|
+
export declare class ListTableOptimizerRunsCommand extends $Command<ListTableOptimizerRunsCommandInput, ListTableOptimizerRunsCommandOutput, GlueClientResolvedConfig> {
|
|
89
|
+
readonly input: ListTableOptimizerRunsCommandInput;
|
|
90
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
91
|
+
/**
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
constructor(input: ListTableOptimizerRunsCommandInput);
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTableOptimizerRunsCommandInput, ListTableOptimizerRunsCommandOutput>;
|
|
99
|
+
/**
|
|
100
|
+
* @internal
|
|
101
|
+
*/
|
|
102
|
+
private serialize;
|
|
103
|
+
/**
|
|
104
|
+
* @internal
|
|
105
|
+
*/
|
|
106
|
+
private deserialize;
|
|
107
|
+
}
|
|
@@ -24,6 +24,7 @@ export interface StartDataQualityRuleRecommendationRunCommandOutput extends Star
|
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Starts a recommendation run that is used to generate rules when you don't know what rules to write. Glue Data Quality analyzes the data and comes up with recommendations for a potential ruleset. You can then triage the ruleset and modify the generated ruleset to your liking.</p>
|
|
27
|
+
* <p>Recommendation runs are automatically deleted after 90 days.</p>
|
|
27
28
|
* @example
|
|
28
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
29
30
|
* ```javascript
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { GlueClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlueClient";
|
|
5
|
+
import { UpdateTableOptimizerRequest, UpdateTableOptimizerResponse } from "../models/models_2";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateTableOptimizerCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateTableOptimizerCommandInput extends UpdateTableOptimizerRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateTableOptimizerCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateTableOptimizerCommandOutput extends UpdateTableOptimizerResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Updates the configuration for an existing table optimizer.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { GlueClient, UpdateTableOptimizerCommand } from "@aws-sdk/client-glue"; // ES Modules import
|
|
31
|
+
* // const { GlueClient, UpdateTableOptimizerCommand } = require("@aws-sdk/client-glue"); // CommonJS import
|
|
32
|
+
* const client = new GlueClient(config);
|
|
33
|
+
* const input = { // UpdateTableOptimizerRequest
|
|
34
|
+
* CatalogId: "STRING_VALUE", // required
|
|
35
|
+
* DatabaseName: "STRING_VALUE", // required
|
|
36
|
+
* TableName: "STRING_VALUE", // required
|
|
37
|
+
* Type: "compaction", // required
|
|
38
|
+
* TableOptimizerConfiguration: { // TableOptimizerConfiguration
|
|
39
|
+
* roleArn: "STRING_VALUE",
|
|
40
|
+
* enabled: true || false,
|
|
41
|
+
* },
|
|
42
|
+
* };
|
|
43
|
+
* const command = new UpdateTableOptimizerCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // {};
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param UpdateTableOptimizerCommandInput - {@link UpdateTableOptimizerCommandInput}
|
|
50
|
+
* @returns {@link UpdateTableOptimizerCommandOutput}
|
|
51
|
+
* @see {@link UpdateTableOptimizerCommandInput} for command's `input` shape.
|
|
52
|
+
* @see {@link UpdateTableOptimizerCommandOutput} for command's `response` shape.
|
|
53
|
+
* @see {@link GlueClientResolvedConfig | config} for GlueClient's `config` shape.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
56
|
+
* <p>Access to a resource was denied.</p>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link EntityNotFoundException} (client fault)
|
|
59
|
+
* <p>A specified entity does not exist</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
62
|
+
* <p>An internal service error occurred.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link InvalidInputException} (client fault)
|
|
65
|
+
* <p>The input provided was not valid.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link GlueServiceException}
|
|
68
|
+
* <p>Base exception class for all service exceptions from Glue service.</p>
|
|
69
|
+
*
|
|
70
|
+
*/
|
|
71
|
+
export declare class UpdateTableOptimizerCommand extends $Command<UpdateTableOptimizerCommandInput, UpdateTableOptimizerCommandOutput, GlueClientResolvedConfig> {
|
|
72
|
+
readonly input: UpdateTableOptimizerCommandInput;
|
|
73
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
74
|
+
/**
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
constructor(input: UpdateTableOptimizerCommandInput);
|
|
78
|
+
/**
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
81
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: GlueClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateTableOptimizerCommandInput, UpdateTableOptimizerCommandOutput>;
|
|
82
|
+
/**
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
private serialize;
|
|
86
|
+
/**
|
|
87
|
+
* @internal
|
|
88
|
+
*/
|
|
89
|
+
private deserialize;
|
|
90
|
+
}
|
|
@@ -10,6 +10,7 @@ export * from "./BatchGetDataQualityResultCommand";
|
|
|
10
10
|
export * from "./BatchGetDevEndpointsCommand";
|
|
11
11
|
export * from "./BatchGetJobsCommand";
|
|
12
12
|
export * from "./BatchGetPartitionCommand";
|
|
13
|
+
export * from "./BatchGetTableOptimizerCommand";
|
|
13
14
|
export * from "./BatchGetTriggersCommand";
|
|
14
15
|
export * from "./BatchGetWorkflowsCommand";
|
|
15
16
|
export * from "./BatchStopJobRunCommand";
|
|
@@ -37,6 +38,7 @@ export * from "./CreateScriptCommand";
|
|
|
37
38
|
export * from "./CreateSecurityConfigurationCommand";
|
|
38
39
|
export * from "./CreateSessionCommand";
|
|
39
40
|
export * from "./CreateTableCommand";
|
|
41
|
+
export * from "./CreateTableOptimizerCommand";
|
|
40
42
|
export * from "./CreateTriggerCommand";
|
|
41
43
|
export * from "./CreateUserDefinedFunctionCommand";
|
|
42
44
|
export * from "./CreateWorkflowCommand";
|
|
@@ -61,6 +63,7 @@ export * from "./DeleteSchemaVersionsCommand";
|
|
|
61
63
|
export * from "./DeleteSecurityConfigurationCommand";
|
|
62
64
|
export * from "./DeleteSessionCommand";
|
|
63
65
|
export * from "./DeleteTableCommand";
|
|
66
|
+
export * from "./DeleteTableOptimizerCommand";
|
|
64
67
|
export * from "./DeleteTableVersionCommand";
|
|
65
68
|
export * from "./DeleteTriggerCommand";
|
|
66
69
|
export * from "./DeleteUserDefinedFunctionCommand";
|
|
@@ -115,6 +118,7 @@ export * from "./GetSecurityConfigurationsCommand";
|
|
|
115
118
|
export * from "./GetSessionCommand";
|
|
116
119
|
export * from "./GetStatementCommand";
|
|
117
120
|
export * from "./GetTableCommand";
|
|
121
|
+
export * from "./GetTableOptimizerCommand";
|
|
118
122
|
export * from "./GetTableVersionCommand";
|
|
119
123
|
export * from "./GetTableVersionsCommand";
|
|
120
124
|
export * from "./GetTablesCommand";
|
|
@@ -147,6 +151,7 @@ export * from "./ListSchemaVersionsCommand";
|
|
|
147
151
|
export * from "./ListSchemasCommand";
|
|
148
152
|
export * from "./ListSessionsCommand";
|
|
149
153
|
export * from "./ListStatementsCommand";
|
|
154
|
+
export * from "./ListTableOptimizerRunsCommand";
|
|
150
155
|
export * from "./ListTriggersCommand";
|
|
151
156
|
export * from "./ListWorkflowsCommand";
|
|
152
157
|
export * from "./PutDataCatalogEncryptionSettingsCommand";
|
|
@@ -197,6 +202,7 @@ export * from "./UpdateRegistryCommand";
|
|
|
197
202
|
export * from "./UpdateSchemaCommand";
|
|
198
203
|
export * from "./UpdateSourceControlFromJobCommand";
|
|
199
204
|
export * from "./UpdateTableCommand";
|
|
205
|
+
export * from "./UpdateTableOptimizerCommand";
|
|
200
206
|
export * from "./UpdateTriggerCommand";
|
|
201
207
|
export * from "./UpdateUserDefinedFunctionCommand";
|
|
202
208
|
export * from "./UpdateWorkflowCommand";
|