Route53 / Client / list_tags_for_resource
list_tags_for_resource¶
- Route53.Client.list_tags_for_resource(**kwargs)¶
Lists tags for one health check or hosted zone.
For information about using tags for cost allocation, see Using Cost Allocation Tags in the Billing and Cost Management User Guide.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource( ResourceType='healthcheck'|'hostedzone', ResourceId='string' )
- Parameters:
ResourceType (string) –
[REQUIRED]
The type of the resource.
The resource type for health checks is
healthcheck.The resource type for hosted zones is
hostedzone.
ResourceId (string) –
[REQUIRED]
The ID of the resource for which you want to retrieve tags.
- Return type:
dict
- Returns:
Response Syntax
{ 'ResourceTagSet': { 'ResourceType': 'healthcheck'|'hostedzone', 'ResourceId': 'string', 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] } }
Response Structure
(dict) –
A complex type that contains information about the health checks or hosted zones for which you want to list tags.
ResourceTagSet (dict) –
A
ResourceTagSetcontaining tags associated with the specified resource.ResourceType (string) –
The type of the resource.
The resource type for health checks is
healthcheck.The resource type for hosted zones is
hostedzone.
ResourceId (string) –
The ID for the specified resource.
Tags (list) –
The tags associated with the specified resource.
(dict) –
A complex type that contains information about a tag that you want to add or edit for the specified health check or hosted zone.
Key (string) –
The value of
Keydepends on the operation that you want to perform:Add a tag to a health check or hosted zone:
Keyis the name that you want to give the new tag.Edit a tag:
Keyis the name of the tag that you want to change theValuefor.Delete a key:
Keyis the name of the tag you want to remove.Give a name to a health check: Edit the default
Nametag. In the Amazon Route 53 console, the list of your health checks includes a Name column that lets you see the name that you’ve given to each health check.
Value (string) –
The value of
Valuedepends on the operation that you want to perform:Add a tag to a health check or hosted zone:
Valueis the value that you want to give the new tag.Edit a tag:
Valueis the new value that you want to assign the tag.
Exceptions
Route53.Client.exceptions.InvalidInputRoute53.Client.exceptions.NoSuchHealthCheckRoute53.Client.exceptions.NoSuchHostedZoneRoute53.Client.exceptions.PriorRequestNotCompleteRoute53.Client.exceptions.ThrottlingException