update_table_migration
¶
update_table_migration(
requested_state: MigrationRequestedState,
*,
config_overrides: Optional[S3TablesClientConfig] = 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/s3_tables.py
4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 | |