@Internal public static interface IVpc.Jsii$Default extends IVpc, IResource.Jsii$Default
IVpc
.IVpc.Jsii$Default, IVpc.Jsii$Proxy
Modifier and Type | Method and Description |
---|---|
default ClientVpnEndpoint |
addClientVpnEndpoint(String id,
ClientVpnEndpointOptions options)
Adds a new client VPN endpoint to this VPC.
|
default FlowLog |
addFlowLog(String id,
FlowLogOptions options)
Adds a new Flow Log to this VPC.
|
default GatewayVpcEndpoint |
addGatewayEndpoint(String id,
GatewayVpcEndpointOptions options)
Adds a new gateway endpoint to this VPC.
|
default InterfaceVpcEndpoint |
addInterfaceEndpoint(String id,
InterfaceVpcEndpointOptions options)
Adds a new interface endpoint to this VPC.
|
default VpnConnection |
addVpnConnection(String id,
VpnConnectionOptions options)
Adds a new VPN connection to this VPC.
|
default void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
default void |
enableVpnGateway(EnableVpnGatewayOptions options)
Adds a VPN Gateway to this VPC.
|
default List<String> |
getAvailabilityZones()
AZs for this VPC.
|
default ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
default software.constructs.IDependable |
getInternetConnectivityEstablished()
Dependable that can be depended upon to force internet connectivity established on the VPC.
|
default List<ISubnet> |
getIsolatedSubnets()
List of isolated subnets in this VPC.
|
default software.constructs.Node |
getNode()
The tree node.
|
default List<ISubnet> |
getPrivateSubnets()
List of private subnets in this VPC.
|
default List<ISubnet> |
getPublicSubnets()
List of public subnets in this VPC.
|
default Stack |
getStack()
The stack in which this resource is defined.
|
default String |
getVpcArn()
ARN for this VPC.
|
default String |
getVpcCidrBlock()
CIDR range for this VPC.
|
default String |
getVpcId()
Identifier for this VPC.
|
default String |
getVpnGatewayId()
Identifier for the VPN gateway.
|
default SelectedSubnets |
selectSubnets(SubnetSelection selection)
Return information on the subnets appropriate for the given selection strategy.
|
addFlowLog, selectSubnets
@Stability(value=Stable) @NotNull default software.constructs.Node getNode()
getNode
in interface software.constructs.IConstruct
getNode
in interface software.constructs.IConstruct.Jsii$Default
getNode
in interface IResource.Jsii$Default
@Stability(value=Stable) @NotNull default ResourceEnvironment getEnv()
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
getEnv
in interface IResource
getEnv
in interface IResource.Jsii$Default
@Stability(value=Stable) @NotNull default Stack getStack()
getStack
in interface IResource
getStack
in interface IResource.Jsii$Default
@Stability(value=Stable) @NotNull default List<String> getAvailabilityZones()
getAvailabilityZones
in interface IVpc
@Stability(value=Stable) @NotNull default software.constructs.IDependable getInternetConnectivityEstablished()
getInternetConnectivityEstablished
in interface IVpc
@Stability(value=Stable) @NotNull default List<ISubnet> getIsolatedSubnets()
getIsolatedSubnets
in interface IVpc
@Stability(value=Stable) @NotNull default List<ISubnet> getPrivateSubnets()
getPrivateSubnets
in interface IVpc
@Stability(value=Stable) @NotNull default List<ISubnet> getPublicSubnets()
getPublicSubnets
in interface IVpc
@Stability(value=Stable) @NotNull default String getVpcArn()
@Stability(value=Stable) @NotNull default String getVpcCidrBlock()
getVpcCidrBlock
in interface IVpc
@Stability(value=Stable) @NotNull default String getVpcId()
@Stability(value=Stable) @Nullable default String getVpnGatewayId()
getVpnGatewayId
in interface IVpc
@Stability(value=Stable) default void applyRemovalPolicy(@NotNull RemovalPolicy policy)
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
).
applyRemovalPolicy
in interface IResource
applyRemovalPolicy
in interface IResource.Jsii$Default
policy
- This parameter is required.@Stability(value=Stable) @NotNull default ClientVpnEndpoint addClientVpnEndpoint(@NotNull String id, @NotNull ClientVpnEndpointOptions options)
addClientVpnEndpoint
in interface IVpc
id
- This parameter is required.options
- This parameter is required.@Stability(value=Stable) @NotNull default FlowLog addFlowLog(@NotNull String id, @Nullable FlowLogOptions options)
addFlowLog
in interface IVpc
id
- This parameter is required.options
- @Stability(value=Stable) @NotNull default GatewayVpcEndpoint addGatewayEndpoint(@NotNull String id, @NotNull GatewayVpcEndpointOptions options)
addGatewayEndpoint
in interface IVpc
id
- This parameter is required.options
- This parameter is required.@Stability(value=Stable) @NotNull default InterfaceVpcEndpoint addInterfaceEndpoint(@NotNull String id, @NotNull InterfaceVpcEndpointOptions options)
addInterfaceEndpoint
in interface IVpc
id
- This parameter is required.options
- This parameter is required.@Stability(value=Stable) @NotNull default VpnConnection addVpnConnection(@NotNull String id, @NotNull VpnConnectionOptions options)
addVpnConnection
in interface IVpc
id
- This parameter is required.options
- This parameter is required.@Stability(value=Stable) default void enableVpnGateway(@NotNull EnableVpnGatewayOptions options)
enableVpnGateway
in interface IVpc
options
- This parameter is required.@Stability(value=Stable) @NotNull default SelectedSubnets selectSubnets(@Nullable SubnetSelection selection)
Requires that at least one subnet is matched, throws a descriptive error message otherwise.
selectSubnets
in interface IVpc
selection
- Copyright © 2022. All rights reserved.