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