Class Connection
Provides a Glue Connection resource.
Example Usage
Non-VPC Connection
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Glue.Connection("example", new Aws.Glue.ConnectionArgs
{
ConnectionProperties =
{
{ "JDBC_CONNECTION_URL", "jdbc:mysql://example.com/exampledatabase" },
{ "PASSWORD", "examplepassword" },
{ "USERNAME", "exampleusername" },
},
});
}
}
VPC Connection
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Glue.Connection("example", new Aws.Glue.ConnectionArgs
{
ConnectionProperties =
{
{ "JDBC_CONNECTION_URL", $"jdbc:mysql://{aws_rds_cluster.Example.Endpoint}/exampledatabase" },
{ "PASSWORD", "examplepassword" },
{ "USERNAME", "exampleusername" },
},
PhysicalConnectionRequirements = new Aws.Glue.Inputs.ConnectionPhysicalConnectionRequirementsArgs
{
AvailabilityZone = aws_subnet.Example.Availability_zone,
SecurityGroupIdList =
{
aws_security_group.Example.Id,
},
SubnetId = aws_subnet.Example.Id,
},
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Glue
Assembly: Pulumi.Aws.dll
Syntax
public class Connection : CustomResource
Constructors
View SourceConnection(String, ConnectionArgs, CustomResourceOptions)
Create a Connection resource with the given unique name, arguments, and options.
Declaration
public Connection(string name, ConnectionArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ConnectionArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceArn
The ARN of the Glue Connection.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
CatalogId
The ID of the Data Catalog in which to create the connection. If none is supplied, the AWS account ID is used by default.
Declaration
public Output<string> CatalogId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ConnectionProperties
A map of key-value pairs used as parameters for this connection.
Declaration
public Output<ImmutableDictionary<string, object>> ConnectionProperties { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
ConnectionType
The type of the connection. Supported are: JDBC, MONGODB, KAFKA. Defaults to JBDC.
Declaration
public Output<string> ConnectionType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Description
Description of the connection.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
MatchCriterias
A list of criteria that can be used in selecting this connection.
Declaration
public Output<ImmutableArray<string>> MatchCriterias { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Name
The name of the connection.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PhysicalConnectionRequirements
A map of physical connection requirements, such as VPC and SecurityGroup. Defined below.
Declaration
public Output<ConnectionPhysicalConnectionRequirements> PhysicalConnectionRequirements { get; }
Property Value
| Type | Description |
|---|---|
| Output<ConnectionPhysicalConnectionRequirements> |
Methods
View SourceGet(String, Input<String>, ConnectionState, CustomResourceOptions)
Get an existing Connection resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Connection Get(string name, Input<string> id, ConnectionState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ConnectionState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Connection |