#[non_exhaustive]pub struct SsekmsEncryptionBuilder { /* private fields */ }Expand description
A builder for SsekmsEncryption.
Implementations§
Source§impl SsekmsEncryptionBuilder
impl SsekmsEncryptionBuilder
Sourcepub fn kms_key_arn(self, input: impl Into<String>) -> Self
pub fn kms_key_arn(self, input: impl Into<String>) -> Self
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 set_kms_key_arn(self, input: Option<String>) -> Self
pub fn set_kms_key_arn(self, input: Option<String>) -> Self
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 get_kms_key_arn(&self) -> &Option<String>
pub fn get_kms_key_arn(&self) -> &Option<String>
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, input: bool) -> Self
pub fn bucket_key_enabled(self, input: bool) -> Self
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
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 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
Sourcepub fn get_bucket_key_enabled(&self) -> &Option<bool>
pub fn get_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
Sourcepub fn build(self) -> Result<SsekmsEncryption, BuildError>
pub fn build(self) -> Result<SsekmsEncryption, BuildError>
Consumes the builder and constructs a SsekmsEncryption.
This method will fail if any of the following fields are not set:
Trait Implementations§
Source§impl Clone for SsekmsEncryptionBuilder
impl Clone for SsekmsEncryptionBuilder
Source§fn clone(&self) -> SsekmsEncryptionBuilder
fn clone(&self) -> SsekmsEncryptionBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SsekmsEncryptionBuilder
impl Debug for SsekmsEncryptionBuilder
Source§impl Default for SsekmsEncryptionBuilder
impl Default for SsekmsEncryptionBuilder
Source§fn default() -> SsekmsEncryptionBuilder
fn default() -> SsekmsEncryptionBuilder
Source§impl PartialEq for SsekmsEncryptionBuilder
impl PartialEq for SsekmsEncryptionBuilder
impl StructuralPartialEq for SsekmsEncryptionBuilder
Auto Trait Implementations§
impl Freeze for SsekmsEncryptionBuilder
impl RefUnwindSafe for SsekmsEncryptionBuilder
impl Send for SsekmsEncryptionBuilder
impl Sync for SsekmsEncryptionBuilder
impl Unpin for SsekmsEncryptionBuilder
impl UnwindSafe for SsekmsEncryptionBuilder
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