put_table_bucket_encryption
¶
put_table_bucket_encryption(
table_bucket_arn: TableBucketARN,
encryption_configuration: EncryptionConfiguration,
*,
config_overrides: Optional[S3TablesClientConfig] = None,
) -> None
Sets the encryption configuration for a table bucket.
- Permissions
-
You must have the
s3tables:PutTableBucketEncryptionpermission to use this operation.If you choose SSE-KMS encryption you must grant the S3 Tables maintenance principal access to your KMS key. For more information, see Permissions requirements for S3 Tables SSE-KMS encryption in the Amazon Simple Storage Service User Guide.
Parameters:
-
table_bucket_arn(TableBucketARN) –The Amazon Resource Name (ARN) of the table bucket.
-
encryption_configuration(EncryptionConfiguration) –The encryption configuration to apply to the table bucket.
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.