SFN / Client / list_tags_for_resource

list_tags_for_resource#

SFN.Client.list_tags_for_resource(**kwargs)#

List tags for a given resource.

Tags may only contain Unicode letters, digits, white space, or these symbols: _ . : / = + - @.

See also: AWS API Documentation

Request Syntax

response = client.list_tags_for_resource(
    resourceArn='string'
)
Parameters:

resourceArn (string) –

[REQUIRED]

The Amazon Resource Name (ARN) for the Step Functions state machine or activity.

Return type:

dict

Returns:

Response Syntax

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

Response Structure

  • (dict) –

    • tags (list) –

      An array of tags associated with the resource.

      • (dict) –

        Tags are key-value pairs that can be associated with Step Functions state machines and activities.

        An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide, and Controlling Access Using IAM Tags.

        Tags may only contain Unicode letters, digits, white space, or these symbols: _ . : / = + - @.

        • key (string) –

          The key of a tag.

        • value (string) –

          The value of a tag.

Exceptions