ConnectionProps
- class aws_cdk.aws_glue.ConnectionProps(*, connection_name=None, description=None, match_criteria=None, network=None, properties=None, secret=None, security_groups=None, type)
Bases:
ConnectionOptionsConstruction properties for
Connection.- Parameters:
connection_name (
Optional[str]) – The name of the connection. Default: cloudformation generated namedescription (
Optional[str]) – The description of the connection. Default: no descriptionmatch_criteria (
Optional[Sequence[str]]) – A list of criteria that can be used in selecting this connection. This is useful for filtering the results of https://awscli.amazonaws.com/v2/documentation/api/latest/reference/glue/get-connections.html Default: no match criterianetwork (
Optional[ConnectionNetwork]) – 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. Build it withConnectionNetwork.subnet(subnet)to pin a specific subnet, orConnectionNetwork.vpc(vpc, vpcSubnets?)to let the CDK select one. Default: - no VPC network placementproperties (
Optional[Mapping[str,str]]) – Key-Value pairs that define parameters for the connection. Default: empty propertiessecret (
Optional[ISecretRef]) – A reference to a Secrets Manager secret holding the credentials for this connection. The secret is referenced through the connection’sSECRET_IDproperty, so Glue reads the credentials at runtime and the secret value never appears in the synthesized template. Prefer this over placing credentials directly inproperties. Accepts anysecretsmanager.ISecret. Default: - no secret; any credentials must be supplied viapropertiessecurity_groups (
Optional[Sequence[ISecurityGroup]]) – The list of security groups needed to successfully make this connection e.g. to successfully connect to VPC. Default: no security grouptype (
ConnectionType) – The type of the connection.
- ExampleMetadata:
infused
Example:
# security_group: ec2.SecurityGroup # vpc: ec2.Vpc glue.Connection(self, "MyConnection", type=glue.ConnectionType.NETWORK, security_groups=[security_group], # vpcSubnets is optional - defaults to private subnets network=glue.ConnectionNetwork.vpc(vpc, subnet_type=ec2.SubnetType.PRIVATE_WITH_EGRESS) )
Attributes
- connection_name
The name of the connection.
- Default:
cloudformation generated name
- description
The description of the connection.
- Default:
no description
- match_criteria
A list of criteria that can be used in selecting this connection.
This is useful for filtering the results of https://awscli.amazonaws.com/v2/documentation/api/latest/reference/glue/get-connections.html
- Default:
no match criteria
- network
//docs.aws.amazon.com/glue/latest/dg/start-connecting.html.
Build it with
ConnectionNetwork.subnet(subnet)to pin a specific subnet, orConnectionNetwork.vpc(vpc, vpcSubnets?)to let the CDK select one.- Default:
no VPC network placement
- Type:
The VPC network placement for this connection, so it can reach resources inside a VPC. See more at https
- properties
Key-Value pairs that define parameters for the connection.
- Default:
empty properties
- See:
- secret
A reference to a Secrets Manager secret holding the credentials for this connection.
The secret is referenced through the connection’s
SECRET_IDproperty, so Glue reads the credentials at runtime and the secret value never appears in the synthesized template. Prefer this over placing credentials directly inproperties. Accepts anysecretsmanager.ISecret.- Default:
no secret; any credentials must be supplied via
properties
- security_groups
The list of security groups needed to successfully make this connection e.g. to successfully connect to VPC.
- Default:
no security group
- type
The type of the connection.