Class: Aws::S3::Types::PutBucketEncryptionRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::S3::Types::PutBucketEncryptionRequest
- Includes:
- Aws::Structure
- Defined in:
- lib/aws-sdk-s3/types.rb
Overview
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",
}
Constant Summary collapse
- SENSITIVE =
[]
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 managed keys (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.
Instance Attribute Details
#bucket ⇒ String
Specifies default encryption for a bucket using server-side encryption with Amazon S3-managed keys (SSE-S3) or customer managed keys (SSE-KMS). For information about the Amazon S3 default encryption feature, see [Amazon S3 Default Bucket Encryption] in the *Amazon S3 User Guide*.
[1]: docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html
10449 10450 10451 10452 10453 10454 10455 10456 |
# File 'lib/aws-sdk-s3/types.rb', line 10449 class PutBucketEncryptionRequest < Struct.new( :bucket, :content_md5, :server_side_encryption_configuration, :expected_bucket_owner) SENSITIVE = [] include Aws::Structure end |
#content_md5 ⇒ String
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.
10449 10450 10451 10452 10453 10454 10455 10456 |
# File 'lib/aws-sdk-s3/types.rb', line 10449 class PutBucketEncryptionRequest < Struct.new( :bucket, :content_md5, :server_side_encryption_configuration, :expected_bucket_owner) SENSITIVE = [] include Aws::Structure end |
#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.
10449 10450 10451 10452 10453 10454 10455 10456 |
# File 'lib/aws-sdk-s3/types.rb', line 10449 class PutBucketEncryptionRequest < Struct.new( :bucket, :content_md5, :server_side_encryption_configuration, :expected_bucket_owner) SENSITIVE = [] include Aws::Structure end |
#server_side_encryption_configuration ⇒ Types::ServerSideEncryptionConfiguration
Specifies the default server-side-encryption configuration.
10449 10450 10451 10452 10453 10454 10455 10456 |
# File 'lib/aws-sdk-s3/types.rb', line 10449 class PutBucketEncryptionRequest < Struct.new( :bucket, :content_md5, :server_side_encryption_configuration, :expected_bucket_owner) SENSITIVE = [] include Aws::Structure end |