kendra / Client / list_tags_for_resource
list_tags_for_resource#
- kendra.Client.list_tags_for_resource(**kwargs)#
Gets a list of tags associated with a resource. Indexes, FAQs, data sources, and other resources can have tags associated with them.
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 index, FAQ, data source, or other resource to get a list of tags for. For example, the ARN of an index is constructed as follows: arn:aws:kendra:your-region:your-account-id:index/index-id For information on how to construct an ARN for all types of Amazon Kendra resources, see Resource types.
- Return type:
dict
- Returns:
Response Syntax
{ 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] }
Response Structure
(dict) –
Tags (list) –
A list of tags associated with the index, FAQ, data source, or other resource.
(dict) –
A key-value pair that identifies or categorizes an index, FAQ, data source, or other resource. TA tag key and value can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.
Key (string) –
The key for the tag. Keys are not case sensitive and must be unique for the index, FAQ, data source, or other resource.
Value (string) –
The value associated with the tag. The value may be an empty string but it can’t be null.
Exceptions