Struct aws_sdk_macie2::types::BucketServerSideEncryption
source · #[non_exhaustive]pub struct BucketServerSideEncryption {
pub kms_master_key_id: Option<String>,
pub type: Option<Type>,
}
Expand description
Provides information about the default server-side encryption settings for an S3 bucket. For detailed information about these settings, see Setting default server-side encryption behavior for Amazon S3 buckets in the Amazon Simple Storage Service User Guide.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.kms_master_key_id: Option<String>
The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used by default to encrypt objects that are added to the bucket. This value is null if the bucket is configured to use an Amazon S3 managed key to encrypt new objects.
type: Option<Type>
The server-side encryption algorithm that's used by default to encrypt objects that are added to the bucket. Possible values are:
AES256 - New objects are encrypted with an Amazon S3 managed key. They use SSE-S3 encryption.
aws:kms - New objects are encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key. They use SSE-KMS encryption.
NONE - The bucket's default encryption settings don't specify server-side encryption behavior for new objects.
Implementations§
source§impl BucketServerSideEncryption
impl BucketServerSideEncryption
sourcepub fn kms_master_key_id(&self) -> Option<&str>
pub fn kms_master_key_id(&self) -> Option<&str>
The Amazon Resource Name (ARN) or unique identifier (key ID) for the KMS key that's used by default to encrypt objects that are added to the bucket. This value is null if the bucket is configured to use an Amazon S3 managed key to encrypt new objects.
sourcepub fn type(&self) -> Option<&Type>
pub fn type(&self) -> Option<&Type>
The server-side encryption algorithm that's used by default to encrypt objects that are added to the bucket. Possible values are:
AES256 - New objects are encrypted with an Amazon S3 managed key. They use SSE-S3 encryption.
aws:kms - New objects are encrypted with an KMS key (kmsMasterKeyId), either an Amazon Web Services managed key or a customer managed key. They use SSE-KMS encryption.
NONE - The bucket's default encryption settings don't specify server-side encryption behavior for new objects.
source§impl BucketServerSideEncryption
impl BucketServerSideEncryption
sourcepub fn builder() -> BucketServerSideEncryptionBuilder
pub fn builder() -> BucketServerSideEncryptionBuilder
Creates a new builder-style object to manufacture BucketServerSideEncryption
.
Trait Implementations§
source§impl Clone for BucketServerSideEncryption
impl Clone for BucketServerSideEncryption
source§fn clone(&self) -> BucketServerSideEncryption
fn clone(&self) -> BucketServerSideEncryption
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BucketServerSideEncryption
impl Debug for BucketServerSideEncryption
source§impl PartialEq<BucketServerSideEncryption> for BucketServerSideEncryption
impl PartialEq<BucketServerSideEncryption> for BucketServerSideEncryption
source§fn eq(&self, other: &BucketServerSideEncryption) -> bool
fn eq(&self, other: &BucketServerSideEncryption) -> bool
self
and other
values to be equal, and is used
by ==
.