Struct aws_sdk_mq::types::EncryptionOptions
source · #[non_exhaustive]pub struct EncryptionOptions {
pub kms_key_id: Option<String>,
pub use_aws_owned_key: Option<bool>,
}
Expand description
Encryption options for the broker.
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.kms_key_id: Option<String>
The customer master key (CMK) to use for the A KMS (KMS). This key is used to encrypt your data at rest. If not provided, Amazon MQ will use a default CMK to encrypt your data.
use_aws_owned_key: Option<bool>
Enables the use of an Amazon Web Services owned CMK using KMS (KMS). Set to true by default, if no value is provided, for example, for RabbitMQ brokers.
Implementations§
source§impl EncryptionOptions
impl EncryptionOptions
sourcepub fn kms_key_id(&self) -> Option<&str>
pub fn kms_key_id(&self) -> Option<&str>
The customer master key (CMK) to use for the A KMS (KMS). This key is used to encrypt your data at rest. If not provided, Amazon MQ will use a default CMK to encrypt your data.
sourcepub fn use_aws_owned_key(&self) -> Option<bool>
pub fn use_aws_owned_key(&self) -> Option<bool>
Enables the use of an Amazon Web Services owned CMK using KMS (KMS). Set to true by default, if no value is provided, for example, for RabbitMQ brokers.
source§impl EncryptionOptions
impl EncryptionOptions
sourcepub fn builder() -> EncryptionOptionsBuilder
pub fn builder() -> EncryptionOptionsBuilder
Creates a new builder-style object to manufacture EncryptionOptions
.
Trait Implementations§
source§impl Clone for EncryptionOptions
impl Clone for EncryptionOptions
source§fn clone(&self) -> EncryptionOptions
fn clone(&self) -> EncryptionOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EncryptionOptions
impl Debug for EncryptionOptions
source§impl PartialEq for EncryptionOptions
impl PartialEq for EncryptionOptions
source§fn eq(&self, other: &EncryptionOptions) -> bool
fn eq(&self, other: &EncryptionOptions) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EncryptionOptions
Auto Trait Implementations§
impl Freeze for EncryptionOptions
impl RefUnwindSafe for EncryptionOptions
impl Send for EncryptionOptions
impl Sync for EncryptionOptions
impl Unpin for EncryptionOptions
impl UnwindSafe for EncryptionOptions
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more