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.

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 AWS Regions in which the Route 53 Global Resolver exists.

Exceptions

  • Route53GlobalResolver.Client.exceptions.InternalServerException

  • Route53GlobalResolver.Client.exceptions.ValidationException

  • Route53GlobalResolver.Client.exceptions.ConflictException

  • Route53GlobalResolver.Client.exceptions.ServiceQuotaExceededException

  • Route53GlobalResolver.Client.exceptions.AccessDeniedException

  • Route53GlobalResolver.Client.exceptions.ThrottlingException

  • Route53GlobalResolver.Client.exceptions.ResourceNotFoundException