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'
)
[REQUIRED]
The stack or layer's Amazon Resource Number (ARN).
MaxResults
parameter to a ListTagsRequest
call.NextToken
parameter to a ListTagsRequest
call.dict
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.
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