class ConnectionType
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Glue.ConnectionType |
Java | software.amazon.awscdk.services.glue.ConnectionType |
Python | aws_cdk.aws_glue.ConnectionType |
TypeScript (source) | @aws-cdk/aws-glue » ConnectionType |
The type of the glue connection.
If you need to use a connection type that doesn't exist as a static member, you
can instantiate a ConnectionType
object, e.g: new ConnectionType('NEW_TYPE')
.
Example
declare const securityGroup: ec2.SecurityGroup;
declare const subnet: ec2.Subnet;
new glue.Connection(this, 'MyConnection', {
type: glue.ConnectionType.NETWORK,
// The security groups granting AWS Glue inbound access to the data source within the VPC
securityGroups: [securityGroup],
// The VPC subnet which contains the data source
subnet,
});
Initializer
new ConnectionType(name: string)
Parameters
- name
string
Properties
Name | Type | Description |
---|---|---|
name | string | The name of this ConnectionType, as expected by Connection resource. |
static JDBC | Connection | Designates a connection to a database through Java Database Connectivity (JDBC). |
static KAFKA | Connection | Designates a connection to an Apache Kafka streaming platform. |
static MONGODB | Connection | Designates a connection to a MongoDB document database. |
static NETWORK | Connection | Designates a network connection to a data source within an Amazon Virtual Private Cloud environment (Amazon VPC). |
name
Type:
string
The name of this ConnectionType, as expected by Connection resource.
static JDBC
Type:
Connection
Designates a connection to a database through Java Database Connectivity (JDBC).
static KAFKA
Type:
Connection
Designates a connection to an Apache Kafka streaming platform.
static MONGODB
Type:
Connection
Designates a connection to a MongoDB document database.
static NETWORK
Type:
Connection
Designates a network connection to a data source within an Amazon Virtual Private Cloud environment (Amazon VPC).
Methods
Name | Description |
---|---|
to | The connection type name as expected by Connection resource. |
String()
topublic toString(): string
Returns
string
The connection type name as expected by Connection resource.