Skip to content

Commit c1607f6

Browse files
author
awstools
committed
feat(client-glue): This release adds additional configurations for Query Session Context on the following APIs: GetUnfilteredTableMetadata, GetUnfilteredPartitionMetadata, GetUnfilteredPartitionsMetadata.
1 parent c313bdd commit c1607f6

13 files changed

+467
-8
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ export interface BatchGetPartitionCommandOutput extends BatchGetPartitionRespons
155155
* <p>A federation source failed.</p>
156156
*
157157
* @throws {@link FederationSourceRetryableException} (client fault)
158+
* <p>A federation source failed, but the operation may be retried.</p>
158159
*
159160
* @throws {@link GlueEncryptionException} (client fault)
160161
* <p>An encryption operation failed.</p>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export interface CreateConnectionCommandOutput extends CreateConnectionResponse,
3838
/**
3939
* @public
4040
* <p>Creates a connection definition in the Data Catalog.</p>
41+
* <p>Connections used for creating federated resources require the IAM <code>glue:PassConnection</code> permission.</p>
4142
* @example
4243
* Use a bare-bones client and the command you need to make an API call.
4344
* ```javascript

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ export interface GetPartitionCommandOutput extends GetPartitionResponse, __Metad
142142
* <p>A federation source failed.</p>
143143
*
144144
* @throws {@link FederationSourceRetryableException} (client fault)
145+
* <p>A federation source failed, but the operation may be retried.</p>
145146
*
146147
* @throws {@link GlueEncryptionException} (client fault)
147148
* <p>An encryption operation failed.</p>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ export interface GetPartitionsCommandOutput extends GetPartitionsResponse, __Met
152152
* <p>A federation source failed.</p>
153153
*
154154
* @throws {@link FederationSourceRetryableException} (client fault)
155+
* <p>A federation source failed, but the operation may be retried.</p>
155156
*
156157
* @throws {@link GlueEncryptionException} (client fault)
157158
* <p>An encryption operation failed.</p>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ export interface GetTableCommandOutput extends GetTableResponse, __MetadataBeare
168168
* <p>A federation source failed.</p>
169169
*
170170
* @throws {@link FederationSourceRetryableException} (client fault)
171+
* <p>A federation source failed, but the operation may be retried.</p>
171172
*
172173
* @throws {@link GlueEncryptionException} (client fault)
173174
* <p>An encryption operation failed.</p>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ export interface GetTablesCommandOutput extends GetTablesResponse, __MetadataBea
173173
* <p>A federation source failed.</p>
174174
*
175175
* @throws {@link FederationSourceRetryableException} (client fault)
176+
* <p>A federation source failed, but the operation may be retried.</p>
176177
*
177178
* @throws {@link GlueEncryptionException} (client fault)
178179
* <p>An encryption operation failed.</p>

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export interface GetUnfilteredPartitionMetadataCommandOutput
5252
* // const { GlueClient, GetUnfilteredPartitionMetadataCommand } = require("@aws-sdk/client-glue"); // CommonJS import
5353
* const client = new GlueClient(config);
5454
* const input = { // GetUnfilteredPartitionMetadataRequest
55+
* Region: "STRING_VALUE",
5556
* CatalogId: "STRING_VALUE", // required
5657
* DatabaseName: "STRING_VALUE", // required
5758
* TableName: "STRING_VALUE", // required
@@ -68,6 +69,15 @@ export interface GetUnfilteredPartitionMetadataCommandOutput
6869
* SupportedPermissionTypes: [ // PermissionTypeList // required
6970
* "COLUMN_PERMISSION" || "CELL_FILTER_PERMISSION" || "NESTED_PERMISSION" || "NESTED_CELL_PERMISSION",
7071
* ],
72+
* QuerySessionContext: { // QuerySessionContext
73+
* QueryId: "STRING_VALUE",
74+
* QueryStartTime: new Date("TIMESTAMP"),
75+
* ClusterId: "STRING_VALUE",
76+
* QueryAuthorizationId: "STRING_VALUE",
77+
* AdditionalContext: { // AdditionalContextMap
78+
* "<keys>": "STRING_VALUE",
79+
* },
80+
* },
7181
* };
7282
* const command = new GetUnfilteredPartitionMetadataCommand(input);
7383
* const response = await client.send(command);
@@ -161,6 +171,7 @@ export interface GetUnfilteredPartitionMetadataCommandOutput
161171
* <p>A federation source failed.</p>
162172
*
163173
* @throws {@link FederationSourceRetryableException} (client fault)
174+
* <p>A federation source failed, but the operation may be retried.</p>
164175
*
165176
* @throws {@link GlueEncryptionException} (client fault)
166177
* <p>An encryption operation failed.</p>

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export interface GetUnfilteredPartitionsMetadataCommandOutput
5252
* // const { GlueClient, GetUnfilteredPartitionsMetadataCommand } = require("@aws-sdk/client-glue"); // CommonJS import
5353
* const client = new GlueClient(config);
5454
* const input = { // GetUnfilteredPartitionsMetadataRequest
55+
* Region: "STRING_VALUE",
5556
* CatalogId: "STRING_VALUE", // required
5657
* DatabaseName: "STRING_VALUE", // required
5758
* TableName: "STRING_VALUE", // required
@@ -72,6 +73,15 @@ export interface GetUnfilteredPartitionsMetadataCommandOutput
7273
* TotalSegments: Number("int"), // required
7374
* },
7475
* MaxResults: Number("int"),
76+
* QuerySessionContext: { // QuerySessionContext
77+
* QueryId: "STRING_VALUE",
78+
* QueryStartTime: new Date("TIMESTAMP"),
79+
* ClusterId: "STRING_VALUE",
80+
* QueryAuthorizationId: "STRING_VALUE",
81+
* AdditionalContext: { // AdditionalContextMap
82+
* "<keys>": "STRING_VALUE",
83+
* },
84+
* },
7585
* };
7686
* const command = new GetUnfilteredPartitionsMetadataCommand(input);
7787
* const response = await client.send(command);
@@ -170,6 +180,7 @@ export interface GetUnfilteredPartitionsMetadataCommandOutput
170180
* <p>A federation source failed.</p>
171181
*
172182
* @throws {@link FederationSourceRetryableException} (client fault)
183+
* <p>A federation source failed, but the operation may be retried.</p>
173184
*
174185
* @throws {@link GlueEncryptionException} (client fault)
175186
* <p>An encryption operation failed.</p>

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export interface GetUnfilteredTableMetadataCommandOutput extends GetUnfilteredTa
4747
* // const { GlueClient, GetUnfilteredTableMetadataCommand } = require("@aws-sdk/client-glue"); // CommonJS import
4848
* const client = new GlueClient(config);
4949
* const input = { // GetUnfilteredTableMetadataRequest
50+
* Region: "STRING_VALUE",
5051
* CatalogId: "STRING_VALUE", // required
5152
* DatabaseName: "STRING_VALUE", // required
5253
* Name: "STRING_VALUE", // required
@@ -60,6 +61,22 @@ export interface GetUnfilteredTableMetadataCommandOutput extends GetUnfilteredTa
6061
* SupportedPermissionTypes: [ // PermissionTypeList // required
6162
* "COLUMN_PERMISSION" || "CELL_FILTER_PERMISSION" || "NESTED_PERMISSION" || "NESTED_CELL_PERMISSION",
6263
* ],
64+
* SupportedDialect: { // SupportedDialect
65+
* Dialect: "REDSHIFT" || "ATHENA" || "SPARK",
66+
* DialectVersion: "STRING_VALUE",
67+
* },
68+
* Permissions: [ // PermissionList
69+
* "ALL" || "SELECT" || "ALTER" || "DROP" || "DELETE" || "INSERT" || "CREATE_DATABASE" || "CREATE_TABLE" || "DATA_LOCATION_ACCESS",
70+
* ],
71+
* QuerySessionContext: { // QuerySessionContext
72+
* QueryId: "STRING_VALUE",
73+
* QueryStartTime: new Date("TIMESTAMP"),
74+
* ClusterId: "STRING_VALUE",
75+
* QueryAuthorizationId: "STRING_VALUE",
76+
* AdditionalContext: { // AdditionalContextMap
77+
* "<keys>": "STRING_VALUE",
78+
* },
79+
* },
6380
* };
6481
* const command = new GetUnfilteredTableMetadataCommand(input);
6582
* const response = await client.send(command);
@@ -168,6 +185,11 @@ export interface GetUnfilteredTableMetadataCommandOutput extends GetUnfilteredTa
168185
* // RowFilterExpression: "STRING_VALUE",
169186
* // },
170187
* // ],
188+
* // QueryAuthorizationId: "STRING_VALUE",
189+
* // ResourceArn: "STRING_VALUE",
190+
* // Permissions: [ // PermissionList
191+
* // "ALL" || "SELECT" || "ALTER" || "DROP" || "DELETE" || "INSERT" || "CREATE_DATABASE" || "CREATE_TABLE" || "DATA_LOCATION_ACCESS",
192+
* // ],
171193
* // };
172194
*
173195
* ```
@@ -185,6 +207,7 @@ export interface GetUnfilteredTableMetadataCommandOutput extends GetUnfilteredTa
185207
* <p>A federation source failed.</p>
186208
*
187209
* @throws {@link FederationSourceRetryableException} (client fault)
210+
* <p>A federation source failed, but the operation may be retried.</p>
188211
*
189212
* @throws {@link GlueEncryptionException} (client fault)
190213
* <p>An encryption operation failed.</p>

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7034,10 +7034,15 @@ export class FederationSourceException extends __BaseException {
70347034

70357035
/**
70367036
* @public
7037+
* <p>A federation source failed, but the operation may be retried.</p>
70377038
*/
70387039
export class FederationSourceRetryableException extends __BaseException {
70397040
readonly name: "FederationSourceRetryableException" = "FederationSourceRetryableException";
70407041
readonly $fault: "client" = "client";
7042+
/**
7043+
* @public
7044+
* <p>A message describing the problem.</p>
7045+
*/
70417046
Message?: string;
70427047
/**
70437048
* @internal

0 commit comments

Comments
 (0)