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.104.0 (build e79254c)",
date="2024-11-22T02:24:11.446Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forVPCPeeringConnectionOptions
static final class
An 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
-