aws ssm label-parameter-version
A parameter label is a user-defined alias to help you manage different versions of a parameter. AWS CLI reference
2 examples 3 options Its page in the AWS CLI reference
Examples
Example 1: To add a label to latest version of a parameter
The following label-parameter-version example adds a label to the latest version of the specified parameter.
aws ssm label-parameter-version --name "MyStringParameter" --labels "ProductionReady"Identify--nameThe parameter name on which you want to attach one or more labels.--labelsOne or more labels to attach to the specified parameter version.Its output
{
"InvalidLabels": [],
"ParameterVersion": 3
}For more information, see Working with parameter labels in the AWS Systems Manager User Guide.
Example 2: To add a label to a specific version of a parameter
The following label-parameter-version example adds a label to the specified version of a parameter.
aws ssm label-parameter-version --name "MyStringParameter" --labels "ProductionReady" --parameter-version "2" --labels "DevelopmentReady"Identify--nameThe parameter name on which you want to attach one or more labels.--labelsOne or more labels to attach to the specified parameter version.--parameter-versionThe specific version of the parameter on which you want to attach one or more labels.Its output
{
"InvalidLabels": [],
"ParameterVersion": 2
}For more information, see Working with parameter labels in the AWS Systems Manager User Guide.
Options
--labelsOne or more labels to attach to the specified parameter version.--nameThe parameter name on which you want to attach one or more labels.--parameter-versionThe specific version of the parameter on which you want to attach one or more labels.