aws_sdk_paymentcryptography/client/restore_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 [`RestoreKey`](crate::operation::restore_key::builders::RestoreKeyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`key_identifier(impl Into<String>)`](crate::operation::restore_key::builders::RestoreKeyFluentBuilder::key_identifier) / [`set_key_identifier(Option<String>)`](crate::operation::restore_key::builders::RestoreKeyFluentBuilder::set_key_identifier):<br>required: **true**<br><p>The <code>KeyARN</code> of the key to be restored within Amazon Web Services Payment Cryptography.</p><br>
7 /// - On success, responds with [`RestoreKeyOutput`](crate::operation::restore_key::RestoreKeyOutput) with field(s):
8 /// - [`key(Option<Key>)`](crate::operation::restore_key::RestoreKeyOutput::key): <p>The key material of the restored key. The <code>KeyState</code> will change to <code>CREATE_COMPLETE</code> and value for <code>DeletePendingTimestamp</code> gets removed.</p>
9 /// - On failure, responds with [`SdkError<RestoreKeyError>`](crate::operation::restore_key::RestoreKeyError)
10 pub fn restore_key(&self) -> crate::operation::restore_key::builders::RestoreKeyFluentBuilder {
11 crate::operation::restore_key::builders::RestoreKeyFluentBuilder::new(self.handle.clone())
12 }
13}