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 namedescription (
Optional[str]) – (experimental) The description of the connection. Default: no descriptionmatch_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 criteriaproperties (
Optional[Mapping[str,str]]) – (experimental) Key-Value pairs that define parameters for the connection. Default: empty propertiessecret (
Optional[ISecretRef]) – (experimental) 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]]) – (experimental) The list of security groups needed to successfully make this connection e.g. to successfully connect to VPC. Default: no security groupsubnet (
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 withvpc: providesubnetto pin the connection to a specific subnet, or providevpc(optionally withvpcSubnets) to let the CDK select one for you. Default: - no subnet, unlessvpcis providedvpc (
Optional[IVpc]) – (experimental) The VPC to connect to resources within. When provided, the CDK selects a subnet from this VPC usingvpcSubnets. A Glue connection targets a single subnet, so the first subnet of the selection is used. Mutually exclusive withsubnet. Default: - no VPC, the subnet is taken fromsubnetif providedvpc_subnets (
Union[SubnetSelection,Dict[str,Any],None]) – (experimental) Which subnets ofvpcto select the connection subnet from. Only used whenvpcis provided. Since a Glue connection targets a single subnet, the first subnet of the selection is used. Default: - private subnetstype (
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:
- 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_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
- 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: providesubnetto pin the connection to a specific subnet, or providevpc(optionally withvpcSubnets) to let the CDK select one for you.- Default:
no subnet, unless
vpcis 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
subnetif provided
- Stability:
experimental
- vpc_subnets
(experimental) Which subnets of
vpcto select the connection subnet from.Only used when
vpcis provided. Since a Glue connection targets a single subnet, the first subnet of the selection is used.- Default:
private subnets
- Stability:
experimental