@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-20T22:20:01.715Z") public class Connection extends Resource implements IConnection
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 | Class and Description |
---|---|
static class |
Connection.Builder
(experimental) A fluent builder for
Connection . |
IConnection.Jsii$Default, IConnection.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Connection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Connection(software.amazon.jsii.JsiiObjectRef objRef) |
|
Connection(software.constructs.Construct scope,
java.lang.String id,
ConnectionProps props) |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(java.lang.String key,
java.lang.String value)
(experimental) Add additional connection parameters.
|
static IConnection |
fromConnectionArn(software.constructs.Construct scope,
java.lang.String id,
java.lang.String connectionArn)
(experimental) Creates a Connection construct that represents an external connection.
|
static IConnection |
fromConnectionName(software.constructs.Construct scope,
java.lang.String id,
java.lang.String connectionName)
(experimental) Creates a Connection construct that represents an external connection.
|
java.lang.String |
getConnectionArn()
(experimental) The ARN of the connection.
|
java.lang.String |
getConnectionName()
(experimental) The name of the connection.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected Connection(software.amazon.jsii.JsiiObjectRef objRef)
protected Connection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public Connection(software.constructs.Construct scope, java.lang.String id, ConnectionProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public static IConnection fromConnectionArn(software.constructs.Construct scope, java.lang.String id, java.lang.String connectionArn)
scope
- The scope creating construct (usually `this`). This parameter is required.id
- The construct's id. This parameter is required.connectionArn
- arn of external connection. This parameter is required.public static IConnection fromConnectionName(software.constructs.Construct scope, java.lang.String id, java.lang.String connectionName)
scope
- The scope creating construct (usually `this`). This parameter is required.id
- The construct's id. This parameter is required.connectionName
- name of external connection. This parameter is required.public void addProperty(java.lang.String key, java.lang.String value)
key
- parameter key. This parameter is required.value
- parameter value. This parameter is required.public java.lang.String getConnectionArn()
getConnectionArn
in interface IConnection
public java.lang.String getConnectionName()
getConnectionName
in interface IConnection