class ConnectionNetwork
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Glue.Alpha.ConnectionNetwork |
Go | github.com/aws/aws-cdk-go/awscdkgluealpha/v2#ConnectionNetwork |
Java | software.amazon.awscdk.services.glue.alpha.ConnectionNetwork |
Python | aws_cdk.aws_glue_alpha.ConnectionNetwork |
TypeScript (source) | @aws-cdk/aws-glue-alpha ยป ConnectionNetwork |
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
declare const securityGroup: ec2.SecurityGroup;
declare const vpc: ec2.Vpc;
new glue.Connection(this, 'MyConnection', {
type: glue.ConnectionType.NETWORK,
securityGroups: [securityGroup],
// vpcSubnets is optional - defaults to private subnets
network: glue.ConnectionNetwork.vpc(vpc, { subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS }),
});
Methods
| Name | Description |
|---|---|
| static subnet(subnet) | Pin the connection to a specific subnet. |
| static vpc(vpc, vpcSubnets?) | Select the connection's subnet from a VPC. |
static subnet(subnet)
public static subnet(subnet: ISubnet): ConnectionNetwork
Parameters
- subnet
ISubnetโ the subnet the connection targets.
Returns
Pin the connection to a specific subnet.
static vpc(vpc, vpcSubnets?)
public static vpc(vpc: IVpc, vpcSubnets?: SubnetSelection): ConnectionNetwork
Parameters
- vpc
IVpcโ the VPC to select a subnet from. - vpcSubnets
Subnetโ which subnets to select from.Selection
Returns
Select the connection's subnet from a VPC.
Since a Glue connection targets a single subnet, the first subnet of the selection is used.

.NET
Go
Java
Python
TypeScript (