Show / Hide Table of Contents

Class ConnectionNetwork

VPC network placement for a Glue Connection.

Inheritance
object
ConnectionNetwork
Namespace: Amazon.CDK.AWS.Glue
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ConnectionNetwork : DeputyBase
Syntax (vb)
Public Class ConnectionNetwork Inherits DeputyBase
Remarks

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.

ExampleMetadata: infused

Examples
SecurityGroup securityGroup;
             Vpc vpc;

             new Connection(this, "MyConnection", new ConnectionProps {
                 Type = ConnectionType.NETWORK,
                 SecurityGroups = new [] { securityGroup },
                 // vpcSubnets is optional - defaults to private subnets
                 Network = ConnectionNetwork.Vpc(vpc, new SubnetSelection { SubnetType = SubnetType.PRIVATE_WITH_EGRESS })
             });

Synopsis

Methods

Subnet(ISubnet)

Pin the connection to a specific subnet.

Vpc(IVpc, ISubnetSelection?)

Select the connection's subnet from a VPC.

Methods

Subnet(ISubnet)

Pin the connection to a specific subnet.

public static ConnectionNetwork Subnet(ISubnet subnet)
Parameters
subnet ISubnet

the subnet the connection targets.

Returns

ConnectionNetwork

Remarks

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.

ExampleMetadata: infused

Vpc(IVpc, ISubnetSelection?)

Select the connection's subnet from a VPC.

public static ConnectionNetwork Vpc(IVpc vpc, ISubnetSelection? vpcSubnets = null)
Parameters
vpc IVpc

the VPC to select a subnet from.

vpcSubnets ISubnetSelection

which subnets to select from.

Returns

ConnectionNetwork

Remarks

Since a Glue connection targets a single subnet, the first subnet of the selection is used.

Default: vpcSubnets - private subnets

Back to top Generated by DocFX