AppMesh / Client / list_tags_for_resource
list_tags_for_resource¶
- AppMesh.Client.list_tags_for_resource(**kwargs)¶
List the tags for an App Mesh resource.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource( limit=123, nextToken='string', resourceArn='string' )
- Parameters:
limit (integer) – The maximum number of tag results returned by
ListTagsForResourcein paginated output. When this parameter is used,ListTagsForResourcereturns onlylimitresults in a single page along with anextTokenresponse element. You can see the remaining results of the initial request by sending anotherListTagsForResourcerequest with the returnednextTokenvalue. This value can be between 1 and 100. If you don’t use this parameter,ListTagsForResourcereturns up to 100 results and anextTokenvalue if applicable.nextToken (string) – The
nextTokenvalue returned from a previous paginatedListTagsForResourcerequest wherelimitwas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue.resourceArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) that identifies the resource to list the tags for.
- Return type:
dict
- Returns:
Response Syntax
{ 'nextToken': 'string', 'tags': [ { 'key': 'string', 'value': 'string' }, ] }
Response Structure
(dict) –
nextToken (string) –
The
nextTokenvalue to include in a futureListTagsForResourcerequest. When the results of aListTagsForResourcerequest exceedlimit, you can use this value to retrieve the next page of results. This value isnullwhen there are no more results to return.tags (list) –
The tags for the resource.
(dict) –
Optional metadata that you apply to a resource to assist with categorization and organization. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
key (string) –
One part of a key-value pair that make up a tag. A
keyis a general label that acts like a category for more specific tag values.value (string) –
The optional part of a key-value pair that make up a tag. A
valueacts as a descriptor within a tag category (key).
Exceptions
AppMesh.Client.exceptions.NotFoundExceptionAppMesh.Client.exceptions.BadRequestExceptionAppMesh.Client.exceptions.TooManyRequestsExceptionAppMesh.Client.exceptions.ForbiddenExceptionAppMesh.Client.exceptions.ServiceUnavailableExceptionAppMesh.Client.exceptions.InternalServerErrorException