You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::S3::Types::PutBucketEncryptionRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::S3::Types::PutBucketEncryptionRequest
- Defined in:
- (unknown)
Overview
When passing PutBucketEncryptionRequest as input to an Aws::Client method, you can use a vanilla 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",
},
},
],
},
expected_bucket_owner: "AccountId",
use_accelerate_endpoint: false,
}
Instance Attribute Summary collapse
-
#bucket ⇒ String
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).
-
#content_md5 ⇒ String
The base64-encoded 128-bit MD5 digest of the server-side encryption configuration.
-
#expected_bucket_owner ⇒ String
The account id of the expected bucket owner.
-
#server_side_encryption_configuration ⇒ Types::ServerSideEncryptionConfiguration
Specifies the default server-side-encryption configuration.
.
-
#use_accelerate_endpoint ⇒ Boolean
When true, the "https://BUCKETNAME.s3-accelerate.amazonaws.com" endpoint will be used.
Instance Attribute Details
#bucket ⇒ String
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.
#content_md5 ⇒ String
The base64-encoded 128-bit MD5 digest of the server-side encryption configuration.
For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.
#expected_bucket_owner ⇒ String
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.
#server_side_encryption_configuration ⇒ Types::ServerSideEncryptionConfiguration
Specifies the default server-side-encryption configuration.
#use_accelerate_endpoint ⇒ Boolean
When true, the "https://BUCKETNAME.s3-accelerate.amazonaws.com" endpoint will be used.