label_parameter_version
(**kwargs)¶A parameter label is a user-defined alias to help you manage different versions of a parameter. When you modify a parameter, Amazon Web Services Systems Manager automatically saves a new version and increments the version number by one. A label can help you remember the purpose of a parameter when there are multiple versions.
Parameter labels have the following requirements and restrictions.
aws
" or " ssm
" (not case sensitive). If a label fails to meet these requirements, then the label isn't associated with a parameter and the system displays it in the list of InvalidLabels.See also: AWS API Documentation
Request Syntax
response = client.label_parameter_version(
Name='string',
ParameterVersion=123,
Labels=[
'string',
]
)
[REQUIRED]
The parameter name on which you want to attach one or more labels.
[REQUIRED]
One or more labels to attach to the specified parameter version.
dict
Response Syntax
{
'InvalidLabels': [
'string',
],
'ParameterVersion': 123
}
Response Structure
(dict) --
InvalidLabels (list) --
The label doesn't meet the requirements. For information about parameter label requirements, see Labeling parameters in the Amazon Web Services Systems Manager User Guide .
ParameterVersion (integer) --
The version of the parameter that has been labeled.
Exceptions
SSM.Client.exceptions.InternalServerError
SSM.Client.exceptions.TooManyUpdates
SSM.Client.exceptions.ParameterNotFound
SSM.Client.exceptions.ParameterVersionNotFound
SSM.Client.exceptions.ParameterVersionLabelLimitExceeded