Interface IVpc
- All Superinterfaces:
software.constructs.IConstruct
,software.constructs.IDependable
,IResource
,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IVpc.Jsii$Default
,IVpcV2
,IVpcV2.Jsii$Default
- All Known Implementing Classes:
IVpc.Jsii$Proxy
,IVpcV2.Jsii$Proxy
,Vpc
,VpcV2
,VpcV2Base
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-17T21:37:30.060Z")
@Stability(Stable)
public interface IVpc
extends software.amazon.jsii.JsiiSerializable, IResource
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Internal default implementation forIVpc
.static final class
A proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionaddClientVpnEndpoint
(String id, ClientVpnEndpointOptions options) Adds a new client VPN endpoint to this VPC.addFlowLog
(String id) Adds a new Flow Log to this VPC.addFlowLog
(String id, FlowLogOptions options) Adds a new Flow Log to this VPC.addGatewayEndpoint
(String id, GatewayVpcEndpointOptions options) Adds a new gateway endpoint to this VPC.addInterfaceEndpoint
(String id, InterfaceVpcEndpointOptions options) Adds a new interface endpoint to this VPC.addVpnConnection
(String id, VpnConnectionOptions options) Adds a new VPN connection to this VPC.void
enableVpnGateway
(EnableVpnGatewayOptions options) Adds a VPN Gateway to this VPC.AZs for this VPC.software.constructs.IDependable
Dependable that can be depended upon to force internet connectivity established on the VPC.List of isolated subnets in this VPC.List of private subnets in this VPC.List of public subnets in this VPC.ARN for this VPC.CIDR range for this VPC.getVpcId()
Identifier for this VPC.default String
Identifier for the VPN gateway.Return information on the subnets appropriate for the given selection strategy.selectSubnets
(SubnetSelection selection) Return information on the subnets appropriate for the given selection strategy.Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAvailabilityZones
AZs for this VPC. -
getInternetConnectivityEstablished
@Stability(Stable) @NotNull software.constructs.IDependable getInternetConnectivityEstablished()Dependable that can be depended upon to force internet connectivity established on the VPC. -
getIsolatedSubnets
List of isolated subnets in this VPC. -
getPrivateSubnets
List of private subnets in this VPC. -
getPublicSubnets
List of public subnets in this VPC. -
getVpcArn
ARN for this VPC. -
getVpcCidrBlock
CIDR range for this VPC. -
getVpcId
Identifier for this VPC. -
getVpnGatewayId
Identifier for the VPN gateway. -
addClientVpnEndpoint
@Stability(Stable) @NotNull ClientVpnEndpoint addClientVpnEndpoint(@NotNull String id, @NotNull ClientVpnEndpointOptions options) Adds a new client VPN endpoint to this VPC.- Parameters:
id
- This parameter is required.options
- This parameter is required.
-
addFlowLog
@Stability(Stable) @NotNull FlowLog addFlowLog(@NotNull String id, @Nullable FlowLogOptions options) Adds a new Flow Log to this VPC.- Parameters:
id
- This parameter is required.options
-
-
addFlowLog
Adds a new Flow Log to this VPC.- Parameters:
id
- This parameter is required.
-
addGatewayEndpoint
@Stability(Stable) @NotNull GatewayVpcEndpoint addGatewayEndpoint(@NotNull String id, @NotNull GatewayVpcEndpointOptions options) Adds a new gateway endpoint to this VPC.- Parameters:
id
- This parameter is required.options
- This parameter is required.
-
addInterfaceEndpoint
@Stability(Stable) @NotNull InterfaceVpcEndpoint addInterfaceEndpoint(@NotNull String id, @NotNull InterfaceVpcEndpointOptions options) Adds a new interface endpoint to this VPC.- Parameters:
id
- This parameter is required.options
- This parameter is required.
-
addVpnConnection
@Stability(Stable) @NotNull VpnConnection addVpnConnection(@NotNull String id, @NotNull VpnConnectionOptions options) Adds a new VPN connection to this VPC.- Parameters:
id
- This parameter is required.options
- This parameter is required.
-
enableVpnGateway
Adds a VPN Gateway to this VPC.- Parameters:
options
- This parameter is required.
-
selectSubnets
Return information on the subnets appropriate for the given selection strategy.Requires that at least one subnet is matched, throws a descriptive error message otherwise.
- Parameters:
selection
-
-
selectSubnets
Return information on the subnets appropriate for the given selection strategy.Requires that at least one subnet is matched, throws a descriptive error message otherwise.
-