@aws-sdk/client-glue 3.363.0 → 3.368.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.PermissionTypeMismatchException = exports.PermissionType = exports.StatementState = exports.SchemaDiffType = exports.PartitionIndexStatus = exports.BackfillErrorCode = exports.TransformSortColumnType = exports.TransformStatusType = exports.SortDirectionType = exports.TaskRunSortColumnType = exports.TaskType = exports.CatalogEncryptionMode = exports.ResourceShareType = exports.ColumnStatisticsType = exports.BlueprintRunState = exports.ConditionCheckFailureException = exports.RegistryStatus = exports.ConflictException = exports.SchedulerTransitioningException = exports.CrawlerRunningException = exports.ResourceType = exports.PrincipalType = exports.SessionStatus = exports.S3EncryptionMode = exports.JobBookmarksEncryptionMode = exports.CloudWatchEncryptionMode = exports.Language = exports.SchemaVersionStatus = exports.SchemaStatus = exports.Compatibility = void 0;
3
+ exports.PermissionTypeMismatchException = exports.PermissionType = exports.StatementState = exports.SchemaDiffType = exports.PartitionIndexStatus = exports.BackfillErrorCode = exports.TransformSortColumnType = exports.TransformStatusType = exports.SortDirectionType = exports.TaskRunSortColumnType = exports.TaskType = exports.CatalogEncryptionMode = exports.ResourceShareType = exports.ColumnStatisticsType = exports.BlueprintRunState = exports.ConditionCheckFailureException = exports.RegistryStatus = exports.ConflictException = exports.SchedulerTransitioningException = exports.CrawlerRunningException = exports.ResourceType = exports.PrincipalType = exports.MetadataOperation = exports.SessionStatus = exports.S3EncryptionMode = exports.JobBookmarksEncryptionMode = exports.CloudWatchEncryptionMode = exports.Language = exports.SchemaVersionStatus = exports.SchemaStatus = exports.Compatibility = void 0;
4
4
  const GlueServiceException_1 = require("./GlueServiceException");
5
5
  exports.Compatibility = {
6
6
  BACKWARD: "BACKWARD",
@@ -48,6 +48,9 @@ exports.SessionStatus = {
48
48
  STOPPING: "STOPPING",
49
49
  TIMEOUT: "TIMEOUT",
50
50
  };
51
+ exports.MetadataOperation = {
52
+ CREATE: "CREATE",
53
+ };
51
54
  exports.PrincipalType = {
52
55
  GROUP: "GROUP",
53
56
  ROLE: "ROLE",
@@ -10829,6 +10829,7 @@ const se_CreateTableRequest = (input, context) => {
10829
10829
  return (0, smithy_client_1.take)(input, {
10830
10830
  CatalogId: [],
10831
10831
  DatabaseName: [],
10832
+ OpenTableFormatInput: smithy_client_1._json,
10832
10833
  PartitionIndexes: smithy_client_1._json,
10833
10834
  TableInput: (_) => se_TableInput(_, context),
10834
10835
  TransactionId: [],
@@ -45,6 +45,9 @@ export const SessionStatus = {
45
45
  STOPPING: "STOPPING",
46
46
  TIMEOUT: "TIMEOUT",
47
47
  };
48
+ export const MetadataOperation = {
49
+ CREATE: "CREATE",
50
+ };
48
51
  export const PrincipalType = {
49
52
  GROUP: "GROUP",
50
53
  ROLE: "ROLE",
@@ -10414,6 +10414,7 @@ const se_CreateTableRequest = (input, context) => {
10414
10414
  return take(input, {
10415
10415
  CatalogId: [],
10416
10416
  DatabaseName: [],
10417
+ OpenTableFormatInput: _json,
10417
10418
  PartitionIndexes: _json,
10418
10419
  TableInput: (_) => se_TableInput(_, context),
10419
10420
  TransactionId: [],
@@ -126,6 +126,12 @@ export interface CreateTableCommandOutput extends CreateTableResponse, __Metadat
126
126
  * },
127
127
  * ],
128
128
  * TransactionId: "STRING_VALUE",
129
+ * OpenTableFormatInput: { // OpenTableFormatInput
130
+ * IcebergInput: { // IcebergInput
131
+ * MetadataOperation: "CREATE", // required
132
+ * Version: "STRING_VALUE",
133
+ * },
134
+ * },
129
135
  * };
130
136
  * const command = new CreateTableCommand(input);
131
137
  * const response = await client.send(command);
@@ -2,7 +2,8 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { GlueClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlueClient";
5
- import { GetUnfilteredTableMetadataRequest, GetUnfilteredTableMetadataResponse } from "../models/models_1";
5
+ import { GetUnfilteredTableMetadataRequest } from "../models/models_1";
6
+ import { GetUnfilteredTableMetadataResponse } from "../models/models_2";
6
7
  /**
7
8
  * @public
8
9
  */
@@ -2,8 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { GlueClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlueClient";
5
- import { GetUserDefinedFunctionRequest } from "../models/models_1";
6
- import { GetUserDefinedFunctionResponse } from "../models/models_2";
5
+ import { GetUserDefinedFunctionRequest, GetUserDefinedFunctionResponse } from "../models/models_2";
7
6
  /**
8
7
  * @public
9
8
  */
@@ -848,6 +848,41 @@ export interface CreateSessionResponse {
848
848
  */
849
849
  Session?: Session;
850
850
  }
851
+ /**
852
+ * @public
853
+ * @enum
854
+ */
855
+ export declare const MetadataOperation: {
856
+ readonly CREATE: "CREATE";
857
+ };
858
+ /**
859
+ * @public
860
+ */
861
+ export type MetadataOperation = (typeof MetadataOperation)[keyof typeof MetadataOperation];
862
+ /**
863
+ * @public
864
+ * <p>A structure that defines an Apache Iceberg metadata table to create in the catalog.</p>
865
+ */
866
+ export interface IcebergInput {
867
+ /**
868
+ * <p>A required metadata operation. Can only be set to <code>CREATE</code>.</p>
869
+ */
870
+ MetadataOperation: MetadataOperation | string | undefined;
871
+ /**
872
+ * <p>The table version for the Iceberg table. Defaults to 2.</p>
873
+ */
874
+ Version?: string;
875
+ }
876
+ /**
877
+ * @public
878
+ * <p>A structure representing an open format table.</p>
879
+ */
880
+ export interface OpenTableFormatInput {
881
+ /**
882
+ * <p>Specifies an <code>IcebergInput</code> structure that defines an Apache Iceberg metadata table.</p>
883
+ */
884
+ IcebergInput?: IcebergInput;
885
+ }
851
886
  /**
852
887
  * @public
853
888
  * <p>A structure that describes a target table for resource linking.</p>
@@ -980,6 +1015,10 @@ export interface CreateTableRequest {
980
1015
  * <p>The ID of the transaction.</p>
981
1016
  */
982
1017
  TransactionId?: string;
1018
+ /**
1019
+ * <p>Specifies an <code>OpenTableFormatInput</code> structure when creating an open format table.</p>
1020
+ */
1021
+ OpenTableFormatInput?: OpenTableFormatInput;
983
1022
  }
984
1023
  /**
985
1024
  * @public
@@ -6175,57 +6214,3 @@ export interface GetUnfilteredTableMetadataRequest {
6175
6214
  */
6176
6215
  SupportedPermissionTypes: (PermissionType | string)[] | undefined;
6177
6216
  }
6178
- /**
6179
- * @public
6180
- * <p>A filter that uses both column-level and row-level filtering.</p>
6181
- */
6182
- export interface ColumnRowFilter {
6183
- /**
6184
- * <p>A string containing the name of the column.</p>
6185
- */
6186
- ColumnName?: string;
6187
- /**
6188
- * <p>A string containing the row-level filter expression.</p>
6189
- */
6190
- RowFilterExpression?: string;
6191
- }
6192
- /**
6193
- * @public
6194
- */
6195
- export interface GetUnfilteredTableMetadataResponse {
6196
- /**
6197
- * <p>A Table object containing the table metadata.</p>
6198
- */
6199
- Table?: Table;
6200
- /**
6201
- * <p>A list of column names that the user has been granted access to.</p>
6202
- */
6203
- AuthorizedColumns?: string[];
6204
- /**
6205
- * <p>A Boolean value that indicates whether the partition location is registered
6206
- * with Lake Formation.</p>
6207
- */
6208
- IsRegisteredWithLakeFormation?: boolean;
6209
- /**
6210
- * <p>A list of column row filters.</p>
6211
- */
6212
- CellFilters?: ColumnRowFilter[];
6213
- }
6214
- /**
6215
- * @public
6216
- */
6217
- export interface GetUserDefinedFunctionRequest {
6218
- /**
6219
- * <p>The ID of the Data Catalog where the function to be retrieved is located. If none is
6220
- * provided, the Amazon Web Services account ID is used by default.</p>
6221
- */
6222
- CatalogId?: string;
6223
- /**
6224
- * <p>The name of the catalog database where the function is located.</p>
6225
- */
6226
- DatabaseName: string | undefined;
6227
- /**
6228
- * <p>The name of the function.</p>
6229
- */
6230
- FunctionName: string | undefined;
6231
- }
@@ -2,6 +2,60 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-cli
2
2
  import { GlueServiceException as __BaseException } from "./GlueServiceException";
3
3
  import { Action, Aggregate, AmazonRedshiftSource, AmazonRedshiftTarget, AthenaConnectorSource, BasicCatalogTarget, CatalogDeltaSource, CatalogHudiSource, CatalogKafkaSource, CatalogKinesisSource, CatalogSource, ConnectionInput, ConnectionsList, CrawlerTargets, CsvHeaderOption, CustomCode, CustomEntityType, DatabaseInput, DataQualityTargetTable, 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, PartitionInput, PIIDetection, PostgreSQLCatalogSource, PostgreSQLCatalogTarget, Predicate, RecrawlPolicy, RedshiftSource, RedshiftTarget, RelationalCatalogSource, RenameField, S3CatalogDeltaSource, S3CatalogHudiSource, S3CatalogSource, S3CatalogTarget, S3CsvSource, S3DeltaCatalogTarget, S3DeltaDirectTarget, S3DeltaSource, S3DirectTarget, S3GlueParquetTarget, S3HudiCatalogTarget, S3HudiDirectTarget, S3HudiSource, S3JsonSource, S3ParquetSource, SchemaChangePolicy, SchemaId, SelectFields, SelectFromCollection, SourceControlAuthStrategy, SourceControlDetails, SourceControlProvider, SparkConnectorSource, SparkConnectorTarget, SparkSQL, Spigot, SplitFields, TaskStatusType, TransformParameters, Trigger, Union, WorkerType, Workflow, WorkflowRun } from "./models_0";
4
4
  import { ColumnStatistics, Compatibility, DataCatalogEncryptionSettings, DataQualityEvaluationRunAdditionalRunOptions, JobBookmarkEntry, PrincipalType, RegistryId, RegistryStatus, ResourceShareType, ResourceUri, SchemaStatus, SchemaVersionNumber, SchemaVersionStatus, Session, Statement, Table, TableInput, TransformFilterCriteria, TransformSortCriteria, UserDefinedFunctionInput } from "./models_1";
5
+ /**
6
+ * @public
7
+ * <p>A filter that uses both column-level and row-level filtering.</p>
8
+ */
9
+ export interface ColumnRowFilter {
10
+ /**
11
+ * <p>A string containing the name of the column.</p>
12
+ */
13
+ ColumnName?: string;
14
+ /**
15
+ * <p>A string containing the row-level filter expression.</p>
16
+ */
17
+ RowFilterExpression?: string;
18
+ }
19
+ /**
20
+ * @public
21
+ */
22
+ export interface GetUnfilteredTableMetadataResponse {
23
+ /**
24
+ * <p>A Table object containing the table metadata.</p>
25
+ */
26
+ Table?: Table;
27
+ /**
28
+ * <p>A list of column names that the user has been granted access to.</p>
29
+ */
30
+ AuthorizedColumns?: string[];
31
+ /**
32
+ * <p>A Boolean value that indicates whether the partition location is registered
33
+ * with Lake Formation.</p>
34
+ */
35
+ IsRegisteredWithLakeFormation?: boolean;
36
+ /**
37
+ * <p>A list of column row filters.</p>
38
+ */
39
+ CellFilters?: ColumnRowFilter[];
40
+ }
41
+ /**
42
+ * @public
43
+ */
44
+ export interface GetUserDefinedFunctionRequest {
45
+ /**
46
+ * <p>The ID of the Data Catalog where the function to be retrieved is located. If none is
47
+ * provided, the Amazon Web Services account ID is used by default.</p>
48
+ */
49
+ CatalogId?: string;
50
+ /**
51
+ * <p>The name of the catalog database where the function is located.</p>
52
+ */
53
+ DatabaseName: string | undefined;
54
+ /**
55
+ * <p>The name of the function.</p>
56
+ */
57
+ FunctionName: string | undefined;
58
+ }
5
59
  /**
6
60
  * @public
7
61
  * <p>Represents the equivalent of a Hive user-defined function
@@ -11,10 +11,8 @@ import {
11
11
  ServiceInputTypes,
12
12
  ServiceOutputTypes,
13
13
  } from "../GlueClient";
14
- import {
15
- GetUnfilteredTableMetadataRequest,
16
- GetUnfilteredTableMetadataResponse,
17
- } from "../models/models_1";
14
+ import { GetUnfilteredTableMetadataRequest } from "../models/models_1";
15
+ import { GetUnfilteredTableMetadataResponse } from "../models/models_2";
18
16
  export { __MetadataBearer, $Command };
19
17
  export interface GetUnfilteredTableMetadataCommandInput
20
18
  extends GetUnfilteredTableMetadataRequest {}
@@ -11,8 +11,10 @@ import {
11
11
  ServiceInputTypes,
12
12
  ServiceOutputTypes,
13
13
  } from "../GlueClient";
14
- import { GetUserDefinedFunctionRequest } from "../models/models_1";
15
- import { GetUserDefinedFunctionResponse } from "../models/models_2";
14
+ import {
15
+ GetUserDefinedFunctionRequest,
16
+ GetUserDefinedFunctionResponse,
17
+ } from "../models/models_2";
16
18
  export { __MetadataBearer, $Command };
17
19
  export interface GetUserDefinedFunctionCommandInput
18
20
  extends GetUserDefinedFunctionRequest {}
@@ -263,6 +263,18 @@ export interface Session {
263
263
  export interface CreateSessionResponse {
264
264
  Session?: Session;
265
265
  }
266
+ export declare const MetadataOperation: {
267
+ readonly CREATE: "CREATE";
268
+ };
269
+ export type MetadataOperation =
270
+ (typeof MetadataOperation)[keyof typeof MetadataOperation];
271
+ export interface IcebergInput {
272
+ MetadataOperation: MetadataOperation | string | undefined;
273
+ Version?: string;
274
+ }
275
+ export interface OpenTableFormatInput {
276
+ IcebergInput?: IcebergInput;
277
+ }
266
278
  export interface TableIdentifier {
267
279
  CatalogId?: string;
268
280
  DatabaseName?: string;
@@ -290,6 +302,7 @@ export interface CreateTableRequest {
290
302
  TableInput: TableInput | undefined;
291
303
  PartitionIndexes?: PartitionIndex[];
292
304
  TransactionId?: string;
305
+ OpenTableFormatInput?: OpenTableFormatInput;
293
306
  }
294
307
  export interface CreateTableResponse {}
295
308
  export interface CreateTriggerRequest {
@@ -1640,18 +1653,3 @@ export interface GetUnfilteredTableMetadataRequest {
1640
1653
  AuditContext?: AuditContext;
1641
1654
  SupportedPermissionTypes: (PermissionType | string)[] | undefined;
1642
1655
  }
1643
- export interface ColumnRowFilter {
1644
- ColumnName?: string;
1645
- RowFilterExpression?: string;
1646
- }
1647
- export interface GetUnfilteredTableMetadataResponse {
1648
- Table?: Table;
1649
- AuthorizedColumns?: string[];
1650
- IsRegisteredWithLakeFormation?: boolean;
1651
- CellFilters?: ColumnRowFilter[];
1652
- }
1653
- export interface GetUserDefinedFunctionRequest {
1654
- CatalogId?: string;
1655
- DatabaseName: string | undefined;
1656
- FunctionName: string | undefined;
1657
- }
@@ -120,6 +120,21 @@ import {
120
120
  TransformSortCriteria,
121
121
  UserDefinedFunctionInput,
122
122
  } from "./models_1";
123
+ export interface ColumnRowFilter {
124
+ ColumnName?: string;
125
+ RowFilterExpression?: string;
126
+ }
127
+ export interface GetUnfilteredTableMetadataResponse {
128
+ Table?: Table;
129
+ AuthorizedColumns?: string[];
130
+ IsRegisteredWithLakeFormation?: boolean;
131
+ CellFilters?: ColumnRowFilter[];
132
+ }
133
+ export interface GetUserDefinedFunctionRequest {
134
+ CatalogId?: string;
135
+ DatabaseName: string | undefined;
136
+ FunctionName: string | undefined;
137
+ }
123
138
  export interface UserDefinedFunction {
124
139
  FunctionName?: string;
125
140
  DatabaseName?: 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.363.0",
4
+ "version": "3.368.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",