Struct aws_sdk_kms::operation::schedule_key_deletion::builders::ScheduleKeyDeletionInputBuilder
source · #[non_exhaustive]pub struct ScheduleKeyDeletionInputBuilder { /* private fields */ }
Expand description
A builder for ScheduleKeyDeletionInput
.
Implementations§
source§impl ScheduleKeyDeletionInputBuilder
impl ScheduleKeyDeletionInputBuilder
sourcepub fn key_id(self, input: impl Into<String>) -> Self
pub fn key_id(self, input: impl Into<String>) -> Self
The unique identifier of the KMS key to delete.
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
The unique identifier of the KMS key to delete.
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>
The unique identifier of the KMS key to delete.
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 pending_window_in_days(self, input: i32) -> Self
pub fn pending_window_in_days(self, input: i32) -> Self
The waiting period, specified in number of days. After the waiting period ends, KMS deletes the KMS key.
If the KMS key is a multi-Region primary key with replica keys, the waiting period begins when the last of its replica keys is deleted. Otherwise, the waiting period begins immediately.
This value is optional. If you include a value, it must be between 7 and 30, inclusive. If you do not include a value, it defaults to 30. You can use the kms:ScheduleKeyDeletionPendingWindowInDays
condition key to further constrain the values that principals can specify in the PendingWindowInDays
parameter.
sourcepub fn set_pending_window_in_days(self, input: Option<i32>) -> Self
pub fn set_pending_window_in_days(self, input: Option<i32>) -> Self
The waiting period, specified in number of days. After the waiting period ends, KMS deletes the KMS key.
If the KMS key is a multi-Region primary key with replica keys, the waiting period begins when the last of its replica keys is deleted. Otherwise, the waiting period begins immediately.
This value is optional. If you include a value, it must be between 7 and 30, inclusive. If you do not include a value, it defaults to 30. You can use the kms:ScheduleKeyDeletionPendingWindowInDays
condition key to further constrain the values that principals can specify in the PendingWindowInDays
parameter.
sourcepub fn get_pending_window_in_days(&self) -> &Option<i32>
pub fn get_pending_window_in_days(&self) -> &Option<i32>
The waiting period, specified in number of days. After the waiting period ends, KMS deletes the KMS key.
If the KMS key is a multi-Region primary key with replica keys, the waiting period begins when the last of its replica keys is deleted. Otherwise, the waiting period begins immediately.
This value is optional. If you include a value, it must be between 7 and 30, inclusive. If you do not include a value, it defaults to 30. You can use the kms:ScheduleKeyDeletionPendingWindowInDays
condition key to further constrain the values that principals can specify in the PendingWindowInDays
parameter.
sourcepub fn build(self) -> Result<ScheduleKeyDeletionInput, BuildError>
pub fn build(self) -> Result<ScheduleKeyDeletionInput, BuildError>
Consumes the builder and constructs a ScheduleKeyDeletionInput
.
source§impl ScheduleKeyDeletionInputBuilder
impl ScheduleKeyDeletionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ScheduleKeyDeletionOutput, SdkError<ScheduleKeyDeletionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ScheduleKeyDeletionOutput, SdkError<ScheduleKeyDeletionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ScheduleKeyDeletionInputBuilder
impl Clone for ScheduleKeyDeletionInputBuilder
source§fn clone(&self) -> ScheduleKeyDeletionInputBuilder
fn clone(&self) -> ScheduleKeyDeletionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ScheduleKeyDeletionInputBuilder
impl Default for ScheduleKeyDeletionInputBuilder
source§fn default() -> ScheduleKeyDeletionInputBuilder
fn default() -> ScheduleKeyDeletionInputBuilder
source§impl PartialEq for ScheduleKeyDeletionInputBuilder
impl PartialEq for ScheduleKeyDeletionInputBuilder
source§fn eq(&self, other: &ScheduleKeyDeletionInputBuilder) -> bool
fn eq(&self, other: &ScheduleKeyDeletionInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.