1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`RestoreSecret`](crate::operation::restore_secret::builders::RestoreSecretFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`secret_id(impl Into<String>)`](crate::operation::restore_secret::builders::RestoreSecretFluentBuilder::secret_id) / [`set_secret_id(Option<String>)`](crate::operation::restore_secret::builders::RestoreSecretFluentBuilder::set_secret_id):<br>required: **true**<br><p>The ARN or name of the secret to restore.</p> <p>For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen">Finding a secret from a partial ARN</a>.</p><br>
    /// - On success, responds with [`RestoreSecretOutput`](crate::operation::restore_secret::RestoreSecretOutput) with field(s):
    ///   - [`arn(Option<String>)`](crate::operation::restore_secret::RestoreSecretOutput::arn): <p>The ARN of the secret that was restored.</p>
    ///   - [`name(Option<String>)`](crate::operation::restore_secret::RestoreSecretOutput::name): <p>The name of the secret that was restored.</p>
    /// - On failure, responds with [`SdkError<RestoreSecretError>`](crate::operation::restore_secret::RestoreSecretError)
    pub fn restore_secret(&self) -> crate::operation::restore_secret::builders::RestoreSecretFluentBuilder {
        crate::operation::restore_secret::builders::RestoreSecretFluentBuilder::new(self.handle.clone())
    }
}