Struct aws_sdk_s3::types::builders::EncryptionBuilder
source · #[non_exhaustive]pub struct EncryptionBuilder { /* private fields */ }
Expand description
A builder for Encryption
.
Implementations§
source§impl EncryptionBuilder
impl EncryptionBuilder
sourcepub fn encryption_type(self, input: ServerSideEncryption) -> Self
pub fn encryption_type(self, input: ServerSideEncryption) -> Self
The server-side encryption algorithm used when storing job results in Amazon S3 (for example, AES256, aws:kms
).
sourcepub fn set_encryption_type(self, input: Option<ServerSideEncryption>) -> Self
pub fn set_encryption_type(self, input: Option<ServerSideEncryption>) -> Self
The server-side encryption algorithm used when storing job results in Amazon S3 (for example, AES256, aws:kms
).
sourcepub fn get_encryption_type(&self) -> &Option<ServerSideEncryption>
pub fn get_encryption_type(&self) -> &Option<ServerSideEncryption>
The server-side encryption algorithm used when storing job results in Amazon S3 (for example, AES256, aws:kms
).
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
If the encryption type is aws:kms
, this optional value specifies the ID of the symmetric encryption customer managed key to use for encryption of job results. Amazon S3 only supports symmetric encryption KMS keys. For more information, see Asymmetric keys in KMS in the Amazon Web Services Key Management Service Developer Guide.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
If the encryption type is aws:kms
, this optional value specifies the ID of the symmetric encryption customer managed key to use for encryption of job results. Amazon S3 only supports symmetric encryption KMS keys. For more information, see Asymmetric keys in KMS in the Amazon Web Services Key Management Service Developer Guide.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
If the encryption type is aws:kms
, this optional value specifies the ID of the symmetric encryption customer managed key to use for encryption of job results. Amazon S3 only supports symmetric encryption KMS keys. For more information, see Asymmetric keys in KMS in the Amazon Web Services Key Management Service Developer Guide.
sourcepub fn kms_context(self, input: impl Into<String>) -> Self
pub fn kms_context(self, input: impl Into<String>) -> Self
If the encryption type is aws:kms
, this optional value can be used to specify the encryption context for the restore results.
sourcepub fn set_kms_context(self, input: Option<String>) -> Self
pub fn set_kms_context(self, input: Option<String>) -> Self
If the encryption type is aws:kms
, this optional value can be used to specify the encryption context for the restore results.
sourcepub fn get_kms_context(&self) -> &Option<String>
pub fn get_kms_context(&self) -> &Option<String>
If the encryption type is aws:kms
, this optional value can be used to specify the encryption context for the restore results.
sourcepub fn build(self) -> Encryption
pub fn build(self) -> Encryption
Consumes the builder and constructs a Encryption
.
Trait Implementations§
source§impl Clone for EncryptionBuilder
impl Clone for EncryptionBuilder
source§fn clone(&self) -> EncryptionBuilder
fn clone(&self) -> EncryptionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EncryptionBuilder
impl Debug for EncryptionBuilder
source§impl Default for EncryptionBuilder
impl Default for EncryptionBuilder
source§fn default() -> EncryptionBuilder
fn default() -> EncryptionBuilder
source§impl PartialEq for EncryptionBuilder
impl PartialEq for EncryptionBuilder
source§fn eq(&self, other: &EncryptionBuilder) -> bool
fn eq(&self, other: &EncryptionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.