list_tags_for_resource

ECRPublic.Client.list_tags_for_resource(**kwargs)

List the tags for an Amazon ECR Public resource.

See also: AWS API Documentation

Request Syntax

response = client.list_tags_for_resource(
    resourceArn='string'
)
Parameters
resourceArn (string) --

[REQUIRED]

The Amazon Resource Name (ARN) that identifies the resource to list the tags for. Currently, the supported resource is an Amazon ECR Public repository.

Return type
dict
Returns
Response Syntax
{
    'tags': [
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
}

Response Structure

  • (dict) --
    • tags (list) --

      The tags for the resource.

      • (dict) --

        The metadata that you apply to a resource to help you categorize and organize them. Each tag consists of a key and an optional value. You define both. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

        • Key (string) --

          One part of a key-value pair that make up a tag. A key is a general label that acts like a category for more specific tag values.

        • Value (string) --

          The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).

Exceptions

  • ECRPublic.Client.exceptions.InvalidParameterException
  • ECRPublic.Client.exceptions.RepositoryNotFoundException
  • ECRPublic.Client.exceptions.UnsupportedCommandException
  • ECRPublic.Client.exceptions.ServerException