tag_resource

CodePipeline.Client.tag_resource(**kwargs)

Adds to or modifies the tags of the given resource. Tags are metadata that can be used to manage a resource.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    resourceArn='string',
    tags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ]
)
Parameters
  • resourceArn (string) --

    [REQUIRED]

    The Amazon Resource Name (ARN) of the resource you want to add tags to.

  • tags (list) --

    [REQUIRED]

    The tags you want to modify or add to the resource.

    • (dict) --

      A tag is a key-value pair that is used to manage the resource.

      • key (string) -- [REQUIRED]

        The tag's key.

      • value (string) -- [REQUIRED]

        The tag's value.

Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

  • CodePipeline.Client.exceptions.ValidationException
  • CodePipeline.Client.exceptions.ResourceNotFoundException
  • CodePipeline.Client.exceptions.InvalidArnException
  • CodePipeline.Client.exceptions.TooManyTagsException
  • CodePipeline.Client.exceptions.InvalidTagsException
  • CodePipeline.Client.exceptions.ConcurrentModificationException