putTableBucketEncryption method

Future<void> putTableBucketEncryption({
  1. required EncryptionConfiguration encryptionConfiguration,
  2. required String tableBucketARN,
})

Sets the encryption configuration for a table bucket.

Permissions
You must have the s3tables:PutTableBucketEncryption permission to use this operation.

May throw BadRequestException. May throw ConflictException. May throw ForbiddenException. May throw InternalServerErrorException. May throw NotFoundException. May throw TooManyRequestsException.

Parameter encryptionConfiguration : The encryption configuration to apply to the table bucket.

Parameter tableBucketARN : The Amazon Resource Name (ARN) of the table bucket.

Implementation

Future<void> putTableBucketEncryption({
  required EncryptionConfiguration encryptionConfiguration,
  required String tableBucketARN,
}) async {
  final $payload = <String, dynamic>{
    'encryptionConfiguration': encryptionConfiguration,
  };
  await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/buckets/${Uri.encodeComponent(tableBucketARN)}/encryption',
    exceptionFnMap: _exceptionFns,
  );
}