Struct bonsaidb::keystorage::s3::aws_sdk_s3::types::builders::EncryptionBuilder
#[non_exhaustive]pub struct EncryptionBuilder { /* private fields */ }
Expand description
A builder for Encryption
.
Implementations§
§impl EncryptionBuilder
impl EncryptionBuilder
pub fn encryption_type(self, input: ServerSideEncryption) -> EncryptionBuilder
pub fn encryption_type(self, input: ServerSideEncryption) -> EncryptionBuilder
The server-side encryption algorithm used when storing job results in Amazon S3 (for example, AES256, aws:kms
).
pub fn set_encryption_type(
self,
input: Option<ServerSideEncryption>
) -> EncryptionBuilder
pub fn set_encryption_type( self, input: Option<ServerSideEncryption> ) -> EncryptionBuilder
The server-side encryption algorithm used when storing job results in Amazon S3 (for example, AES256, aws:kms
).
pub 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
).
pub fn kms_key_id(self, input: impl Into<String>) -> EncryptionBuilder
pub fn kms_key_id(self, input: impl Into<String>) -> EncryptionBuilder
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.
pub fn set_kms_key_id(self, input: Option<String>) -> EncryptionBuilder
pub fn set_kms_key_id(self, input: Option<String>) -> EncryptionBuilder
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.
pub 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.
pub fn kms_context(self, input: impl Into<String>) -> EncryptionBuilder
pub fn kms_context(self, input: impl Into<String>) -> EncryptionBuilder
If the encryption type is aws:kms
, this optional value can be used to specify the encryption context for the restore results.
pub fn set_kms_context(self, input: Option<String>) -> EncryptionBuilder
pub fn set_kms_context(self, input: Option<String>) -> EncryptionBuilder
If the encryption type is aws:kms
, this optional value can be used to specify the encryption context for the restore results.
pub 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.
pub fn build(self) -> Encryption
pub fn build(self) -> Encryption
Consumes the builder and constructs a Encryption
.
Trait Implementations§
§impl Clone for EncryptionBuilder
impl Clone for EncryptionBuilder
§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 more§impl Debug for EncryptionBuilder
impl Debug for EncryptionBuilder
§impl Default for EncryptionBuilder
impl Default for EncryptionBuilder
§fn default() -> EncryptionBuilder
fn default() -> EncryptionBuilder
§impl PartialEq for EncryptionBuilder
impl PartialEq for EncryptionBuilder
§fn eq(&self, other: &EncryptionBuilder) -> bool
fn eq(&self, other: &EncryptionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.