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