pub struct Builder { /* private fields */ }
Expand description
A builder for KmsKeyConfiguration
.
Implementations§
source§impl Builder
impl Builder
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 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 build(self) -> KmsKeyConfiguration
pub fn build(self) -> KmsKeyConfiguration
Consumes the builder and constructs a KmsKeyConfiguration
.