Struct aws_sdk_kms::operation::get_key_rotation_status::builders::GetKeyRotationStatusInputBuilder
source · #[non_exhaustive]pub struct GetKeyRotationStatusInputBuilder { /* private fields */ }
Expand description
A builder for GetKeyRotationStatusInput
.
Implementations§
source§impl GetKeyRotationStatusInputBuilder
impl GetKeyRotationStatusInputBuilder
sourcepub fn key_id(self, input: impl Into<String>) -> Self
pub fn key_id(self, input: impl Into<String>) -> Self
Gets the rotation status for the specified KMS key.
Specify the key ID or key ARN of the KMS key. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN.
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
Gets the rotation status for the specified KMS key.
Specify the key ID or key ARN of the KMS key. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN.
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>
Gets the rotation status for the specified KMS key.
Specify the key ID or key ARN of the KMS key. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN.
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<GetKeyRotationStatusInput, BuildError>
pub fn build(self) -> Result<GetKeyRotationStatusInput, BuildError>
Consumes the builder and constructs a GetKeyRotationStatusInput
.
source§impl GetKeyRotationStatusInputBuilder
impl GetKeyRotationStatusInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<GetKeyRotationStatusOutput, SdkError<GetKeyRotationStatusError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<GetKeyRotationStatusOutput, SdkError<GetKeyRotationStatusError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetKeyRotationStatusInputBuilder
impl Clone for GetKeyRotationStatusInputBuilder
source§fn clone(&self) -> GetKeyRotationStatusInputBuilder
fn clone(&self) -> GetKeyRotationStatusInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetKeyRotationStatusInputBuilder
impl Default for GetKeyRotationStatusInputBuilder
source§fn default() -> GetKeyRotationStatusInputBuilder
fn default() -> GetKeyRotationStatusInputBuilder
source§impl PartialEq for GetKeyRotationStatusInputBuilder
impl PartialEq for GetKeyRotationStatusInputBuilder
source§fn eq(&self, other: &GetKeyRotationStatusInputBuilder) -> bool
fn eq(&self, other: &GetKeyRotationStatusInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.