Struct aws_sdk_kms::operation::update_key_description::builders::UpdateKeyDescriptionInputBuilder
source · #[non_exhaustive]pub struct UpdateKeyDescriptionInputBuilder { /* private fields */ }
Expand description
A builder for UpdateKeyDescriptionInput
.
Implementations§
source§impl UpdateKeyDescriptionInputBuilder
impl UpdateKeyDescriptionInputBuilder
sourcepub fn key_id(self, input: impl Into<String>) -> Self
pub fn key_id(self, input: impl Into<String>) -> Self
Updates the description of the specified KMS key.
Specify the key ID or key ARN of the KMS key.
For example:
-
Key ID:
1234abcd-12ab-34cd-56ef-1234567890ab
-
Key ARN:
arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
To get the key ID and key ARN for a KMS key, use ListKeys
or DescribeKey
.
sourcepub fn set_key_id(self, input: Option<String>) -> Self
pub fn set_key_id(self, input: Option<String>) -> Self
Updates the description of the specified KMS key.
Specify the key ID or key ARN of the KMS key.
For example:
-
Key ID:
1234abcd-12ab-34cd-56ef-1234567890ab
-
Key ARN:
arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
To get the key ID and key ARN for a KMS key, use ListKeys
or DescribeKey
.
sourcepub fn get_key_id(&self) -> &Option<String>
pub fn get_key_id(&self) -> &Option<String>
Updates the description of the specified KMS key.
Specify the key ID or key ARN of the KMS key.
For example:
-
Key ID:
1234abcd-12ab-34cd-56ef-1234567890ab
-
Key ARN:
arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
To get the key ID and key ARN for a KMS key, use ListKeys
or DescribeKey
.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
New description for the KMS key.
Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
New description for the KMS key.
Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
New description for the KMS key.
Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
sourcepub fn build(self) -> Result<UpdateKeyDescriptionInput, BuildError>
pub fn build(self) -> Result<UpdateKeyDescriptionInput, BuildError>
Consumes the builder and constructs a UpdateKeyDescriptionInput
.
source§impl UpdateKeyDescriptionInputBuilder
impl UpdateKeyDescriptionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateKeyDescriptionOutput, SdkError<UpdateKeyDescriptionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateKeyDescriptionOutput, SdkError<UpdateKeyDescriptionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateKeyDescriptionInputBuilder
impl Clone for UpdateKeyDescriptionInputBuilder
source§fn clone(&self) -> UpdateKeyDescriptionInputBuilder
fn clone(&self) -> UpdateKeyDescriptionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdateKeyDescriptionInputBuilder
impl Default for UpdateKeyDescriptionInputBuilder
source§fn default() -> UpdateKeyDescriptionInputBuilder
fn default() -> UpdateKeyDescriptionInputBuilder
source§impl PartialEq for UpdateKeyDescriptionInputBuilder
impl PartialEq for UpdateKeyDescriptionInputBuilder
source§fn eq(&self, other: &UpdateKeyDescriptionInputBuilder) -> bool
fn eq(&self, other: &UpdateKeyDescriptionInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.