aws_sdk_ssm/client/
label_parameter_version.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 [`LabelParameterVersion`](crate::operation::label_parameter_version::builders::LabelParameterVersionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::label_parameter_version::builders::LabelParameterVersionFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::label_parameter_version::builders::LabelParameterVersionFluentBuilder::set_name):<br>required: **true**<br><p>The parameter name on which you want to attach one or more labels.</p><note>  <p>You can't enter the Amazon Resource Name (ARN) for a parameter, only the parameter name itself.</p> </note><br>
7    ///   - [`parameter_version(i64)`](crate::operation::label_parameter_version::builders::LabelParameterVersionFluentBuilder::parameter_version) / [`set_parameter_version(Option<i64>)`](crate::operation::label_parameter_version::builders::LabelParameterVersionFluentBuilder::set_parameter_version):<br>required: **false**<br><p>The specific version of the parameter on which you want to attach one or more labels. If no version is specified, the system attaches the label to the latest version.</p><br>
8    ///   - [`labels(impl Into<String>)`](crate::operation::label_parameter_version::builders::LabelParameterVersionFluentBuilder::labels) / [`set_labels(Option<Vec::<String>>)`](crate::operation::label_parameter_version::builders::LabelParameterVersionFluentBuilder::set_labels):<br>required: **true**<br><p>One or more labels to attach to the specified parameter version.</p><br>
9    /// - On success, responds with [`LabelParameterVersionOutput`](crate::operation::label_parameter_version::LabelParameterVersionOutput) with field(s):
10    ///   - [`invalid_labels(Option<Vec::<String>>)`](crate::operation::label_parameter_version::LabelParameterVersionOutput::invalid_labels): <p>The label doesn't meet the requirements. For information about parameter label requirements, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-labels.html">Working with parameter labels</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
11    ///   - [`parameter_version(i64)`](crate::operation::label_parameter_version::LabelParameterVersionOutput::parameter_version): <p>The version of the parameter that has been labeled.</p>
12    /// - On failure, responds with [`SdkError<LabelParameterVersionError>`](crate::operation::label_parameter_version::LabelParameterVersionError)
13    pub fn label_parameter_version(&self) -> crate::operation::label_parameter_version::builders::LabelParameterVersionFluentBuilder {
14        crate::operation::label_parameter_version::builders::LabelParameterVersionFluentBuilder::new(self.handle.clone())
15    }
16}