Skip to content
v2.276.0

ConnectionProps Struct ​

Construction properties for Connection.

Example ​

ts
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 }),
});

Properties ​

connectionNameoptionalstringconnection_nameoptionalstrconnectionNameoptionalStringConnectionNameoptionalstringConnectionNameoptional*string#
The name of the connection.

Default: cloudformation generated name

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#
The description of the connection.

Default: no description

matchCriteriaoptionalstring[]match_criteriaoptionaltyping.List[str]matchCriteriaoptionalList<String>MatchCriteriaoptionalstring[]MatchCriteriaoptional*[]*string#
A list of criteria that can be used in selecting this connection.
networkoptionalConnectionNetworknetworkoptionalConnectionNetworknetworkoptionalConnectionNetworkNetworkoptionalConnectionNetworkNetworkoptionalConnectionNetwork#
The VPC network placement for this connection, so it can reach resources inside a VPC. See more at https://docs.aws.amazon.com/glue/latest/dg/start-connecting.html.

Default: no VPC network placement

Build it with ConnectionNetwork.subnet(subnet) to pin a specific subnet, or ConnectionNetwork.vpc(vpc, vpcSubnets?) to let the CDK select one.

propertiesoptional{ [key: string]: string }propertiesoptionaltyping.Mapping[str, str]propertiesoptionalMap<String, String>PropertiesoptionalIDictionary<string, string>Propertiesoptional*map[string]*string#
Key-Value pairs that define parameters for the connection.

Default: empty properties

secretoptionalISecretRefsecretoptionalISecretRefsecretoptionalISecretRefSecretoptionalISecretRefSecretoptionalISecretRef#
A reference to a Secrets Manager secret holding the credentials for this connection.

Default: no secret; any credentials must be supplied via properties

notes

The secret is referenced through the connection's SECRET_ID property, so Glue reads the credentials at runtime and the secret value never appears in the synthesized template. Prefer this over placing credentials directly in properties. Accepts any secretsmanager.ISecret.

securityGroupsoptionalISecurityGroup[]security_groupsoptionaltyping.List[ISecurityGroup]securityGroupsoptionalList<ISecurityGroup>SecurityGroupsoptionalISecurityGroup[]SecurityGroupsoptional*[]ISecurityGroup#
The list of security groups needed to successfully make this connection e.g. to successfully connect to VPC.

Default: no security group

The type of the connection.