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) -> Result<Encryption, BuildError>
pub fn build(self) -> Result<Encryption, BuildError>
Consumes the builder and constructs a Encryption
.
This method will fail if any of the following fields are not set:
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
impl StructuralPartialEq for EncryptionBuilder
Auto Trait Implementations§
impl Freeze for EncryptionBuilder
impl RefUnwindSafe for EncryptionBuilder
impl Send for EncryptionBuilder
impl Sync for EncryptionBuilder
impl Unpin for EncryptionBuilder
impl UnwindSafe for EncryptionBuilder
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
)