#[non_exhaustive]pub struct EnableKeyRotationInput {
pub key_id: Option<String>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.key_id: Option<String>
Identifies a symmetric encryption KMS key. You cannot enable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary 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
.
Implementations§
source§impl EnableKeyRotationInput
impl EnableKeyRotationInput
sourcepub fn key_id(&self) -> Option<&str>
pub fn key_id(&self) -> Option<&str>
Identifies a symmetric encryption KMS key. You cannot enable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary 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
.
source§impl EnableKeyRotationInput
impl EnableKeyRotationInput
sourcepub fn builder() -> EnableKeyRotationInputBuilder
pub fn builder() -> EnableKeyRotationInputBuilder
Creates a new builder-style object to manufacture EnableKeyRotationInput
.
Trait Implementations§
source§impl Clone for EnableKeyRotationInput
impl Clone for EnableKeyRotationInput
source§fn clone(&self) -> EnableKeyRotationInput
fn clone(&self) -> EnableKeyRotationInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EnableKeyRotationInput
impl Debug for EnableKeyRotationInput
source§impl PartialEq for EnableKeyRotationInput
impl PartialEq for EnableKeyRotationInput
source§fn eq(&self, other: &EnableKeyRotationInput) -> bool
fn eq(&self, other: &EnableKeyRotationInput) -> bool
self
and other
values to be equal, and is used
by ==
.