#[non_exhaustive]pub struct RotateKeyOnDemandInputBuilder { /* private fields */ }
Expand description
A builder for RotateKeyOnDemandInput
.
Implementations§
Source§impl RotateKeyOnDemandInputBuilder
impl RotateKeyOnDemandInputBuilder
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 perform on-demand rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To perform on-demand rotation of a set of related multi-Region keys, invoke the on-demand rotation 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 perform on-demand rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To perform on-demand rotation of a set of related multi-Region keys, invoke the on-demand rotation 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 perform on-demand rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To perform on-demand rotation of a set of related multi-Region keys, invoke the on-demand rotation 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<RotateKeyOnDemandInput, BuildError>
pub fn build(self) -> Result<RotateKeyOnDemandInput, BuildError>
Consumes the builder and constructs a RotateKeyOnDemandInput
.
Source§impl RotateKeyOnDemandInputBuilder
impl RotateKeyOnDemandInputBuilder
Sourcepub async fn send_with(
self,
client: &Client,
) -> Result<RotateKeyOnDemandOutput, SdkError<RotateKeyOnDemandError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<RotateKeyOnDemandOutput, SdkError<RotateKeyOnDemandError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
Source§impl Clone for RotateKeyOnDemandInputBuilder
impl Clone for RotateKeyOnDemandInputBuilder
Source§fn clone(&self) -> RotateKeyOnDemandInputBuilder
fn clone(&self) -> RotateKeyOnDemandInputBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for RotateKeyOnDemandInputBuilder
impl Default for RotateKeyOnDemandInputBuilder
Source§fn default() -> RotateKeyOnDemandInputBuilder
fn default() -> RotateKeyOnDemandInputBuilder
Source§impl PartialEq for RotateKeyOnDemandInputBuilder
impl PartialEq for RotateKeyOnDemandInputBuilder
Source§fn eq(&self, other: &RotateKeyOnDemandInputBuilder) -> bool
fn eq(&self, other: &RotateKeyOnDemandInputBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RotateKeyOnDemandInputBuilder
Auto Trait Implementations§
impl Freeze for RotateKeyOnDemandInputBuilder
impl RefUnwindSafe for RotateKeyOnDemandInputBuilder
impl Send for RotateKeyOnDemandInputBuilder
impl Sync for RotateKeyOnDemandInputBuilder
impl Unpin for RotateKeyOnDemandInputBuilder
impl UnwindSafe for RotateKeyOnDemandInputBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more