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
MaxResultsparameter to aListTagsRequestcall.NextToken (string) – Do not use. A validation exception occurs if you add a
NextTokenparameter to aListTagsRequestcall.
- Return type:
dict
- Returns:
Response Syntax
{ 'Tags': { 'string': 'string' }, 'NextToken': 'string' }
Response Structure
(dict) –
Contains the response to a
ListTagsrequest.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
NextTokenparameter to get the next set of results. If the previous paginated request returned all of the remaining results, this parameter is set tonull.
Exceptions