rename_table
async
¶
rename_table(
table_bucket_arn: TableBucketARN,
namespace: NamespaceName,
name: TableName,
*,
config_overrides: Optional[AsyncS3TablesClientConfig] = 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 failed because there is a conflict with a previous 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
2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 | |