Skip to content

Commit 3d999b6

Browse files
author
awstools
committed
feat(client-glue): Add AttributesToGet parameter support for Glue GetTables
1 parent 86d89c6 commit 3d999b6

File tree

6 files changed

+80
-12
lines changed

6 files changed

+80
-12
lines changed

clients/client-glue/src/commands/GetTablesCommand.ts

+3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ export interface GetTablesCommandOutput extends GetTablesResponse, __MetadataBea
4646
* TransactionId: "STRING_VALUE",
4747
* QueryAsOfTime: new Date("TIMESTAMP"),
4848
* IncludeStatusDetails: true || false,
49+
* AttributesToGet: [ // TableAttributesList
50+
* "NAME" || "TABLE_TYPE",
51+
* ],
4952
* };
5053
* const command = new GetTablesCommand(input);
5154
* const response = await client.send(command);

clients/client-glue/src/commands/UpdateWorkflowCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
88
import { GlueClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlueClient";
9-
import { UpdateWorkflowRequest, UpdateWorkflowResponse } from "../models/models_2";
9+
import { UpdateWorkflowRequest } from "../models/models_2";
10+
import { UpdateWorkflowResponse } from "../models/models_3";
1011
import { de_UpdateWorkflowCommand, se_UpdateWorkflowCommand } from "../protocols/Aws_json1_1";
1112

1213
/**

clients/client-glue/src/models/models_2.ts

+31-11
Original file line numberDiff line numberDiff line change
@@ -1824,6 +1824,20 @@ export interface GetTableOptimizerResponse {
18241824
TableOptimizer?: TableOptimizer;
18251825
}
18261826

1827+
/**
1828+
* @public
1829+
* @enum
1830+
*/
1831+
export const TableAttributes = {
1832+
NAME: "NAME",
1833+
TABLE_TYPE: "TABLE_TYPE",
1834+
} as const;
1835+
1836+
/**
1837+
* @public
1838+
*/
1839+
export type TableAttributes = (typeof TableAttributes)[keyof typeof TableAttributes];
1840+
18271841
/**
18281842
* @public
18291843
*/
@@ -1878,6 +1892,23 @@ export interface GetTablesRequest {
18781892
* @public
18791893
*/
18801894
IncludeStatusDetails?: boolean;
1895+
1896+
/**
1897+
* <p> Specifies the table fields returned by the <code>GetTables</code> call. This parameter doesn’t accept an empty list. The request must include <code>NAME</code>.</p>
1898+
* <p>The following are the valid combinations of values:</p>
1899+
* <ul>
1900+
* <li>
1901+
* <p>
1902+
* <code>NAME</code> - Names of all tables in the database.</p>
1903+
* </li>
1904+
* <li>
1905+
* <p>
1906+
* <code>NAME</code>, <code>TABLE_TYPE</code> - Names of all tables and the table types.</p>
1907+
* </li>
1908+
* </ul>
1909+
* @public
1910+
*/
1911+
AttributesToGet?: TableAttributes[];
18811912
}
18821913

18831914
/**
@@ -7788,17 +7819,6 @@ export interface UpdateWorkflowRequest {
77887819
MaxConcurrentRuns?: number;
77897820
}
77907821

7791-
/**
7792-
* @public
7793-
*/
7794-
export interface UpdateWorkflowResponse {
7795-
/**
7796-
* <p>The name of the workflow which was specified in input.</p>
7797-
* @public
7798-
*/
7799-
Name?: string;
7800-
}
7801-
78027822
/**
78037823
* @internal
78047824
*/

clients/client-glue/src/models/models_3.ts

+11
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,17 @@ import {
9696
ViewValidation,
9797
} from "./models_2";
9898

99+
/**
100+
* @public
101+
*/
102+
export interface UpdateWorkflowResponse {
103+
/**
104+
* <p>The name of the workflow which was specified in input.</p>
105+
* @public
106+
*/
107+
Name?: string;
108+
}
109+
99110
/**
100111
* <p>Specifies the mapping of data property keys.</p>
101112
* @public

clients/client-glue/src/protocols/Aws_json1_1.ts

+4
Original file line numberDiff line numberDiff line change
@@ -1100,6 +1100,7 @@ import {
11001100
StopTriggerRequest,
11011101
StopWorkflowRunRequest,
11021102
SupportedDialect,
1103+
TableAttributes,
11031104
TagResourceRequest,
11041105
TimestampFilter,
11051106
TriggerUpdate,
@@ -10311,6 +10312,7 @@ const se_GetTableRequest = (input: GetTableRequest, context: __SerdeContext): an
1031110312
*/
1031210313
const se_GetTablesRequest = (input: GetTablesRequest, context: __SerdeContext): any => {
1031310314
return take(input, {
10315+
AttributesToGet: _json,
1031410316
CatalogId: [],
1031510317
DatabaseName: [],
1031610318
Expression: [],
@@ -11122,6 +11124,8 @@ const se_StringColumnStatisticsData = (input: StringColumnStatisticsData, contex
1112211124

1112311125
// se_SupportedDialect omitted.
1112411126

11127+
// se_TableAttributesList omitted.
11128+
1112511129
// se_TableIdentifier omitted.
1112611130

1112711131
/**

codegen/sdk-codegen/aws-models/glue.json

+29
Original file line numberDiff line numberDiff line change
@@ -20451,6 +20451,12 @@
2045120451
"traits": {
2045220452
"smithy.api#documentation": "<p>Specifies whether to include status details related to a request to create or update an Glue Data Catalog view.</p>"
2045320453
}
20454+
},
20455+
"AttributesToGet": {
20456+
"target": "com.amazonaws.glue#TableAttributesList",
20457+
"traits": {
20458+
"smithy.api#documentation": "<p> Specifies the table fields returned by the <code>GetTables</code> call. This parameter doesn’t accept an empty list. The request must include <code>NAME</code>.</p>\n <p>The following are the valid combinations of values:</p>\n <ul>\n <li>\n <p>\n <code>NAME</code> - Names of all tables in the database.</p>\n </li>\n <li>\n <p>\n <code>NAME</code>, <code>TABLE_TYPE</code> - Names of all tables and the table types.</p>\n </li>\n </ul>"
20459+
}
2045420460
}
2045520461
},
2045620462
"traits": {
@@ -35007,6 +35013,29 @@
3500735013
"smithy.api#documentation": "<p>Represents a collection of related data organized in columns and rows.</p>"
3500835014
}
3500935015
},
35016+
"com.amazonaws.glue#TableAttributes": {
35017+
"type": "enum",
35018+
"members": {
35019+
"NAME": {
35020+
"target": "smithy.api#Unit",
35021+
"traits": {
35022+
"smithy.api#enumValue": "NAME"
35023+
}
35024+
},
35025+
"TABLE_TYPE": {
35026+
"target": "smithy.api#Unit",
35027+
"traits": {
35028+
"smithy.api#enumValue": "TABLE_TYPE"
35029+
}
35030+
}
35031+
}
35032+
},
35033+
"com.amazonaws.glue#TableAttributesList": {
35034+
"type": "list",
35035+
"member": {
35036+
"target": "com.amazonaws.glue#TableAttributes"
35037+
}
35038+
},
3501035039
"com.amazonaws.glue#TableError": {
3501135040
"type": "structure",
3501235041
"members": {

0 commit comments

Comments
 (0)