list_table_migrations
async
¶
list_table_migrations(
*,
config_overrides: Optional[AsyncS3TablesClientConfig] = 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/async_s3_tables.py
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 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 | |