S3Tables / Client / update_table_migration
update_table_migration¶
- S3Tables.Client.update_table_migration(**kwargs)¶
Requests a state change for a migration. Identify the migration by its
migrationIdor by thetableARNof its destination table.Set
requestedStatetoqueuedto continue a migration in thependingReviewstate; the migration moves toqueuedormigrating. Set it tocancelledto cancel a migration in thenew,planning,pendingReview,queuedormigratingstate; the migration moves tocancelling, finishes the work in progress, and then ends in thecancelledstate, or in thefailedstate if any objects failed to migrate. Data that the migration already committed stays in the destination table.Permissions
You must have the
s3tables:UpdateTableMigrationpermission to use this operation.
See also: AWS API Documentation
Request Syntax
response = client.update_table_migration( tableARN='string', migrationId='string', requestedState='queued'|'cancelled', updateDescription='string' )
- Parameters:
tableARN (string) – The Amazon Resource Name (ARN) of the destination table. Updates the table’s most recent migration. Until the migration creates the destination table, specify
migrationId. Specify eithertableARNormigrationId, not both.migrationId (string) – The ID of the migration to update. Specify either
migrationIdortableARN, not both.requestedState (string) –
[REQUIRED]
The state to move the migration to:
queuedto continue a migration in thependingReviewstate, orcancelledto cancel a migration in thenew,planning,pendingReview,queuedormigratingstate.updateDescription (string) – A description of the update, up to 1,024 characters, with no control characters.
GetTableMigrationdoesn’t return it.
- Return type:
dict
- Returns:
Response Syntax
{ 'migrationId': 'string', 'state': 'new'|'planning'|'pendingReview'|'queued'|'migrating'|'succeeded'|'failed'|'cancelling'|'cancelled', 'tableARN': 'string' }
Response Structure
(dict) –
migrationId (string) –
The ID of the migration.
state (string) –
The state of the migration after the update, such as
queued,migratingorcancelling.tableARN (string) –
The Amazon Resource Name (ARN) of the destination table.
Exceptions