Struct aws_sdk_kms::types::builders::GrantConstraintsBuilder
source · #[non_exhaustive]pub struct GrantConstraintsBuilder { /* private fields */ }
Expand description
A builder for GrantConstraints
.
Implementations§
source§impl GrantConstraintsBuilder
impl GrantConstraintsBuilder
sourcepub fn encryption_context_subset(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn encryption_context_subset( self, k: impl Into<String>, v: impl Into<String> ) -> Self
Adds a key-value pair to encryption_context_subset
.
To override the contents of this collection use set_encryption_context_subset
.
A list of key-value pairs that must be included in the encryption context of the cryptographic operation request. The grant allows the cryptographic operation only when the encryption context in the request includes the key-value pairs specified in this constraint, although it can include additional key-value pairs.
sourcepub fn set_encryption_context_subset(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_encryption_context_subset( self, input: Option<HashMap<String, String>> ) -> Self
A list of key-value pairs that must be included in the encryption context of the cryptographic operation request. The grant allows the cryptographic operation only when the encryption context in the request includes the key-value pairs specified in this constraint, although it can include additional key-value pairs.
sourcepub fn get_encryption_context_subset(&self) -> &Option<HashMap<String, String>>
pub fn get_encryption_context_subset(&self) -> &Option<HashMap<String, String>>
A list of key-value pairs that must be included in the encryption context of the cryptographic operation request. The grant allows the cryptographic operation only when the encryption context in the request includes the key-value pairs specified in this constraint, although it can include additional key-value pairs.
sourcepub fn encryption_context_equals(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn encryption_context_equals( self, k: impl Into<String>, v: impl Into<String> ) -> Self
Adds a key-value pair to encryption_context_equals
.
To override the contents of this collection use set_encryption_context_equals
.
A list of key-value pairs that must match the encryption context in the cryptographic operation request. The grant allows the operation only when the encryption context in the request is the same as the encryption context specified in this constraint.
sourcepub fn set_encryption_context_equals(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_encryption_context_equals( self, input: Option<HashMap<String, String>> ) -> Self
A list of key-value pairs that must match the encryption context in the cryptographic operation request. The grant allows the operation only when the encryption context in the request is the same as the encryption context specified in this constraint.
sourcepub fn get_encryption_context_equals(&self) -> &Option<HashMap<String, String>>
pub fn get_encryption_context_equals(&self) -> &Option<HashMap<String, String>>
A list of key-value pairs that must match the encryption context in the cryptographic operation request. The grant allows the operation only when the encryption context in the request is the same as the encryption context specified in this constraint.
sourcepub fn build(self) -> GrantConstraints
pub fn build(self) -> GrantConstraints
Consumes the builder and constructs a GrantConstraints
.
Trait Implementations§
source§impl Clone for GrantConstraintsBuilder
impl Clone for GrantConstraintsBuilder
source§fn clone(&self) -> GrantConstraintsBuilder
fn clone(&self) -> GrantConstraintsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GrantConstraintsBuilder
impl Debug for GrantConstraintsBuilder
source§impl Default for GrantConstraintsBuilder
impl Default for GrantConstraintsBuilder
source§fn default() -> GrantConstraintsBuilder
fn default() -> GrantConstraintsBuilder
source§impl PartialEq for GrantConstraintsBuilder
impl PartialEq for GrantConstraintsBuilder
source§fn eq(&self, other: &GrantConstraintsBuilder) -> bool
fn eq(&self, other: &GrantConstraintsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.