Adds tags to on-premises instances.
See also: AWS API Documentation
Request Syntax
response = client.add_tags_to_on_premises_instances(
tags=[
{
'Key': 'string',
'Value': 'string'
},
],
instanceNames=[
'string',
]
)
[REQUIRED]
The tag key-value pairs to add to the on-premises instances.
Keys and values are both required. Keys cannot be null or empty strings. Value-only tags are not allowed.
Information about a tag.
The tag's key.
The tag's value.
[REQUIRED]
The names of the on-premises instances to which to add tags.
None
Exceptions
CodeDeploy.Client.exceptions.InstanceNameRequiredException
CodeDeploy.Client.exceptions.InvalidInstanceNameException
CodeDeploy.Client.exceptions.TagRequiredException
CodeDeploy.Client.exceptions.InvalidTagException
CodeDeploy.Client.exceptions.TagLimitExceededException
CodeDeploy.Client.exceptions.InstanceLimitExceededException
CodeDeploy.Client.exceptions.InstanceNotRegisteredException