Interface CfnHostedZone.VPCProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnHostedZone.VPCProperty.Jsii$Proxy
Enclosing class:
CfnHostedZone

@Stability(Stable) public static interface CfnHostedZone.VPCProperty extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.route53.*;
 VPCProperty vPCProperty = VPCProperty.builder()
         .vpcId("vpcId")
         .vpcRegion("vpcRegion")
         .build();
 
  • Method Details

    • getVpcId

      @Stability(Stable) @NotNull String getVpcId()
      Private hosted zones only: The ID of an Amazon VPC.

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

    • getVpcRegion

      @Stability(Stable) @NotNull String getVpcRegion()
      Private hosted zones only: The region that an Amazon VPC was created in.

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

    • builder

      @Stability(Stable) static CfnHostedZone.VPCProperty.Builder builder()
      Returns:
      a CfnHostedZone.VPCProperty.Builder of CfnHostedZone.VPCProperty