Inspector2 / Client / list_tags_for_resource
list_tags_for_resource#
- Inspector2.Client.list_tags_for_resource(**kwargs)#
Lists all tags attached to a given resource.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource( resourceArn='string' )
- Parameters:
resourceArn (string) –
[REQUIRED]
The Amazon resource number (ARN) of the resource to list tags of.
- Return type:
dict
- Returns:
Response Syntax
{ 'tags': { 'string': 'string' } }
Response Structure
(dict) –
tags (dict) –
The tags associated with the resource.
(string) –
(string) –
Exceptions
Inspector2.Client.exceptions.ValidationException
Inspector2.Client.exceptions.ResourceNotFoundException
Inspector2.Client.exceptions.ThrottlingException
Inspector2.Client.exceptions.InternalServerException