CodeStarconnections / Client / list_tags_for_resource

list_tags_for_resource#

CodeStarconnections.Client.list_tags_for_resource(**kwargs)#

Gets the set of key-value pairs (metadata) that are used to manage the resource.

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 for which you want to get information about tags, if any.

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 is used to manage the resource.

        This tag is available for use by Amazon Web Services services that support tags.

        • Key (string) –

          The tag’s key.

        • Value (string) –

          The tag’s value.

Exceptions

  • CodeStarconnections.Client.exceptions.ResourceNotFoundException