VPCProperty Struct
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, andVPCRegion.
| Source | |
|---|---|
| Type last changed |
Example
ts
// 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',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_route53 as route53
v_pc_property = route53.CfnHostedZone.VPCProperty(
vpc_id="vpcId",
vpc_region="vpcRegion"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.route53.*;
VPCProperty vPCProperty = VPCProperty.builder()
.vpcId("vpcId")
.vpcRegion("vpcRegion")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Route53;
var vPCProperty = new VPCProperty {
VpcId = "vpcId",
VpcRegion = "vpcRegion"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
vPCProperty := &VPCProperty{
VpcId: jsii.String("vpcId"),
VpcRegion: jsii.String("vpcRegion"),
}
Properties
*Private hosted zones only:* The ID of an Amazon VPC.
For public hosted zones, omit
VPCs,VPCId, andVPCRegion.
*Private hosted zones only:* The region that an Amazon VPC was created in.
For public hosted zones, omit
VPCs,VPCId, andVPCRegion.