Skip to content
v2.275.0

PrivateHostedZoneAttributes Struct ​

Reference to a private hosted zone.

Example ​

ts
const privateZoneFromAttributes = route53.PrivateHostedZone.fromPrivateHostedZoneAttributes(this, 'MyPrivateZone', {
  zoneName: 'example.local',
  hostedZoneId: 'ZOJJZC49E0EPZ',
});

// Does not know zoneName
const privateZoneFromId = route53.PrivateHostedZone.fromPrivateHostedZoneId(this, 'MyPrivateZone', 'ZOJJZC49E0EPZ');

Properties ​

hostedZoneIdstringhosted_zone_idstrhostedZoneIdStringHostedZoneIdstringHostedZoneId*stringrequired#
Identifier of the hosted zone.
zoneNamestringzone_namestrzoneNameStringZoneNamestringZoneName*stringrequired#
Name of the hosted zone.