aws_sdk_secretsmanager/client/restore_secret.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 [`RestoreSecret`](crate::operation::restore_secret::builders::RestoreSecretFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - On success, responds with [`RestoreSecretOutput`](crate::operation::restore_secret::RestoreSecretOutput) with field(s):
8 /// - [`arn(Option<String>)`](crate::operation::restore_secret::RestoreSecretOutput::arn): <p>The ARN of the secret that was restored.</p>
9 /// - [`name(Option<String>)`](crate::operation::restore_secret::RestoreSecretOutput::name): <p>The name of the secret that was restored.</p>
10 /// - On failure, responds with [`SdkError<RestoreSecretError>`](crate::operation::restore_secret::RestoreSecretError)
11 pub fn restore_secret(&self) -> crate::operation::restore_secret::builders::RestoreSecretFluentBuilder {
12 crate::operation::restore_secret::builders::RestoreSecretFluentBuilder::new(self.handle.clone())
13 }
14}