CodeArtifact / Client / tag_resource

tag_resource#

CodeArtifact.Client.tag_resource(**kwargs)#

Adds or updates tags for a resource in CodeArtifact.

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 that you want to add or update tags for.

  • tags (list) –

    [REQUIRED]

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

    • (dict) –

      A tag is a key-value pair that can be used to manage, search for, or filter resources in CodeArtifact.

      • key (string) – [REQUIRED]

        The tag key.

      • value (string) – [REQUIRED]

        The tag value.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions