This implementation of the PUT
operation uses the encryption
subresource to set the default encryption state of an existing bucket.
s3_put_bucket_encryption(Bucket, ContentMD5,
ServerSideEncryptionConfiguration)
[required] Specifies default encryption for a bucket using server-side encryption with Amazon S3-managed keys (SSE-S3) or customer master keys stored in AWS KMS (SSE-KMS). For information about the Amazon S3 default encryption feature, see Amazon S3 Default Bucket Encryption in the Amazon Simple Storage Service Developer Guide.
The base64-encoded 128-bit MD5 digest of the server-side encryption configuration. This parameter is auto-populated when using the command from the CLI.
[required]
svc$put_bucket_encryption( Bucket = "string", ContentMD5 = "string", ServerSideEncryptionConfiguration = list( Rules = list( list( ApplyServerSideEncryptionByDefault = list( SSEAlgorithm = "AES256"|"aws:kms", KMSMasterKeyID = "string" ) ) ) ) )
This implementation of the PUT
operation sets default encryption for a
bucket using server-side encryption with Amazon S3-managed keys SSE-S3
or AWS KMS customer master keys (CMKs) (SSE-KMS).
This operation requires AWS Signature Version 4. For more information, see Authenticating Requests (AWS Signature Version 4).
To use this operation, you must have permissions to perform the
s3:PutEncryptionConfiguration
action. The bucket owner has this
permission by default. The bucket owner can grant this permission to
others. For more information about permissions, see Permissions Related to Bucket Subresource Operations
and Managing Access Permissions to Your Amazon S3 Resources
in the Amazon Simple Storage Service Developer Guide.
Related Resources
GetBucketEncryption
DeleteBucketEncryption