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();
 
  • 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 (usually this). 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 (usually this). This parameter is required.
      id - The construct's id. This parameter is required.
      connectionName - name of external connection. This parameter is required.
    • addProperty

      @Stability(Experimental) public void addProperty(@NotNull String key, @NotNull String value)
      (experimental) Add additional connection parameters.

      Parameters:
      key - parameter key. This parameter is required.
      value - parameter value. This parameter is required.
    • getConnectionArn

      @Stability(Experimental) @NotNull public String getConnectionArn()
      (experimental) The ARN of the connection.
      Specified by:
      getConnectionArn in interface IConnection
    • getConnectionName

      @Stability(Experimental) @NotNull public String getConnectionName()
      (experimental) The name of the connection.
      Specified by:
      getConnectionName in interface IConnection