Show / Hide Table of Contents

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,
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Connection
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Glue
Assembly: Pulumi.Aws.dll
Syntax
public class Connection : CustomResource

Constructors

View Source

Connection(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 Source

Arn

The ARN of the Glue Connection.

Declaration
public Output<string> Arn { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

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>>
View Source

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>
View Source

Description

Description of the connection.

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

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>>
View Source

Name

The name of the connection.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.