Show / Hide Table of Contents

Class Connection

(experimental) An AWS Glue connection to a data source.

Inheritance
object
Resource
Connection
Implements
IConnection
IResource
IConstruct
IDependable
IEnvironmentAware
Inherited Members
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(string, IArnComponents)
Resource.GetResourceNameAttribute(string)
Resource.Env
Resource.PhysicalName
Resource.Stack
Namespace: Amazon.CDK.AWS.Glue.Alpha
Assembly: Amazon.CDK.AWS.Glue.Alpha.dll
Syntax (csharp)
public class Connection : Resource, IConnection, IResource, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class Connection Inherits Resource Implements IConnection, IResource, IConstruct, IDependable, IEnvironmentAware
Remarks

Stability: Experimental

ExampleMetadata: infused

Examples
using Amazon.CDK;
             using Amazon.CDK.AWS.IAM;
             Stack stack;
             IRole role;
             Code script;

             new RayJob(stack, "ImportedJob", new RayJobProps {
                 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 = new [] { Connection.FromConnectionName(stack, "Connection", "connectionName") },
                 SecurityConfiguration = SecurityConfiguration.FromSecurityConfigurationName(stack, "SecurityConfig", "securityConfigName"),
                 Tags = new Dictionary<string, string> {
                     { "FirstTagName", "FirstTagValue" },
                     { "SecondTagName", "SecondTagValue" },
                     { "XTagName", "XTagValue" }
                 }
             });

Synopsis

Constructors

Connection(Construct, string, IConnectionProps)

(experimental) An AWS Glue connection to a data source.

Properties

ConnectionArn

(experimental) The ARN of the connection.

ConnectionName

(experimental) The name of the connection.

PROPERTY_INJECTION_ID

(experimental) Uniquely identifies this class.

Methods

AddProperty(string, string)

(experimental) Add additional connection parameters.

FromConnectionArn(Construct, string, string)

(experimental) Creates a Connection construct that represents an external connection.

FromConnectionName(Construct, string, string)

(experimental) Creates a Connection construct that represents an external connection.

Constructors

Connection(Construct, string, IConnectionProps)

(experimental) An AWS Glue connection to a data source.

public Connection(Construct scope, string id, IConnectionProps props)
Parameters
scope Construct
id string
props IConnectionProps
Remarks

Stability: Experimental

Properties

ConnectionArn

(experimental) The ARN of the connection.

public virtual string ConnectionArn { get; }
Property Value

string

Remarks

Stability: Experimental

ConnectionName

(experimental) The name of the connection.

public virtual string ConnectionName { get; }
Property Value

string

Remarks

Stability: Experimental

PROPERTY_INJECTION_ID

(experimental) Uniquely identifies this class.

public static string PROPERTY_INJECTION_ID { get; }
Property Value

string

Remarks

Stability: Experimental

Methods

AddProperty(string, string)

(experimental) Add additional connection parameters.

public virtual void AddProperty(string key, string value)
Parameters
key string

parameter key.

value string

parameter value.

Remarks

Stability: Experimental

FromConnectionArn(Construct, string, string)

(experimental) Creates a Connection construct that represents an external connection.

public static IConnection FromConnectionArn(Construct scope, string id, string connectionArn)
Parameters
scope Construct

The scope creating construct (usually this).

id string

The construct's id.

connectionArn string

arn of external connection.

Returns

IConnection

Remarks

Stability: Experimental

FromConnectionName(Construct, string, string)

(experimental) Creates a Connection construct that represents an external connection.

public static IConnection FromConnectionName(Construct scope, string id, string connectionName)
Parameters
scope Construct

The scope creating construct (usually this).

id string

The construct's id.

connectionName string

name of external connection.

Returns

IConnection

Remarks

Stability: Experimental

Implements

IConnection
IResource
Constructs.IConstruct
Constructs.IDependable
IEnvironmentAware
Back to top Generated by DocFX