@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)",
date="2022-05-13T01:13:35.143Z")
public class ConnectionType
extends software.amazon.jsii.JsiiObject
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:
SecurityGroup securityGroup; Subnet subnet; Connection.Builder.create(this, "MyConnection") .type(ConnectionType.NETWORK) // The security groups granting AWS Glue inbound access to the data source within the VPC .securityGroups(List.of(securityGroup)) // The VPC subnet which contains the data source .subnet(subnet) .build();
Modifier and Type | Field and Description |
---|---|
static ConnectionType |
JDBC
(experimental) Designates a connection to a database through Java Database Connectivity (JDBC).
|
static ConnectionType |
KAFKA
(experimental) Designates a connection to an Apache Kafka streaming platform.
|
static ConnectionType |
MONGODB
(experimental) Designates a connection to a MongoDB document database.
|
static ConnectionType |
NETWORK
(experimental) Designates a network connection to a data source within an Amazon Virtual Private Cloud environment (Amazon VPC).
|
Modifier | Constructor and Description |
---|---|
protected |
ConnectionType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ConnectionType(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
(experimental) The name of this ConnectionType, as expected by Connection resource.
|
java.lang.String |
toString()
(experimental) The connection type name as expected by Connection resource.
|
public static final ConnectionType JDBC
public static final ConnectionType KAFKA
public static final ConnectionType MONGODB
public static final ConnectionType NETWORK