HostedZoneProps

class aws_cdk.aws_route53.HostedZoneProps(*, zone_name, comment=None, query_logs_log_group_arn=None, vpcs=None)

Bases: CommonHostedZoneProps

Properties of a new hosted zone.

Parameters
  • zone_name (str) – The name of the domain. For resource record types that include a domain name, specify a fully qualified domain name.

  • comment (Optional[str]) – Any comments that you want to include about the hosted zone. Default: none

  • query_logs_log_group_arn (Optional[str]) – The Amazon Resource Name (ARN) for the log group that you want Amazon Route 53 to send query logs to. Default: disabled

  • vpcs (Optional[Sequence[IVpc]]) – A VPC that you want to associate with this hosted zone. When you specify this property, a private hosted zone will be created. You can associate additional VPCs to this private zone using addVpc(vpc). Default: public (no VPCs associated)

ExampleMetadata

infused

Example:

hosted_zone = route53.HostedZone(self, "MyHostedZone", zone_name="example.org")
metric = cloudwatch.Metric(
    namespace="AWS/Route53",
    metric_name="DNSQueries",
    dimensions_map={
        "HostedZoneId": hosted_zone.hosted_zone_id
    }
)

Attributes

comment

Any comments that you want to include about the hosted zone.

Default

none

Return type

Optional[str]

query_logs_log_group_arn

The Amazon Resource Name (ARN) for the log group that you want Amazon Route 53 to send query logs to.

Default

disabled

Return type

Optional[str]

vpcs

A VPC that you want to associate with this hosted zone.

When you specify this property, a private hosted zone will be created.

You can associate additional VPCs to this private zone using addVpc(vpc).

Default

public (no VPCs associated)

Return type

Optional[List[IVpc]]

zone_name

The name of the domain.

For resource record types that include a domain name, specify a fully qualified domain name.

Return type

str