@aws-sdk/client-glue 3.478.0 → 3.480.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetJobsResponseFilterSensitiveLog = exports.BatchGetJobsResponseFilterSensitiveLog = exports.UpdateJobRequestFilterSensitiveLog = exports.GetJobResponseFilterSensitiveLog = exports.JobUpdateFilterSensitiveLog = exports.JobFilterSensitiveLog = exports.CreateJobRequestFilterSensitiveLog = exports.VersionMismatchException = exports.SchedulerNotRunningException = exports.CrawlerStoppingException = exports.CrawlerNotRunningException = exports.ColumnStatisticsTaskStoppingException = exports.ColumnStatisticsTaskNotRunningException = exports.MLTransformNotReadyException = exports.SchedulerRunningException = exports.NoScheduleException = exports.ColumnStatisticsTaskRunningException = exports.IllegalBlueprintStateException = exports.Sort = exports.Comparator = exports.IllegalWorkflowStateException = exports.ConcurrentRunsExceededException = exports.ExistCondition = exports.EnableHybridValues = exports.CrawlerHistoryState = exports.FilterOperator = exports.FieldName = exports.PermissionTypeMismatchException = exports.PermissionType = exports.StatementState = void 0;
3
+ exports.GetJobsResponseFilterSensitiveLog = exports.BatchGetJobsResponseFilterSensitiveLog = exports.UpdateJobRequestFilterSensitiveLog = exports.GetJobResponseFilterSensitiveLog = exports.JobUpdateFilterSensitiveLog = exports.JobFilterSensitiveLog = exports.CreateJobRequestFilterSensitiveLog = exports.VersionMismatchException = exports.SchedulerNotRunningException = exports.CrawlerStoppingException = exports.CrawlerNotRunningException = exports.ColumnStatisticsTaskStoppingException = exports.ColumnStatisticsTaskNotRunningException = exports.MLTransformNotReadyException = exports.SchedulerRunningException = exports.NoScheduleException = exports.ColumnStatisticsTaskRunningException = exports.IllegalBlueprintStateException = exports.Sort = exports.Comparator = exports.IllegalWorkflowStateException = exports.ConcurrentRunsExceededException = exports.ExistCondition = exports.EnableHybridValues = exports.CrawlerHistoryState = exports.FilterOperator = exports.FieldName = exports.ViewDialect = exports.PermissionTypeMismatchException = exports.PermissionType = exports.StatementState = void 0;
4
4
  const smithy_client_1 = require("@smithy/smithy-client");
5
5
  const GlueServiceException_1 = require("./GlueServiceException");
6
6
  exports.StatementState = {
@@ -31,6 +31,11 @@ class PermissionTypeMismatchException extends GlueServiceException_1.GlueService
31
31
  }
32
32
  }
33
33
  exports.PermissionTypeMismatchException = PermissionTypeMismatchException;
34
+ exports.ViewDialect = {
35
+ ATHENA: "ATHENA",
36
+ REDSHIFT: "REDSHIFT",
37
+ SPARK: "SPARK",
38
+ };
34
39
  exports.FieldName = {
35
40
  CRAWL_ID: "CRAWL_ID",
36
41
  DPU_HOUR: "DPU_HOUR",
@@ -921,21 +921,21 @@ exports.se_GetTriggersCommand = se_GetTriggersCommand;
921
921
  const se_GetUnfilteredPartitionMetadataCommand = async (input, context) => {
922
922
  const headers = sharedHeaders("GetUnfilteredPartitionMetadata");
923
923
  let body;
924
- body = JSON.stringify((0, smithy_client_1._json)(input));
924
+ body = JSON.stringify(se_GetUnfilteredPartitionMetadataRequest(input, context));
925
925
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
926
926
  };
927
927
  exports.se_GetUnfilteredPartitionMetadataCommand = se_GetUnfilteredPartitionMetadataCommand;
928
928
  const se_GetUnfilteredPartitionsMetadataCommand = async (input, context) => {
929
929
  const headers = sharedHeaders("GetUnfilteredPartitionsMetadata");
930
930
  let body;
931
- body = JSON.stringify((0, smithy_client_1._json)(input));
931
+ body = JSON.stringify(se_GetUnfilteredPartitionsMetadataRequest(input, context));
932
932
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
933
933
  };
934
934
  exports.se_GetUnfilteredPartitionsMetadataCommand = se_GetUnfilteredPartitionsMetadataCommand;
935
935
  const se_GetUnfilteredTableMetadataCommand = async (input, context) => {
936
936
  const headers = sharedHeaders("GetUnfilteredTableMetadata");
937
937
  let body;
938
- body = JSON.stringify((0, smithy_client_1._json)(input));
938
+ body = JSON.stringify(se_GetUnfilteredTableMetadataRequest(input, context));
939
939
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
940
940
  };
941
941
  exports.se_GetUnfilteredTableMetadataCommand = se_GetUnfilteredTableMetadataCommand;
@@ -11541,6 +11541,46 @@ const se_GetTablesRequest = (input, context) => {
11541
11541
  TransactionId: [],
11542
11542
  });
11543
11543
  };
11544
+ const se_GetUnfilteredPartitionMetadataRequest = (input, context) => {
11545
+ return (0, smithy_client_1.take)(input, {
11546
+ AuditContext: smithy_client_1._json,
11547
+ CatalogId: [],
11548
+ DatabaseName: [],
11549
+ PartitionValues: smithy_client_1._json,
11550
+ QuerySessionContext: (_) => se_QuerySessionContext(_, context),
11551
+ Region: [],
11552
+ SupportedPermissionTypes: smithy_client_1._json,
11553
+ TableName: [],
11554
+ });
11555
+ };
11556
+ const se_GetUnfilteredPartitionsMetadataRequest = (input, context) => {
11557
+ return (0, smithy_client_1.take)(input, {
11558
+ AuditContext: smithy_client_1._json,
11559
+ CatalogId: [],
11560
+ DatabaseName: [],
11561
+ Expression: [],
11562
+ MaxResults: [],
11563
+ NextToken: [],
11564
+ QuerySessionContext: (_) => se_QuerySessionContext(_, context),
11565
+ Region: [],
11566
+ Segment: smithy_client_1._json,
11567
+ SupportedPermissionTypes: smithy_client_1._json,
11568
+ TableName: [],
11569
+ });
11570
+ };
11571
+ const se_GetUnfilteredTableMetadataRequest = (input, context) => {
11572
+ return (0, smithy_client_1.take)(input, {
11573
+ AuditContext: smithy_client_1._json,
11574
+ CatalogId: [],
11575
+ DatabaseName: [],
11576
+ Name: [],
11577
+ Permissions: smithy_client_1._json,
11578
+ QuerySessionContext: (_) => se_QuerySessionContext(_, context),
11579
+ Region: [],
11580
+ SupportedDialect: smithy_client_1._json,
11581
+ SupportedPermissionTypes: smithy_client_1._json,
11582
+ });
11583
+ };
11544
11584
  const se_JobUpdate = (input, context) => {
11545
11585
  return (0, smithy_client_1.take)(input, {
11546
11586
  AllocatedCapacity: [],
@@ -11696,6 +11736,15 @@ const se_PIIDetection = (input, context) => {
11696
11736
  ThresholdFraction: smithy_client_1.serializeFloat,
11697
11737
  });
11698
11738
  };
11739
+ const se_QuerySessionContext = (input, context) => {
11740
+ return (0, smithy_client_1.take)(input, {
11741
+ AdditionalContext: smithy_client_1._json,
11742
+ ClusterId: [],
11743
+ QueryAuthorizationId: [],
11744
+ QueryId: [],
11745
+ QueryStartTime: (_) => Math.round(_.getTime() / 1000),
11746
+ });
11747
+ };
11699
11748
  const se_Spigot = (input, context) => {
11700
11749
  return (0, smithy_client_1.take)(input, {
11701
11750
  Inputs: smithy_client_1._json,
@@ -13035,6 +13084,9 @@ const de_GetUnfilteredTableMetadataResponse = (output, context) => {
13035
13084
  AuthorizedColumns: smithy_client_1._json,
13036
13085
  CellFilters: smithy_client_1._json,
13037
13086
  IsRegisteredWithLakeFormation: smithy_client_1.expectBoolean,
13087
+ Permissions: smithy_client_1._json,
13088
+ QueryAuthorizationId: smithy_client_1.expectString,
13089
+ ResourceArn: smithy_client_1.expectString,
13038
13090
  Table: (_) => de_Table(_, context),
13039
13091
  });
13040
13092
  };
@@ -27,6 +27,11 @@ export class PermissionTypeMismatchException extends __BaseException {
27
27
  this.Message = opts.Message;
28
28
  }
29
29
  }
30
+ export const ViewDialect = {
31
+ ATHENA: "ATHENA",
32
+ REDSHIFT: "REDSHIFT",
33
+ SPARK: "SPARK",
34
+ };
30
35
  export const FieldName = {
31
36
  CRAWL_ID: "CRAWL_ID",
32
37
  DPU_HOUR: "DPU_HOUR",
@@ -781,19 +781,19 @@ export const se_GetTriggersCommand = async (input, context) => {
781
781
  export const se_GetUnfilteredPartitionMetadataCommand = async (input, context) => {
782
782
  const headers = sharedHeaders("GetUnfilteredPartitionMetadata");
783
783
  let body;
784
- body = JSON.stringify(_json(input));
784
+ body = JSON.stringify(se_GetUnfilteredPartitionMetadataRequest(input, context));
785
785
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
786
786
  };
787
787
  export const se_GetUnfilteredPartitionsMetadataCommand = async (input, context) => {
788
788
  const headers = sharedHeaders("GetUnfilteredPartitionsMetadata");
789
789
  let body;
790
- body = JSON.stringify(_json(input));
790
+ body = JSON.stringify(se_GetUnfilteredPartitionsMetadataRequest(input, context));
791
791
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
792
792
  };
793
793
  export const se_GetUnfilteredTableMetadataCommand = async (input, context) => {
794
794
  const headers = sharedHeaders("GetUnfilteredTableMetadata");
795
795
  let body;
796
- body = JSON.stringify(_json(input));
796
+ body = JSON.stringify(se_GetUnfilteredTableMetadataRequest(input, context));
797
797
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
798
798
  };
799
799
  export const se_GetUserDefinedFunctionCommand = async (input, context) => {
@@ -11104,6 +11104,46 @@ const se_GetTablesRequest = (input, context) => {
11104
11104
  TransactionId: [],
11105
11105
  });
11106
11106
  };
11107
+ const se_GetUnfilteredPartitionMetadataRequest = (input, context) => {
11108
+ return take(input, {
11109
+ AuditContext: _json,
11110
+ CatalogId: [],
11111
+ DatabaseName: [],
11112
+ PartitionValues: _json,
11113
+ QuerySessionContext: (_) => se_QuerySessionContext(_, context),
11114
+ Region: [],
11115
+ SupportedPermissionTypes: _json,
11116
+ TableName: [],
11117
+ });
11118
+ };
11119
+ const se_GetUnfilteredPartitionsMetadataRequest = (input, context) => {
11120
+ return take(input, {
11121
+ AuditContext: _json,
11122
+ CatalogId: [],
11123
+ DatabaseName: [],
11124
+ Expression: [],
11125
+ MaxResults: [],
11126
+ NextToken: [],
11127
+ QuerySessionContext: (_) => se_QuerySessionContext(_, context),
11128
+ Region: [],
11129
+ Segment: _json,
11130
+ SupportedPermissionTypes: _json,
11131
+ TableName: [],
11132
+ });
11133
+ };
11134
+ const se_GetUnfilteredTableMetadataRequest = (input, context) => {
11135
+ return take(input, {
11136
+ AuditContext: _json,
11137
+ CatalogId: [],
11138
+ DatabaseName: [],
11139
+ Name: [],
11140
+ Permissions: _json,
11141
+ QuerySessionContext: (_) => se_QuerySessionContext(_, context),
11142
+ Region: [],
11143
+ SupportedDialect: _json,
11144
+ SupportedPermissionTypes: _json,
11145
+ });
11146
+ };
11107
11147
  const se_JobUpdate = (input, context) => {
11108
11148
  return take(input, {
11109
11149
  AllocatedCapacity: [],
@@ -11259,6 +11299,15 @@ const se_PIIDetection = (input, context) => {
11259
11299
  ThresholdFraction: __serializeFloat,
11260
11300
  });
11261
11301
  };
11302
+ const se_QuerySessionContext = (input, context) => {
11303
+ return take(input, {
11304
+ AdditionalContext: _json,
11305
+ ClusterId: [],
11306
+ QueryAuthorizationId: [],
11307
+ QueryId: [],
11308
+ QueryStartTime: (_) => Math.round(_.getTime() / 1000),
11309
+ });
11310
+ };
11262
11311
  const se_Spigot = (input, context) => {
11263
11312
  return take(input, {
11264
11313
  Inputs: _json,
@@ -12598,6 +12647,9 @@ const de_GetUnfilteredTableMetadataResponse = (output, context) => {
12598
12647
  AuthorizedColumns: _json,
12599
12648
  CellFilters: _json,
12600
12649
  IsRegisteredWithLakeFormation: __expectBoolean,
12650
+ Permissions: _json,
12651
+ QueryAuthorizationId: __expectString,
12652
+ ResourceArn: __expectString,
12601
12653
  Table: (_) => de_Table(_, context),
12602
12654
  });
12603
12655
  };
@@ -141,6 +141,7 @@ export interface BatchGetPartitionCommandOutput extends BatchGetPartitionRespons
141
141
  * <p>A federation source failed.</p>
142
142
  *
143
143
  * @throws {@link FederationSourceRetryableException} (client fault)
144
+ * <p>A federation source failed, but the operation may be retried.</p>
144
145
  *
145
146
  * @throws {@link GlueEncryptionException} (client fault)
146
147
  * <p>An encryption operation failed.</p>
@@ -24,6 +24,7 @@ export interface CreateConnectionCommandOutput extends CreateConnectionResponse,
24
24
  /**
25
25
  * @public
26
26
  * <p>Creates a connection definition in the Data Catalog.</p>
27
+ * <p>Connections used for creating federated resources require the IAM <code>glue:PassConnection</code> permission.</p>
27
28
  * @example
28
29
  * Use a bare-bones client and the command you need to make an API call.
29
30
  * ```javascript
@@ -128,6 +128,7 @@ export interface GetPartitionCommandOutput extends GetPartitionResponse, __Metad
128
128
  * <p>A federation source failed.</p>
129
129
  *
130
130
  * @throws {@link FederationSourceRetryableException} (client fault)
131
+ * <p>A federation source failed, but the operation may be retried.</p>
131
132
  *
132
133
  * @throws {@link GlueEncryptionException} (client fault)
133
134
  * <p>An encryption operation failed.</p>
@@ -138,6 +138,7 @@ export interface GetPartitionsCommandOutput extends GetPartitionsResponse, __Met
138
138
  * <p>A federation source failed.</p>
139
139
  *
140
140
  * @throws {@link FederationSourceRetryableException} (client fault)
141
+ * <p>A federation source failed, but the operation may be retried.</p>
141
142
  *
142
143
  * @throws {@link GlueEncryptionException} (client fault)
143
144
  * <p>An encryption operation failed.</p>
@@ -154,6 +154,7 @@ export interface GetTableCommandOutput extends GetTableResponse, __MetadataBeare
154
154
  * <p>A federation source failed.</p>
155
155
  *
156
156
  * @throws {@link FederationSourceRetryableException} (client fault)
157
+ * <p>A federation source failed, but the operation may be retried.</p>
157
158
  *
158
159
  * @throws {@link GlueEncryptionException} (client fault)
159
160
  * <p>An encryption operation failed.</p>
@@ -159,6 +159,7 @@ export interface GetTablesCommandOutput extends GetTablesResponse, __MetadataBea
159
159
  * <p>A federation source failed.</p>
160
160
  *
161
161
  * @throws {@link FederationSourceRetryableException} (client fault)
162
+ * <p>A federation source failed, but the operation may be retried.</p>
162
163
  *
163
164
  * @throws {@link GlueEncryptionException} (client fault)
164
165
  * <p>An encryption operation failed.</p>
@@ -33,6 +33,7 @@ export interface GetUnfilteredPartitionMetadataCommandOutput extends GetUnfilter
33
33
  * // const { GlueClient, GetUnfilteredPartitionMetadataCommand } = require("@aws-sdk/client-glue"); // CommonJS import
34
34
  * const client = new GlueClient(config);
35
35
  * const input = { // GetUnfilteredPartitionMetadataRequest
36
+ * Region: "STRING_VALUE",
36
37
  * CatalogId: "STRING_VALUE", // required
37
38
  * DatabaseName: "STRING_VALUE", // required
38
39
  * TableName: "STRING_VALUE", // required
@@ -49,6 +50,15 @@ export interface GetUnfilteredPartitionMetadataCommandOutput extends GetUnfilter
49
50
  * SupportedPermissionTypes: [ // PermissionTypeList // required
50
51
  * "COLUMN_PERMISSION" || "CELL_FILTER_PERMISSION" || "NESTED_PERMISSION" || "NESTED_CELL_PERMISSION",
51
52
  * ],
53
+ * QuerySessionContext: { // QuerySessionContext
54
+ * QueryId: "STRING_VALUE",
55
+ * QueryStartTime: new Date("TIMESTAMP"),
56
+ * ClusterId: "STRING_VALUE",
57
+ * QueryAuthorizationId: "STRING_VALUE",
58
+ * AdditionalContext: { // AdditionalContextMap
59
+ * "<keys>": "STRING_VALUE",
60
+ * },
61
+ * },
52
62
  * };
53
63
  * const command = new GetUnfilteredPartitionMetadataCommand(input);
54
64
  * const response = await client.send(command);
@@ -142,6 +152,7 @@ export interface GetUnfilteredPartitionMetadataCommandOutput extends GetUnfilter
142
152
  * <p>A federation source failed.</p>
143
153
  *
144
154
  * @throws {@link FederationSourceRetryableException} (client fault)
155
+ * <p>A federation source failed, but the operation may be retried.</p>
145
156
  *
146
157
  * @throws {@link GlueEncryptionException} (client fault)
147
158
  * <p>An encryption operation failed.</p>
@@ -33,6 +33,7 @@ export interface GetUnfilteredPartitionsMetadataCommandOutput extends GetUnfilte
33
33
  * // const { GlueClient, GetUnfilteredPartitionsMetadataCommand } = require("@aws-sdk/client-glue"); // CommonJS import
34
34
  * const client = new GlueClient(config);
35
35
  * const input = { // GetUnfilteredPartitionsMetadataRequest
36
+ * Region: "STRING_VALUE",
36
37
  * CatalogId: "STRING_VALUE", // required
37
38
  * DatabaseName: "STRING_VALUE", // required
38
39
  * TableName: "STRING_VALUE", // required
@@ -53,6 +54,15 @@ export interface GetUnfilteredPartitionsMetadataCommandOutput extends GetUnfilte
53
54
  * TotalSegments: Number("int"), // required
54
55
  * },
55
56
  * MaxResults: Number("int"),
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
+ * },
56
66
  * };
57
67
  * const command = new GetUnfilteredPartitionsMetadataCommand(input);
58
68
  * const response = await client.send(command);
@@ -151,6 +161,7 @@ export interface GetUnfilteredPartitionsMetadataCommandOutput extends GetUnfilte
151
161
  * <p>A federation source failed.</p>
152
162
  *
153
163
  * @throws {@link FederationSourceRetryableException} (client fault)
164
+ * <p>A federation source failed, but the operation may be retried.</p>
154
165
  *
155
166
  * @throws {@link GlueEncryptionException} (client fault)
156
167
  * <p>An encryption operation failed.</p>
@@ -33,6 +33,7 @@ export interface GetUnfilteredTableMetadataCommandOutput extends GetUnfilteredTa
33
33
  * // const { GlueClient, GetUnfilteredTableMetadataCommand } = require("@aws-sdk/client-glue"); // CommonJS import
34
34
  * const client = new GlueClient(config);
35
35
  * const input = { // GetUnfilteredTableMetadataRequest
36
+ * Region: "STRING_VALUE",
36
37
  * CatalogId: "STRING_VALUE", // required
37
38
  * DatabaseName: "STRING_VALUE", // required
38
39
  * Name: "STRING_VALUE", // required
@@ -46,6 +47,22 @@ export interface GetUnfilteredTableMetadataCommandOutput extends GetUnfilteredTa
46
47
  * SupportedPermissionTypes: [ // PermissionTypeList // required
47
48
  * "COLUMN_PERMISSION" || "CELL_FILTER_PERMISSION" || "NESTED_PERMISSION" || "NESTED_CELL_PERMISSION",
48
49
  * ],
50
+ * SupportedDialect: { // SupportedDialect
51
+ * Dialect: "REDSHIFT" || "ATHENA" || "SPARK",
52
+ * DialectVersion: "STRING_VALUE",
53
+ * },
54
+ * Permissions: [ // PermissionList
55
+ * "ALL" || "SELECT" || "ALTER" || "DROP" || "DELETE" || "INSERT" || "CREATE_DATABASE" || "CREATE_TABLE" || "DATA_LOCATION_ACCESS",
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
+ * },
49
66
  * };
50
67
  * const command = new GetUnfilteredTableMetadataCommand(input);
51
68
  * const response = await client.send(command);
@@ -154,6 +171,11 @@ export interface GetUnfilteredTableMetadataCommandOutput extends GetUnfilteredTa
154
171
  * // RowFilterExpression: "STRING_VALUE",
155
172
  * // },
156
173
  * // ],
174
+ * // QueryAuthorizationId: "STRING_VALUE",
175
+ * // ResourceArn: "STRING_VALUE",
176
+ * // Permissions: [ // PermissionList
177
+ * // "ALL" || "SELECT" || "ALTER" || "DROP" || "DELETE" || "INSERT" || "CREATE_DATABASE" || "CREATE_TABLE" || "DATA_LOCATION_ACCESS",
178
+ * // ],
157
179
  * // };
158
180
  *
159
181
  * ```
@@ -171,6 +193,7 @@ export interface GetUnfilteredTableMetadataCommandOutput extends GetUnfilteredTa
171
193
  * <p>A federation source failed.</p>
172
194
  *
173
195
  * @throws {@link FederationSourceRetryableException} (client fault)
196
+ * <p>A federation source failed, but the operation may be retried.</p>
174
197
  *
175
198
  * @throws {@link GlueEncryptionException} (client fault)
176
199
  * <p>An encryption operation failed.</p>
@@ -6054,10 +6054,15 @@ export declare class FederationSourceException extends __BaseException {
6054
6054
  }
6055
6055
  /**
6056
6056
  * @public
6057
+ * <p>A federation source failed, but the operation may be retried.</p>
6057
6058
  */
6058
6059
  export declare class FederationSourceRetryableException extends __BaseException {
6059
6060
  readonly name: "FederationSourceRetryableException";
6060
6061
  readonly $fault: "client";
6062
+ /**
6063
+ * @public
6064
+ * <p>A message describing the problem.</p>
6065
+ */
6061
6066
  Message?: string;
6062
6067
  /**
6063
6068
  * @internal
@@ -1,7 +1,7 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { GlueServiceException as __BaseException } from "./GlueServiceException";
3
3
  import { Action, Aggregate, AmazonRedshiftSource, AmazonRedshiftTarget, AthenaConnectorSource, AuditContext, BasicCatalogTarget, CatalogDeltaSource, CatalogHudiSource, CatalogKafkaSource, CatalogKinesisSource, CatalogSource, Column, ConnectionInput, ConnectionsList, ConnectorDataSource, ConnectorDataTarget, CrawlerTargets, CsvHeaderOption, CsvSerdeOption, CustomCode, CustomEntityType, DataSource, DirectJDBCSource, DirectKafkaSource, DirectKinesisSource, DropDuplicates, DropFields, DropNullFields, DynamicTransform, DynamoDBCatalogSource, ErrorDetail, EvaluateDataQuality, EvaluateDataQualityMultiFrame, EventBatchingCondition, ExecutionClass, ExecutionProperty, FillMissingValues, Filter, GovernedCatalogSource, GovernedCatalogTarget, JDBCConnectorSource, JDBCConnectorTarget, JobCommand, Join, LakeFormationConfiguration, LineageConfiguration, Merge, MicrosoftSQLServerCatalogSource, MicrosoftSQLServerCatalogTarget, MySQLCatalogSource, MySQLCatalogTarget, NotificationProperty, OracleSQLCatalogSource, OracleSQLCatalogTarget, Partition, PartitionInput, PIIDetection, PostgreSQLCatalogSource, PostgreSQLCatalogTarget, Predicate, Recipe, RecrawlPolicy, RedshiftSource, RedshiftTarget, RelationalCatalogSource, RenameField, S3CatalogDeltaSource, S3CatalogHudiSource, S3CatalogSource, S3CatalogTarget, S3CsvSource, S3DeltaCatalogTarget, S3DeltaDirectTarget, S3DeltaSource, S3DirectTarget, S3GlueParquetTarget, S3HudiCatalogTarget, S3HudiDirectTarget, S3HudiSource, S3JsonSource, S3ParquetSource, SchemaChangePolicy, SchemaId, SelectFields, SelectFromCollection, SnowflakeSource, SnowflakeTarget, SourceControlAuthStrategy, SourceControlDetails, SourceControlProvider, SparkConnectorSource, SparkConnectorTarget, SparkSQL, Spigot, SplitFields, StorageDescriptor, TableOptimizer, TableOptimizerConfiguration, TableOptimizerRun, TableOptimizerType, TaskStatusType, Trigger, Union, WorkerType, Workflow, WorkflowRun } from "./models_0";
4
- import { ColumnStatistics, Compatibility, DatabaseInput, DataCatalogEncryptionSettings, DataQualityEvaluationRunAdditionalRunOptions, DataQualityTargetTable, JobBookmarkEntry, PrincipalType, RegistryId, RegistryStatus, ResourceShareType, ResourceUri, SchemaStatus, SchemaVersionNumber, SchemaVersionStatus, SecurityConfiguration, Segment, Session, TableIdentifier, TableInput, TransformFilterCriteria, TransformParameters, TransformSortCriteria, UserDefinedFunctionInput } from "./models_1";
4
+ import { ColumnStatistics, Compatibility, DatabaseInput, DataCatalogEncryptionSettings, DataQualityEvaluationRunAdditionalRunOptions, DataQualityTargetTable, JobBookmarkEntry, Permission, PrincipalType, RegistryId, RegistryStatus, ResourceShareType, ResourceUri, SchemaStatus, SchemaVersionNumber, SchemaVersionStatus, SecurityConfiguration, Segment, Session, TableIdentifier, TableInput, TransformFilterCriteria, TransformParameters, TransformSortCriteria, UserDefinedFunctionInput } from "./models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -669,6 +669,37 @@ export interface GetTriggersResponse {
669
669
  */
670
670
  NextToken?: string;
671
671
  }
672
+ /**
673
+ * @public
674
+ * <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>
675
+ */
676
+ export interface QuerySessionContext {
677
+ /**
678
+ * @public
679
+ * <p>A unique identifier generated by the query engine for the query.</p>
680
+ */
681
+ QueryId?: string;
682
+ /**
683
+ * @public
684
+ * <p>A timestamp provided by the query engine for when the query started.</p>
685
+ */
686
+ QueryStartTime?: Date;
687
+ /**
688
+ * @public
689
+ * <p>An identifier string for the consumer cluster.</p>
690
+ */
691
+ ClusterId?: string;
692
+ /**
693
+ * @public
694
+ * <p>A cryptographically generated query identifier generated by Glue or Lake Formation.</p>
695
+ */
696
+ QueryAuthorizationId?: string;
697
+ /**
698
+ * @public
699
+ * <p>An opaque string-string map passed by the query engine.</p>
700
+ */
701
+ AdditionalContext?: Record<string, string>;
702
+ }
672
703
  /**
673
704
  * @public
674
705
  * @enum
@@ -687,6 +718,11 @@ export type PermissionType = (typeof PermissionType)[keyof typeof PermissionType
687
718
  * @public
688
719
  */
689
720
  export interface GetUnfilteredPartitionMetadataRequest {
721
+ /**
722
+ * @public
723
+ * <p>Specified only if the base tables belong to a different Amazon Web Services Region.</p>
724
+ */
725
+ Region?: string;
690
726
  /**
691
727
  * @public
692
728
  * <p>The catalog ID where the partition resides.</p>
@@ -717,6 +753,11 @@ export interface GetUnfilteredPartitionMetadataRequest {
717
753
  * <p>(Required) A list of supported permission types. </p>
718
754
  */
719
755
  SupportedPermissionTypes: PermissionType[] | undefined;
756
+ /**
757
+ * @public
758
+ * <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>
759
+ */
760
+ QuerySessionContext?: QuerySessionContext;
720
761
  }
721
762
  /**
722
763
  * @public
@@ -761,6 +802,11 @@ export declare class PermissionTypeMismatchException extends __BaseException {
761
802
  * @public
762
803
  */
763
804
  export interface GetUnfilteredPartitionsMetadataRequest {
805
+ /**
806
+ * @public
807
+ * <p>Specified only if the base tables belong to a different Amazon Web Services Region.</p>
808
+ */
809
+ Region?: string;
764
810
  /**
765
811
  * @public
766
812
  * <p>The ID of the Data Catalog where the partitions in question reside. If none is provided,
@@ -907,6 +953,11 @@ export interface GetUnfilteredPartitionsMetadataRequest {
907
953
  * <p>The maximum number of partitions to return in a single response.</p>
908
954
  */
909
955
  MaxResults?: number;
956
+ /**
957
+ * @public
958
+ * <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>
959
+ */
960
+ QuerySessionContext?: QuerySessionContext;
910
961
  }
911
962
  /**
912
963
  * @public
@@ -945,10 +996,44 @@ export interface GetUnfilteredPartitionsMetadataResponse {
945
996
  */
946
997
  NextToken?: string;
947
998
  }
999
+ /**
1000
+ * @public
1001
+ * @enum
1002
+ */
1003
+ export declare const ViewDialect: {
1004
+ readonly ATHENA: "ATHENA";
1005
+ readonly REDSHIFT: "REDSHIFT";
1006
+ readonly SPARK: "SPARK";
1007
+ };
1008
+ /**
1009
+ * @public
1010
+ */
1011
+ export type ViewDialect = (typeof ViewDialect)[keyof typeof ViewDialect];
1012
+ /**
1013
+ * @public
1014
+ * <p>A structure specifying the dialect and dialect version used by the query engine.</p>
1015
+ */
1016
+ export interface SupportedDialect {
1017
+ /**
1018
+ * @public
1019
+ * <p>The dialect of the query engine.</p>
1020
+ */
1021
+ Dialect?: ViewDialect;
1022
+ /**
1023
+ * @public
1024
+ * <p>The version of the dialect of the query engine. For example, 3.0.0.</p>
1025
+ */
1026
+ DialectVersion?: string;
1027
+ }
948
1028
  /**
949
1029
  * @public
950
1030
  */
951
1031
  export interface GetUnfilteredTableMetadataRequest {
1032
+ /**
1033
+ * @public
1034
+ * <p>Specified only if the base tables belong to a different Amazon Web Services Region.</p>
1035
+ */
1036
+ Region?: string;
952
1037
  /**
953
1038
  * @public
954
1039
  * <p>The catalog ID where the table resides.</p>
@@ -974,6 +1059,21 @@ export interface GetUnfilteredTableMetadataRequest {
974
1059
  * <p>(Required) A list of supported permission types. </p>
975
1060
  */
976
1061
  SupportedPermissionTypes: PermissionType[] | undefined;
1062
+ /**
1063
+ * @public
1064
+ * <p>A structure specifying the dialect and dialect version used by the query engine.</p>
1065
+ */
1066
+ SupportedDialect?: SupportedDialect;
1067
+ /**
1068
+ * @public
1069
+ * <p>The Lake Formation data permissions of the caller on the table. Used to authorize the call when no view context is found.</p>
1070
+ */
1071
+ Permissions?: Permission[];
1072
+ /**
1073
+ * @public
1074
+ * <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>
1075
+ */
1076
+ QuerySessionContext?: QuerySessionContext;
977
1077
  }
978
1078
  /**
979
1079
  * @public
@@ -1016,6 +1116,21 @@ export interface GetUnfilteredTableMetadataResponse {
1016
1116
  * <p>A list of column row filters.</p>
1017
1117
  */
1018
1118
  CellFilters?: ColumnRowFilter[];
1119
+ /**
1120
+ * @public
1121
+ * <p>A cryptographically generated query identifier generated by Glue or Lake Formation.</p>
1122
+ */
1123
+ QueryAuthorizationId?: string;
1124
+ /**
1125
+ * @public
1126
+ * <p>The resource ARN of the parent resource extracted from the request.</p>
1127
+ */
1128
+ ResourceArn?: string;
1129
+ /**
1130
+ * @public
1131
+ * <p>The Lake Formation data permissions of the caller on the table. Used to authorize the call when no view context is found.</p>
1132
+ */
1133
+ Permissions?: Permission[];
1019
1134
  }
1020
1135
  /**
1021
1136
  * @public
@@ -117,6 +117,7 @@ import {
117
117
  DataQualityEvaluationRunAdditionalRunOptions,
118
118
  DataQualityTargetTable,
119
119
  JobBookmarkEntry,
120
+ Permission,
120
121
  PrincipalType,
121
122
  RegistryId,
122
123
  RegistryStatus,
@@ -292,6 +293,13 @@ export interface GetTriggersResponse {
292
293
  Triggers?: Trigger[];
293
294
  NextToken?: string;
294
295
  }
296
+ export interface QuerySessionContext {
297
+ QueryId?: string;
298
+ QueryStartTime?: Date;
299
+ ClusterId?: string;
300
+ QueryAuthorizationId?: string;
301
+ AdditionalContext?: Record<string, string>;
302
+ }
295
303
  export declare const PermissionType: {
296
304
  readonly CELL_FILTER_PERMISSION: "CELL_FILTER_PERMISSION";
297
305
  readonly COLUMN_PERMISSION: "COLUMN_PERMISSION";
@@ -301,12 +309,14 @@ export declare const PermissionType: {
301
309
  export type PermissionType =
302
310
  (typeof PermissionType)[keyof typeof PermissionType];
303
311
  export interface GetUnfilteredPartitionMetadataRequest {
312
+ Region?: string;
304
313
  CatalogId: string | undefined;
305
314
  DatabaseName: string | undefined;
306
315
  TableName: string | undefined;
307
316
  PartitionValues: string[] | undefined;
308
317
  AuditContext?: AuditContext;
309
318
  SupportedPermissionTypes: PermissionType[] | undefined;
319
+ QuerySessionContext?: QuerySessionContext;
310
320
  }
311
321
  export interface GetUnfilteredPartitionMetadataResponse {
312
322
  Partition?: Partition;
@@ -325,6 +335,7 @@ export declare class PermissionTypeMismatchException extends __BaseException {
325
335
  );
326
336
  }
327
337
  export interface GetUnfilteredPartitionsMetadataRequest {
338
+ Region?: string;
328
339
  CatalogId: string | undefined;
329
340
  DatabaseName: string | undefined;
330
341
  TableName: string | undefined;
@@ -334,6 +345,7 @@ export interface GetUnfilteredPartitionsMetadataRequest {
334
345
  NextToken?: string;
335
346
  Segment?: Segment;
336
347
  MaxResults?: number;
348
+ QuerySessionContext?: QuerySessionContext;
337
349
  }
338
350
  export interface UnfilteredPartition {
339
351
  Partition?: Partition;
@@ -344,12 +356,26 @@ export interface GetUnfilteredPartitionsMetadataResponse {
344
356
  UnfilteredPartitions?: UnfilteredPartition[];
345
357
  NextToken?: string;
346
358
  }
359
+ export declare const ViewDialect: {
360
+ readonly ATHENA: "ATHENA";
361
+ readonly REDSHIFT: "REDSHIFT";
362
+ readonly SPARK: "SPARK";
363
+ };
364
+ export type ViewDialect = (typeof ViewDialect)[keyof typeof ViewDialect];
365
+ export interface SupportedDialect {
366
+ Dialect?: ViewDialect;
367
+ DialectVersion?: string;
368
+ }
347
369
  export interface GetUnfilteredTableMetadataRequest {
370
+ Region?: string;
348
371
  CatalogId: string | undefined;
349
372
  DatabaseName: string | undefined;
350
373
  Name: string | undefined;
351
374
  AuditContext?: AuditContext;
352
375
  SupportedPermissionTypes: PermissionType[] | undefined;
376
+ SupportedDialect?: SupportedDialect;
377
+ Permissions?: Permission[];
378
+ QuerySessionContext?: QuerySessionContext;
353
379
  }
354
380
  export interface ColumnRowFilter {
355
381
  ColumnName?: string;
@@ -360,6 +386,9 @@ export interface GetUnfilteredTableMetadataResponse {
360
386
  AuthorizedColumns?: string[];
361
387
  IsRegisteredWithLakeFormation?: boolean;
362
388
  CellFilters?: ColumnRowFilter[];
389
+ QueryAuthorizationId?: string;
390
+ ResourceArn?: string;
391
+ Permissions?: Permission[];
363
392
  }
364
393
  export interface GetUserDefinedFunctionRequest {
365
394
  CatalogId?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-glue",
3
3
  "description": "AWS SDK for JavaScript Glue Client for Node.js, Browser and React Native",
4
- "version": "3.478.0",
4
+ "version": "3.480.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",