#[non_exhaustive]pub struct S3EncryptionConfigurationBuilder { /* private fields */ }Expand description
A builder for S3EncryptionConfiguration.
Implementations§
source§impl S3EncryptionConfigurationBuilder
impl S3EncryptionConfigurationBuilder
sourcepub fn object_encryption_type(self, input: S3ObjectEncryptionType) -> Self
pub fn object_encryption_type(self, input: S3ObjectEncryptionType) -> Self
The Amazon S3 object encryption type.
To learn more about server-side encryption options in Amazon S3, see Protecting Data Using Server-Side Encryption in the Amazon S3 Developer Guide.
This field is required.sourcepub fn set_object_encryption_type(
self,
input: Option<S3ObjectEncryptionType>,
) -> Self
pub fn set_object_encryption_type( self, input: Option<S3ObjectEncryptionType>, ) -> Self
The Amazon S3 object encryption type.
To learn more about server-side encryption options in Amazon S3, see Protecting Data Using Server-Side Encryption in the Amazon S3 Developer Guide.
sourcepub fn get_object_encryption_type(&self) -> &Option<S3ObjectEncryptionType>
pub fn get_object_encryption_type(&self) -> &Option<S3ObjectEncryptionType>
The Amazon S3 object encryption type.
To learn more about server-side encryption options in Amazon S3, see Protecting Data Using Server-Side Encryption in the Amazon S3 Developer Guide.
sourcepub fn kms_key_arn(self, input: impl Into<String>) -> Self
pub fn kms_key_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of a symmetric encryption key in Key Management Service (KMS). Amazon S3 does not support asymmetric KMS keys.
You must provide a KmsKeyArn if you specify SSE_KMS as the ObjectEncryptionType.
KmsKeyArn is not required if you specify SSE_S3 as the ObjectEncryptionType.
sourcepub fn set_kms_key_arn(self, input: Option<String>) -> Self
pub fn set_kms_key_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of a symmetric encryption key in Key Management Service (KMS). Amazon S3 does not support asymmetric KMS keys.
You must provide a KmsKeyArn if you specify SSE_KMS as the ObjectEncryptionType.
KmsKeyArn is not required if you specify SSE_S3 as the ObjectEncryptionType.
sourcepub fn get_kms_key_arn(&self) -> &Option<String>
pub fn get_kms_key_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of a symmetric encryption key in Key Management Service (KMS). Amazon S3 does not support asymmetric KMS keys.
You must provide a KmsKeyArn if you specify SSE_KMS as the ObjectEncryptionType.
KmsKeyArn is not required if you specify SSE_S3 as the ObjectEncryptionType.
sourcepub fn build(self) -> Result<S3EncryptionConfiguration, BuildError>
pub fn build(self) -> Result<S3EncryptionConfiguration, BuildError>
Consumes the builder and constructs a S3EncryptionConfiguration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for S3EncryptionConfigurationBuilder
impl Clone for S3EncryptionConfigurationBuilder
source§fn clone(&self) -> S3EncryptionConfigurationBuilder
fn clone(&self) -> S3EncryptionConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for S3EncryptionConfigurationBuilder
impl Default for S3EncryptionConfigurationBuilder
source§fn default() -> S3EncryptionConfigurationBuilder
fn default() -> S3EncryptionConfigurationBuilder
source§impl PartialEq for S3EncryptionConfigurationBuilder
impl PartialEq for S3EncryptionConfigurationBuilder
source§fn eq(&self, other: &S3EncryptionConfigurationBuilder) -> bool
fn eq(&self, other: &S3EncryptionConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for S3EncryptionConfigurationBuilder
Auto Trait Implementations§
impl Freeze for S3EncryptionConfigurationBuilder
impl RefUnwindSafe for S3EncryptionConfigurationBuilder
impl Send for S3EncryptionConfigurationBuilder
impl Sync for S3EncryptionConfigurationBuilder
impl Unpin for S3EncryptionConfigurationBuilder
impl UnwindSafe for S3EncryptionConfigurationBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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