#[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 ==.