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.116.0 (build 0eddcff)",
date="2025-10-24T13:34:50.071Z")
@Stability(Experimental)
public class Connection
extends Resource
implements IConnection
(experimental) An AWS Glue connection to a data source.
Example:
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.iam.*;
Stack stack;
IRole role;
Code script;
RayJob.Builder.create(stack, "ImportedJob")
.role(role)
.script(script)
.jobName("RayCustomJobName")
.description("This is a description")
.workerType(WorkerType.Z_2X)
.numberOfWorkers(5)
.runtime(Runtime.RAY_TWO_FOUR)
.maxRetries(3)
.maxConcurrentRuns(100)
.timeout(Duration.hours(2))
.connections(List.of(Connection.fromConnectionName(stack, "Connection", "connectionName")))
.securityConfiguration(SecurityConfiguration.fromSecurityConfigurationName(stack, "SecurityConfig", "securityConfigName"))
.tags(Map.of(
"FirstTagName", "FirstTagValue",
"SecondTagName", "SecondTagValue",
"XTagName", "XTagValue"))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class(experimental) A fluent builder forConnection.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.glue.alpha.IConnection
IConnection.Jsii$Default, IConnection.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConnection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedConnection(software.amazon.jsii.JsiiObjectRef objRef) Connection(software.constructs.Construct scope, String id, ConnectionProps props) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(String key, String value) (experimental) Add additional connection parameters.static IConnectionfromConnectionArn(software.constructs.Construct scope, String id, String connectionArn) (experimental) Creates a Connection construct that represents an external connection.static IConnectionfromConnectionName(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, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
-
-
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:
getConnectionArnin interfaceIConnection
-
getConnectionName
(experimental) The name of the connection.- Specified by:
getConnectionNamein interfaceIConnection
-