1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateSecretVersionStage`](crate::operation::update_secret_version_stage::builders::UpdateSecretVersionStageFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`secret_id(impl Into<String>)`](crate::operation::update_secret_version_stage::builders::UpdateSecretVersionStageFluentBuilder::secret_id) / [`set_secret_id(Option<String>)`](crate::operation::update_secret_version_stage::builders::UpdateSecretVersionStageFluentBuilder::set_secret_id):<br>required: **true**<br><p>The ARN or the name of the secret with the version and staging labelsto modify.</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>
    ///   - [`version_stage(impl Into<String>)`](crate::operation::update_secret_version_stage::builders::UpdateSecretVersionStageFluentBuilder::version_stage) / [`set_version_stage(Option<String>)`](crate::operation::update_secret_version_stage::builders::UpdateSecretVersionStageFluentBuilder::set_version_stage):<br>required: **true**<br><p>The staging label to add to this version.</p><br>
    ///   - [`remove_from_version_id(impl Into<String>)`](crate::operation::update_secret_version_stage::builders::UpdateSecretVersionStageFluentBuilder::remove_from_version_id) / [`set_remove_from_version_id(Option<String>)`](crate::operation::update_secret_version_stage::builders::UpdateSecretVersionStageFluentBuilder::set_remove_from_version_id):<br>required: **false**<br><p>The ID of the version that the staging label is to be removed from. If the staging label you are trying to attach to one version is already attached to a different version, then you must include this parameter and specify the version that the label is to be removed from. If the label is attached and you either do not specify this parameter, or the version ID does not match, then the operation fails.</p><br>
    ///   - [`move_to_version_id(impl Into<String>)`](crate::operation::update_secret_version_stage::builders::UpdateSecretVersionStageFluentBuilder::move_to_version_id) / [`set_move_to_version_id(Option<String>)`](crate::operation::update_secret_version_stage::builders::UpdateSecretVersionStageFluentBuilder::set_move_to_version_id):<br>required: **false**<br><p>The ID of the version to add the staging label to. To remove a label from a version, then do not specify this parameter.</p> <p>If the staging label is already attached to a different version of the secret, then you must also specify the <code>RemoveFromVersionId</code> parameter.</p><br>
    /// - On success, responds with [`UpdateSecretVersionStageOutput`](crate::operation::update_secret_version_stage::UpdateSecretVersionStageOutput) with field(s):
    ///   - [`arn(Option<String>)`](crate::operation::update_secret_version_stage::UpdateSecretVersionStageOutput::arn): <p>The ARN of the secret that was updated.</p>
    ///   - [`name(Option<String>)`](crate::operation::update_secret_version_stage::UpdateSecretVersionStageOutput::name): <p>The name of the secret that was updated.</p>
    /// - On failure, responds with [`SdkError<UpdateSecretVersionStageError>`](crate::operation::update_secret_version_stage::UpdateSecretVersionStageError)
    pub fn update_secret_version_stage(&self) -> crate::operation::update_secret_version_stage::builders::UpdateSecretVersionStageFluentBuilder {
        crate::operation::update_secret_version_stage::builders::UpdateSecretVersionStageFluentBuilder::new(self.handle.clone())
    }
}