#[non_exhaustive]pub struct KmsGrantConstraintsBuilder { /* private fields */ }
Expand description
A builder for KmsGrantConstraints
.
Implementations§
source§impl KmsGrantConstraintsBuilder
impl KmsGrantConstraintsBuilder
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 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 build(self) -> KmsGrantConstraints
pub fn build(self) -> KmsGrantConstraints
Consumes the builder and constructs a KmsGrantConstraints
.
Trait Implementations§
source§impl Clone for KmsGrantConstraintsBuilder
impl Clone for KmsGrantConstraintsBuilder
source§fn clone(&self) -> KmsGrantConstraintsBuilder
fn clone(&self) -> KmsGrantConstraintsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KmsGrantConstraintsBuilder
impl Debug for KmsGrantConstraintsBuilder
source§impl Default for KmsGrantConstraintsBuilder
impl Default for KmsGrantConstraintsBuilder
source§fn default() -> KmsGrantConstraintsBuilder
fn default() -> KmsGrantConstraintsBuilder
source§impl PartialEq for KmsGrantConstraintsBuilder
impl PartialEq for KmsGrantConstraintsBuilder
source§fn eq(&self, other: &KmsGrantConstraintsBuilder) -> bool
fn eq(&self, other: &KmsGrantConstraintsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for KmsGrantConstraintsBuilder
Auto Trait Implementations§
impl Freeze for KmsGrantConstraintsBuilder
impl RefUnwindSafe for KmsGrantConstraintsBuilder
impl Send for KmsGrantConstraintsBuilder
impl Sync for KmsGrantConstraintsBuilder
impl Unpin for KmsGrantConstraintsBuilder
impl UnwindSafe for KmsGrantConstraintsBuilder
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