interface PublicHostedZoneAttributes
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Route53.PublicHostedZoneAttributes |
![]() | software.amazon.awscdk.services.route53.PublicHostedZoneAttributes |
![]() | aws_cdk.aws_route53.PublicHostedZoneAttributes |
![]() | @aws-cdk/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.