update_table_metadata_location
async
¶
update_table_metadata_location(
table_bucket_arn: TableBucketARN,
namespace: NamespaceName,
name: TableName,
version_token: VersionToken,
metadata_location: MetadataLocation,
*,
config_overrides: Optional[AsyncS3TablesClientConfig] = None,
) -> UpdateTableMetadataLocationResponse
Updates the metadata location for a table. The metadata location of a table must be an S3 URI that begins with the table's warehouse location. The metadata location for an Apache Iceberg table must end with .metadata.json, or if the metadata file is Gzip-compressed, .metadata.json.gz.
- Permissions
-
You must have the
s3tables:UpdateTableMetadataLocationpermission to use this operation.
Parameters:
-
table_bucket_arn(TableBucketARN) –The Amazon Resource Name (ARN) of the table bucket.
-
namespace(NamespaceName) –The namespace of the table.
-
name(TableName) –The name of the table.
-
version_token(VersionToken) –The version token of the table.
-
metadata_location(MetadataLocation) –The new metadata location for 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
3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 | |