update_table_migration
async
¶
update_table_migration(
requested_state: MigrationRequestedState,
*,
config_overrides: Optional[AsyncS3TablesClientConfig] = None,
table_arn: Optional[TableARN] = None,
migration_id: Optional[MigrationId] = None,
update_description: Optional[str] = None,
) -> UpdateTableMigrationResponse
Requests a state change for a migration. Identify the migration by its migrationId or by the tableARN of its destination table.
Set requestedState to queued to continue a migration in the pendingReview state. The migration then moves to queued or migrating. Set it to cancelled to cancel a migration that's new, planning, pendingReview, queued, or migrating. A migration in the new state moves directly to cancelled. From the other states, the migration moves to cancelling and finishes the work in progress. It then ends in the cancelled state, or in the failed state if any objects failed to migrate. Data that the migration already committed stays in the destination table.
If you request queued for a migration that's already queued or migrating, the request fails with a ConflictException. From any other state except pendingReview, it fails with a BadRequestException.
- Permissions
-
-
You must have the
s3tables:UpdateTableMigrationpermission to use this operation.
-
Parameters:
-
table_arn(Optional[TableARN], default:None) –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. -
migration_id(Optional[MigrationId], default:None) –The ID of the migration to update. Specify either
migrationIdortableARN, not both. -
requested_state(MigrationRequestedState) –The state to move the migration to:
queuedto continue a migration in thependingReviewstate, orcancelledto cancel a migration in thenew,planning,pendingReview,queued, ormigratingstate. -
update_description(Optional[str], default:None) –A description of the update, up to 1,024 characters, with no control characters.
GetTableMigrationdoesn't return it.
Raises:
-
AccessDeniedException–The action cannot be performed because you do not have the required permission.
-
BadRequestException–The request is invalid or malformed.
-
ConflictException–The request conflicts with the resource's current state, such as a previous write, an existing table, or a migration that's in progress or already in the requested state. If the conflict is with a concurrent write, you can retry the request.
-
ForbiddenException–The caller isn't authorized to make the request.
-
InternalServerErrorException–The request failed due to an internal server error.
-
NotFoundException–The request was rejected because the specified resource could not be found.
-
TooManyRequestsException–The limit on the number of requests per second was exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_s3tables/_services/async_s3_tables.py
4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 | |