aws-cdk-lib.aws_route53.HostedZoneAttributes

interface HostedZoneAttributes

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

Reference to a hosted zone.

Example

declare const app: App;
const stack = new Stack(app, 'Stack', {
  crossRegionReferences: true,
  env: {
    region: 'us-east-2',
  },
});

new patterns.HttpsRedirect(this, 'Redirect', {
  recordNames: ['foo.example.com'],
  targetDomain: 'bar.example.com',
  zone: route53.HostedZone.fromHostedZoneAttributes(this, 'HostedZone', {
    hostedZoneId: 'ID',
    zoneName: 'example.com',
  }),
});

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.