Route53Resolver / Client / list_tags_for_resource
list_tags_for_resource¶
- Route53Resolver.Client.list_tags_for_resource(**kwargs)¶
Lists the tags that you associated with the specified resource.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource( ResourceArn='string', MaxResults=123, NextToken='string' )
- Parameters:
ResourceArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) for the resource that you want to list tags for.
MaxResults (integer) – The maximum number of tags that you want to return in the response to a
ListTagsForResourcerequest. If you don’t specify a value forMaxResults, Resolver returns up to 100 tags.NextToken (string) –
For the first
ListTagsForResourcerequest, omit this value.If you have more than
MaxResultstags, you can submit anotherListTagsForResourcerequest to get the next group of tags for the resource. In the next request, specify the value ofNextTokenfrom the previous response.
- Return type:
dict
- Returns:
Response Syntax
{ 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'NextToken': 'string' }
Response Structure
(dict) –
Tags (list) –
The tags that are associated with the resource that you specified in the
ListTagsForResourcerequest.(dict) –
One tag that you want to add to the specified resource. A tag consists of a
Key(a name for the tag) and aValue.Key (string) –
The name for the tag. For example, if you want to associate Resolver resources with the account IDs of your customers for billing purposes, the value of
Keymight beaccount-id.Value (string) –
The value for the tag. For example, if
Keyisaccount-id, thenValuemight be the ID of the customer account that you’re creating the resource for.
NextToken (string) –
If more than
MaxResultstags match the specified criteria, you can submit anotherListTagsForResourcerequest to get the next group of results. In the next request, specify the value ofNextTokenfrom the previous response.
Exceptions
Route53Resolver.Client.exceptions.ResourceNotFoundExceptionRoute53Resolver.Client.exceptions.InvalidParameterExceptionRoute53Resolver.Client.exceptions.InvalidNextTokenExceptionRoute53Resolver.Client.exceptions.InvalidRequestExceptionRoute53Resolver.Client.exceptions.InternalServiceErrorExceptionRoute53Resolver.Client.exceptions.ThrottlingException