CodeCommit / Client / tag_resource

tag_resource#

CodeCommit.Client.tag_resource(**kwargs)#

Adds or updates tags for a resource in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    resourceArn='string',
    tags={
        'string': 'string'
    }
)
Parameters:
  • resourceArn (string) –

    [REQUIRED]

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

  • tags (dict) –

    [REQUIRED]

    The key-value pair to use when tagging this repository.

    • (string) –

      • (string) –

Returns:

None

Exceptions