Interface VPCPeeringConnectionOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
VPCPeeringConnectionProps
- All Known Implementing Classes:
VPCPeeringConnectionOptions.Jsii$Proxy,VPCPeeringConnectionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-12T17:54:26.778Z")
@Stability(Experimental)
public interface VPCPeeringConnectionOptions
extends software.amazon.jsii.JsiiSerializable
(experimental) Options to define a VPC peering connection.
Example:
Stack stack = new Stack();
VpcV2 acceptorVpc = VpcV2.Builder.create(this, "VpcA")
.primaryAddressBlock(IpAddresses.ipv4("10.0.0.0/16"))
.build();
VpcV2 requestorVpc = VpcV2.Builder.create(this, "VpcB")
.primaryAddressBlock(IpAddresses.ipv4("10.1.0.0/16"))
.build();
VPCPeeringConnection peeringConnection = requestorVpc.createPeeringConnection("peeringConnection", VPCPeeringConnectionOptions.builder()
.acceptorVpc(acceptorVpc)
.build());
RouteTable routeTable = RouteTable.Builder.create(this, "RouteTable")
.vpc(requestorVpc)
.build();
routeTable.addRoute("vpcPeeringRoute", "10.0.0.0/16", Map.of("gateway", peeringConnection));
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forVPCPeeringConnectionOptionsstatic final classAn implementation forVPCPeeringConnectionOptions -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAcceptorVpc
(experimental) The VPC that is accepting the peering connection. -
getPeerRoleArn
(experimental) The role arn created in the acceptor account.Default: - no peerRoleArn needed if not cross account connection
-
getVpcPeeringConnectionName
(experimental) The resource name of the peering connection.Default: - peering connection provisioned without any name
-
builder
-