aws-cdk-lib.aws_route53.PublicHostedZoneAttributes

interface PublicHostedZoneAttributes

LanguageType name
.NETAmazon.CDK.AWS.Route53.PublicHostedZoneAttributes
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsroute53#PublicHostedZoneAttributes
Javasoftware.amazon.awscdk.services.route53.PublicHostedZoneAttributes
Pythonaws_cdk.aws_route53.PublicHostedZoneAttributes
TypeScript (source)aws-cdk-lib » aws_route53 » PublicHostedZoneAttributes

Reference to a public hosted zone.

Example

const zoneFromAttributes = route53.PublicHostedZone.fromPublicHostedZoneAttributes(this, 'MyZone', {
  zoneName: 'example.com',
  hostedZoneId: 'ZOJJZC49E0EPZ',
});

// Does not know zoneName
const zoneFromId = route53.PublicHostedZone.fromPublicHostedZoneId(this, 'MyZone', 'ZOJJZC49E0EPZ');

Properties

NameTypeDescription
hostedZoneIdstringIdentifier of the hosted zone.
zoneNamestringName of the hosted zone.

hostedZoneId

Type: string

Identifier of the hosted zone.


zoneName

Type: string

Name of the hosted zone.