rename_table
¶
rename_table(
table_bucket_arn: TableBucketARN,
namespace: NamespaceName,
name: TableName,
*,
config_overrides: Optional[S3TablesClientConfig] = None,
new_namespace_name: Optional[NamespaceName] = None,
new_name: Optional[TableName] = None,
version_token: Optional[VersionToken] = None,
) -> None
Renames a table or a namespace. For more information, see S3 Tables in the Amazon Simple Storage Service User Guide.
- Permissions
-
You must have the
s3tables:RenameTablepermission to use this operation.
Parameters:
-
table_bucket_arn(TableBucketARN) –The Amazon Resource Name (ARN) of the table bucket.
-
namespace(NamespaceName) –The namespace associated with the table.
-
name(TableName) –The current name of the table.
-
new_namespace_name(Optional[NamespaceName], default:None) –The new name for the namespace.
-
new_name(Optional[TableName], default:None) –The new name for the table.
-
version_token(Optional[VersionToken], default:None) –The version token of the table.
Raises:
-
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
3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 | |