Skip to main content

hosted_zone_associations

Creates, updates, deletes, gets or lists a hosted_zone_associations resource.

Overview

Namehosted_zone_associations
TypeResource
Idaws.route53globalresolver.hosted_zone_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringID of the private hosted zone association. (pattern: <code>[-.a-zA-Z0-9]+</code>)
namestringName of the private hosted zone association. (pattern: <code>(?!^[0-9]+$)([a-zA-Z0-9-_/' ']+)</code>)
created_atstring (date-time)The time and date the private hosted zone association was created.
hosted_zone_idstringID of the hosted zone associated to the DNS view.
hosted_zone_namestringName of the domain associated with the private hosted zone.
resource_arnstringAmazon Resource Name (ARN) of the DNS view the private hosted zone is associated to. (pattern: <code>arn:[-.a-z0-9]{1,63}:[-.a-z0-9]{1,63}:[-.a-z0-9]{0,63}:[-.a-z0-9]{0,63}:[^/].{0,1023}</code>)
statusstringThe operational status of the private hosted zone association. (CREATING, OPERATIONAL, DELETING)
updated_atstring (date-time)The time and date the private hosted zone association was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_hosted_zone_associationselecthosted_zone_association_id, regionRetrieves information about a hosted zone association. 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.
list_hosted_zone_associationsselectregionmax_results, next_token, resourceArnLists hosted zone associations with pagination support. Specify a DNS view through the resourceArn parameter to list the hosted zone associations for that DNS view, or omit it to list all hosted zone associations in your Amazon Web Services account. 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_hosted_zone_associationupdatehosted_zone_association_id, regionUpdates the configuration of a hosted zone association. 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.

NameDatatypeDescription
hosted_zone_association_idstringThe ID of the private hosted zone association.
regionstringAWS region (default: us-east-1)
max_resultsintegerThe maximum number of results to retrieve in a single call.
next_tokenstringA pagination token used for large sets of results that can't be returned in a single response.
resourceArnstringThe Amazon Resource Name (ARN) of the DNS view to list hosted zone associations for. This parameter is optional; if you omit it, all hosted zone associations in your Amazon Web Services account are returned.

SELECT examples

Retrieves information about a hosted zone association. 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.

SELECT
id,
name,
created_at,
hosted_zone_id,
hosted_zone_name,
resource_arn,
status,
updated_at
FROM aws.route53globalresolver.hosted_zone_associations
WHERE hosted_zone_association_id = '{{ hosted_zone_association_id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Updates the configuration of a hosted zone association. 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_zone_associations
SET
name = '{{ name }}'
WHERE
hosted_zone_association_id = '{{ hosted_zone_association_id }}' --required
AND region = '{{ region }}' --required
RETURNING
id,
name,
created_at,
hosted_zone_id,
hosted_zone_name,
resource_arn,
status,
updated_at;