PrivateHostedZoneAttributes

class aws_cdk.aws_route53.PrivateHostedZoneAttributes(*, hosted_zone_id, zone_name)

Bases: HostedZoneAttributes

Reference to a private hosted zone.

Parameters:
  • hosted_zone_id (str) – Identifier of the hosted zone.

  • zone_name (str) – Name of the hosted zone.

ExampleMetadata:

infused

Example:

private_zone_from_attributes = route53.PrivateHostedZone.from_private_hosted_zone_attributes(self, "MyPrivateZone",
    zone_name="example.local",
    hosted_zone_id="ZOJJZC49E0EPZ"
)

# Does not know zoneName
private_zone_from_id = route53.PrivateHostedZone.from_private_hosted_zone_id(self, "MyPrivateZone", "ZOJJZC49E0EPZ")

Attributes

hosted_zone_id

Identifier of the hosted zone.

zone_name

Name of the hosted zone.