FraudDetector / Client / list_tags_for_resource

list_tags_for_resource#

FraudDetector.Client.list_tags_for_resource(**kwargs)#

Lists all tags associated with the resource. This is a paginated API. To get the next page results, provide the pagination token from the response as part of your request. A null pagination token fetches the records from the beginning.

See also: AWS API Documentation

Request Syntax

response = client.list_tags_for_resource(
    resourceARN='string',
    nextToken='string',
    maxResults=123
)
Parameters:
  • resourceARN (string) –

    [REQUIRED]

    The ARN that specifies the resource whose tags you want to list.

  • nextToken (string) – The next token from the previous results.

  • maxResults (integer) – The maximum number of objects to return for the request.

Return type:

dict

Returns:

Response Syntax

{
    'tags': [
        {
            'key': 'string',
            'value': 'string'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • tags (list) –

      A collection of key and value pairs.

      • (dict) –

        A key and value pair.

        • key (string) –

          A tag key.

        • value (string) –

          A value assigned to a tag key.

    • nextToken (string) –

      The next token for subsequent requests.

Exceptions

  • FraudDetector.Client.exceptions.ValidationException

  • FraudDetector.Client.exceptions.ResourceNotFoundException

  • FraudDetector.Client.exceptions.ThrottlingException

  • FraudDetector.Client.exceptions.AccessDeniedException