1
2
3
4
5
6
7
8
9
10
11
12
13
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`RestoreKey`](crate::operation::restore_key::builders::RestoreKeyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    /// - On success, responds with [`RestoreKeyOutput`](crate::operation::restore_key::RestoreKeyOutput) with field(s):
    ///   - [`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>
    /// - On failure, responds with [`SdkError<RestoreKeyError>`](crate::operation::restore_key::RestoreKeyError)
    pub fn restore_key(&self) -> crate::operation::restore_key::builders::RestoreKeyFluentBuilder {
        crate::operation::restore_key::builders::RestoreKeyFluentBuilder::new(self.handle.clone())
    }
}