Class ConnectionNetwork
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.glue.alpha.ConnectionNetwork
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-10T17:52:11.235Z")
@Stability(Experimental)
public class ConnectionNetwork
extends software.amazon.jsii.JsiiObject
(experimental) VPC network placement for a Glue
Connection.
A Glue connection targets a single subnet. Choose the placement with one of the mutually-exclusive factories — an explicit subnet, or a VPC to select one from — so a subnet paired with a VPC, or a subnet selection without a VPC, cannot be expressed.
Example:
SecurityGroup securityGroup;
Vpc vpc;
Connection.Builder.create(this, "MyConnection")
.type(ConnectionType.NETWORK)
.securityGroups(List.of(securityGroup))
// vpcSubnets is optional - defaults to private subnets
.network(ConnectionNetwork.vpc(vpc, SubnetSelection.builder().subnetType(SubnetType.PRIVATE_WITH_EGRESS).build()))
.build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConnectionNetwork(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedConnectionNetwork(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionNetwork(experimental) Pin the connection to a specific subnet.static ConnectionNetwork(experimental) Select the connection's subnet from a VPC.static ConnectionNetworkvpc(IVpc vpc, SubnetSelection vpcSubnets) (experimental) Select the connection's subnet from a VPC.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
ConnectionNetwork
protected ConnectionNetwork(software.amazon.jsii.JsiiObjectRef objRef) -
ConnectionNetwork
protected ConnectionNetwork(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
subnet
(experimental) Pin the connection to a specific subnet.- Parameters:
subnet- the subnet the connection targets. This parameter is required.
-
vpc
@Stability(Experimental) @NotNull public static ConnectionNetwork vpc(@NotNull IVpc vpc, @Nullable SubnetSelection vpcSubnets) (experimental) Select the connection's subnet from a VPC.Since a Glue connection targets a single subnet, the first subnet of the selection is used.
Default: vpcSubnets - private subnets
- Parameters:
vpc- the VPC to select a subnet from. This parameter is required.vpcSubnets- which subnets to select from.
-
vpc
(experimental) Select the connection's subnet from a VPC.Since a Glue connection targets a single subnet, the first subnet of the selection is used.
Default: vpcSubnets - private subnets
- Parameters:
vpc- the VPC to select a subnet from. This parameter is required.
-