Struct aws_sdk_accessanalyzer::types::KmsKeyConfiguration
source · #[non_exhaustive]pub struct KmsKeyConfiguration {
pub key_policies: Option<HashMap<String, String>>,
pub grants: Option<Vec<KmsGrantConfiguration>>,
}
Expand description
Proposed access control configuration for a KMS key. You can propose a configuration for a new KMS key or an existing KMS key that you own by specifying the key policy and KMS grant configuration. If the configuration is for an existing key and you do not specify the key policy, the access preview uses the existing policy for the key. If the access preview is for a new resource and you do not specify the key policy, then the access preview uses the default key policy. The proposed key policy cannot be an empty string. For more information, see Default key policy. For more information about key policy limits, see Resource quotas.
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.key_policies: Option<HashMap<String, String>>
Resource policy configuration for the KMS key. The only valid value for the name of the key policy is default
. For more information, see Default key policy.
grants: Option<Vec<KmsGrantConfiguration>>
A list of proposed grant configurations for the KMS key. If the proposed grant configuration is for an existing key, the access preview uses the proposed list of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing grants for the key.
Implementations§
source§impl KmsKeyConfiguration
impl KmsKeyConfiguration
sourcepub fn key_policies(&self) -> Option<&HashMap<String, String>>
pub fn key_policies(&self) -> Option<&HashMap<String, String>>
Resource policy configuration for the KMS key. The only valid value for the name of the key policy is default
. For more information, see Default key policy.
sourcepub fn grants(&self) -> &[KmsGrantConfiguration]
pub fn grants(&self) -> &[KmsGrantConfiguration]
A list of proposed grant configurations for the KMS key. If the proposed grant configuration is for an existing key, the access preview uses the proposed list of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing grants for the key.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .grants.is_none()
.
source§impl KmsKeyConfiguration
impl KmsKeyConfiguration
sourcepub fn builder() -> KmsKeyConfigurationBuilder
pub fn builder() -> KmsKeyConfigurationBuilder
Creates a new builder-style object to manufacture KmsKeyConfiguration
.
Trait Implementations§
source§impl Clone for KmsKeyConfiguration
impl Clone for KmsKeyConfiguration
source§fn clone(&self) -> KmsKeyConfiguration
fn clone(&self) -> KmsKeyConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KmsKeyConfiguration
impl Debug for KmsKeyConfiguration
source§impl PartialEq for KmsKeyConfiguration
impl PartialEq for KmsKeyConfiguration
source§fn eq(&self, other: &KmsKeyConfiguration) -> bool
fn eq(&self, other: &KmsKeyConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for KmsKeyConfiguration
Auto Trait Implementations§
impl Freeze for KmsKeyConfiguration
impl RefUnwindSafe for KmsKeyConfiguration
impl Send for KmsKeyConfiguration
impl Sync for KmsKeyConfiguration
impl Unpin for KmsKeyConfiguration
impl UnwindSafe for KmsKeyConfiguration
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