Migrates the changes in the source table since the previous start or sync, such as added and deleted source objects, into the destination table. The sync runs asynchronously: this operation returns the migration ID of the sync and its initial state, and you track progress with
GetTableMigration.
A sync uses the source, destination and data migration settings of the table's migration, and plans the work and writes its reports in the same way as
StartTableMigration. You can sync after a start or sync that succeeded, failed or was cancelled, if an earlier start or sync of the table has a valid plan (
hasValidPlan). You can't sync a table while a start or sync is in progress for it, and you can sync a table until you call
CompleteTableMigration for it. If a source object that an earlier migration migrated has since been overwritten, the sync fails.
- Permissions
- You must have the s3tables:SyncTableMigration permission to use this operation.
- You must have the iam:PassRole permission on the role that you specify in roleARN, with a condition that allows passing it to migration.s3tables.amazonaws.com. The associated resource is the table.