class Aws::S3::Types::PutBucketEncryptionRequest
@note When making an API call, you may pass PutBucketEncryptionRequest
data as a hash: { bucket: "BucketName", # required content_md5: "ContentMD5", server_side_encryption_configuration: { # required rules: [ # required { apply_server_side_encryption_by_default: { sse_algorithm: "AES256", # required, accepts AES256, aws:kms kms_master_key_id: "SSEKMSKeyId", }, bucket_key_enabled: false, }, ], }, expected_bucket_owner: "AccountId", }
@!attribute [rw] bucket
Specifies default encryption for a bucket using server-side encryption with Amazon S3-managed keys (SSE-S3) or customer master keys stored in Amazon Web Services KMS (SSE-KMS). For information about the Amazon S3 default encryption feature, see [Amazon S3 Default Bucket Encryption][1] in the *Amazon S3 User Guide*. [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html @return [String]
@!attribute [rw] content_md5
The base64-encoded 128-bit MD5 digest of the server-side encryption configuration. For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically. @return [String]
@!attribute [rw] server_side_encryption_configuration
Specifies the default server-side-encryption configuration. @return [Types::ServerSideEncryptionConfiguration]
@!attribute [rw] expected_bucket_owner
The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP `403 (Access Denied)` error. @return [String]
@see docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketEncryptionRequest AWS API Documentation
Constants
- SENSITIVE