CmdID

CmdID / aws / aws ssm

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

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

3 in the AWS CLI reference
--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.