hosted_zones
Creates, updates, deletes, gets or lists a hosted_zones resource.
Overview
| Name | hosted_zones |
| Type | Resource |
| Id | aws.route53globalresolver.hosted_zones |
Fields
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
associate_hosted_zone | update | hosted_zone_id, region, resourceArn, name | Associates a Route 53 private hosted zone with a Route 53 Global Resolver resource. This allows the resolver to resolve DNS queries for the private hosted zone from anywhere globally. Route 53 Global Resolver is a global service that supports resolvers in multiple Amazon Web Services Regions but you must specify the US East (Ohio) Region to create, update, or otherwise work with Route 53 Global Resolver resources. That is, for example, specify --region us-east-2 on Amazon Web Services CLI commands. | |
disassociate_hosted_zone | update | hosted_zone_id, resource_arn, region | Disassociates a Route 53 private hosted zone from a Route 53 Global Resolver resource. Route 53 Global Resolver is a global service that supports resolvers in multiple Amazon Web Services Regions but you must specify the US East (Ohio) Region to create, update, or otherwise work with Route 53 Global Resolver resources. That is, for example, specify --region us-east-2 on Amazon Web Services CLI commands. |
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 |
|---|---|---|
hosted_zone_id | string | The ID of the Route 53 private hosted zone to disassociate. |
region | string | AWS region (default: us-east-1) |
resource_arn | string | The Amazon Resource Name (ARN) of the Route 53 Global Resolver resource to disassociate the hosted zone from. |
UPDATE examples
- associate_hosted_zone
- disassociate_hosted_zone
Associates a Route 53 private hosted zone with a Route 53 Global Resolver resource. This allows the resolver to resolve DNS queries for the private hosted zone from anywhere globally. Route 53 Global Resolver is a global service that supports resolvers in multiple Amazon Web Services Regions but you must specify the US East (Ohio) Region to create, update, or otherwise work with Route 53 Global Resolver resources. That is, for example, specify --region us-east-2 on Amazon Web Services CLI commands.
UPDATE aws.route53globalresolver.hosted_zones
SET
resourceArn = '{{ resourceArn }}',
name = '{{ name }}'
WHERE
hosted_zone_id = '{{ hosted_zone_id }}' --required
AND region = '{{ region }}' --required
AND resourceArn = '{{ resourceArn }}' --required
AND name = '{{ name }}' --required
RETURNING
id,
name,
created_at,
hosted_zone_id,
hosted_zone_name,
resource_arn,
status,
updated_at;
Disassociates a Route 53 private hosted zone from a Route 53 Global Resolver resource. Route 53 Global Resolver is a global service that supports resolvers in multiple Amazon Web Services Regions but you must specify the US East (Ohio) Region to create, update, or otherwise work with Route 53 Global Resolver resources. That is, for example, specify --region us-east-2 on Amazon Web Services CLI commands.
UPDATE aws.route53globalresolver.hosted_zones
SET
-- No updatable properties
WHERE
hosted_zone_id = '{{ hosted_zone_id }}' --required
AND resource_arn = '{{ resource_arn }}' --required
AND region = '{{ region }}' --required
RETURNING
id,
name,
created_at,
hosted_zone_id,
hosted_zone_name,
resource_arn,
status,
updated_at;