ConnectionOptions Struct
Base Connection Options.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as glue_alpha from '@aws-cdk/aws-glue-alpha';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
import { aws_secretsmanager as interfaces_secretsmanager } from 'aws-cdk-lib/interfaces';
declare const connectionNetwork: glue_alpha.ConnectionNetwork;
declare const secretRef: interfaces_secretsmanager.ISecretRef;
declare const securityGroup: ec2.SecurityGroup;
const connectionOptions: glue_alpha.ConnectionOptions = {
connectionName: 'connectionName',
description: 'description',
matchCriteria: ['matchCriteria'],
network: connectionNetwork,
properties: {
propertiesKey: 'properties',
},
secret: secretRef,
securityGroups: [securityGroup],
};
Properties
connectionNamestringconnection_namestrconnectionNameStringConnectionNamestringConnectionName*string#Default: cloudformation generated name
Default: no description
matchCriteriastring[]match_criteriatyping.List[str]matchCriteriaList<String>MatchCriteriastring[]MatchCriteria*[]*string#Default: no match criteria
This is useful for filtering the results of https://awscli.amazonaws.com/v2/documentation/api/latest/reference/glue/get-connections.html
networkConnectionNetworknetworkConnectionNetworknetworkConnectionNetworkNetworkConnectionNetworkNetworkConnectionNetwork#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.
properties{ [key: string]: string }propertiestyping.Mapping[str, str]propertiesMap<String, String>PropertiesIDictionary<string, string>Properties*map[string]*string#Default: empty properties
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.
securityGroupsISecurityGroup[]security_groupstyping.List[ISecurityGroup]securityGroupsList<ISecurityGroup>SecurityGroupsISecurityGroup[]SecurityGroups*[]ISecurityGroup#Default: no security group