CodeArtifact / Client / list_tags_for_resource
list_tags_for_resource#
- CodeArtifact.Client.list_tags_for_resource(**kwargs)#
Gets information about Amazon Web Services tags for a specified Amazon Resource Name (ARN) in CodeArtifact.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource( resourceArn='string' )
- Parameters:
resourceArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the resource to get tags for.
- Return type:
dict
- Returns:
Response Syntax
{ 'tags': [ { 'key': 'string', 'value': 'string' }, ] }
Response Structure
(dict) –
tags (list) –
A list of tag key and value pairs associated with the specified resource.
(dict) –
A tag is a key-value pair that can be used to manage, search for, or filter resources in CodeArtifact.
key (string) –
The tag key.
value (string) –
The tag value.
Exceptions
CodeArtifact.Client.exceptions.AccessDeniedException
CodeArtifact.Client.exceptions.ResourceNotFoundException
CodeArtifact.Client.exceptions.ThrottlingException
CodeArtifact.Client.exceptions.ValidationException