ConnectionProps

class aws_cdk.aws_glue_alpha.ConnectionProps(*, connection_name=None, description=None, match_criteria=None, properties=None, secret=None, security_groups=None, subnet=None, vpc=None, vpc_subnets=None, type)

Bases: ConnectionOptions

(experimental) Construction properties for Connection.

Parameters:
  • connection_name (Optional[str]) – (experimental) The name of the connection. Default: cloudformation generated name

  • description (Optional[str]) – (experimental) The description of the connection. Default: no description

  • match_criteria (Optional[Sequence[str]]) – (experimental) 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

  • properties (Optional[Mapping[str, str]]) – (experimental) Key-Value pairs that define parameters for the connection. Default: empty properties

  • secret (Optional[ISecretRef]) – (experimental) A reference to a Secrets Manager secret holding the credentials for this connection. 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. Default: - no secret; any credentials must be supplied via properties

  • security_groups (Optional[Sequence[ISecurityGroup]]) – (experimental) The list of security groups needed to successfully make this connection e.g. to successfully connect to VPC. Default: no security group

  • subnet (Optional[ISubnet]) – (experimental) The VPC subnet to connect to resources within a VPC. See more at https://docs.aws.amazon.com/glue/latest/dg/start-connecting.html. Mutually exclusive with vpc: provide subnet to pin the connection to a specific subnet, or provide vpc (optionally with vpcSubnets) to let the CDK select one for you. Default: - no subnet, unless vpc is provided

  • vpc (Optional[IVpc]) – (experimental) The VPC to connect to resources within. When provided, the CDK selects a subnet from this VPC using vpcSubnets. A Glue connection targets a single subnet, so the first subnet of the selection is used. Mutually exclusive with subnet. Default: - no VPC, the subnet is taken from subnet if provided

  • vpc_subnets (Union[SubnetSelection, Dict[str, Any], None]) – (experimental) Which subnets of vpc to select the connection subnet from. Only used when vpc is provided. Since a Glue connection targets a single subnet, the first subnet of the selection is used. Default: - private subnets

  • type (ConnectionType) – (experimental) The type of the connection.

Stability:

experimental

ExampleMetadata:

infused

Example:

# security_group: ec2.SecurityGroup
# vpc: ec2.Vpc

glue.Connection(self, "MyConnection",
    type=glue.ConnectionType.NETWORK,
    security_groups=[security_group],
    vpc=vpc,
    # Optional - defaults to private subnets
    vpc_subnets=ec2.SubnetSelection(subnet_type=ec2.SubnetType.PRIVATE_WITH_EGRESS)
)

Attributes

connection_name

(experimental) The name of the connection.

Default:

cloudformation generated name

Stability:

experimental

description

(experimental) The description of the connection.

Default:

no description

Stability:

experimental

match_criteria

(experimental) 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

Stability:

experimental

properties

(experimental) Key-Value pairs that define parameters for the connection.

Default:

empty properties

See:

https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-connect.html

Stability:

experimental

secret

(experimental) A reference to a Secrets Manager secret holding the credentials for this connection.

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.

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

Stability:

experimental

security_groups

(experimental) The list of security groups needed to successfully make this connection e.g. to successfully connect to VPC.

Default:

no security group

Stability:

experimental

subnet

//docs.aws.amazon.com/glue/latest/dg/start-connecting.html.

Mutually exclusive with vpc: provide subnet to pin the connection to a specific subnet, or provide vpc (optionally with vpcSubnets) to let the CDK select one for you.

Default:
  • no subnet, unless vpc is provided

Stability:

experimental

Type:

(experimental) The VPC subnet to connect to resources within a VPC. See more at https

type

(experimental) The type of the connection.

Stability:

experimental

vpc

(experimental) The VPC to connect to resources within.

When provided, the CDK selects a subnet from this VPC using vpcSubnets. A Glue connection targets a single subnet, so the first subnet of the selection is used.

Mutually exclusive with subnet.

Default:
  • no VPC, the subnet is taken from subnet if provided

Stability:

experimental

vpc_subnets

(experimental) Which subnets of vpc to select the connection subnet from.

Only used when vpc is provided. Since a Glue connection targets a single subnet, the first subnet of the selection is used.

Default:
  • private subnets

Stability:

experimental