software.amazon.awscdk.services.ec2.alpha.IVpcV2 Maven / Gradle / Ivy
Show all versions of ec2-alpha Show documentation
package software.amazon.awscdk.services.ec2.alpha;
/**
* (experimental) Placeholder to see what extra props we might need, will be added to original IVPC.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-10-11T15:56:07.913Z")
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.ec2.alpha.$Module.class, fqn = "@aws-cdk/aws-ec2-alpha.IVpcV2")
@software.amazon.jsii.Jsii.Proxy(IVpcV2.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface IVpcV2 extends software.amazon.jsii.JsiiSerializable, software.amazon.awscdk.services.ec2.IVpc {
/**
* (experimental) The primary IPv4 CIDR block associated with the VPC.
*
* Needed in order to validate the vpc range of subnet
* current prop vpcCidrBlock refers to the token value
* For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/userguide/vpc-cidr-blocks.html#vpc-sizing-ipv4}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull java.lang.String getIpv4CidrBlock();
/**
* (experimental) The secondary CIDR blocks associated with the VPC.
*
* For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/userguide/vpc-cidr-blocks.html#vpc-resize}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull java.util.List getSecondaryCidrBlock();
/**
* (experimental) Add an Egress only Internet Gateway to current VPC.
*
* Can only be used for ipv6 enabled VPCs.
* For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/userguide/egress-only-internet-gateway-basics.html}.
*
* @param options
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
void addEgressOnlyInternetGateway(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ec2.alpha.EgressOnlyInternetGatewayOptions options);
/**
* (experimental) Add an Egress only Internet Gateway to current VPC.
*
* Can only be used for ipv6 enabled VPCs.
* For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/userguide/egress-only-internet-gateway-basics.html}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
void addEgressOnlyInternetGateway();
/**
* (experimental) Adds an Internet Gateway to current VPC.
*
* For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/userguide/vpc-igw-internet-access.html}.
*
* Default: - defines route for all ipv4('0.0.0.0') and ipv6 addresses('::/0')
*
* @param options
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
void addInternetGateway(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ec2.alpha.InternetGatewayOptions options);
/**
* (experimental) Adds an Internet Gateway to current VPC.
*
* For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/userguide/vpc-igw-internet-access.html}.
*
* Default: - defines route for all ipv4('0.0.0.0') and ipv6 addresses('::/0')
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
void addInternetGateway();
/**
* (experimental) Adds a new NAT Gateway to VPC A NAT gateway is a Network Address Translation (NAT) service.
*
* NAT Gateway Connectivity can be of type `Public` or `Private`.
* For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html}.
*
* Default: ConnectivityType.Public
*
* @param options This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.alpha.NatGateway addNatGateway(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.alpha.NatGatewayOptions options);
/**
* (experimental) Adds VPN Gateway to VPC and set route propogation.
*
* For more information, see the {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpngateway.html}.
*
* Default: - no route propogation
*
* @param options This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.alpha.VPNGatewayV2 enableVpnGatewayV2(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.alpha.VPNGatewayV2Options options);
/**
* A proxy class which represents a concrete javascript instance of this type.
*/
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.awscdk.services.ec2.alpha.IVpcV2.Jsii$Default {
protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
/**
* The tree node.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public final @org.jetbrains.annotations.NotNull software.constructs.Node getNode() {
return software.amazon.jsii.Kernel.get(this, "node", software.amazon.jsii.NativeType.forClass(software.constructs.Node.class));
}
/**
* The environment this resource belongs to.
*
* 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.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public final @org.jetbrains.annotations.NotNull software.amazon.awscdk.ResourceEnvironment getEnv() {
return software.amazon.jsii.Kernel.get(this, "env", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.ResourceEnvironment.class));
}
/**
* The stack in which this resource is defined.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public final @org.jetbrains.annotations.NotNull software.amazon.awscdk.Stack getStack() {
return software.amazon.jsii.Kernel.get(this, "stack", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.Stack.class));
}
/**
* AZs for this VPC.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public final @org.jetbrains.annotations.NotNull java.util.List getAvailabilityZones() {
return java.util.Collections.unmodifiableList(software.amazon.jsii.Kernel.get(this, "availabilityZones", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))));
}
/**
* Dependable that can be depended upon to force internet connectivity established on the VPC.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public final @org.jetbrains.annotations.NotNull software.constructs.IDependable getInternetConnectivityEstablished() {
return software.amazon.jsii.Kernel.get(this, "internetConnectivityEstablished", software.amazon.jsii.NativeType.forClass(software.constructs.IDependable.class));
}
/**
* List of isolated subnets in this VPC.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public final @org.jetbrains.annotations.NotNull java.util.List getIsolatedSubnets() {
return java.util.Collections.unmodifiableList(software.amazon.jsii.Kernel.get(this, "isolatedSubnets", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.ISubnet.class))));
}
/**
* List of private subnets in this VPC.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public final @org.jetbrains.annotations.NotNull java.util.List getPrivateSubnets() {
return java.util.Collections.unmodifiableList(software.amazon.jsii.Kernel.get(this, "privateSubnets", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.ISubnet.class))));
}
/**
* List of public subnets in this VPC.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public final @org.jetbrains.annotations.NotNull java.util.List getPublicSubnets() {
return java.util.Collections.unmodifiableList(software.amazon.jsii.Kernel.get(this, "publicSubnets", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.ISubnet.class))));
}
/**
* ARN for this VPC.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public final @org.jetbrains.annotations.NotNull java.lang.String getVpcArn() {
return software.amazon.jsii.Kernel.get(this, "vpcArn", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* CIDR range for this VPC.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public final @org.jetbrains.annotations.NotNull java.lang.String getVpcCidrBlock() {
return software.amazon.jsii.Kernel.get(this, "vpcCidrBlock", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* Identifier for this VPC.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public final @org.jetbrains.annotations.NotNull java.lang.String getVpcId() {
return software.amazon.jsii.Kernel.get(this, "vpcId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* Identifier for the VPN gateway.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public final @org.jetbrains.annotations.Nullable java.lang.String getVpnGatewayId() {
return software.amazon.jsii.Kernel.get(this, "vpnGatewayId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* (experimental) The primary IPv4 CIDR block associated with the VPC.
*
* Needed in order to validate the vpc range of subnet
* current prop vpcCidrBlock refers to the token value
* For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/userguide/vpc-cidr-blocks.html#vpc-sizing-ipv4}.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public final @org.jetbrains.annotations.NotNull java.lang.String getIpv4CidrBlock() {
return software.amazon.jsii.Kernel.get(this, "ipv4CidrBlock", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* (experimental) The secondary CIDR blocks associated with the VPC.
*
* For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/userguide/vpc-cidr-blocks.html#vpc-resize}.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public final @org.jetbrains.annotations.NotNull java.util.List getSecondaryCidrBlock() {
return java.util.Collections.unmodifiableList(software.amazon.jsii.Kernel.get(this, "secondaryCidrBlock", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.CfnVPCCidrBlock.class))));
}
/**
* 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
).
*
* @param policy This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public final void applyRemovalPolicy(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.RemovalPolicy policy) {
software.amazon.jsii.Kernel.call(this, "applyRemovalPolicy", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(policy, "policy is required") });
}
/**
* Adds a new client VPN endpoint to this VPC.
*
* @param id This parameter is required.
* @param options This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.ClientVpnEndpoint addClientVpnEndpoint(final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.ClientVpnEndpointOptions options) {
return software.amazon.jsii.Kernel.call(this, "addClientVpnEndpoint", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.ClientVpnEndpoint.class), new Object[] { java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(options, "options is required") });
}
/**
* Adds a new Flow Log to this VPC.
*
* @param id This parameter is required.
* @param options
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.FlowLog addFlowLog(final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ec2.FlowLogOptions options) {
return software.amazon.jsii.Kernel.call(this, "addFlowLog", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.FlowLog.class), new Object[] { java.util.Objects.requireNonNull(id, "id is required"), options });
}
/**
* Adds a new Flow Log to this VPC.
*
* @param id This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.FlowLog addFlowLog(final @org.jetbrains.annotations.NotNull java.lang.String id) {
return software.amazon.jsii.Kernel.call(this, "addFlowLog", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.FlowLog.class), new Object[] { java.util.Objects.requireNonNull(id, "id is required") });
}
/**
* Adds a new gateway endpoint to this VPC.
*
* @param id This parameter is required.
* @param options This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.GatewayVpcEndpoint addGatewayEndpoint(final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.GatewayVpcEndpointOptions options) {
return software.amazon.jsii.Kernel.call(this, "addGatewayEndpoint", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.GatewayVpcEndpoint.class), new Object[] { java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(options, "options is required") });
}
/**
* Adds a new interface endpoint to this VPC.
*
* @param id This parameter is required.
* @param options This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.InterfaceVpcEndpoint addInterfaceEndpoint(final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.InterfaceVpcEndpointOptions options) {
return software.amazon.jsii.Kernel.call(this, "addInterfaceEndpoint", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.InterfaceVpcEndpoint.class), new Object[] { java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(options, "options is required") });
}
/**
* Adds a new VPN connection to this VPC.
*
* @param id This parameter is required.
* @param options This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.VpnConnection addVpnConnection(final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.VpnConnectionOptions options) {
return software.amazon.jsii.Kernel.call(this, "addVpnConnection", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.VpnConnection.class), new Object[] { java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(options, "options is required") });
}
/**
* Adds a VPN Gateway to this VPC.
*
* @param options This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public final void enableVpnGateway(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.EnableVpnGatewayOptions options) {
software.amazon.jsii.Kernel.call(this, "enableVpnGateway", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(options, "options is required") });
}
/**
* 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.
*
* @param selection
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.SelectedSubnets selectSubnets(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ec2.SubnetSelection selection) {
return software.amazon.jsii.Kernel.call(this, "selectSubnets", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.SelectedSubnets.class), new Object[] { 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.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.SelectedSubnets selectSubnets() {
return software.amazon.jsii.Kernel.call(this, "selectSubnets", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.SelectedSubnets.class));
}
/**
* (experimental) Add an Egress only Internet Gateway to current VPC.
*
* Can only be used for ipv6 enabled VPCs.
* For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/userguide/egress-only-internet-gateway-basics.html}.
*
* @param options
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public final void addEgressOnlyInternetGateway(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ec2.alpha.EgressOnlyInternetGatewayOptions options) {
software.amazon.jsii.Kernel.call(this, "addEgressOnlyInternetGateway", software.amazon.jsii.NativeType.VOID, new Object[] { options });
}
/**
* (experimental) Add an Egress only Internet Gateway to current VPC.
*
* Can only be used for ipv6 enabled VPCs.
* For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/userguide/egress-only-internet-gateway-basics.html}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public final void addEgressOnlyInternetGateway() {
software.amazon.jsii.Kernel.call(this, "addEgressOnlyInternetGateway", software.amazon.jsii.NativeType.VOID);
}
/**
* (experimental) Adds an Internet Gateway to current VPC.
*
* For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/userguide/vpc-igw-internet-access.html}.
*
* Default: - defines route for all ipv4('0.0.0.0') and ipv6 addresses('::/0')
*
* @param options
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public final void addInternetGateway(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ec2.alpha.InternetGatewayOptions options) {
software.amazon.jsii.Kernel.call(this, "addInternetGateway", software.amazon.jsii.NativeType.VOID, new Object[] { options });
}
/**
* (experimental) Adds an Internet Gateway to current VPC.
*
* For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/userguide/vpc-igw-internet-access.html}.
*
* Default: - defines route for all ipv4('0.0.0.0') and ipv6 addresses('::/0')
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public final void addInternetGateway() {
software.amazon.jsii.Kernel.call(this, "addInternetGateway", software.amazon.jsii.NativeType.VOID);
}
/**
* (experimental) Adds a new NAT Gateway to VPC A NAT gateway is a Network Address Translation (NAT) service.
*
* NAT Gateway Connectivity can be of type `Public` or `Private`.
* For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html}.
*
* Default: ConnectivityType.Public
*
* @param options This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.alpha.NatGateway addNatGateway(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.alpha.NatGatewayOptions options) {
return software.amazon.jsii.Kernel.call(this, "addNatGateway", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.alpha.NatGateway.class), new Object[] { java.util.Objects.requireNonNull(options, "options is required") });
}
/**
* (experimental) Adds VPN Gateway to VPC and set route propogation.
*
* For more information, see the {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpngateway.html}.
*
* Default: - no route propogation
*
* @param options This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.alpha.VPNGatewayV2 enableVpnGatewayV2(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.alpha.VPNGatewayV2Options options) {
return software.amazon.jsii.Kernel.call(this, "enableVpnGatewayV2", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.alpha.VPNGatewayV2.class), new Object[] { java.util.Objects.requireNonNull(options, "options is required") });
}
}
/**
* Internal default implementation for {@link IVpcV2}.
*/
@software.amazon.jsii.Internal
interface Jsii$Default extends IVpcV2, software.amazon.awscdk.services.ec2.IVpc.Jsii$Default {
/**
* The tree node.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.NotNull software.constructs.Node getNode() {
return software.amazon.jsii.Kernel.get(this, "node", software.amazon.jsii.NativeType.forClass(software.constructs.Node.class));
}
/**
* The environment this resource belongs to.
*
* 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.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.NotNull software.amazon.awscdk.ResourceEnvironment getEnv() {
return software.amazon.jsii.Kernel.get(this, "env", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.ResourceEnvironment.class));
}
/**
* The stack in which this resource is defined.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.NotNull software.amazon.awscdk.Stack getStack() {
return software.amazon.jsii.Kernel.get(this, "stack", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.Stack.class));
}
/**
* AZs for this VPC.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.NotNull java.util.List getAvailabilityZones() {
return java.util.Collections.unmodifiableList(software.amazon.jsii.Kernel.get(this, "availabilityZones", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))));
}
/**
* Dependable that can be depended upon to force internet connectivity established on the VPC.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.NotNull software.constructs.IDependable getInternetConnectivityEstablished() {
return software.amazon.jsii.Kernel.get(this, "internetConnectivityEstablished", software.amazon.jsii.NativeType.forClass(software.constructs.IDependable.class));
}
/**
* List of isolated subnets in this VPC.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.NotNull java.util.List getIsolatedSubnets() {
return java.util.Collections.unmodifiableList(software.amazon.jsii.Kernel.get(this, "isolatedSubnets", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.ISubnet.class))));
}
/**
* List of private subnets in this VPC.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.NotNull java.util.List getPrivateSubnets() {
return java.util.Collections.unmodifiableList(software.amazon.jsii.Kernel.get(this, "privateSubnets", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.ISubnet.class))));
}
/**
* List of public subnets in this VPC.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.NotNull java.util.List getPublicSubnets() {
return java.util.Collections.unmodifiableList(software.amazon.jsii.Kernel.get(this, "publicSubnets", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.ISubnet.class))));
}
/**
* ARN for this VPC.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.NotNull java.lang.String getVpcArn() {
return software.amazon.jsii.Kernel.get(this, "vpcArn", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* CIDR range for this VPC.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.NotNull java.lang.String getVpcCidrBlock() {
return software.amazon.jsii.Kernel.get(this, "vpcCidrBlock", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* Identifier for this VPC.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.NotNull java.lang.String getVpcId() {
return software.amazon.jsii.Kernel.get(this, "vpcId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* Identifier for the VPN gateway.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getVpnGatewayId() {
return software.amazon.jsii.Kernel.get(this, "vpnGatewayId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* (experimental) The primary IPv4 CIDR block associated with the VPC.
*
* Needed in order to validate the vpc range of subnet
* current prop vpcCidrBlock refers to the token value
* For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/userguide/vpc-cidr-blocks.html#vpc-sizing-ipv4}.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.NotNull java.lang.String getIpv4CidrBlock() {
return software.amazon.jsii.Kernel.get(this, "ipv4CidrBlock", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* (experimental) The secondary CIDR blocks associated with the VPC.
*
* For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/userguide/vpc-cidr-blocks.html#vpc-resize}.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.NotNull java.util.List getSecondaryCidrBlock() {
return java.util.Collections.unmodifiableList(software.amazon.jsii.Kernel.get(this, "secondaryCidrBlock", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.CfnVPCCidrBlock.class))));
}
/**
* 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
).
*
* @param policy This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
default void applyRemovalPolicy(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.RemovalPolicy policy) {
software.amazon.jsii.Kernel.call(this, "applyRemovalPolicy", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(policy, "policy is required") });
}
/**
* Adds a new client VPN endpoint to this VPC.
*
* @param id This parameter is required.
* @param options This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
default @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.ClientVpnEndpoint addClientVpnEndpoint(final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.ClientVpnEndpointOptions options) {
return software.amazon.jsii.Kernel.call(this, "addClientVpnEndpoint", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.ClientVpnEndpoint.class), new Object[] { java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(options, "options is required") });
}
/**
* Adds a new Flow Log to this VPC.
*
* @param id This parameter is required.
* @param options
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
default @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.FlowLog addFlowLog(final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ec2.FlowLogOptions options) {
return software.amazon.jsii.Kernel.call(this, "addFlowLog", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.FlowLog.class), new Object[] { java.util.Objects.requireNonNull(id, "id is required"), options });
}
/**
* Adds a new gateway endpoint to this VPC.
*
* @param id This parameter is required.
* @param options This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
default @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.GatewayVpcEndpoint addGatewayEndpoint(final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.GatewayVpcEndpointOptions options) {
return software.amazon.jsii.Kernel.call(this, "addGatewayEndpoint", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.GatewayVpcEndpoint.class), new Object[] { java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(options, "options is required") });
}
/**
* Adds a new interface endpoint to this VPC.
*
* @param id This parameter is required.
* @param options This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
default @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.InterfaceVpcEndpoint addInterfaceEndpoint(final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.InterfaceVpcEndpointOptions options) {
return software.amazon.jsii.Kernel.call(this, "addInterfaceEndpoint", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.InterfaceVpcEndpoint.class), new Object[] { java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(options, "options is required") });
}
/**
* Adds a new VPN connection to this VPC.
*
* @param id This parameter is required.
* @param options This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
default @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.VpnConnection addVpnConnection(final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.VpnConnectionOptions options) {
return software.amazon.jsii.Kernel.call(this, "addVpnConnection", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.VpnConnection.class), new Object[] { java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(options, "options is required") });
}
/**
* Adds a VPN Gateway to this VPC.
*
* @param options This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
default void enableVpnGateway(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.EnableVpnGatewayOptions options) {
software.amazon.jsii.Kernel.call(this, "enableVpnGateway", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(options, "options is required") });
}
/**
* 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.
*
* @param selection
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
default @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.SelectedSubnets selectSubnets(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ec2.SubnetSelection selection) {
return software.amazon.jsii.Kernel.call(this, "selectSubnets", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.SelectedSubnets.class), new Object[] { selection });
}
/**
* (experimental) Add an Egress only Internet Gateway to current VPC.
*
* Can only be used for ipv6 enabled VPCs.
* For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/userguide/egress-only-internet-gateway-basics.html}.
*
* @param options
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
default void addEgressOnlyInternetGateway(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ec2.alpha.EgressOnlyInternetGatewayOptions options) {
software.amazon.jsii.Kernel.call(this, "addEgressOnlyInternetGateway", software.amazon.jsii.NativeType.VOID, new Object[] { options });
}
/**
* (experimental) Adds an Internet Gateway to current VPC.
*
* For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/userguide/vpc-igw-internet-access.html}.
*
* Default: - defines route for all ipv4('0.0.0.0') and ipv6 addresses('::/0')
*
* @param options
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
default void addInternetGateway(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ec2.alpha.InternetGatewayOptions options) {
software.amazon.jsii.Kernel.call(this, "addInternetGateway", software.amazon.jsii.NativeType.VOID, new Object[] { options });
}
/**
* (experimental) Adds a new NAT Gateway to VPC A NAT gateway is a Network Address Translation (NAT) service.
*
* NAT Gateway Connectivity can be of type `Public` or `Private`.
* For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html}.
*
* Default: ConnectivityType.Public
*
* @param options This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
default @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.alpha.NatGateway addNatGateway(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.alpha.NatGatewayOptions options) {
return software.amazon.jsii.Kernel.call(this, "addNatGateway", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.alpha.NatGateway.class), new Object[] { java.util.Objects.requireNonNull(options, "options is required") });
}
/**
* (experimental) Adds VPN Gateway to VPC and set route propogation.
*
* For more information, see the {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpngateway.html}.
*
* Default: - no route propogation
*
* @param options This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
default @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.alpha.VPNGatewayV2 enableVpnGatewayV2(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.alpha.VPNGatewayV2Options options) {
return software.amazon.jsii.Kernel.call(this, "enableVpnGatewayV2", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.alpha.VPNGatewayV2.class), new Object[] { java.util.Objects.requireNonNull(options, "options is required") });
}
}
}