Class Connection
(experimental) An AWS Glue connection to a data source.
Inherited Members
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
Remarks
Stability: Experimental
ConnectionName
(experimental) The name of the connection.
public virtual string ConnectionName { get; }
Property Value
Remarks
Stability: Experimental
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
Stability: Experimental
Methods
AddProperty(string, string)
(experimental) Add additional connection parameters.
public virtual void AddProperty(string key, string value)
Parameters
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
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
Remarks
Stability: Experimental