#[non_exhaustive]pub struct KmsKeyConfigurationBuilder { /* private fields */ }
Expand description
A builder for KmsKeyConfiguration
.
Implementations§
source§impl KmsKeyConfigurationBuilder
impl KmsKeyConfigurationBuilder
sourcepub fn key_policies(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn key_policies(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to key_policies
.
To override the contents of this collection use set_key_policies
.
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 set_key_policies(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_key_policies(self, input: Option<HashMap<String, String>>) -> Self
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 get_key_policies(&self) -> &Option<HashMap<String, String>>
pub fn get_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, input: KmsGrantConfiguration) -> Self
pub fn grants(self, input: KmsGrantConfiguration) -> Self
Appends an item to grants
.
To override the contents of this collection use set_grants
.
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.
sourcepub fn set_grants(self, input: Option<Vec<KmsGrantConfiguration>>) -> Self
pub fn set_grants(self, input: Option<Vec<KmsGrantConfiguration>>) -> Self
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.
sourcepub fn get_grants(&self) -> &Option<Vec<KmsGrantConfiguration>>
pub fn get_grants(&self) -> &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.
sourcepub fn build(self) -> KmsKeyConfiguration
pub fn build(self) -> KmsKeyConfiguration
Consumes the builder and constructs a KmsKeyConfiguration
.
Trait Implementations§
source§impl Clone for KmsKeyConfigurationBuilder
impl Clone for KmsKeyConfigurationBuilder
source§fn clone(&self) -> KmsKeyConfigurationBuilder
fn clone(&self) -> KmsKeyConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KmsKeyConfigurationBuilder
impl Debug for KmsKeyConfigurationBuilder
source§impl Default for KmsKeyConfigurationBuilder
impl Default for KmsKeyConfigurationBuilder
source§fn default() -> KmsKeyConfigurationBuilder
fn default() -> KmsKeyConfigurationBuilder
source§impl PartialEq for KmsKeyConfigurationBuilder
impl PartialEq for KmsKeyConfigurationBuilder
source§fn eq(&self, other: &KmsKeyConfigurationBuilder) -> bool
fn eq(&self, other: &KmsKeyConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for KmsKeyConfigurationBuilder
Auto Trait Implementations§
impl Freeze for KmsKeyConfigurationBuilder
impl RefUnwindSafe for KmsKeyConfigurationBuilder
impl Send for KmsKeyConfigurationBuilder
impl Sync for KmsKeyConfigurationBuilder
impl Unpin for KmsKeyConfigurationBuilder
impl UnwindSafe for KmsKeyConfigurationBuilder
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