@aws-sdk/client-s3tables 3.1161.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 +3 -3
@@ -1,5 +1,15 @@
1
1
  import type { DocumentType as __DocumentType } from "@smithy/types";
2
- import type { IcebergCompactionStrategy, IcebergNullOrder, IcebergSortDirection, JobStatus, MaintenanceStatus, OpenTableFormat, ReplicationStatus, SchemaV2FieldType, SSEAlgorithm, StorageClass, TableBucketMaintenanceType, TableBucketType, TableMaintenanceJobType, TableMaintenanceType, TableRecordExpirationJobStatus, TableRecordExpirationStatus, TableType } from "./enums";
2
+ import type { CompressionCodec, DataFileFormat, FindingCategory, IcebergCompactionStrategy, IcebergNullOrder, IcebergSortDirection, IncompatibleValuesPolicy, JobStatus, MaintenanceStatus, MigrationFailureCode, MigrationRequestedState, MigrationSourceType, MigrationState, MigrationType, OpenTableFormat, ReplicationStatus, SchemaV2FieldType, SSEAlgorithm, StorageClass, TableBucketMaintenanceType, TableBucketType, TableMaintenanceJobType, TableMaintenanceType, TableRecordExpirationJobStatus, TableRecordExpirationStatus, TableType, UnmatchedSourceFieldsPolicy } from "./enums";
3
+ /**
4
+ * @public
5
+ */
6
+ export interface CompleteTableMigrationRequest {
7
+ /**
8
+ * <p>The Amazon Resource Name (ARN) of the migrated table to complete the migration of.</p>
9
+ * @public
10
+ */
11
+ tableARN: string | undefined;
12
+ }
3
13
  /**
4
14
  * @public
5
15
  */
@@ -394,6 +404,102 @@ export interface CreateTableBucketResponse {
394
404
  */
395
405
  arn: string | undefined;
396
406
  }
407
+ /**
408
+ * <p>The compaction settings that a migration applies to the destination table.</p>
409
+ * @public
410
+ */
411
+ export interface MigrationCompactionSettings {
412
+ /**
413
+ * <p>The target size, from 64 to 512 MB, of the data files that the migration writes, and of the files that compaction writes after you complete the migration. The default is 512.</p>
414
+ * @public
415
+ */
416
+ targetFileSizeMB?: number | undefined;
417
+ /**
418
+ * <p>The compaction strategy. The only valid value is <code>binpack</code>, which is the default.</p>
419
+ * @public
420
+ */
421
+ strategy?: IcebergCompactionStrategy | undefined;
422
+ }
423
+ /**
424
+ * <p>The snapshot management settings that a migration applies to the destination table.</p>
425
+ * @public
426
+ */
427
+ export interface MigrationSnapshotManagementSettings {
428
+ /**
429
+ * <p>The minimum number of snapshots to keep. The value must be 3 or more. The default is 3.</p>
430
+ * @public
431
+ */
432
+ minSnapshotsToKeep?: number | undefined;
433
+ /**
434
+ * <p>The maximum age, in hours, of a snapshot before it can be expired. The default is 120.</p>
435
+ * @public
436
+ */
437
+ maxSnapshotAgeHours?: number | undefined;
438
+ }
439
+ /**
440
+ * <p>The maintenance settings for the destination table. The migration applies them when it creates the table: snapshot management starts then, and compaction starts after you complete the migration. If you don't specify a setting, the migration uses its default: a target file size of 512 MB, the binpack compaction strategy, at least 3 snapshots, and a maximum snapshot age of 120 hours. Unreferenced file removal follows the table bucket's configuration after you complete the migration.</p>
441
+ * @public
442
+ */
443
+ export interface MaintenanceSettings {
444
+ /**
445
+ * <p>The compaction settings.</p>
446
+ * @public
447
+ */
448
+ icebergCompaction?: MigrationCompactionSettings | undefined;
449
+ /**
450
+ * <p>The snapshot management settings.</p>
451
+ * @public
452
+ */
453
+ icebergSnapshotManagement?: MigrationSnapshotManagementSettings | undefined;
454
+ }
455
+ /**
456
+ * <p>The policies for source data that doesn't fit the destination schema.</p>
457
+ * @public
458
+ */
459
+ export interface MigrationPolicies {
460
+ /**
461
+ * <p>The migration policy for a source field that has no matching column in the destination schema. Valid values:</p> <ul> <li> <p> <code>fail</code> - Fails the migration. This is the default.</p> </li> <li> <p> <code>drop</code> - Leaves source columns that the destination schema doesn't have out of the destination table, and doesn't migrate source objects outside the Amazon Web Services Glue table's partition locations.</p> </li> </ul> <p>A destination schema that leaves out a partition column or a field of a struct column fails the migration under either value.</p>
462
+ * @public
463
+ */
464
+ unmatchedSourceFieldsPolicy?: UnmatchedSourceFieldsPolicy | undefined;
465
+ /**
466
+ * <p>The migration policy for a source value that the destination column's type can't hold. Valid values:</p> <ul> <li> <p> <code>fail</code> - Fails the migration. This is the default.</p> </li> <li> <p> <code>setNull</code> - Writes null for a value that the destination column's type can't hold. If a column's type in a source object is incompatible with the destination column's type, the column is null for that whole object.</p> </li> </ul> <p>A required column, or a type that migration doesn't support, fails the migration under either value.</p>
467
+ * @public
468
+ */
469
+ incompatibleValuesPolicy?: IncompatibleValuesPolicy | undefined;
470
+ }
471
+ /**
472
+ * <p>The maintenance settings and migration policies for the destination table.</p>
473
+ * @public
474
+ */
475
+ export interface DataMigrationOverview {
476
+ /**
477
+ * <p>The maintenance settings for the destination table. The migration applies them when it creates the table: snapshot management starts then, and compaction starts after you complete the migration. If you don't specify a setting, the migration uses its default: a target file size of 512 MB, the binpack compaction strategy, at least 3 snapshots, and a maximum snapshot age of 120 hours. Unreferenced file removal follows the table bucket's configuration after you complete the migration.</p>
478
+ * @public
479
+ */
480
+ maintenanceSettings: MaintenanceSettings | undefined;
481
+ /**
482
+ * <p>The policies for source data that doesn't fit the destination schema.</p>
483
+ * @public
484
+ */
485
+ migrationPolicies: MigrationPolicies | undefined;
486
+ }
487
+ /**
488
+ * <p>The maintenance settings and migration policies for the destination table.</p>
489
+ * @public
490
+ */
491
+ export interface DataMigrationSettings {
492
+ /**
493
+ * <p>The maintenance settings for the destination table. The migration applies them when it creates the table: snapshot management starts then, and compaction starts after you complete the migration. If you don't specify a setting, the migration uses its default: a target file size of 512 MB, the binpack compaction strategy, at least 3 snapshots, and a maximum snapshot age of 120 hours. Unreferenced file removal follows the table bucket's configuration after you complete the migration.</p>
494
+ * @public
495
+ */
496
+ maintenanceSettings?: MaintenanceSettings | undefined;
497
+ /**
498
+ * <p>The policies for source data that doesn't fit the destination schema.</p>
499
+ * @public
500
+ */
501
+ migrationPolicies?: MigrationPolicies | undefined;
502
+ }
397
503
  /**
398
504
  * @public
399
505
  */
@@ -524,6 +630,83 @@ export interface DeleteTableReplicationRequest {
524
630
  */
525
631
  versionToken: string | undefined;
526
632
  }
633
+ /**
634
+ * <p>The properties of the data files that a migration writes. The migration also sets the compression codec and dictionary encoding as the destination table's write properties, so they remain the table's defaults after you complete the migration.</p>
635
+ * @public
636
+ */
637
+ export interface MigrationTableProperties {
638
+ /**
639
+ * <p>The file format of the data files. The only supported format is <code>parquet</code>, the default.</p>
640
+ * @public
641
+ */
642
+ writeFormat?: DataFileFormat | undefined;
643
+ /**
644
+ * <p>The Iceberg format version of the destination table. Valid values are <code>2</code> and <code>3</code>. The default is <code>2</code>.</p>
645
+ * @public
646
+ */
647
+ icebergFormatVersion?: number | undefined;
648
+ /**
649
+ * <p>The compression codec of the data files. The default is <code>zstd</code>.</p>
650
+ * @public
651
+ */
652
+ compressionCodec?: CompressionCodec | undefined;
653
+ /**
654
+ * <p>Specifies whether the data files use dictionary encoding. The default is <code>true</code>.</p>
655
+ * @public
656
+ */
657
+ dictionaryEncoding?: boolean | undefined;
658
+ }
659
+ /**
660
+ * <p>The table that a migration creates in a table bucket and migrates the source into.</p>
661
+ * @public
662
+ */
663
+ export interface DestinationTable {
664
+ /**
665
+ * <p>The Amazon Resource Name (ARN) of the table bucket to create the table in.</p>
666
+ * @public
667
+ */
668
+ tableBucketARN: string | undefined;
669
+ /**
670
+ * <p>The namespace to create the table in.</p>
671
+ * @public
672
+ */
673
+ namespace: string | undefined;
674
+ /**
675
+ * <p>The name of the table to create.</p>
676
+ * @public
677
+ */
678
+ name: string | undefined;
679
+ /**
680
+ * <p>The encryption configuration for the table. If you don't specify one, the table uses the default encryption configuration of its table bucket. If you specify an encryption configuration, the migration role must have the <code>s3tables:PutTableEncryption</code> permission. If you choose SSE-KMS, the migration role must have the <code>kms:DescribeKey</code>, <code>kms:GenerateDataKey</code> and <code>kms:Decrypt</code> permissions on the KMS key, and the S3 Tables maintenance principal must have access to it. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-kms-permissions.html">Permissions requirements for S3 Tables SSE-KMS encryption</a>.</p>
681
+ * @public
682
+ */
683
+ encryptionConfiguration?: EncryptionConfiguration | undefined;
684
+ /**
685
+ * <p>The storage class configuration for the table. If you don't specify one, the table inherits the storage class configuration of its table bucket. If you specify a storage class configuration, the migration role must have the <code>s3tables:PutTableStorageClass</code> permission.</p>
686
+ * @public
687
+ */
688
+ storageClassConfiguration?: StorageClassConfiguration | undefined;
689
+ /**
690
+ * <p>The tags to add to the table. A tag is a key-value pair that you apply to your resources. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/tagging.html">Tagging for cost allocation or attribute-based access control (ABAC)</a>. If you specify tags, the migration role must have the <code>s3tables:TagResource</code> permission.</p>
691
+ * @public
692
+ */
693
+ tags?: Record<string, string> | undefined;
694
+ /**
695
+ * <p>The properties of the destination table, such as its Iceberg format version and the format of its data files.</p>
696
+ * @public
697
+ */
698
+ properties?: MigrationTableProperties | undefined;
699
+ /**
700
+ * <p>The schema of the table to create. If you don't specify a schema, the migration infers it from the source table, with every column optional. A schema that you specify must include every partition column of the source table. It can leave out other columns only if <code>unmatchedSourceFieldsPolicy</code> is <code>drop</code>. A struct column must have the same fields as the source column. Column default values aren't supported. If you mark a column as required, every source object must have a value for it: an object with a null value in a required column fails to migrate. The destination table is partitioned in the same way as the source table. To specify fields in <code>icebergSortOrder</code>, you must specify a schema.</p>
701
+ * @public
702
+ */
703
+ schema?: IcebergSchemaV2 | undefined;
704
+ /**
705
+ * <p>The sort order of the rows within each data file that the migration writes. A sort order can have up to five fields, each naming a column of the schema that you specify by its field ID, so to use a sort order you must specify a schema. <code>StartTableMigration</code> rejects a field that names no column of the schema, or whose transform doesn't fit the column's type.</p>
706
+ * @public
707
+ */
708
+ icebergSortOrder?: IcebergSortOrder | undefined;
709
+ }
527
710
  /**
528
711
  * @public
529
712
  */
@@ -1248,6 +1431,285 @@ export interface GetTableMetadataLocationResponse {
1248
1431
  */
1249
1432
  warehouseLocation: string | undefined;
1250
1433
  }
1434
+ /**
1435
+ * @public
1436
+ */
1437
+ export interface GetTableMigrationRequest {
1438
+ /**
1439
+ * <p>The ID of the migration to get. Specify either <code>migrationId</code> or <code>tableARN</code>, not both.</p>
1440
+ * @public
1441
+ */
1442
+ migrationId?: string | undefined;
1443
+ /**
1444
+ * <p>The Amazon Resource Name (ARN) of the destination table. Gets the table's most recent migration. Specify either <code>tableARN</code> or <code>migrationId</code>, not both.</p>
1445
+ * @public
1446
+ */
1447
+ tableARN?: string | undefined;
1448
+ }
1449
+ /**
1450
+ * <p>The reason that a migration failed: a code and, when there is one, the resource or reason it applies to. This value is returned only when the migration is in the <code>failed</code> state.</p>
1451
+ * @public
1452
+ */
1453
+ export interface MigrationFailureReason {
1454
+ /**
1455
+ * <p>The failure code. It names the cause or the report that lists the findings. Valid values:</p> <ul> <li> <p> <code>rolePermissions</code> - S3 Tables couldn't assume the migration role, or the role doesn't have a permission that the migration needs. <code>detail</code> is the role ARN.</p> </li> <li> <p> <code>sourcePermissions</code> - The migration role couldn't read the Amazon Web Services Glue table or the source objects. <code>detail</code> names the table (<code>database.table</code>) or the source bucket.</p> </li> <li> <p> <code>destinationPermissions</code> - The migration role couldn't write to the table bucket or the report bucket. <code>detail</code> names the bucket.</p> </li> <li> <p> <code>resourceNotFound</code> - A resource that you specified doesn't exist, such as the Amazon Web Services Glue table or the source bucket. <code>detail</code> names it.</p> </li> <li> <p> <code>sourceNotSupported</code> - The source table can't be migrated, for example because it is empty, has too many objects, or has columns or partitions that can't be migrated. The table compatibility report lists the findings.</p> </li> <li> <p> <code>tableCompatibilityReport</code> - The migration couldn't create the destination table, for example because a table with that name already exists or the KMS key can't be used. For a sync, the destination table changed after the previous migration. The table compatibility report lists the finding.</p> </li> <li> <p> <code>objectCompatibilityReport</code> - Some source objects can't be migrated, for example because they are archived, or because they were overwritten after an earlier migration migrated them. The object compatibility report lists them.</p> </li> <li> <p> <code>objectMigrationReport</code> - Some source objects failed to migrate. The object migration report lists them and the cause for each.</p> </li> <li> <p> <code>reportBucketNotSupported</code> - The report bucket can't receive the migration's reports, for example because it is in a different Region than the table bucket.</p> </li> <li> <p> <code>internalError</code> - S3 Tables encountered an internal error. Retry the migration, and contact Amazon Web Services Support if the error persists.</p> </li> </ul>
1456
+ * @public
1457
+ */
1458
+ code: MigrationFailureCode | undefined;
1459
+ /**
1460
+ * <p>The resource that the failure applies to, such as the role ARN, the Amazon Web Services Glue table (<code>database.table</code>) or a bucket. For <code>sourceNotSupported</code>, the reason that the source isn't supported, such as <code>EMPTY_TABLE</code>. This value isn't returned for the report codes or for <code>internalError</code>.</p>
1461
+ * @public
1462
+ */
1463
+ detail?: string | undefined;
1464
+ }
1465
+ /**
1466
+ * <p>A report of a migration: the prefix it is written under and, once it is written, its key, its checksum and, for the compatibility reports, the number of blocking findings in each category.</p>
1467
+ * @public
1468
+ */
1469
+ export interface ReportOverview {
1470
+ /**
1471
+ * <p>The key prefix that the report is written under.</p>
1472
+ * @public
1473
+ */
1474
+ prefix?: string | undefined;
1475
+ /**
1476
+ * <p>The key of the report object in the bucket. For the object compatibility and object migration reports, this is the report's manifest; for the table compatibility report, it is the report itself. This value is returned after the migration writes the report. A migration doesn't always write every report. For example, a migration that fails during planning doesn't write the object migration report.</p>
1477
+ * @public
1478
+ */
1479
+ key?: string | undefined;
1480
+ /**
1481
+ * <p>The Base64-encoded CRC64NVME checksum of the object that <code>key</code> names. For a report that has a manifest, the manifest lists the checksum of each report file. This value is returned after the migration writes the report.</p>
1482
+ * @public
1483
+ */
1484
+ checksumCRC64NVME?: string | undefined;
1485
+ /**
1486
+ * <p>For the compatibility reports, the number of blocking findings in each category. The object compatibility report counts each blocked object once, under its most severe finding. Categories with no blocking findings are left out.</p>
1487
+ * @public
1488
+ */
1489
+ invalidFindings?: Partial<Record<FindingCategory, number>> | undefined;
1490
+ }
1491
+ /**
1492
+ * <p>Where a migration writes its reports, and the location of each report once it is written.</p>
1493
+ * @public
1494
+ */
1495
+ export interface MigrationOutputOverview {
1496
+ /**
1497
+ * <p>The general purpose bucket that the migration writes every report to.</p>
1498
+ * @public
1499
+ */
1500
+ bucket: string | undefined;
1501
+ /**
1502
+ * <p>The table compatibility report: the sample object that the schema is inferred from, the table-level findings, and one row for each destination column with its type change and how the migration policies apply to it. The migration writes it when planning finishes, before any data migrates. If planning fails, the report might not be written.</p>
1503
+ * @public
1504
+ */
1505
+ tableCompatibilityReport: ReportOverview | undefined;
1506
+ /**
1507
+ * <p>The object compatibility report: one row for each source object under the source table's location, with whether the migration includes the object and its most severe finding. The migration writes it when planning finishes. If planning fails, the report might not be written.</p>
1508
+ * @public
1509
+ */
1510
+ objectCompatibilityReport: ReportOverview | undefined;
1511
+ /**
1512
+ * <p>The object migration report: one row for each source object that the migration tried to migrate, with whether it migrated, how it was transformed, and why it failed. The migration writes it once, when the migration ends. It isn't written if planning fails or if a sync has nothing to migrate.</p>
1513
+ * @public
1514
+ */
1515
+ objectMigrationReport: ReportOverview | undefined;
1516
+ }
1517
+ /**
1518
+ * <p>The number of source objects that migrated, failed or are pending. For a sync, the counts cover every object of the table after the sync, including objects that earlier migrations migrated. The counts are set when planning finishes and updated when the migration ends.</p>
1519
+ * @public
1520
+ */
1521
+ export interface MigrationStats {
1522
+ /**
1523
+ * <p>The number of source objects whose data the migration wrote to the destination table. Migrated data can be queried after the migration commits it. If the migration fails or is cancelled, some migrated objects might not be committed.</p>
1524
+ * @public
1525
+ */
1526
+ objectsMigrated?: number | undefined;
1527
+ /**
1528
+ * <p>The number of source objects that didn't migrate, because they failed or because another object, such as an object in the same partition, failed. The object migration report lists the cause for each object.</p>
1529
+ * @public
1530
+ */
1531
+ objectsFailedMigration?: number | undefined;
1532
+ /**
1533
+ * <p>The number of source objects that haven't migrated or failed yet. When a migration fails or is cancelled, these are the objects that it didn't migrate.</p>
1534
+ * @public
1535
+ */
1536
+ objectsPendingMigration?: number | undefined;
1537
+ }
1538
+ /**
1539
+ * <p>Statistics about the source and the partitions in a migration.</p>
1540
+ * @public
1541
+ */
1542
+ export interface PlanningStats {
1543
+ /**
1544
+ * <p>The number of source objects that the migration found under the source table's location, whether or not it migrates them. The object compatibility report has one row for each.</p>
1545
+ * @public
1546
+ */
1547
+ objectsScanned?: number | undefined;
1548
+ /**
1549
+ * <p>The number of source objects in the migration. For a start, these are the data files in the Amazon Web Services Glue table's partitions, or under the table's location if the table isn't partitioned. For a sync, these are all the data files of the table after the sync, including files that earlier migrations migrated.</p>
1550
+ * @public
1551
+ */
1552
+ objectsPlanned?: number | undefined;
1553
+ /**
1554
+ * <p>The number of partitions in the destination table after this migration, or 0 if the source table isn't partitioned. This value is returned when planning produces a valid plan.</p>
1555
+ * @public
1556
+ */
1557
+ partitionCount?: number | undefined;
1558
+ }
1559
+ /**
1560
+ * <p>An Amazon Web Services Glue Data Catalog table to migrate. The table must be an external Apache Hive table whose data is stored as Parquet in a general purpose bucket in the same account and Region as the table bucket. Views, transactional (ACID) tables, tables in an open table format such as Apache Iceberg, and tables registered with Amazon Web Services Lake Formation can't be migrated. If the table can't be migrated, the migration fails, and the table compatibility report lists the reason.</p>
1561
+ * @public
1562
+ */
1563
+ export interface GlueTableSource {
1564
+ /**
1565
+ * <p>The ID of the Data Catalog that contains the table. It must be your account ID.</p>
1566
+ * @public
1567
+ */
1568
+ catalogId: string | undefined;
1569
+ /**
1570
+ * <p>The name of the database that contains the table.</p>
1571
+ * @public
1572
+ */
1573
+ databaseName: string | undefined;
1574
+ /**
1575
+ * <p>The name of the table.</p>
1576
+ * @public
1577
+ */
1578
+ tableName: string | undefined;
1579
+ }
1580
+ /**
1581
+ * <p>The source to migrate from. Set exactly one member, and set <code>sourceType</code> to match it.</p>
1582
+ * @public
1583
+ */
1584
+ export type SourceConfiguration = SourceConfiguration.GlueTableMember | SourceConfiguration.$UnknownMember;
1585
+ /**
1586
+ * @public
1587
+ */
1588
+ export declare namespace SourceConfiguration {
1589
+ /**
1590
+ * <p>An Amazon Web Services Glue Data Catalog table to migrate. The table must be an external Apache Hive table whose data is stored as Parquet in a general purpose bucket in the same account and Region as the table bucket. Views, transactional (ACID) tables, tables in an open table format such as Apache Iceberg, and tables registered with Amazon Web Services Lake Formation can't be migrated. If the table can't be migrated, the migration fails, and the table compatibility report lists the reason.</p>
1591
+ * @public
1592
+ */
1593
+ interface GlueTableMember {
1594
+ glueTable: GlueTableSource;
1595
+ $unknown?: never;
1596
+ }
1597
+ /**
1598
+ * @public
1599
+ */
1600
+ interface $UnknownMember {
1601
+ glueTable?: never;
1602
+ $unknown: [string, any];
1603
+ }
1604
+ /**
1605
+ * @deprecated unused in schema-serde mode.
1606
+ *
1607
+ */
1608
+ interface Visitor<T> {
1609
+ glueTable: (value: GlueTableSource) => T;
1610
+ _: (name: string, value: any) => T;
1611
+ }
1612
+ }
1613
+ /**
1614
+ * @public
1615
+ */
1616
+ export interface GetTableMigrationResponse {
1617
+ /**
1618
+ * <p>The ID of the migration.</p>
1619
+ * @public
1620
+ */
1621
+ migrationId: string | undefined;
1622
+ /**
1623
+ * <p>The Amazon Resource Name (ARN) of the table bucket that contains the destination table.</p>
1624
+ * @public
1625
+ */
1626
+ tableBucketARN: string | undefined;
1627
+ /**
1628
+ * <p>The namespace of the destination table.</p>
1629
+ * @public
1630
+ */
1631
+ namespace: string | undefined;
1632
+ /**
1633
+ * <p>The Amazon Resource Name (ARN) of the destination table, once the migration creates it.</p>
1634
+ * @public
1635
+ */
1636
+ tableARN?: string | undefined;
1637
+ /**
1638
+ * <p>The name of the destination table.</p>
1639
+ * @public
1640
+ */
1641
+ name: string | undefined;
1642
+ /**
1643
+ * <p>The type of the migration. Valid values:</p> <ul> <li> <p> <code>start</code> - A migration that <code>StartTableMigration</code> started.</p> </li> <li> <p> <code>sync</code> - A migration that <code>SyncTableMigration</code> started.</p> </li> </ul>
1644
+ * @public
1645
+ */
1646
+ type: MigrationType | undefined;
1647
+ /**
1648
+ * <p>The state of the migration. Valid values:</p> <ul> <li> <p> <code>new</code> - S3 Tables accepted the request.</p> </li> <li> <p> <code>planning</code> - The migration is checking the source table, its objects and the destination for compatibility, and writing the compatibility reports.</p> </li> <li> <p> <code>pendingReview</code> - Planning finished, and the migration waits for you to continue or cancel it with <code>UpdateTableMigration</code>.</p> </li> <li> <p> <code>queued</code> - The migration is waiting to start migrating data.</p> </li> <li> <p> <code>migrating</code> - The migration is running the plan from the <code>planning</code> state: it copies data and commits it to the destination table. A migration reaches this state only if <code>hasValidPlan</code> is <code>true</code>.</p> </li> <li> <p> <code>succeeded</code> - Every planned object migrated.</p> </li> <li> <p> <code>failed</code> - The migration failed. Check <code>failureReason</code> for the cause.</p> </li> <li> <p> <code>cancelling</code> - You cancelled the migration, and it is finishing the work in progress.</p> </li> <li> <p> <code>cancelled</code> - The migration is cancelled.</p> </li> </ul> <p>A migration ends in the <code>succeeded</code>, <code>failed</code> or <code>cancelled</code> state. You can cancel it until it ends.</p>
1649
+ * @public
1650
+ */
1651
+ state: MigrationState | undefined;
1652
+ /**
1653
+ * <p>The Amazon Resource Name (ARN) of the IAM role that the migration uses.</p>
1654
+ * @public
1655
+ */
1656
+ roleARN: string | undefined;
1657
+ /**
1658
+ * <p>A Boolean value that specifies whether the migration waits in the <code>pendingReview</code> state, so that you can review the compatibility reports before it migrates any data.</p>
1659
+ * @public
1660
+ */
1661
+ reviewMigrationPlan: boolean | undefined;
1662
+ /**
1663
+ * <p>A Boolean value that specifies whether planning produced a plan that the migration can run. If planning hasn't finished, this value isn't returned.</p>
1664
+ * @public
1665
+ */
1666
+ hasValidPlan?: boolean | undefined;
1667
+ /**
1668
+ * <p>The date and time that the migration was created.</p>
1669
+ * @public
1670
+ */
1671
+ createdAt: Date | undefined;
1672
+ /**
1673
+ * <p>The date and time that the migration's state last changed.</p>
1674
+ * @public
1675
+ */
1676
+ stateUpdatedAt: Date | undefined;
1677
+ /**
1678
+ * <p>The reason that the migration failed. The code names the cause, such as a migration role that S3 Tables can't assume or an Amazon Web Services Glue table that doesn't exist, or the report that lists the findings. This value is returned only when the migration is in the <code>failed</code> state.</p>
1679
+ * @public
1680
+ */
1681
+ failureReason?: MigrationFailureReason | undefined;
1682
+ /**
1683
+ * <p>Statistics about the source and the partitions in the migration. This value is returned after planning finishes.</p>
1684
+ * @public
1685
+ */
1686
+ planningStats?: PlanningStats | undefined;
1687
+ /**
1688
+ * <p>The number of objects that migrated, failed or are pending. These counts are set when planning finishes and updated when the migration ends.</p>
1689
+ * @public
1690
+ */
1691
+ migrationStats?: MigrationStats | undefined;
1692
+ /**
1693
+ * <p>The type of the migration's source.</p>
1694
+ * @public
1695
+ */
1696
+ sourceType: MigrationSourceType | undefined;
1697
+ /**
1698
+ * <p>The source table of the migration.</p>
1699
+ * @public
1700
+ */
1701
+ source: SourceConfiguration | undefined;
1702
+ /**
1703
+ * <p>The maintenance settings and migration policies for the destination table.</p>
1704
+ * @public
1705
+ */
1706
+ dataMigration: DataMigrationOverview | undefined;
1707
+ /**
1708
+ * <p>The bucket and prefixes for the migration's reports, and the location of each report once it is written.</p>
1709
+ * @public
1710
+ */
1711
+ migrationOutput: MigrationOutputOverview | undefined;
1712
+ }
1251
1713
  /**
1252
1714
  * @public
1253
1715
  */
@@ -1687,6 +2149,122 @@ export interface ListTableBucketsResponse {
1687
2149
  */
1688
2150
  continuationToken?: string | undefined;
1689
2151
  }
2152
+ /**
2153
+ * @public
2154
+ */
2155
+ export interface ListTableMigrationsRequest {
2156
+ /**
2157
+ * <p>The Amazon Resource Name (ARN) of the table bucket to list migrations for.</p>
2158
+ * @public
2159
+ */
2160
+ tableBucketARN?: string | undefined;
2161
+ /**
2162
+ * <p>The namespace to list migrations for. Requires <code>tableBucketARN</code>.</p>
2163
+ * @public
2164
+ */
2165
+ namespace?: string | undefined;
2166
+ /**
2167
+ * <p>The name of the table to list migrations for. Requires <code>tableBucketARN</code> and <code>namespace</code>.</p>
2168
+ * @public
2169
+ */
2170
+ name?: string | undefined;
2171
+ /**
2172
+ * <p>The Amazon Resource Name (ARN) of the table to list migrations for. The list includes the migrations into this table. To also list migrations into an earlier table of the same name, specify <code>tableBucketARN</code>, <code>namespace</code> and <code>name</code> instead. Specify either <code>tableARN</code> or <code>tableBucketARN</code>, not both.</p>
2173
+ * @public
2174
+ */
2175
+ tableARN?: string | undefined;
2176
+ /**
2177
+ * <p>The state to filter the list by. For the valid values, see the <code>state</code> member of <code>GetTableMigration</code>.</p>
2178
+ * @public
2179
+ */
2180
+ state?: MigrationState | undefined;
2181
+ /**
2182
+ * <p>The <code>hasValidPlan</code> value to filter the list by. Migrations that are still planning aren't listed, whichever value you specify.</p>
2183
+ * @public
2184
+ */
2185
+ hasValidPlan?: boolean | undefined;
2186
+ /**
2187
+ * <p>The maximum number of migrations to return, from 1 to 1,000. If you don't specify a value, the default is 100.</p>
2188
+ * @public
2189
+ */
2190
+ maxResults?: number | undefined;
2191
+ /**
2192
+ * <p>The <code>nextToken</code> from a previous response, to get the next page of results.</p>
2193
+ * @public
2194
+ */
2195
+ nextToken?: string | undefined;
2196
+ }
2197
+ /**
2198
+ * <p>A summary of a migration.</p>
2199
+ * @public
2200
+ */
2201
+ export interface MigrationSummary {
2202
+ /**
2203
+ * <p>The ID of the migration.</p>
2204
+ * @public
2205
+ */
2206
+ migrationId: string | undefined;
2207
+ /**
2208
+ * <p>The Amazon Resource Name (ARN) of the table bucket that contains the destination table.</p>
2209
+ * @public
2210
+ */
2211
+ tableBucketARN: string | undefined;
2212
+ /**
2213
+ * <p>The namespace of the destination table.</p>
2214
+ * @public
2215
+ */
2216
+ namespace: string | undefined;
2217
+ /**
2218
+ * <p>The Amazon Resource Name (ARN) of the destination table, once the migration creates it.</p>
2219
+ * @public
2220
+ */
2221
+ tableARN?: string | undefined;
2222
+ /**
2223
+ * <p>The name of the destination table.</p>
2224
+ * @public
2225
+ */
2226
+ name: string | undefined;
2227
+ /**
2228
+ * <p>The type of the migration. Valid values:</p> <ul> <li> <p> <code>start</code> - A migration that <code>StartTableMigration</code> started.</p> </li> <li> <p> <code>sync</code> - A migration that <code>SyncTableMigration</code> started.</p> </li> </ul>
2229
+ * @public
2230
+ */
2231
+ type: MigrationType | undefined;
2232
+ /**
2233
+ * <p>The state of the migration. Valid values:</p> <ul> <li> <p> <code>new</code> - S3 Tables accepted the request.</p> </li> <li> <p> <code>planning</code> - The migration is checking the source table, its objects and the destination for compatibility, and writing the compatibility reports.</p> </li> <li> <p> <code>pendingReview</code> - Planning finished, and the migration waits for you to continue or cancel it with <code>UpdateTableMigration</code>.</p> </li> <li> <p> <code>queued</code> - The migration is waiting to start migrating data.</p> </li> <li> <p> <code>migrating</code> - The migration is running the plan from the <code>planning</code> state: it copies data and commits it to the destination table. A migration reaches this state only if <code>hasValidPlan</code> is <code>true</code>.</p> </li> <li> <p> <code>succeeded</code> - Every planned object migrated.</p> </li> <li> <p> <code>failed</code> - The migration failed. Check <code>failureReason</code> for the cause.</p> </li> <li> <p> <code>cancelling</code> - You cancelled the migration, and it is finishing the work in progress.</p> </li> <li> <p> <code>cancelled</code> - The migration is cancelled.</p> </li> </ul>
2234
+ * @public
2235
+ */
2236
+ state: MigrationState | undefined;
2237
+ /**
2238
+ * <p>A Boolean value that specifies whether planning produced a plan that the migration can run. If planning hasn't finished, this value isn't returned.</p>
2239
+ * @public
2240
+ */
2241
+ hasValidPlan?: boolean | undefined;
2242
+ /**
2243
+ * <p>The date and time that the migration was created.</p>
2244
+ * @public
2245
+ */
2246
+ createdAt: Date | undefined;
2247
+ /**
2248
+ * <p>The date and time that the migration's state last changed.</p>
2249
+ * @public
2250
+ */
2251
+ stateUpdatedAt: Date | undefined;
2252
+ }
2253
+ /**
2254
+ * @public
2255
+ */
2256
+ export interface ListTableMigrationsResponse {
2257
+ /**
2258
+ * <p>The migrations, newest first.</p>
2259
+ * @public
2260
+ */
2261
+ migrations: MigrationSummary[] | undefined;
2262
+ /**
2263
+ * <p>A token to pass as <code>nextToken</code> to get the next page of results. If there are no more results, this value isn't returned.</p>
2264
+ * @public
2265
+ */
2266
+ nextToken?: string | undefined;
2267
+ }
1690
2268
  /**
1691
2269
  * @public
1692
2270
  */
@@ -1803,6 +2381,43 @@ export interface ListTagsForResourceResponse {
1803
2381
  */
1804
2382
  tags?: Record<string, string> | undefined;
1805
2383
  }
2384
+ /**
2385
+ * <p>The key prefix for each report. If you don't specify a prefix for a report, its keys start at the root of the bucket.</p>
2386
+ * @public
2387
+ */
2388
+ export interface MigrationReportPrefixes {
2389
+ /**
2390
+ * <p>The key prefix for the table compatibility report, up to 512 bytes. If not specified, the report's keys start at the root of the bucket.</p>
2391
+ * @public
2392
+ */
2393
+ tableCompatibilityReport?: string | undefined;
2394
+ /**
2395
+ * <p>The key prefix for the object compatibility report, up to 512 bytes. If not specified, the report's keys start at the root of the bucket.</p>
2396
+ * @public
2397
+ */
2398
+ objectCompatibilityReport?: string | undefined;
2399
+ /**
2400
+ * <p>The key prefix for the object migration report, up to 512 bytes. If not specified, the report's keys start at the root of the bucket.</p>
2401
+ * @public
2402
+ */
2403
+ objectMigrationReport?: string | undefined;
2404
+ }
2405
+ /**
2406
+ * <p>The bucket and prefixes that a migration writes its reports to. Every report goes to one bucket, each under its own prefix.</p>
2407
+ * @public
2408
+ */
2409
+ export interface MigrationOutputConfiguration {
2410
+ /**
2411
+ * <p>The general purpose bucket that the migration writes every report to.</p>
2412
+ * @public
2413
+ */
2414
+ bucket: string | undefined;
2415
+ /**
2416
+ * <p>The key prefix for each report.</p>
2417
+ * @public
2418
+ */
2419
+ prefixes?: MigrationReportPrefixes | undefined;
2420
+ }
1806
2421
  /**
1807
2422
  * @public
1808
2423
  */
@@ -2053,6 +2668,101 @@ export interface RenameTableRequest {
2053
2668
  */
2054
2669
  versionToken?: string | undefined;
2055
2670
  }
2671
+ /**
2672
+ * @public
2673
+ */
2674
+ export interface StartTableMigrationRequest {
2675
+ /**
2676
+ * <p>The Amazon Resource Name (ARN) of the IAM role that the migration uses to read the source table and its data and to write the destination table and the reports. The role must be in your account, and its trust policy must allow <code>migration.s3tables.amazonaws.com</code> to assume it. You can limit the trust policy to the destination table bucket with the <code>aws:SourceArn</code> and <code>aws:SourceAccount</code> condition keys.</p>
2677
+ * @public
2678
+ */
2679
+ roleARN: string | undefined;
2680
+ /**
2681
+ * <p>The table to create and migrate the source into.</p>
2682
+ * @public
2683
+ */
2684
+ destinationTable: DestinationTable | undefined;
2685
+ /**
2686
+ * <p>The type of the source. It must match the member that you set in <code>source</code>.</p>
2687
+ * @public
2688
+ */
2689
+ sourceType: MigrationSourceType | undefined;
2690
+ /**
2691
+ * <p>The source table to migrate.</p>
2692
+ * @public
2693
+ */
2694
+ source: SourceConfiguration | undefined;
2695
+ /**
2696
+ * <p>The maintenance settings and migration policies for the destination table.</p>
2697
+ * @public
2698
+ */
2699
+ dataMigration?: DataMigrationSettings | undefined;
2700
+ /**
2701
+ * <p>Specifies whether the migration waits in the <code>pendingReview</code> state, so that you can review the compatibility reports before it migrates any data. If <code>true</code>, the migration continues when you call <code>UpdateTableMigration</code> with <code>requestedState</code> set to <code>queued</code>. If you don't continue or cancel the migration within 30 days, the migration fails. The default is <code>false</code>.</p>
2702
+ * @public
2703
+ */
2704
+ reviewMigrationPlan?: boolean | undefined;
2705
+ /**
2706
+ * <p>The bucket and prefixes that the migration writes its reports to. The bucket must be a general purpose bucket in your account and in the same Region as the table bucket, and the migration role must be able to write objects to it. Otherwise, the migration fails when it writes its first report.</p>
2707
+ * @public
2708
+ */
2709
+ migrationOutput: MigrationOutputConfiguration | undefined;
2710
+ }
2711
+ /**
2712
+ * @public
2713
+ */
2714
+ export interface StartTableMigrationResponse {
2715
+ /**
2716
+ * <p>The ID of the migration.</p>
2717
+ * @public
2718
+ */
2719
+ migrationId: string | undefined;
2720
+ /**
2721
+ * <p>The state of the migration when the request is accepted, such as <code>planning</code>.</p>
2722
+ * @public
2723
+ */
2724
+ state: MigrationState | undefined;
2725
+ }
2726
+ /**
2727
+ * @public
2728
+ */
2729
+ export interface SyncTableMigrationRequest {
2730
+ /**
2731
+ * <p>The Amazon Resource Name (ARN) of the IAM role that the sync uses to read the source table and its data and to write the destination table and the reports. The role must be in your account, and its trust policy must allow <code>migration.s3tables.amazonaws.com</code> to assume it. You can limit the trust policy to the destination table bucket with the <code>aws:SourceArn</code> and <code>aws:SourceAccount</code> condition keys.</p>
2732
+ * @public
2733
+ */
2734
+ roleARN: string | undefined;
2735
+ /**
2736
+ * <p>The Amazon Resource Name (ARN) of the destination table to sync. The table must have a migration, and you must not have called <code>CompleteTableMigration</code> for it.</p>
2737
+ * @public
2738
+ */
2739
+ tableARN: string | undefined;
2740
+ /**
2741
+ * <p>Specifies whether the sync waits in the <code>pendingReview</code> state, so that you can review the compatibility reports before it migrates any data. If <code>true</code>, the migration continues when you call <code>UpdateTableMigration</code> with <code>requestedState</code> set to <code>queued</code>. If you don't continue or cancel the migration within 30 days, the migration fails. The default is <code>false</code>.</p>
2742
+ * @public
2743
+ */
2744
+ reviewMigrationPlan?: boolean | undefined;
2745
+ /**
2746
+ * <p>The bucket and prefixes that the sync writes its reports to. The bucket must be a general purpose bucket in your account and in the same Region as the table bucket, and the migration role must be able to write objects to it. Otherwise, the migration fails when it writes its first report.</p>
2747
+ * @public
2748
+ */
2749
+ migrationOutput: MigrationOutputConfiguration | undefined;
2750
+ }
2751
+ /**
2752
+ * @public
2753
+ */
2754
+ export interface SyncTableMigrationResponse {
2755
+ /**
2756
+ * <p>The migration ID of the sync.</p>
2757
+ * @public
2758
+ */
2759
+ migrationId: string | undefined;
2760
+ /**
2761
+ * <p>The state of the migration when the request is accepted, such as <code>planning</code>.</p>
2762
+ * @public
2763
+ */
2764
+ state: MigrationState | undefined;
2765
+ }
2056
2766
  /**
2057
2767
  * @public
2058
2768
  */
@@ -2113,6 +2823,51 @@ export interface UpdateTableMetadataLocationResponse {
2113
2823
  */
2114
2824
  metadataLocation: string | undefined;
2115
2825
  }
2826
+ /**
2827
+ * @public
2828
+ */
2829
+ export interface UpdateTableMigrationRequest {
2830
+ /**
2831
+ * <p>The Amazon Resource Name (ARN) of the destination table. Updates the table's most recent migration. Until the migration creates the destination table, specify <code>migrationId</code>. Specify either <code>tableARN</code> or <code>migrationId</code>, not both.</p>
2832
+ * @public
2833
+ */
2834
+ tableARN?: string | undefined;
2835
+ /**
2836
+ * <p>The ID of the migration to update. Specify either <code>migrationId</code> or <code>tableARN</code>, not both.</p>
2837
+ * @public
2838
+ */
2839
+ migrationId?: string | undefined;
2840
+ /**
2841
+ * <p>The state to move the migration to: <code>queued</code> to continue a migration in the <code>pendingReview</code> state, or <code>cancelled</code> to cancel a migration in the <code>new</code>, <code>planning</code>, <code>pendingReview</code>, <code>queued</code> or <code>migrating</code> state.</p>
2842
+ * @public
2843
+ */
2844
+ requestedState: MigrationRequestedState | undefined;
2845
+ /**
2846
+ * <p>A description of the update, up to 1,024 characters, with no control characters. <code>GetTableMigration</code> doesn't return it.</p>
2847
+ * @public
2848
+ */
2849
+ updateDescription?: string | undefined;
2850
+ }
2851
+ /**
2852
+ * @public
2853
+ */
2854
+ export interface UpdateTableMigrationResponse {
2855
+ /**
2856
+ * <p>The ID of the migration.</p>
2857
+ * @public
2858
+ */
2859
+ migrationId: string | undefined;
2860
+ /**
2861
+ * <p>The state of the migration after the update, such as <code>queued</code>, <code>migrating</code> or <code>cancelling</code>.</p>
2862
+ * @public
2863
+ */
2864
+ state: MigrationState | undefined;
2865
+ /**
2866
+ * <p>The Amazon Resource Name (ARN) of the destination table.</p>
2867
+ * @public
2868
+ */
2869
+ tableARN?: string | undefined;
2870
+ }
2116
2871
  /**
2117
2872
  * @public
2118
2873
  */