Lists tags for up to 10 health checks or hosted zones.
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_resources(
ResourceType='healthcheck'|'hostedzone',
ResourceIds=[
'string',
]
)
[REQUIRED]
The type of the resources.
healthcheck
.hostedzone
.[REQUIRED]
A complex type that contains the ResourceId element for each resource for which you want to get a list of tags.
dict
Response Syntax
{
'ResourceTagSets': [
{
'ResourceType': 'healthcheck'|'hostedzone',
'ResourceId': 'string',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
},
]
}
Response Structure
(dict) --
A complex type containing tags for the specified resources.
ResourceTagSets (list) --
A list of ResourceTagSet
s containing tags associated with the specified resources.
(dict) --
A complex type containing a resource and its associated tags.
ResourceType (string) --
The type of the resource.
healthcheck
.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 Key
depends on the operation that you want to perform:
Key
is the name that you want to give the new tag.Key
is the name of the tag that you want to change the Value
for.Key
is the name of the tag you want to remove.Name
tag. 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 Value
depends on the operation that you want to perform:
Value
is the value that you want to give the new tag.Value
is the new value that you want to assign the tag.Exceptions
Route53.Client.exceptions.InvalidInput
Route53.Client.exceptions.NoSuchHealthCheck
Route53.Client.exceptions.NoSuchHostedZone
Route53.Client.exceptions.PriorRequestNotComplete
Route53.Client.exceptions.ThrottlingException