Struct aws_sdk_dynamodb::types::SseSpecification
source · #[non_exhaustive]pub struct SseSpecification {
pub enabled: Option<bool>,
pub sse_type: Option<SseType>,
pub kms_master_key_id: Option<String>,
}
Expand description
Represents the settings used to enable server-side encryption.
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.enabled: Option<bool>
Indicates whether server-side encryption is done using an Amazon Web Services managed key or an Amazon Web Services owned key. If enabled (true), server-side encryption type is set to KMS
and an Amazon Web Services managed key is used (KMS charges apply). If disabled (false) or not specified, server-side encryption is set to Amazon Web Services owned key.
sse_type: Option<SseType>
Server-side encryption type. The only supported value is:
-
KMS
- Server-side encryption that uses Key Management Service. The key is stored in your account and is managed by KMS (KMS charges apply).
kms_master_key_id: Option<String>
The KMS key that should be used for the KMS encryption. To specify a key, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB key alias/aws/dynamodb
.
Implementations§
source§impl SseSpecification
impl SseSpecification
sourcepub fn enabled(&self) -> Option<bool>
pub fn enabled(&self) -> Option<bool>
Indicates whether server-side encryption is done using an Amazon Web Services managed key or an Amazon Web Services owned key. If enabled (true), server-side encryption type is set to KMS
and an Amazon Web Services managed key is used (KMS charges apply). If disabled (false) or not specified, server-side encryption is set to Amazon Web Services owned key.
sourcepub fn sse_type(&self) -> Option<&SseType>
pub fn sse_type(&self) -> Option<&SseType>
Server-side encryption type. The only supported value is:
-
KMS
- Server-side encryption that uses Key Management Service. The key is stored in your account and is managed by KMS (KMS charges apply).
sourcepub fn kms_master_key_id(&self) -> Option<&str>
pub fn kms_master_key_id(&self) -> Option<&str>
The KMS key that should be used for the KMS encryption. To specify a key, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB key alias/aws/dynamodb
.
source§impl SseSpecification
impl SseSpecification
sourcepub fn builder() -> SseSpecificationBuilder
pub fn builder() -> SseSpecificationBuilder
Creates a new builder-style object to manufacture SseSpecification
.
Trait Implementations§
source§impl Clone for SseSpecification
impl Clone for SseSpecification
source§fn clone(&self) -> SseSpecification
fn clone(&self) -> SseSpecification
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SseSpecification
impl Debug for SseSpecification
source§impl PartialEq for SseSpecification
impl PartialEq for SseSpecification
source§fn eq(&self, other: &SseSpecification) -> bool
fn eq(&self, other: &SseSpecification) -> bool
self
and other
values to be equal, and is used
by ==
.