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
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",
},
},
],
},
}
Instance Attribute Summary collapse
-
#bucket ⇒ String
The name of the bucket for which the server-side encryption configuration is set.
-
#content_md5 ⇒ String
The base64-encoded 128-bit MD5 digest of the server-side encryption configuration.
-
#server_side_encryption_configuration ⇒ Types::ServerSideEncryptionConfiguration
Container for server-side encryption configuration rules.
Instance Attribute Details
#bucket ⇒ String
The name of the bucket for which the server-side encryption configuration is set.
6683 6684 6685 6686 6687 6688 |
# File 'lib/aws-sdk-s3/types.rb', line 6683 class PutBucketEncryptionRequest < Struct.new( :bucket, :content_md5, :server_side_encryption_configuration) include Aws::Structure end |
#content_md5 ⇒ String
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
6683 6684 6685 6686 6687 6688 |
# File 'lib/aws-sdk-s3/types.rb', line 6683 class PutBucketEncryptionRequest < Struct.new( :bucket, :content_md5, :server_side_encryption_configuration) include Aws::Structure end |
#server_side_encryption_configuration ⇒ Types::ServerSideEncryptionConfiguration
Container for server-side encryption configuration rules. Currently S3 supports one rule only.
6683 6684 6685 6686 6687 6688 |
# File 'lib/aws-sdk-s3/types.rb', line 6683 class PutBucketEncryptionRequest < Struct.new( :bucket, :content_md5, :server_side_encryption_configuration) include Aws::Structure end |