@aws-sdk/client-s3tables 3.1160.0 → 3.1162.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.
Files changed (47) hide show
  1. package/README.md +43 -1
  2. package/dist-cjs/index.js +399 -12
  3. package/dist-es/S3Tables.js +14 -0
  4. package/dist-es/commands/CompleteTableMigrationCommand.js +4 -0
  5. package/dist-es/commands/GetTableMigrationCommand.js +4 -0
  6. package/dist-es/commands/ListTableMigrationsCommand.js +4 -0
  7. package/dist-es/commands/StartTableMigrationCommand.js +4 -0
  8. package/dist-es/commands/SyncTableMigrationCommand.js +4 -0
  9. package/dist-es/commands/UpdateTableMigrationCommand.js +4 -0
  10. package/dist-es/commands/index.js +6 -0
  11. package/dist-es/models/enums.js +63 -6
  12. package/dist-es/pagination/ListTableMigrationsPaginator.js +4 -0
  13. package/dist-es/pagination/index.js +1 -0
  14. package/dist-es/runtimeConfig.js +2 -1
  15. package/dist-es/schemas/schemas_0.js +255 -4
  16. package/dist-types/S3Tables.d.ts +52 -1
  17. package/dist-types/S3TablesClient.d.ts +9 -3
  18. package/dist-types/commands/CompleteTableMigrationCommand.d.ts +90 -0
  19. package/dist-types/commands/GetTableMigrationCommand.d.ts +166 -0
  20. package/dist-types/commands/ListTableMigrationsCommand.d.ts +110 -0
  21. package/dist-types/commands/StartTableMigrationCommand.d.ts +174 -0
  22. package/dist-types/commands/SyncTableMigrationCommand.d.ts +103 -0
  23. package/dist-types/commands/UpdateTableMigrationCommand.d.ts +97 -0
  24. package/dist-types/commands/index.d.ts +6 -0
  25. package/dist-types/index.d.ts +1 -1
  26. package/dist-types/models/enums.d.ts +151 -14
  27. package/dist-types/models/models_0.d.ts +756 -1
  28. package/dist-types/pagination/ListTableMigrationsPaginator.d.ts +7 -0
  29. package/dist-types/pagination/index.d.ts +1 -0
  30. package/dist-types/runtimeConfig.d.ts +1 -0
  31. package/dist-types/schemas/schemas_0.d.ts +35 -0
  32. package/dist-types/ts3.4/S3Tables.d.ts +111 -0
  33. package/dist-types/ts3.4/S3TablesClient.d.ts +38 -2
  34. package/dist-types/ts3.4/commands/CompleteTableMigrationCommand.d.ts +38 -0
  35. package/dist-types/ts3.4/commands/GetTableMigrationCommand.d.ts +39 -0
  36. package/dist-types/ts3.4/commands/ListTableMigrationsCommand.d.ts +39 -0
  37. package/dist-types/ts3.4/commands/StartTableMigrationCommand.d.ts +39 -0
  38. package/dist-types/ts3.4/commands/SyncTableMigrationCommand.d.ts +39 -0
  39. package/dist-types/ts3.4/commands/UpdateTableMigrationCommand.d.ts +39 -0
  40. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  41. package/dist-types/ts3.4/models/enums.d.ts +78 -8
  42. package/dist-types/ts3.4/models/models_0.d.ts +196 -0
  43. package/dist-types/ts3.4/pagination/ListTableMigrationsPaginator.d.ts +11 -0
  44. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  45. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
  46. package/dist-types/ts3.4/schemas/schemas_0.d.ts +35 -0
  47. package/package.json +5 -5
@@ -1,4 +1,5 @@
1
1
  import { createAggregatedClient } from "@smithy/core/client";
2
+ import { CompleteTableMigrationCommand, } from "./commands/CompleteTableMigrationCommand";
2
3
  import { CreateNamespaceCommand, } from "./commands/CreateNamespaceCommand";
3
4
  import { CreateTableBucketCommand, } from "./commands/CreateTableBucketCommand";
4
5
  import { CreateTableCommand, } from "./commands/CreateTableCommand";
@@ -24,6 +25,7 @@ import { GetTableEncryptionCommand, } from "./commands/GetTableEncryptionCommand
24
25
  import { GetTableMaintenanceConfigurationCommand, } from "./commands/GetTableMaintenanceConfigurationCommand";
25
26
  import { GetTableMaintenanceJobStatusCommand, } from "./commands/GetTableMaintenanceJobStatusCommand";
26
27
  import { GetTableMetadataLocationCommand, } from "./commands/GetTableMetadataLocationCommand";
28
+ import { GetTableMigrationCommand, } from "./commands/GetTableMigrationCommand";
27
29
  import { GetTablePolicyCommand, } from "./commands/GetTablePolicyCommand";
28
30
  import { GetTableRecordExpirationConfigurationCommand, } from "./commands/GetTableRecordExpirationConfigurationCommand";
29
31
  import { GetTableRecordExpirationJobStatusCommand, } from "./commands/GetTableRecordExpirationJobStatusCommand";
@@ -32,6 +34,7 @@ import { GetTableReplicationStatusCommand, } from "./commands/GetTableReplicatio
32
34
  import { GetTableStorageClassCommand, } from "./commands/GetTableStorageClassCommand";
33
35
  import { ListNamespacesCommand, } from "./commands/ListNamespacesCommand";
34
36
  import { ListTableBucketsCommand, } from "./commands/ListTableBucketsCommand";
37
+ import { ListTableMigrationsCommand, } from "./commands/ListTableMigrationsCommand";
35
38
  import { ListTablesCommand, } from "./commands/ListTablesCommand";
36
39
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
37
40
  import { PutTableBucketEncryptionCommand, } from "./commands/PutTableBucketEncryptionCommand";
@@ -45,14 +48,19 @@ import { PutTablePolicyCommand, } from "./commands/PutTablePolicyCommand";
45
48
  import { PutTableRecordExpirationConfigurationCommand, } from "./commands/PutTableRecordExpirationConfigurationCommand";
46
49
  import { PutTableReplicationCommand, } from "./commands/PutTableReplicationCommand";
47
50
  import { RenameTableCommand, } from "./commands/RenameTableCommand";
51
+ import { StartTableMigrationCommand, } from "./commands/StartTableMigrationCommand";
52
+ import { SyncTableMigrationCommand, } from "./commands/SyncTableMigrationCommand";
48
53
  import { TagResourceCommand, } from "./commands/TagResourceCommand";
49
54
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
50
55
  import { UpdateTableMetadataLocationCommand, } from "./commands/UpdateTableMetadataLocationCommand";
56
+ import { UpdateTableMigrationCommand, } from "./commands/UpdateTableMigrationCommand";
51
57
  import { paginateListNamespaces } from "./pagination/ListNamespacesPaginator";
52
58
  import { paginateListTableBuckets } from "./pagination/ListTableBucketsPaginator";
59
+ import { paginateListTableMigrations } from "./pagination/ListTableMigrationsPaginator";
53
60
  import { paginateListTables } from "./pagination/ListTablesPaginator";
54
61
  import { S3TablesClient } from "./S3TablesClient";
55
62
  const commands = {
63
+ CompleteTableMigrationCommand,
56
64
  CreateNamespaceCommand,
57
65
  CreateTableCommand,
58
66
  CreateTableBucketCommand,
@@ -78,6 +86,7 @@ const commands = {
78
86
  GetTableMaintenanceConfigurationCommand,
79
87
  GetTableMaintenanceJobStatusCommand,
80
88
  GetTableMetadataLocationCommand,
89
+ GetTableMigrationCommand,
81
90
  GetTablePolicyCommand,
82
91
  GetTableRecordExpirationConfigurationCommand,
83
92
  GetTableRecordExpirationJobStatusCommand,
@@ -86,6 +95,7 @@ const commands = {
86
95
  GetTableStorageClassCommand,
87
96
  ListNamespacesCommand,
88
97
  ListTableBucketsCommand,
98
+ ListTableMigrationsCommand,
89
99
  ListTablesCommand,
90
100
  ListTagsForResourceCommand,
91
101
  PutTableBucketEncryptionCommand,
@@ -99,13 +109,17 @@ const commands = {
99
109
  PutTableRecordExpirationConfigurationCommand,
100
110
  PutTableReplicationCommand,
101
111
  RenameTableCommand,
112
+ StartTableMigrationCommand,
113
+ SyncTableMigrationCommand,
102
114
  TagResourceCommand,
103
115
  UntagResourceCommand,
104
116
  UpdateTableMetadataLocationCommand,
117
+ UpdateTableMigrationCommand,
105
118
  };
106
119
  const paginators = {
107
120
  paginateListNamespaces,
108
121
  paginateListTableBuckets,
122
+ paginateListTableMigrations,
109
123
  paginateListTables,
110
124
  };
111
125
  export class S3Tables extends S3TablesClient {
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { CompleteTableMigration$ } from "../schemas/schemas_0";
3
+ export class CompleteTableMigrationCommand extends command(_ep0, _mw0, "CompleteTableMigration", CompleteTableMigration$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetTableMigration$ } from "../schemas/schemas_0";
3
+ export class GetTableMigrationCommand extends command(_ep0, _mw0, "GetTableMigration", GetTableMigration$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListTableMigrations$ } from "../schemas/schemas_0";
3
+ export class ListTableMigrationsCommand extends command(_ep0, _mw0, "ListTableMigrations", ListTableMigrations$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { StartTableMigration$ } from "../schemas/schemas_0";
3
+ export class StartTableMigrationCommand extends command(_ep0, _mw0, "StartTableMigration", StartTableMigration$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { SyncTableMigration$ } from "../schemas/schemas_0";
3
+ export class SyncTableMigrationCommand extends command(_ep0, _mw0, "SyncTableMigration", SyncTableMigration$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { UpdateTableMigration$ } from "../schemas/schemas_0";
3
+ export class UpdateTableMigrationCommand extends command(_ep0, _mw0, "UpdateTableMigration", UpdateTableMigration$) {
4
+ }
@@ -1,3 +1,4 @@
1
+ export * from "./CompleteTableMigrationCommand";
1
2
  export * from "./CreateNamespaceCommand";
2
3
  export * from "./CreateTableBucketCommand";
3
4
  export * from "./CreateTableCommand";
@@ -23,6 +24,7 @@ export * from "./GetTableEncryptionCommand";
23
24
  export * from "./GetTableMaintenanceConfigurationCommand";
24
25
  export * from "./GetTableMaintenanceJobStatusCommand";
25
26
  export * from "./GetTableMetadataLocationCommand";
27
+ export * from "./GetTableMigrationCommand";
26
28
  export * from "./GetTablePolicyCommand";
27
29
  export * from "./GetTableRecordExpirationConfigurationCommand";
28
30
  export * from "./GetTableRecordExpirationJobStatusCommand";
@@ -31,6 +33,7 @@ export * from "./GetTableReplicationStatusCommand";
31
33
  export * from "./GetTableStorageClassCommand";
32
34
  export * from "./ListNamespacesCommand";
33
35
  export * from "./ListTableBucketsCommand";
36
+ export * from "./ListTableMigrationsCommand";
34
37
  export * from "./ListTablesCommand";
35
38
  export * from "./ListTagsForResourceCommand";
36
39
  export * from "./PutTableBucketEncryptionCommand";
@@ -44,6 +47,9 @@ export * from "./PutTablePolicyCommand";
44
47
  export * from "./PutTableRecordExpirationConfigurationCommand";
45
48
  export * from "./PutTableReplicationCommand";
46
49
  export * from "./RenameTableCommand";
50
+ export * from "./StartTableMigrationCommand";
51
+ export * from "./SyncTableMigrationCommand";
47
52
  export * from "./TagResourceCommand";
48
53
  export * from "./UntagResourceCommand";
49
54
  export * from "./UpdateTableMetadataLocationCommand";
55
+ export * from "./UpdateTableMigrationCommand";
@@ -1,3 +1,9 @@
1
+ export const CompressionCodec = {
2
+ GZIP: "gzip",
3
+ SNAPPY: "snappy",
4
+ UNCOMPRESSED: "uncompressed",
5
+ ZSTD: "zstd",
6
+ };
1
7
  export const SSEAlgorithm = {
2
8
  AES256: "AES256",
3
9
  AWS_KMS: "aws:kms",
@@ -20,6 +26,29 @@ export const StorageClass = {
20
26
  INTELLIGENT_TIERING: "INTELLIGENT_TIERING",
21
27
  STANDARD: "STANDARD",
22
28
  };
29
+ export const DataFileFormat = {
30
+ PARQUET: "parquet",
31
+ };
32
+ export const IcebergCompactionStrategy = {
33
+ AUTO: "auto",
34
+ BINPACK: "binpack",
35
+ SORT: "sort",
36
+ ZORDER: "z-order",
37
+ };
38
+ export const IncompatibleValuesPolicy = {
39
+ FAIL: "fail",
40
+ SET_NULL: "setNull",
41
+ };
42
+ export const UnmatchedSourceFieldsPolicy = {
43
+ DROP: "drop",
44
+ FAIL: "fail",
45
+ };
46
+ export const FindingCategory = {
47
+ ACCESS: "access",
48
+ DATA: "data",
49
+ INTERNAL: "internal",
50
+ METADATA: "metadata",
51
+ };
23
52
  export const TableType = {
24
53
  AWS: "aws",
25
54
  CUSTOMER: "customer",
@@ -39,12 +68,6 @@ export const TableMaintenanceType = {
39
68
  ICEBERG_COMPACTION: "icebergCompaction",
40
69
  ICEBERG_SNAPSHOT_MANAGEMENT: "icebergSnapshotManagement",
41
70
  };
42
- export const IcebergCompactionStrategy = {
43
- AUTO: "auto",
44
- BINPACK: "binpack",
45
- SORT: "sort",
46
- ZORDER: "z-order",
47
- };
48
71
  export const TableMaintenanceJobType = {
49
72
  ICEBERG_COMPACTION: "icebergCompaction",
50
73
  ICEBERG_SNAPSHOT_MANAGEMENT: "icebergSnapshotManagement",
@@ -56,6 +79,36 @@ export const JobStatus = {
56
79
  NOT_YET_RUN: "Not_Yet_Run",
57
80
  SUCCESSFUL: "Successful",
58
81
  };
82
+ export const MigrationFailureCode = {
83
+ DESTINATION_PERMISSIONS: "destinationPermissions",
84
+ INTERNAL_ERROR: "internalError",
85
+ OBJECT_COMPATIBILITY_REPORT: "objectCompatibilityReport",
86
+ OBJECT_MIGRATION_REPORT: "objectMigrationReport",
87
+ REPORT_BUCKET_NOT_SUPPORTED: "reportBucketNotSupported",
88
+ RESOURCE_NOT_FOUND: "resourceNotFound",
89
+ ROLE_PERMISSIONS: "rolePermissions",
90
+ SOURCE_NOT_SUPPORTED: "sourceNotSupported",
91
+ SOURCE_PERMISSIONS: "sourcePermissions",
92
+ TABLE_COMPATIBILITY_REPORT: "tableCompatibilityReport",
93
+ };
94
+ export const MigrationSourceType = {
95
+ GLUE_TABLE: "glueTable",
96
+ };
97
+ export const MigrationState = {
98
+ CANCELLED: "cancelled",
99
+ CANCELLING: "cancelling",
100
+ FAILED: "failed",
101
+ MIGRATING: "migrating",
102
+ NEW: "new",
103
+ PENDING_REVIEW: "pendingReview",
104
+ PLANNING: "planning",
105
+ QUEUED: "queued",
106
+ SUCCEEDED: "succeeded",
107
+ };
108
+ export const MigrationType = {
109
+ START: "start",
110
+ SYNC: "sync",
111
+ };
59
112
  export const TableRecordExpirationStatus = {
60
113
  DISABLED: "disabled",
61
114
  ENABLED: "enabled",
@@ -71,3 +124,7 @@ export const ReplicationStatus = {
71
124
  FAILED: "failed",
72
125
  PENDING: "pending",
73
126
  };
127
+ export const MigrationRequestedState = {
128
+ CANCELLED: "cancelled",
129
+ QUEUED: "queued",
130
+ };
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListTableMigrationsCommand, } from "../commands/ListTableMigrationsCommand";
3
+ import { S3TablesClient } from "../S3TablesClient";
4
+ export const paginateListTableMigrations = createPaginator(S3TablesClient, ListTableMigrationsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,4 +1,5 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListNamespacesPaginator";
3
3
  export * from "./ListTableBucketsPaginator";
4
+ export * from "./ListTableMigrationsPaginator";
4
5
  export * from "./ListTablesPaginator";
@@ -1,5 +1,5 @@
1
1
  import packageInfo from "../package.json";
2
- import { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS, } from "@aws-sdk/core/client";
2
+ import { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion as awsCheckVersion, getDefaultSocketTimeout, NODE_APP_ID_CONFIG_OPTIONS, } from "@aws-sdk/core/client";
3
3
  import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core/httpAuthSchemes";
4
4
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
@@ -26,6 +26,7 @@ export const getRuntimeConfig = (config) => {
26
26
  authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
27
27
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
28
28
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
29
+ defaultSocketTimeout: getDefaultSocketTimeout(config?.requestHandler, 300_000),
29
30
  defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
30
31
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
31
32
  region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),