#[non_exhaustive]pub struct SsekmsEncryption {
pub kms_key_arn: String,
pub bucket_key_enabled: Option<bool>,
}Expand description
If SSEKMS is specified for ObjectEncryption, this data type specifies the Amazon Web Services KMS key Amazon Resource Name (ARN) to use and whether to use an S3 Bucket Key for server-side encryption using Key Management Service (KMS) keys (SSE-KMS).
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_key_arn: StringSpecifies the Amazon Web Services KMS key Amazon Resource Name (ARN) to use for the updated server-side encryption type. Required if ObjectEncryption specifies SSEKMS.
You must specify the full Amazon Web Services KMS key ARN. The KMS key ID and KMS key alias aren't supported.
Pattern: (arn:aws\[-a-z0-9\]*:kms:\[-a-z0-9\]*:\[0-9\]{12}:key/.+)
bucket_key_enabled: Option<bool>Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using Key Management Service (KMS) keys (SSE-KMS). If this value isn't specified, it defaults to false. Setting this value to true causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS. For more information, see Using Amazon S3 Bucket Keys in the Amazon S3 User Guide.
Valid Values: true | false
Implementations§
Source§impl SsekmsEncryption
impl SsekmsEncryption
Sourcepub fn kms_key_arn(&self) -> &str
pub fn kms_key_arn(&self) -> &str
Specifies the Amazon Web Services KMS key Amazon Resource Name (ARN) to use for the updated server-side encryption type. Required if ObjectEncryption specifies SSEKMS.
You must specify the full Amazon Web Services KMS key ARN. The KMS key ID and KMS key alias aren't supported.
Pattern: (arn:aws\[-a-z0-9\]*:kms:\[-a-z0-9\]*:\[0-9\]{12}:key/.+)
Sourcepub fn bucket_key_enabled(&self) -> Option<bool>
pub fn bucket_key_enabled(&self) -> Option<bool>
Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using Key Management Service (KMS) keys (SSE-KMS). If this value isn't specified, it defaults to false. Setting this value to true causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS. For more information, see Using Amazon S3 Bucket Keys in the Amazon S3 User Guide.
Valid Values: true | false
Source§impl SsekmsEncryption
impl SsekmsEncryption
Sourcepub fn builder() -> SsekmsEncryptionBuilder
pub fn builder() -> SsekmsEncryptionBuilder
Creates a new builder-style object to manufacture SsekmsEncryption.
Trait Implementations§
Source§impl Clone for SsekmsEncryption
impl Clone for SsekmsEncryption
Source§fn clone(&self) -> SsekmsEncryption
fn clone(&self) -> SsekmsEncryption
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SsekmsEncryption
impl Debug for SsekmsEncryption
Source§impl PartialEq for SsekmsEncryption
impl PartialEq for SsekmsEncryption
impl StructuralPartialEq for SsekmsEncryption
Auto Trait Implementations§
impl Freeze for SsekmsEncryption
impl RefUnwindSafe for SsekmsEncryption
impl Send for SsekmsEncryption
impl Sync for SsekmsEncryption
impl Unpin for SsekmsEncryption
impl UnwindSafe for SsekmsEncryption
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more