Interface IVpc.Jsii$Default
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IConstruct.Jsii$Default,software.constructs.IDependable,software.constructs.IDependable.Jsii$Default,IEnvironmentAware,IEnvironmentAware.Jsii$Default,IResource,IResource.Jsii$Default,IVpc,IVPCRef,IVPCRef.Jsii$Default,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IVpcV2.Jsii$Default
- All Known Implementing Classes:
IVpc.Jsii$Proxy,IVpcV2.Jsii$Proxy
- Enclosing interface:
IVpc
IVpc.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IEnvironmentAware
IEnvironmentAware.Jsii$Default, IEnvironmentAware.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IVpc
IVpc.Jsii$Default, IVpc.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IVPCRef
IVPCRef.Jsii$Default, IVPCRef.Jsii$Proxy -
Method Summary
Modifier and TypeMethodDescriptiondefault ClientVpnEndpointaddClientVpnEndpoint(String id, ClientVpnEndpointOptions options) Adds a new client VPN endpoint to this VPC.default FlowLogaddFlowLog(String id, FlowLogOptions options) Adds a new Flow Log to this VPC.default GatewayVpcEndpointaddGatewayEndpoint(String id, GatewayVpcEndpointOptions options) Adds a new gateway endpoint to this VPC.default InterfaceVpcEndpointaddInterfaceEndpoint(String id, InterfaceVpcEndpointOptions options) Adds a new interface endpoint to this VPC.default VpnConnectionaddVpnConnection(String id, VpnConnectionOptions options) Adds a new VPN connection to this VPC.default voidapplyRemovalPolicy(RemovalPolicy policy) Apply the given removal policy to this resource.default voidenableVpnGateway(EnableVpnGatewayOptions options) Adds a VPN Gateway to this VPC.AZs for this VPC.default ResourceEnvironmentgetEnv()The environment this resource belongs to.default software.constructs.IDependableDependable that can be depended upon to force internet connectivity established on the VPC.List of isolated subnets in this VPC.default software.constructs.NodegetNode()The tree node.List of private subnets in this VPC.List of public subnets in this VPC.default StackgetStack()The stack in which this resource is defined.default StringARN for this VPC.default StringCIDR range for this VPC.default StringgetVpcId()Identifier for this VPC.default VPCReference(experimental) A reference to a VPC resource.default StringIdentifier for the VPN gateway.default SelectedSubnetsselectSubnets(SubnetSelection selection) Return information on the subnets appropriate for the given selection strategy.Methods inherited from interface software.amazon.awscdk.services.ec2.IVpc
addFlowLog, selectSubnetsMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getNode
@Stability(Stable) @NotNull default software.constructs.Node getNode()The tree node.- Specified by:
getNodein interfacesoftware.constructs.IConstruct- Specified by:
getNodein interfacesoftware.constructs.IConstruct.Jsii$Default- Specified by:
getNodein interfaceIResource.Jsii$Default- Specified by:
getNodein interfaceIVpc- Specified by:
getNodein interfaceIVPCRef.Jsii$Default
-
getEnv
The environment this resource belongs to.For resources that are created and managed in a Stack (those created by creating new class instances like
new Role(),new Bucket(), etc.), this is always the same as the environment of the stack they belong to.For referenced resources (those obtained from referencing methods like
Role.fromRoleArn(),Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.- Specified by:
getEnvin interfaceIEnvironmentAware- Specified by:
getEnvin interfaceIEnvironmentAware.Jsii$Default- Specified by:
getEnvin interfaceIResource.Jsii$Default- Specified by:
getEnvin interfaceIVpc- Specified by:
getEnvin interfaceIVPCRef.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStackin interfaceIResource- Specified by:
getStackin interfaceIResource.Jsii$Default
-
getVpcRef
(experimental) A reference to a VPC resource.- Specified by:
getVpcRefin interfaceIVPCRef- Specified by:
getVpcRefin interfaceIVPCRef.Jsii$Default
-
getAvailabilityZones
AZs for this VPC.- Specified by:
getAvailabilityZonesin interfaceIVpc
-
getInternetConnectivityEstablished
@Stability(Stable) @NotNull default software.constructs.IDependable getInternetConnectivityEstablished()Dependable that can be depended upon to force internet connectivity established on the VPC.- Specified by:
getInternetConnectivityEstablishedin interfaceIVpc
-
getIsolatedSubnets
List of isolated subnets in this VPC.- Specified by:
getIsolatedSubnetsin interfaceIVpc
-
getPrivateSubnets
List of private subnets in this VPC.- Specified by:
getPrivateSubnetsin interfaceIVpc
-
getPublicSubnets
List of public subnets in this VPC.- Specified by:
getPublicSubnetsin interfaceIVpc
-
getVpcArn
ARN for this VPC. -
getVpcCidrBlock
CIDR range for this VPC.- Specified by:
getVpcCidrBlockin interfaceIVpc
-
getVpcId
Identifier for this VPC. -
getVpnGatewayId
Identifier for the VPN gateway.- Specified by:
getVpnGatewayIdin interfaceIVpc
-
applyRemovalPolicy
Apply the given removal policy to this resource.The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (
RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).- Specified by:
applyRemovalPolicyin interfaceIResource- Specified by:
applyRemovalPolicyin interfaceIResource.Jsii$Default- Parameters:
policy- This parameter is required.
-
addClientVpnEndpoint
@Stability(Stable) @NotNull default ClientVpnEndpoint addClientVpnEndpoint(@NotNull String id, @NotNull ClientVpnEndpointOptions options) Adds a new client VPN endpoint to this VPC.- Specified by:
addClientVpnEndpointin interfaceIVpc- Parameters:
id- This parameter is required.options- This parameter is required.
-
addFlowLog
@Stability(Stable) @NotNull default FlowLog addFlowLog(@NotNull String id, @Nullable FlowLogOptions options) Adds a new Flow Log to this VPC.- Specified by:
addFlowLogin interfaceIVpc- Parameters:
id- This parameter is required.options-
-
addGatewayEndpoint
@Stability(Stable) @NotNull default GatewayVpcEndpoint addGatewayEndpoint(@NotNull String id, @NotNull GatewayVpcEndpointOptions options) Adds a new gateway endpoint to this VPC.- Specified by:
addGatewayEndpointin interfaceIVpc- Parameters:
id- This parameter is required.options- This parameter is required.
-
addInterfaceEndpoint
@Stability(Stable) @NotNull default InterfaceVpcEndpoint addInterfaceEndpoint(@NotNull String id, @NotNull InterfaceVpcEndpointOptions options) Adds a new interface endpoint to this VPC.- Specified by:
addInterfaceEndpointin interfaceIVpc- Parameters:
id- This parameter is required.options- This parameter is required.
-
addVpnConnection
@Stability(Stable) @NotNull default VpnConnection addVpnConnection(@NotNull String id, @NotNull VpnConnectionOptions options) Adds a new VPN connection to this VPC.- Specified by:
addVpnConnectionin interfaceIVpc- Parameters:
id- This parameter is required.options- This parameter is required.
-
enableVpnGateway
Adds a VPN Gateway to this VPC.- Specified by:
enableVpnGatewayin interfaceIVpc- Parameters:
options- This parameter is required.
-
selectSubnets
@Stability(Stable) @NotNull default SelectedSubnets selectSubnets(@Nullable SubnetSelection selection) 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.
- Specified by:
selectSubnetsin interfaceIVpc- Parameters:
selection-
-