Struct aws_sdk_s3::types::Encryption
source · #[non_exhaustive]pub struct Encryption {
pub encryption_type: ServerSideEncryption,
pub kms_key_id: Option<String>,
pub kms_context: Option<String>,
}
Expand description
Contains the type of server-side encryption used.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.encryption_type: ServerSideEncryption
The server-side encryption algorithm used when storing job results in Amazon S3 (for example, AES256, aws:kms
).
kms_key_id: 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.
kms_context: Option<String>
If the encryption type is aws:kms
, this optional value can be used to specify the encryption context for the restore results.
Implementations§
source§impl Encryption
impl Encryption
sourcepub fn encryption_type(&self) -> &ServerSideEncryption
pub fn encryption_type(&self) -> &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) -> Option<&str>
pub fn kms_key_id(&self) -> Option<&str>
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) -> Option<&str>
pub fn kms_context(&self) -> Option<&str>
If the encryption type is aws:kms
, this optional value can be used to specify the encryption context for the restore results.
source§impl Encryption
impl Encryption
sourcepub fn builder() -> EncryptionBuilder
pub fn builder() -> EncryptionBuilder
Creates a new builder-style object to manufacture Encryption
.
Trait Implementations§
source§impl Clone for Encryption
impl Clone for Encryption
source§fn clone(&self) -> Encryption
fn clone(&self) -> Encryption
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Encryption
impl Debug for Encryption
source§impl PartialEq for Encryption
impl PartialEq for Encryption
impl StructuralPartialEq for Encryption
Auto Trait Implementations§
impl Freeze for Encryption
impl RefUnwindSafe for Encryption
impl Send for Encryption
impl Sync for Encryption
impl Unpin for Encryption
impl UnwindSafe for Encryption
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
)