CodeDeploy / Client / add_tags_to_on_premises_instances

add_tags_to_on_premises_instances#

CodeDeploy.Client.add_tags_to_on_premises_instances(**kwargs)#

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',
    ]
)
Parameters:
  • tags (list) –

    [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.

    • (dict) –

      Information about a tag.

      • Key (string) –

        The tag’s key.

      • Value (string) –

        The tag’s value.

  • instanceNames (list) –

    [REQUIRED]

    The names of the on-premises instances to which to add tags.

    • (string) –

Returns:

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