Route53GlobalResolver / Client / associate_hosted_zone

associate_hosted_zone

Route53GlobalResolver.Client.associate_hosted_zone(**kwargs)

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.

Warning

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.

See also: AWS API Documentation

Request Syntax

response = client.associate_hosted_zone(
    hostedZoneId='string',
    resourceArn='string',
    name='string'
)
Parameters:
  • hostedZoneId (string) –

    [REQUIRED]

    The ID of the Route 53 private hosted zone to associate with the Route 53 Global Resolver resource.

  • resourceArn (string) –

    [REQUIRED]

    An Amazon Resource Name (ARN) of the Route 53 Global Resolver the private hosted zone will be associated to.

  • name (string) –

    [REQUIRED]

    Name for the private hosted zone association.

Return type:

dict

Returns:

Response Syntax

{
    'id': 'string',
    'resourceArn': 'string',
    'hostedZoneId': 'string',
    'hostedZoneName': 'string',
    'name': 'string',
    'createdAt': datetime(2015, 1, 1),
    'updatedAt': datetime(2015, 1, 1),
    'status': 'CREATING'|'OPERATIONAL'|'DELETING'
}

Response Structure

  • (dict) –

    • id (string) –

      ID of the association.

    • resourceArn (string) –

      An Amazon Resource Name (ARN) of the Route 53 Global Resolver the private hosted zone is associated to.

    • hostedZoneId (string) –

      ID of the private hosted zone.

    • hostedZoneName (string) –

      Name of the hosted zone (also the domain associated with the hosted zone).

    • name (string) –

      Name for the private hosted zone association.

    • createdAt (datetime) –

      The date and time the private hosted zone association was created.

    • updatedAt (datetime) –

      The date and time the private hosted zone association was modified.

    • status (string) –

      Aggregate status for all the Amazon Web Services Regions in which the Route 53 Global Resolver exists.

Exceptions