Struct aws_sdk_accessanalyzer::model::KmsGrantConstraints
source · [−]#[non_exhaustive]pub struct KmsGrantConstraints { /* private fields */ }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.
Implementations
sourceimpl 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.
sourceimpl KmsGrantConstraints
impl KmsGrantConstraints
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture KmsGrantConstraints.
Trait Implementations
sourceimpl Clone for KmsGrantConstraints
impl Clone for KmsGrantConstraints
sourcefn clone(&self) -> KmsGrantConstraints
fn clone(&self) -> KmsGrantConstraints
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more