Class Connection
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.glue.alpha.Connection
- All Implemented Interfaces:
IResource
,IConnection
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-10-31T19:13:07.880Z")
@Stability(Experimental)
public class Connection
extends Resource
implements IConnection
(experimental) An AWS Glue connection to a data source.
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();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
(experimental) A fluent builder forConnection
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.glue.alpha.IConnection
IConnection.Jsii$Default, IConnection.Jsii$Proxy
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
Connection
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
Connection
(software.amazon.jsii.JsiiObjectRef objRef) Connection
(software.constructs.Construct scope, String id, ConnectionProps props) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProperty
(String key, String value) (experimental) Add additional connection parameters.static IConnection
fromConnectionArn
(software.constructs.Construct scope, String id, String connectionArn) (experimental) Creates a Connection construct that represents an external connection.static IConnection
fromConnectionName
(software.constructs.Construct scope, String id, String connectionName) (experimental) Creates a Connection construct that represents an external connection.(experimental) The ARN of the connection.(experimental) The name of the connection.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Connection
protected Connection(software.amazon.jsii.JsiiObjectRef objRef) -
Connection
protected Connection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Connection
@Stability(Experimental) public Connection(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ConnectionProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.
-
-
Method Details
-
fromConnectionArn
@Stability(Experimental) @NotNull public static IConnection fromConnectionArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String connectionArn) (experimental) Creates a Connection construct that represents an external connection.- Parameters:
scope
- The scope creating construct (usuallythis
). This parameter is required.id
- The construct's id. This parameter is required.connectionArn
- arn of external connection. This parameter is required.
-
fromConnectionName
@Stability(Experimental) @NotNull public static IConnection fromConnectionName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String connectionName) (experimental) Creates a Connection construct that represents an external connection.- Parameters:
scope
- The scope creating construct (usuallythis
). This parameter is required.id
- The construct's id. This parameter is required.connectionName
- name of external connection. This parameter is required.
-
addProperty
(experimental) Add additional connection parameters.- Parameters:
key
- parameter key. This parameter is required.value
- parameter value. This parameter is required.
-
getConnectionArn
(experimental) The ARN of the connection.- Specified by:
getConnectionArn
in interfaceIConnection
-
getConnectionName
(experimental) The name of the connection.- Specified by:
getConnectionName
in interfaceIConnection
-