interface PublicHostedZoneAttributes
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Route53.PublicHostedZoneAttributes |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsroute53#PublicHostedZoneAttributes |
Java | software.amazon.awscdk.services.route53.PublicHostedZoneAttributes |
Python | aws_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
| Name | Type | Description |
|---|---|---|
| hosted | string | Identifier of the hosted zone. |
| zone | string | Name of the hosted zone. |
hostedZoneId
Type:
string
Identifier of the hosted zone.
zoneName
Type:
string
Name of the hosted zone.

.NET
Go
Java
Python
TypeScript (