list_table_migrations
¶
list_table_migrations(
*,
config_overrides: Optional[S3TablesClientConfig] = None,
table_bucket_arn: Optional[TableBucketARN] = None,
namespace: Optional[NamespaceName] = None,
name: Optional[TableName] = None,
table_arn: Optional[TableARN] = None,
state: Optional[MigrationState] = None,
has_valid_plan: Optional[bool] = None,
max_results: Optional[ListTableMigrationsLimit] = None,
next_token: Optional[NextToken] = None,
) -> ListTableMigrationsResponse
Lists the migrations whose destination is in a table bucket, a namespace or a table. Specify a tableBucketARN to list the migrations into a table bucket, and add a namespace, or a namespace and a name, to narrow the list. Or specify a tableARN to list the migrations into a table.
Migrations are listed newest first. Results are paginated: use maxResults to set the page size, and pass the nextToken from a response to retrieve the next page of results. A page can contain fewer migrations than maxResults, or none, and still return a nextToken. Continue until a response has no nextToken.
- Permissions
-
-
You must have the
s3tables:ListTableMigrationspermission to use this operation.
-
Parameters:
-
table_bucket_arn(Optional[TableBucketARN], default:None) –The Amazon Resource Name (ARN) of the table bucket to list migrations for.
-
namespace(Optional[NamespaceName], default:None) –The namespace to list migrations for. Requires
tableBucketARN. -
name(Optional[TableName], default:None) –The name of the table to list migrations for. Requires
tableBucketARNandnamespace. -
table_arn(Optional[TableARN], default:None) –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
tableBucketARN,namespaceandnameinstead. Specify eithertableARNortableBucketARN, not both. -
state(Optional[MigrationState], default:None) –The state to filter the list by. For the valid values, see the
statemember ofGetTableMigration. -
has_valid_plan(Optional[bool], default:None) –The
hasValidPlanvalue to filter the list by. Whichever value you specify,ListTableMigrationslists a migration only after planning records a result. -
max_results(Optional[ListTableMigrationsLimit], default:None) –The maximum number of migrations to return, from 1 to 1,000. If you don't specify a value, the default is 100.
-
next_token(Optional[NextToken], default:None) –The
nextTokenfrom a previous response, to get the next page of results.
Raises:
-
AccessDeniedException–The action cannot be performed because you do not have the required permission.
-
BadRequestException–The request is invalid or malformed.
-
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
3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 | |