aws_sdk_paymentcryptography/client/delete_key.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`DeleteKey`](crate::operation::delete_key::builders::DeleteKeyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`key_identifier(impl Into<String>)`](crate::operation::delete_key::builders::DeleteKeyFluentBuilder::key_identifier) / [`set_key_identifier(Option<String>)`](crate::operation::delete_key::builders::DeleteKeyFluentBuilder::set_key_identifier):<br>required: **true**<br><p>The <code>KeyARN</code> of the key that is scheduled for deletion.</p><br>
7 /// - [`delete_key_in_days(i32)`](crate::operation::delete_key::builders::DeleteKeyFluentBuilder::delete_key_in_days) / [`set_delete_key_in_days(Option<i32>)`](crate::operation::delete_key::builders::DeleteKeyFluentBuilder::set_delete_key_in_days):<br>required: **false**<br><p>The waiting period for key deletion. The default value is seven days.</p><br>
8 /// - On success, responds with [`DeleteKeyOutput`](crate::operation::delete_key::DeleteKeyOutput) with field(s):
9 /// - [`key(Option<Key>)`](crate::operation::delete_key::DeleteKeyOutput::key): <p>The <code>KeyARN</code> of the key that is scheduled for deletion.</p>
10 /// - On failure, responds with [`SdkError<DeleteKeyError>`](crate::operation::delete_key::DeleteKeyError)
11 pub fn delete_key(&self) -> crate::operation::delete_key::builders::DeleteKeyFluentBuilder {
12 crate::operation::delete_key::builders::DeleteKeyFluentBuilder::new(self.handle.clone())
13 }
14}