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 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/s3_tables.py
2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 | |