Skip to content

Commit cf3d8e1

Browse files
author
awstools
committed
feat(client-glue): Addition of AuditContext in GetTable/GetTables Request
1 parent 9ee6cdc commit cf3d8e1

File tree

7 files changed

+51
-9
lines changed

7 files changed

+51
-9
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ export interface GetTableCommandOutput extends GetTableResponse, __MetadataBeare
4545
* Name: "STRING_VALUE", // required
4646
* TransactionId: "STRING_VALUE",
4747
* QueryAsOfTime: new Date("TIMESTAMP"),
48+
* AuditContext: { // AuditContext
49+
* AdditionalAuditContext: "STRING_VALUE",
50+
* RequestedColumns: [ // AuditColumnNamesList
51+
* "STRING_VALUE",
52+
* ],
53+
* AllColumnsRequested: true || false,
54+
* },
4855
* IncludeStatusDetails: true || false,
4956
* };
5057
* const command = new GetTableCommand(input);

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ export interface GetTablesCommandOutput extends GetTablesResponse, __MetadataBea
4747
* MaxResults: Number("int"),
4848
* TransactionId: "STRING_VALUE",
4949
* QueryAsOfTime: new Date("TIMESTAMP"),
50+
* AuditContext: { // AuditContext
51+
* AdditionalAuditContext: "STRING_VALUE",
52+
* RequestedColumns: [ // AuditColumnNamesList
53+
* "STRING_VALUE",
54+
* ],
55+
* AllColumnsRequested: true || false,
56+
* },
5057
* IncludeStatusDetails: true || false,
5158
* AttributesToGet: [ // TableAttributesList
5259
* "NAME" || "TABLE_TYPE",

clients/client-glue/src/endpoint/ruleset.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ d="error",
1717
e="endpoint",
1818
f="tree",
1919
g="PartitionResult",
20-
h={[s]:false,"type":"String"},
21-
i={[s]:true,"default":false,"type":"Boolean"},
20+
h={[s]:false,"type":"string"},
21+
i={[s]:true,"default":false,"type":"boolean"},
2222
j={[v]:"Endpoint"},
2323
k={[t]:c,[u]:[{[v]:"UseFIPS"},true]},
2424
l={[t]:c,[u]:[{[v]:"UseDualStack"},true]},

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5696,6 +5696,12 @@ export interface GetTableRequest {
56965696
*/
56975697
QueryAsOfTime?: Date | undefined;
56985698

5699+
/**
5700+
* <p>A structure containing the Lake Formation <a href="https://docs.aws.amazon.com/glue/latest/webapi/API_AuditContext.html">audit context</a>.</p>
5701+
* @public
5702+
*/
5703+
AuditContext?: AuditContext | undefined;
5704+
56995705
/**
57005706
* <p>Specifies whether to include status details related to a request to create or update an Glue Data Catalog view.</p>
57015707
* @public
@@ -6005,6 +6011,12 @@ export interface GetTablesRequest {
60056011
*/
60066012
QueryAsOfTime?: Date | undefined;
60076013

6014+
/**
6015+
* <p>A structure containing the Lake Formation <a href="https://docs.aws.amazon.com/glue/latest/webapi/API_AuditContext.html">audit context</a>.</p>
6016+
* @public
6017+
*/
6018+
AuditContext?: AuditContext | undefined;
6019+
60086020
/**
60096021
* <p>Specifies whether to include status details related to a request to create or update an Glue Data Catalog view.</p>
60106022
* @public

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3831,8 +3831,7 @@ export interface UpdateTableRequest {
38313831
Force?: boolean | undefined;
38323832

38333833
/**
3834-
* <p>Input parameters for updating open table format tables in GlueData Catalog,
3835-
* serving as a wrapper for format-specific update operations such as Apache Iceberg.</p>
3834+
* <p>Input parameters for updating open table format tables in GlueData Catalog, serving as a wrapper for format-specific update operations such as Apache Iceberg.</p>
38363835
* @public
38373836
*/
38383837
UpdateOpenTableFormatInput?: UpdateOpenTableFormatInput | undefined;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11886,6 +11886,7 @@ const se_GetPartitionsRequest = (input: GetPartitionsRequest, context: __SerdeCo
1188611886
*/
1188711887
const se_GetTableRequest = (input: GetTableRequest, context: __SerdeContext): any => {
1188811888
return take(input, {
11889+
AuditContext: _json,
1188911890
CatalogId: [],
1189011891
DatabaseName: [],
1189111892
IncludeStatusDetails: [],
@@ -11901,6 +11902,7 @@ const se_GetTableRequest = (input: GetTableRequest, context: __SerdeContext): an
1190111902
const se_GetTablesRequest = (input: GetTablesRequest, context: __SerdeContext): any => {
1190211903
return take(input, {
1190311904
AttributesToGet: _json,
11905+
AuditContext: _json,
1190411906
CatalogId: [],
1190511907
DatabaseName: [],
1190611908
Expression: [],

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

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -826,27 +826,27 @@
826826
"builtIn": "AWS::Region",
827827
"required": false,
828828
"documentation": "The AWS region used to dispatch the request.",
829-
"type": "String"
829+
"type": "string"
830830
},
831831
"UseDualStack": {
832832
"builtIn": "AWS::UseDualStack",
833833
"required": true,
834834
"default": false,
835835
"documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
836-
"type": "Boolean"
836+
"type": "boolean"
837837
},
838838
"UseFIPS": {
839839
"builtIn": "AWS::UseFIPS",
840840
"required": true,
841841
"default": false,
842842
"documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
843-
"type": "Boolean"
843+
"type": "boolean"
844844
},
845845
"Endpoint": {
846846
"builtIn": "SDK::Endpoint",
847847
"required": false,
848848
"documentation": "Override the endpoint used to send this request",
849-
"type": "String"
849+
"type": "string"
850850
}
851851
},
852852
"rules": [
@@ -24820,6 +24820,12 @@
2482024820
"smithy.api#documentation": "<p>The time as of when to read the table contents. If not set, the most recent transaction commit time will be used. Cannot be specified along with <code>TransactionId</code>.</p>"
2482124821
}
2482224822
},
24823+
"AuditContext": {
24824+
"target": "com.amazonaws.glue#AuditContext",
24825+
"traits": {
24826+
"smithy.api#documentation": "<p>A structure containing the Lake Formation <a href=\"https://docs.aws.amazon.com/glue/latest/webapi/API_AuditContext.html\">audit context</a>.</p>"
24827+
}
24828+
},
2482324829
"IncludeStatusDetails": {
2482424830
"target": "com.amazonaws.glue#BooleanNullable",
2482524831
"traits": {
@@ -25108,6 +25114,12 @@
2510825114
"smithy.api#documentation": "<p>The time as of when to read the table contents. If not set, the most recent transaction commit time will be used. Cannot be specified along with <code>TransactionId</code>.</p>"
2510925115
}
2511025116
},
25117+
"AuditContext": {
25118+
"target": "com.amazonaws.glue#AuditContext",
25119+
"traits": {
25120+
"smithy.api#documentation": "<p>A structure containing the Lake Formation <a href=\"https://docs.aws.amazon.com/glue/latest/webapi/API_AuditContext.html\">audit context</a>.</p>"
25121+
}
25122+
},
2511125123
"IncludeStatusDetails": {
2511225124
"target": "com.amazonaws.glue#BooleanNullable",
2511325125
"traits": {
@@ -46672,7 +46684,10 @@
4667246684
}
4667346685
},
4667446686
"UpdateOpenTableFormatInput": {
46675-
"target": "com.amazonaws.glue#UpdateOpenTableFormatInput"
46687+
"target": "com.amazonaws.glue#UpdateOpenTableFormatInput",
46688+
"traits": {
46689+
"smithy.api#documentation": "<p>Input parameters for updating open table format tables in GlueData Catalog, serving as a wrapper for format-specific update operations such as Apache Iceberg.</p>"
46690+
}
4667646691
}
4667746692
},
4667846693
"traits": {

0 commit comments

Comments
 (0)