#[non_exhaustive]pub struct CancelKeyDeletionInputBuilder { /* private fields */ }
Expand description
A builder for CancelKeyDeletionInput
.
Implementations§
source§impl CancelKeyDeletionInputBuilder
impl CancelKeyDeletionInputBuilder
sourcepub fn key_id(self, input: impl Into<String>) -> Self
pub fn key_id(self, input: impl Into<String>) -> Self
Identifies the KMS key whose deletion is being canceled.
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
Identifies the KMS key whose deletion is being canceled.
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>
Identifies the KMS key whose deletion is being canceled.
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 build(self) -> Result<CancelKeyDeletionInput, BuildError>
pub fn build(self) -> Result<CancelKeyDeletionInput, BuildError>
Consumes the builder and constructs a CancelKeyDeletionInput
.
source§impl CancelKeyDeletionInputBuilder
impl CancelKeyDeletionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CancelKeyDeletionOutput, SdkError<CancelKeyDeletionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CancelKeyDeletionOutput, SdkError<CancelKeyDeletionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CancelKeyDeletionInputBuilder
impl Clone for CancelKeyDeletionInputBuilder
source§fn clone(&self) -> CancelKeyDeletionInputBuilder
fn clone(&self) -> CancelKeyDeletionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CancelKeyDeletionInputBuilder
impl Default for CancelKeyDeletionInputBuilder
source§fn default() -> CancelKeyDeletionInputBuilder
fn default() -> CancelKeyDeletionInputBuilder
source§impl PartialEq for CancelKeyDeletionInputBuilder
impl PartialEq for CancelKeyDeletionInputBuilder
source§fn eq(&self, other: &CancelKeyDeletionInputBuilder) -> bool
fn eq(&self, other: &CancelKeyDeletionInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.