Struct aws_sdk_mq::model::encryption_options::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for EncryptionOptions
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The customer master key (CMK) to use for the AWS Key Management Service (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 set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The customer master key (CMK) to use for the AWS Key Management Service (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, input: bool) -> Self
pub fn use_aws_owned_key(self, input: bool) -> Self
Enables the use of an AWS owned CMK using AWS Key Management Service (KMS). Set to true by default, if no value is provided, for example, for RabbitMQ brokers.
sourcepub fn set_use_aws_owned_key(self, input: Option<bool>) -> Self
pub fn set_use_aws_owned_key(self, input: Option<bool>) -> Self
Enables the use of an AWS owned CMK using AWS Key Management Service (KMS). Set to true by default, if no value is provided, for example, for RabbitMQ brokers.
sourcepub fn build(self) -> EncryptionOptions
pub fn build(self) -> EncryptionOptions
Consumes the builder and constructs a EncryptionOptions
.