ConnectionOptions
- class aws_cdk.aws_glue_alpha.ConnectionOptions(*, connection_name=None, description=None, match_criteria=None, network=None, properties=None, secret=None, security_groups=None)
Bases:
object(experimental) Base Connection Options.
- 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 criterianetwork (
Optional[ConnectionNetwork]) – (experimental) 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]]) – (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 group
- Stability:
experimental
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_glue_alpha as glue_alpha from aws_cdk import aws_ec2 as ec2 from aws_cdk.interfaces import aws_secretsmanager as interfaces_secretsmanager # connection_network: glue_alpha.ConnectionNetwork # secret_ref: interfaces_secretsmanager.ISecretRef # security_group: ec2.SecurityGroup connection_options = glue_alpha.ConnectionOptions( connection_name="connectionName", description="description", match_criteria=["matchCriteria"], network=connection_network, properties={ "properties_key": "properties" }, secret=secret_ref, security_groups=[security_group] )
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
- 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
- Stability:
experimental
- Type:
(experimental) The VPC network placement for this connection, so it can reach resources inside a VPC. See more at https
- 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_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