1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CancelRotateSecret`](crate::operation::cancel_rotate_secret::builders::CancelRotateSecretFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`secret_id(impl Into<String>)`](crate::operation::cancel_rotate_secret::builders::CancelRotateSecretFluentBuilder::secret_id) / [`set_secret_id(Option<String>)`](crate::operation::cancel_rotate_secret::builders::CancelRotateSecretFluentBuilder::set_secret_id):<br>required: **true**<br><p>The ARN or name of the secret.</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 [`CancelRotateSecretOutput`](crate::operation::cancel_rotate_secret::CancelRotateSecretOutput) with field(s):
    ///   - [`arn(Option<String>)`](crate::operation::cancel_rotate_secret::CancelRotateSecretOutput::arn): <p>The ARN of the secret.</p>
    ///   - [`name(Option<String>)`](crate::operation::cancel_rotate_secret::CancelRotateSecretOutput::name): <p>The name of the secret.</p>
    ///   - [`version_id(Option<String>)`](crate::operation::cancel_rotate_secret::CancelRotateSecretOutput::version_id): <p>The unique identifier of the version of the secret created during the rotation. This version might not be complete, and should be evaluated for possible deletion. We recommend that you remove the <code>VersionStage</code> value <code>AWSPENDING</code> from this version so that Secrets Manager can delete it. Failing to clean up a cancelled rotation can block you from starting future rotations.</p>
    /// - On failure, responds with [`SdkError<CancelRotateSecretError>`](crate::operation::cancel_rotate_secret::CancelRotateSecretError)
    pub fn cancel_rotate_secret(&self) -> crate::operation::cancel_rotate_secret::builders::CancelRotateSecretFluentBuilder {
        crate::operation::cancel_rotate_secret::builders::CancelRotateSecretFluentBuilder::new(self.handle.clone())
    }
}