update_table_metadata_location
¶
update_table_metadata_location(
table_bucket_arn: TableBucketARN,
namespace: NamespaceName,
name: TableName,
version_token: VersionToken,
metadata_location: MetadataLocation,
*,
config_overrides: Optional[S3TablesClientConfig] = 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/s3_tables.py
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 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 | |