aws-cdk-lib.aws_route53.CfnHostedZone.VPCProperty

interface VPCProperty

LanguageType name
.NETAmazon.CDK.AWS.Route53.CfnHostedZone.VPCProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsroute53#CfnHostedZone_VPCProperty
Javasoftware.amazon.awscdk.services.route53.CfnHostedZone.VPCProperty
Pythonaws_cdk.aws_route53.CfnHostedZone.VPCProperty
TypeScript aws-cdk-lib » aws_route53 » CfnHostedZone » VPCProperty

Private hosted zones only: A complex type that contains information about an Amazon VPC.

Route 53 Resolver uses the records in the private hosted zone to route traffic in that VPC.

For public hosted zones, omit VPCs , VPCId , and VPCRegion .

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_route53 as route53 } from 'aws-cdk-lib';
const vPCProperty: route53.CfnHostedZone.VPCProperty = {
  vpcId: 'vpcId',
  vpcRegion: 'vpcRegion',
};

Properties

NameTypeDescription
vpcIdstringPrivate hosted zones only: The ID of an Amazon VPC.
vpcRegionstringPrivate hosted zones only: The region that an Amazon VPC was created in.

vpcId

Type: string

Private hosted zones only: The ID of an Amazon VPC.

For public hosted zones, omit VPCs , VPCId , and VPCRegion .


vpcRegion

Type: string

Private hosted zones only: The region that an Amazon VPC was created in.

For public hosted zones, omit VPCs , VPCId , and VPCRegion .