Skip to content

Commit ae8aec7

Browse files
author
awstools
committed
feat(client-glue): Modifying request for GetUnfilteredTableMetadata for view-related fields.
1 parent 7566539 commit ae8aec7

File tree

5 files changed

+56
-9
lines changed

5 files changed

+56
-9
lines changed

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ export interface GetUnfilteredTableMetadataCommandInput extends GetUnfilteredTab
2727
export interface GetUnfilteredTableMetadataCommandOutput extends GetUnfilteredTableMetadataResponse, __MetadataBearer {}
2828

2929
/**
30-
* <p>Retrieves table metadata from the Data Catalog that contains unfiltered
31-
* metadata.</p>
30+
* <p>Allows a third-party analytical engine to retrieve unfiltered table metadata from the Data Catalog.</p>
3231
* <p>For IAM authorization, the public IAM action associated with this API is <code>glue:GetTable</code>.</p>
3332
* @example
3433
* Use a bare-bones client and the command you need to make an API call.
@@ -51,6 +50,8 @@ export interface GetUnfilteredTableMetadataCommandOutput extends GetUnfilteredTa
5150
* SupportedPermissionTypes: [ // PermissionTypeList // required
5251
* "COLUMN_PERMISSION" || "CELL_FILTER_PERMISSION" || "NESTED_PERMISSION" || "NESTED_CELL_PERMISSION",
5352
* ],
53+
* ParentResourceArn: "STRING_VALUE",
54+
* RootResourceArn: "STRING_VALUE",
5455
* SupportedDialect: { // SupportedDialect
5556
* Dialect: "REDSHIFT" || "ATHENA" || "SPARK",
5657
* DialectVersion: "STRING_VALUE",

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -3194,13 +3194,13 @@ export interface KinesisStreamingSourceOptions {
31943194
StartingPosition?: StartingPosition;
31953195

31963196
/**
3197-
* <p>The maximum time spent in the job executor to fetch a record from the Kinesis data stream per shard, specified in milliseconds (ms). The default value is <code>1000</code>.</p>
3197+
* <p>The maximum time spent for the job executor to read records for the current batch from the Kinesis data stream, specified in milliseconds (ms). Multiple <code>GetRecords</code> API calls may be made within this time. The default value is <code>1000</code>.</p>
31983198
* @public
31993199
*/
32003200
MaxFetchTimeInMs?: number;
32013201

32023202
/**
3203-
* <p>The maximum number of records to fetch per shard in the Kinesis data stream. The default value is <code>100000</code>.</p>
3203+
* <p>The maximum number of records to fetch per shard in the Kinesis data stream per microbatch. Note: The client can exceed this limit if the streaming job has already read extra records from Kinesis (in the same get-records call). If <code>MaxFetchRecordsPerShard</code> needs to be strict then it needs to be a multiple of <code>MaxRecordPerRead</code>. The default value is <code>100000</code>.</p>
32043204
* @public
32053205
*/
32063206
MaxFetchRecordsPerShard?: number;

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

+33-1
Original file line numberDiff line numberDiff line change
@@ -1425,11 +1425,43 @@ export interface GetUnfilteredTableMetadataRequest {
14251425
AuditContext?: AuditContext;
14261426

14271427
/**
1428-
* <p>(Required) A list of supported permission types. </p>
1428+
* <p>Indicates the level of filtering a third-party analytical engine is capable of enforcing when calling the <code>GetUnfilteredTableMetadata</code> API operation. Accepted values are:</p>
1429+
* <ul>
1430+
* <li>
1431+
* <p>
1432+
* <code>COLUMN_PERMISSION</code> - Column permissions ensure that users can access only specific columns in the table. If there are particular columns contain sensitive data, data lake administrators can define column filters that exclude access to specific columns.</p>
1433+
* </li>
1434+
* <li>
1435+
* <p>
1436+
* <code>CELL_FILTER_PERMISSION</code> - Cell-level filtering combines column filtering (include or exclude columns) and row filter expressions to restrict access to individual elements in the table.</p>
1437+
* </li>
1438+
* <li>
1439+
* <p>
1440+
* <code>NESTED_PERMISSION</code> - Nested permissions combines cell-level filtering and nested column filtering to restrict access to columns and/or nested columns in specific rows based on row filter expressions.</p>
1441+
* </li>
1442+
* <li>
1443+
* <p>
1444+
* <code>NESTED_CELL_PERMISSION</code> - Nested cell permissions combines nested permission with nested cell-level filtering. This allows different subsets of nested columns to be restricted based on an array of row filter expressions. </p>
1445+
* </li>
1446+
* </ul>
1447+
* <p>Note: Each of these permission types follows a hierarchical order where each subsequent permission type includes all permission of the previous type.</p>
1448+
* <p>Important: If you provide a supported permission type that doesn't match the user's level of permissions on the table, then Lake Formation raises an exception. For example, if the third-party engine calling the <code>GetUnfilteredTableMetadata</code> operation can enforce only column-level filtering, and the user has nested cell filtering applied on the table, Lake Formation throws an exception, and will not return unfiltered table metadata and data access credentials.</p>
14291449
* @public
14301450
*/
14311451
SupportedPermissionTypes: PermissionType[] | undefined;
14321452

1453+
/**
1454+
* <p>The resource ARN of the view.</p>
1455+
* @public
1456+
*/
1457+
ParentResourceArn?: string;
1458+
1459+
/**
1460+
* <p>The resource ARN of the root view in a chain of nested views.</p>
1461+
* @public
1462+
*/
1463+
RootResourceArn?: string;
1464+
14331465
/**
14341466
* <p>A structure specifying the dialect and dialect version used by the query engine.</p>
14351467
* @public

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

+2
Original file line numberDiff line numberDiff line change
@@ -9899,9 +9899,11 @@ const se_GetUnfilteredTableMetadataRequest = (
98999899
CatalogId: [],
99009900
DatabaseName: [],
99019901
Name: [],
9902+
ParentResourceArn: [],
99029903
Permissions: _json,
99039904
QuerySessionContext: (_) => se_QuerySessionContext(_, context),
99049905
Region: [],
9906+
RootResourceArn: [],
99059907
SupportedDialect: _json,
99069908
SupportedPermissionTypes: _json,
99079909
});

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

+16-4
Original file line numberDiff line numberDiff line change
@@ -20008,7 +20008,7 @@
2000820008
}
2000920009
],
2001020010
"traits": {
20011-
"smithy.api#documentation": "<p>Retrieves table metadata from the Data Catalog that contains unfiltered \n metadata.</p>\n <p>For IAM authorization, the public IAM action associated with this API is <code>glue:GetTable</code>.</p>"
20011+
"smithy.api#documentation": "<p>Allows a third-party analytical engine to retrieve unfiltered table metadata from the Data Catalog.</p>\n <p>For IAM authorization, the public IAM action associated with this API is <code>glue:GetTable</code>.</p>"
2001220012
}
2001320013
},
2001420014
"com.amazonaws.glue#GetUnfilteredTableMetadataRequest": {
@@ -20050,10 +20050,22 @@
2005020050
"SupportedPermissionTypes": {
2005120051
"target": "com.amazonaws.glue#PermissionTypeList",
2005220052
"traits": {
20053-
"smithy.api#documentation": "<p>(Required) A list of supported permission types. </p>",
20053+
"smithy.api#documentation": "<p>Indicates the level of filtering a third-party analytical engine is capable of enforcing when calling the <code>GetUnfilteredTableMetadata</code> API operation. Accepted values are:</p>\n <ul>\n <li>\n <p>\n <code>COLUMN_PERMISSION</code> - Column permissions ensure that users can access only specific columns in the table. If there are particular columns contain sensitive data, data lake administrators can define column filters that exclude access to specific columns.</p>\n </li>\n <li>\n <p>\n <code>CELL_FILTER_PERMISSION</code> - Cell-level filtering combines column filtering (include or exclude columns) and row filter expressions to restrict access to individual elements in the table.</p>\n </li>\n <li>\n <p>\n <code>NESTED_PERMISSION</code> - Nested permissions combines cell-level filtering and nested column filtering to restrict access to columns and/or nested columns in specific rows based on row filter expressions.</p>\n </li>\n <li>\n <p>\n <code>NESTED_CELL_PERMISSION</code> - Nested cell permissions combines nested permission with nested cell-level filtering. This allows different subsets of nested columns to be restricted based on an array of row filter expressions. </p>\n </li>\n </ul>\n <p>Note: Each of these permission types follows a hierarchical order where each subsequent permission type includes all permission of the previous type.</p>\n <p>Important: If you provide a supported permission type that doesn't match the user's level of permissions on the table, then Lake Formation raises an exception. For example, if the third-party engine calling the <code>GetUnfilteredTableMetadata</code> operation can enforce only column-level filtering, and the user has nested cell filtering applied on the table, Lake Formation throws an exception, and will not return unfiltered table metadata and data access credentials.</p>",
2005420054
"smithy.api#required": {}
2005520055
}
2005620056
},
20057+
"ParentResourceArn": {
20058+
"target": "com.amazonaws.glue#ArnString",
20059+
"traits": {
20060+
"smithy.api#documentation": "<p>The resource ARN of the view.</p>"
20061+
}
20062+
},
20063+
"RootResourceArn": {
20064+
"target": "com.amazonaws.glue#ArnString",
20065+
"traits": {
20066+
"smithy.api#documentation": "<p>The resource ARN of the root view in a chain of nested views.</p>"
20067+
}
20068+
},
2005720069
"SupportedDialect": {
2005820070
"target": "com.amazonaws.glue#SupportedDialect",
2005920071
"traits": {
@@ -22902,13 +22914,13 @@
2290222914
"MaxFetchTimeInMs": {
2290322915
"target": "com.amazonaws.glue#BoxedNonNegativeLong",
2290422916
"traits": {
22905-
"smithy.api#documentation": "<p>The maximum time spent in the job executor to fetch a record from the Kinesis data stream per shard, specified in milliseconds (ms). The default value is <code>1000</code>.</p>"
22917+
"smithy.api#documentation": "<p>The maximum time spent for the job executor to read records for the current batch from the Kinesis data stream, specified in milliseconds (ms). Multiple <code>GetRecords</code> API calls may be made within this time. The default value is <code>1000</code>.</p>"
2290622918
}
2290722919
},
2290822920
"MaxFetchRecordsPerShard": {
2290922921
"target": "com.amazonaws.glue#BoxedNonNegativeLong",
2291022922
"traits": {
22911-
"smithy.api#documentation": "<p>The maximum number of records to fetch per shard in the Kinesis data stream. The default value is <code>100000</code>.</p>"
22923+
"smithy.api#documentation": "<p>The maximum number of records to fetch per shard in the Kinesis data stream per microbatch. Note: The client can exceed this limit if the streaming job has already read extra records from Kinesis (in the same get-records call). If <code>MaxFetchRecordsPerShard</code> needs to be strict then it needs to be a multiple of <code>MaxRecordPerRead</code>. The default value is <code>100000</code>.</p>"
2291222924
}
2291322925
},
2291422926
"MaxRecordPerRead": {

0 commit comments

Comments
 (0)