CodeDeploy / Client / tag_resource

tag_resource#

CodeDeploy.Client.tag_resource(**kwargs)#

Associates the list of tags in the input Tags parameter with the resource identified by the ResourceArn input parameter.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    ResourceArn='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters:
  • ResourceArn (string) –

    [REQUIRED]

    The ARN of a resource, such as a CodeDeploy application or deployment group.

  • Tags (list) –

    [REQUIRED]

    A list of tags that TagResource associates with a resource. The resource is identified by the ResourceArn input parameter.

    • (dict) –

      Information about a tag.

      • Key (string) –

        The tag’s key.

      • Value (string) –

        The tag’s value.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • CodeDeploy.Client.exceptions.ResourceArnRequiredException

  • CodeDeploy.Client.exceptions.ApplicationDoesNotExistException

  • CodeDeploy.Client.exceptions.DeploymentGroupDoesNotExistException

  • CodeDeploy.Client.exceptions.DeploymentConfigDoesNotExistException

  • CodeDeploy.Client.exceptions.TagRequiredException

  • CodeDeploy.Client.exceptions.InvalidTagsToAddException

  • CodeDeploy.Client.exceptions.ArnNotSupportedException

  • CodeDeploy.Client.exceptions.InvalidArnException