EKS / Client / list_tags_for_resource
list_tags_for_resource#
- EKS.Client.list_tags_for_resource(**kwargs)#
List the tags for an Amazon EKS 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 tags for.
- Return type:
dict
- Returns:
Response Syntax
{ 'tags': { 'string': 'string' } }
Response Structure
(dict) –
tags (dict) –
The tags for the resource.
(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.(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
EKS.Client.exceptions.BadRequestException
EKS.Client.exceptions.NotFoundException
Examples
This example lists all of the tags for the beta cluster.
response = client.list_tags_for_resource( resourceArn='arn:aws:eks:us-west-2:012345678910:cluster/beta', ) print(response)
Expected Output:
{ 'tags': { 'aws:tag:domain': 'beta', }, 'ResponseMetadata': { '...': '...', }, }