Struct aws_sdk_s3::model::server_side_encryption_rule::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for ServerSideEncryptionRule
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn apply_server_side_encryption_by_default(
self,
input: ServerSideEncryptionByDefault
) -> Self
pub fn apply_server_side_encryption_by_default(
self,
input: ServerSideEncryptionByDefault
) -> Self
Specifies the default server-side encryption to apply to new objects in the bucket. If a PUT Object request doesn't specify any server-side encryption, this default encryption will be applied.
sourcepub fn set_apply_server_side_encryption_by_default(
self,
input: Option<ServerSideEncryptionByDefault>
) -> Self
pub fn set_apply_server_side_encryption_by_default(
self,
input: Option<ServerSideEncryptionByDefault>
) -> Self
Specifies the default server-side encryption to apply to new objects in the bucket. If a PUT Object request doesn't specify any server-side encryption, this default encryption will be applied.
sourcepub fn bucket_key_enabled(self, input: bool) -> Self
pub fn bucket_key_enabled(self, input: bool) -> Self
Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket. Existing objects are not affected. Setting the BucketKeyEnabled
element to true
causes Amazon S3 to use an S3 Bucket Key. By default, S3 Bucket Key is not enabled.
For more information, see Amazon S3 Bucket Keys in the Amazon S3 User Guide.
sourcepub fn set_bucket_key_enabled(self, input: Option<bool>) -> Self
pub fn set_bucket_key_enabled(self, input: Option<bool>) -> Self
Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket. Existing objects are not affected. Setting the BucketKeyEnabled
element to true
causes Amazon S3 to use an S3 Bucket Key. By default, S3 Bucket Key is not enabled.
For more information, see Amazon S3 Bucket Keys in the Amazon S3 User Guide.
sourcepub fn build(self) -> ServerSideEncryptionRule
pub fn build(self) -> ServerSideEncryptionRule
Consumes the builder and constructs a ServerSideEncryptionRule
.