Struct aws_sdk_kms::operation::disable_key_rotation::builders::DisableKeyRotationInputBuilder
source · #[non_exhaustive]pub struct DisableKeyRotationInputBuilder { /* private fields */ }
Expand description
A builder for DisableKeyRotationInput
.
Implementations§
source§impl DisableKeyRotationInputBuilder
impl DisableKeyRotationInputBuilder
sourcepub fn key_id(self, input: impl Into<String>) -> Self
pub fn key_id(self, input: impl Into<String>) -> Self
Identifies a symmetric encryption KMS key. You cannot enable or disable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store.
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 a symmetric encryption KMS key. You cannot enable or disable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store.
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 a symmetric encryption KMS key. You cannot enable or disable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store.
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<DisableKeyRotationInput, BuildError>
pub fn build(self) -> Result<DisableKeyRotationInput, BuildError>
Consumes the builder and constructs a DisableKeyRotationInput
.
source§impl DisableKeyRotationInputBuilder
impl DisableKeyRotationInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DisableKeyRotationOutput, SdkError<DisableKeyRotationError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DisableKeyRotationOutput, SdkError<DisableKeyRotationError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DisableKeyRotationInputBuilder
impl Clone for DisableKeyRotationInputBuilder
source§fn clone(&self) -> DisableKeyRotationInputBuilder
fn clone(&self) -> DisableKeyRotationInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DisableKeyRotationInputBuilder
impl Default for DisableKeyRotationInputBuilder
source§fn default() -> DisableKeyRotationInputBuilder
fn default() -> DisableKeyRotationInputBuilder
source§impl PartialEq for DisableKeyRotationInputBuilder
impl PartialEq for DisableKeyRotationInputBuilder
source§fn eq(&self, other: &DisableKeyRotationInputBuilder) -> bool
fn eq(&self, other: &DisableKeyRotationInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.