tags
Creates, updates, deletes, gets or lists a tags resource.
Overview
| Name | tags |
| Type | Resource |
| Id | aws.route53.tags |
Fields
The following fields are returned by SELECT queries:
- list_tags_for_resource
- list_tags_for_resources
| Name | Datatype | Description |
|---|---|---|
resource_id | string | The ID for the specified resource. |
resource_type | string | The type of the resource. The resource type for health checks is healthcheck. The resource type for hosted zones is hostedzone. |
tags | string | The tags associated with the specified resource. |
| Name | Datatype | Description |
|---|---|---|
resource_id | string | The ID for the specified resource. |
resource_type | string | The type of the resource. The resource type for health checks is healthcheck. The resource type for hosted zones is hostedzone. |
tags | string | The tags associated with the specified resource. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_tags_for_resource | select | resource_type, resource_id, region | 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. | |
list_tags_for_resources | select | resource_type, region | 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. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
resource_id | string | The ID of the resource for which you want to retrieve tags. |
resource_type | string | The type of the resources. The resource type for health checks is healthcheck. The resource type for hosted zones is hostedzone. |
SELECT examples
- list_tags_for_resource
- list_tags_for_resources
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.
SELECT
resource_id,
resource_type,
tags
FROM aws.route53.tags
WHERE resource_type = '{{ resource_type }}' -- required
AND resource_id = '{{ resource_id }}' -- required
AND region = '{{ region }}' -- required
;
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.
SELECT
resource_id,
resource_type,
tags
FROM aws.route53.tags
WHERE resource_type = '{{ resource_type }}' -- required
AND region = '{{ region }}' -- required
;