Skip to content

Commit e39731f

Browse files
author
awstools
committed
feat(client-glue): Add QuerySessionContext to BatchGetPartitionRequest
1 parent 11615b9 commit e39731f

File tree

7 files changed

+146
-113
lines changed

7 files changed

+146
-113
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,22 @@ export interface BatchGetPartitionCommandOutput extends BatchGetPartitionRespons
4747
* ],
4848
* },
4949
* ],
50+
* AuditContext: { // AuditContext
51+
* AdditionalAuditContext: "STRING_VALUE",
52+
* RequestedColumns: [ // AuditColumnNamesList
53+
* "STRING_VALUE",
54+
* ],
55+
* AllColumnsRequested: true || false,
56+
* },
57+
* QuerySessionContext: { // QuerySessionContext
58+
* QueryId: "STRING_VALUE",
59+
* QueryStartTime: new Date("TIMESTAMP"),
60+
* ClusterId: "STRING_VALUE",
61+
* QueryAuthorizationId: "STRING_VALUE",
62+
* AdditionalContext: { // AdditionalContextMap
63+
* "<keys>": "STRING_VALUE",
64+
* },
65+
* },
5066
* };
5167
* const command = new BatchGetPartitionCommand(input);
5268
* const response = await client.send(command);

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
55

66
import { commonParams } from "../endpoint/EndpointParameters";
77
import type { GlueClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlueClient";
8-
import type { CreateDataQualityRulesetRequest } from "../models/models_0";
9-
import type { CreateDataQualityRulesetResponse } from "../models/models_1";
8+
import type { CreateDataQualityRulesetRequest, CreateDataQualityRulesetResponse } from "../models/models_1";
109
import { CreateDataQualityRuleset$ } from "../schemas/schemas_0";
1110

1211
/**

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

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -7379,6 +7379,42 @@ export interface SourceControlDetails {
73797379
AuthToken?: string | undefined;
73807380
}
73817381

7382+
/**
7383+
* <p>A structure used as a protocol between query engines and Lake Formation or Glue. Contains both a Lake Formation generated authorization identifier and information from the request's authorization context.</p>
7384+
* @public
7385+
*/
7386+
export interface QuerySessionContext {
7387+
/**
7388+
* <p>A unique identifier generated by the query engine for the query.</p>
7389+
* @public
7390+
*/
7391+
QueryId?: string | undefined;
7392+
7393+
/**
7394+
* <p>A timestamp provided by the query engine for when the query started.</p>
7395+
* @public
7396+
*/
7397+
QueryStartTime?: Date | undefined;
7398+
7399+
/**
7400+
* <p>An identifier string for the consumer cluster.</p>
7401+
* @public
7402+
*/
7403+
ClusterId?: string | undefined;
7404+
7405+
/**
7406+
* <p>A cryptographically generated query identifier generated by Glue or Lake Formation.</p>
7407+
* @public
7408+
*/
7409+
QueryAuthorizationId?: string | undefined;
7410+
7411+
/**
7412+
* <p>An opaque string-string map passed by the query engine.</p>
7413+
* @public
7414+
*/
7415+
AdditionalContext?: Record<string, string> | undefined;
7416+
}
7417+
73827418
/**
73837419
* @public
73847420
*/
@@ -7407,6 +7443,18 @@ export interface BatchGetPartitionRequest {
74077443
* @public
74087444
*/
74097445
PartitionsToGet: PartitionValueList[] | undefined;
7446+
7447+
/**
7448+
* <p>A structure containing the Lake Formation audit context.</p>
7449+
* @public
7450+
*/
7451+
AuditContext?: AuditContext | undefined;
7452+
7453+
/**
7454+
* <p>A structure used as a protocol between query engines and Lake Formation or Glue. Contains both a Lake Formation generated authorization identifier and information from the request's authorization context.</p>
7455+
* @public
7456+
*/
7457+
QuerySessionContext?: QuerySessionContext | undefined;
74107458
}
74117459

74127460
/**
@@ -10452,51 +10500,3 @@ export interface DataQualityTargetTable {
1045210500
*/
1045310501
CatalogId?: string | undefined;
1045410502
}
10455-
10456-
/**
10457-
* <p>A request to create a data quality ruleset.</p>
10458-
* @public
10459-
*/
10460-
export interface CreateDataQualityRulesetRequest {
10461-
/**
10462-
* <p>A unique name for the data quality ruleset.</p>
10463-
* @public
10464-
*/
10465-
Name: string | undefined;
10466-
10467-
/**
10468-
* <p>A description of the data quality ruleset.</p>
10469-
* @public
10470-
*/
10471-
Description?: string | undefined;
10472-
10473-
/**
10474-
* <p>A Data Quality Definition Language (DQDL) ruleset. For more information, see the Glue developer guide.</p>
10475-
* @public
10476-
*/
10477-
Ruleset: string | undefined;
10478-
10479-
/**
10480-
* <p>A list of tags applied to the data quality ruleset.</p>
10481-
* @public
10482-
*/
10483-
Tags?: Record<string, string> | undefined;
10484-
10485-
/**
10486-
* <p>A target table associated with the data quality ruleset.</p>
10487-
* @public
10488-
*/
10489-
TargetTable?: DataQualityTargetTable | undefined;
10490-
10491-
/**
10492-
* <p>The name of the security configuration created with the data quality encryption option.</p>
10493-
* @public
10494-
*/
10495-
DataQualitySecurityConfiguration?: string | undefined;
10496-
10497-
/**
10498-
* <p>Used for idempotency and is recommended to be set to a random ID (such as a UUID) to avoid creating or starting multiple instances of the same resource.</p>
10499-
* @public
10500-
*/
10501-
ClientToken?: string | undefined;
10502-
}

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

Lines changed: 48 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,54 @@ import {
9494
Property,
9595
} from "./models_0";
9696

97+
/**
98+
* <p>A request to create a data quality ruleset.</p>
99+
* @public
100+
*/
101+
export interface CreateDataQualityRulesetRequest {
102+
/**
103+
* <p>A unique name for the data quality ruleset.</p>
104+
* @public
105+
*/
106+
Name: string | undefined;
107+
108+
/**
109+
* <p>A description of the data quality ruleset.</p>
110+
* @public
111+
*/
112+
Description?: string | undefined;
113+
114+
/**
115+
* <p>A Data Quality Definition Language (DQDL) ruleset. For more information, see the Glue developer guide.</p>
116+
* @public
117+
*/
118+
Ruleset: string | undefined;
119+
120+
/**
121+
* <p>A list of tags applied to the data quality ruleset.</p>
122+
* @public
123+
*/
124+
Tags?: Record<string, string> | undefined;
125+
126+
/**
127+
* <p>A target table associated with the data quality ruleset.</p>
128+
* @public
129+
*/
130+
TargetTable?: DataQualityTargetTable | undefined;
131+
132+
/**
133+
* <p>The name of the security configuration created with the data quality encryption option.</p>
134+
* @public
135+
*/
136+
DataQualitySecurityConfiguration?: string | undefined;
137+
138+
/**
139+
* <p>Used for idempotency and is recommended to be set to a random ID (such as a UUID) to avoid creating or starting multiple instances of the same resource.</p>
140+
* @public
141+
*/
142+
ClientToken?: string | undefined;
143+
}
144+
97145
/**
98146
* @public
99147
*/
@@ -8527,27 +8575,3 @@ export interface ExportLabelsTaskRunProperties {
85278575
*/
85288576
OutputS3Path?: string | undefined;
85298577
}
8530-
8531-
/**
8532-
* <p>Specifies configuration properties for a Find Matches task run.</p>
8533-
* @public
8534-
*/
8535-
export interface FindMatchesTaskRunProperties {
8536-
/**
8537-
* <p>The job ID for the Find Matches task run.</p>
8538-
* @public
8539-
*/
8540-
JobId?: string | undefined;
8541-
8542-
/**
8543-
* <p>The name assigned to the job for the Find Matches task run.</p>
8544-
* @public
8545-
*/
8546-
JobName?: string | undefined;
8547-
8548-
/**
8549-
* <p>The job run ID for the Find Matches task run.</p>
8550-
* @public
8551-
*/
8552-
JobRunId?: string | undefined;
8553-
}

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

Lines changed: 25 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ import {
6161
type LakeFormationConfiguration,
6262
type LineageConfiguration,
6363
type NotificationProperty,
64+
type QuerySessionContext,
6465
type RecrawlPolicy,
6566
type SchemaChangePolicy,
6667
type SchemaId,
@@ -83,7 +84,6 @@ import {
8384
type DataQualityEvaluationRunAdditionalRunOptions,
8485
type EncryptionConfiguration,
8586
type ExportLabelsTaskRunProperties,
86-
type FindMatchesTaskRunProperties,
8787
type IntegrationConfig,
8888
type JobBookmarkEntry,
8989
type Location,
@@ -105,6 +105,30 @@ import {
105105
Tag,
106106
} from "./models_1";
107107

108+
/**
109+
* <p>Specifies configuration properties for a Find Matches task run.</p>
110+
* @public
111+
*/
112+
export interface FindMatchesTaskRunProperties {
113+
/**
114+
* <p>The job ID for the Find Matches task run.</p>
115+
* @public
116+
*/
117+
JobId?: string | undefined;
118+
119+
/**
120+
* <p>The name assigned to the job for the Find Matches task run.</p>
121+
* @public
122+
*/
123+
JobName?: string | undefined;
124+
125+
/**
126+
* <p>The job run ID for the Find Matches task run.</p>
127+
* @public
128+
*/
129+
JobRunId?: string | undefined;
130+
}
131+
108132
/**
109133
* <p>Specifies configuration properties for an importing labels task run.</p>
110134
* @public
@@ -2713,42 +2737,6 @@ export interface GetTriggersResponse {
27132737
NextToken?: string | undefined;
27142738
}
27152739

2716-
/**
2717-
* <p>A structure used as a protocol between query engines and Lake Formation or Glue. Contains both a Lake Formation generated authorization identifier and information from the request's authorization context.</p>
2718-
* @public
2719-
*/
2720-
export interface QuerySessionContext {
2721-
/**
2722-
* <p>A unique identifier generated by the query engine for the query.</p>
2723-
* @public
2724-
*/
2725-
QueryId?: string | undefined;
2726-
2727-
/**
2728-
* <p>A timestamp provided by the query engine for when the query started.</p>
2729-
* @public
2730-
*/
2731-
QueryStartTime?: Date | undefined;
2732-
2733-
/**
2734-
* <p>An identifier string for the consumer cluster.</p>
2735-
* @public
2736-
*/
2737-
ClusterId?: string | undefined;
2738-
2739-
/**
2740-
* <p>A cryptographically generated query identifier generated by Glue or Lake Formation.</p>
2741-
* @public
2742-
*/
2743-
QueryAuthorizationId?: string | undefined;
2744-
2745-
/**
2746-
* <p>An opaque string-string map passed by the query engine.</p>
2747-
* @public
2748-
*/
2749-
AdditionalContext?: Record<string, string> | undefined;
2750-
}
2751-
27522740
/**
27532741
* @public
27542742
*/

clients/client-glue/src/schemas/schemas_0.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3011,8 +3011,8 @@ export var BatchGetJobsResponse$: StaticStructureSchema = [3, n0, _BGJRa,
30113011
];
30123012
export var BatchGetPartitionRequest$: StaticStructureSchema = [3, n0, _BGPR,
30133013
0,
3014-
[_DN, _TN, _PTG, _CI],
3015-
[0, 0, () => BatchGetPartitionValueList, 0], 3
3014+
[_DN, _TN, _PTG, _CI, _ACu, _QSC],
3015+
[0, 0, () => BatchGetPartitionValueList, 0, () => AuditContext$, () => QuerySessionContext$], 3
30163016
];
30173017
export var BatchGetPartitionResponse$: StaticStructureSchema = [3, n0, _BGPRa,
30183018
0,

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3806,6 +3806,12 @@
38063806
"smithy.api#documentation": "<p>A list of partition values identifying the partitions to retrieve.</p>",
38073807
"smithy.api#required": {}
38083808
}
3809+
},
3810+
"AuditContext": {
3811+
"target": "com.amazonaws.glue#AuditContext"
3812+
},
3813+
"QuerySessionContext": {
3814+
"target": "com.amazonaws.glue#QuerySessionContext"
38093815
}
38103816
},
38113817
"traits": {

0 commit comments

Comments
 (0)