OpsWorks / Client / list_tags

list_tags#

OpsWorks.Client.list_tags(**kwargs)#

Returns a list of tags that are applied to the specified stack or layer.

See also: AWS API Documentation

Request Syntax

response = client.list_tags(
    ResourceArn='string',
    MaxResults=123,
    NextToken='string'
)
Parameters:
  • ResourceArn (string) –

    [REQUIRED]

    The stack or layer’s Amazon Resource Number (ARN).

  • MaxResults (integer) – Do not use. A validation exception occurs if you add a MaxResults parameter to a ListTagsRequest call.

  • NextToken (string) – Do not use. A validation exception occurs if you add a NextToken parameter to a ListTagsRequest call.

Return type:

dict

Returns:

Response Syntax

{
    'Tags': {
        'string': 'string'
    },
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    Contains the response to a ListTags request.

    • Tags (dict) –

      A set of key-value pairs that contain tag keys and tag values that are attached to a stack or layer.

      • (string) –

        • (string) –

    • NextToken (string) –

      If a paginated request does not return all of the remaining results, this parameter is set to a token that you can assign to the request object’s NextToken parameter to get the next set of results. If the previous paginated request returned all of the remaining results, this parameter is set to null.

Exceptions

  • OpsWorks.Client.exceptions.ValidationException

  • OpsWorks.Client.exceptions.ResourceNotFoundException