Struct aws_sdk_accessanalyzer::types::KmsGrantConstraints
source · #[non_exhaustive]pub struct KmsGrantConstraints {
pub encryption_context_equals: Option<HashMap<String, String>>,
pub encryption_context_subset: Option<HashMap<String, String>>,
}Expand description
Use this structure to propose allowing cryptographic operations in the grant only when the operation request includes the specified encryption context. You can specify only one type of encryption context. An empty map is treated as not specified. For more information, see GrantConstraints.
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.encryption_context_equals: 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.
encryption_context_subset: 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.
Implementations§
source§impl KmsGrantConstraints
impl KmsGrantConstraints
sourcepub fn encryption_context_equals(&self) -> Option<&HashMap<String, String>>
pub fn 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) -> Option<&HashMap<String, String>>
pub fn 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.
source§impl KmsGrantConstraints
impl KmsGrantConstraints
sourcepub fn builder() -> KmsGrantConstraintsBuilder
pub fn builder() -> KmsGrantConstraintsBuilder
Creates a new builder-style object to manufacture KmsGrantConstraints.
Trait Implementations§
source§impl Clone for KmsGrantConstraints
impl Clone for KmsGrantConstraints
source§fn clone(&self) -> KmsGrantConstraints
fn clone(&self) -> KmsGrantConstraints
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for KmsGrantConstraints
impl Debug for KmsGrantConstraints
source§impl PartialEq for KmsGrantConstraints
impl PartialEq for KmsGrantConstraints
impl StructuralPartialEq for KmsGrantConstraints
Auto Trait Implementations§
impl Freeze for KmsGrantConstraints
impl RefUnwindSafe for KmsGrantConstraints
impl Send for KmsGrantConstraints
impl Sync for KmsGrantConstraints
impl Unpin for KmsGrantConstraints
impl UnwindSafe for KmsGrantConstraints
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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