AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.10.0 published on Monday, Jul 11, 2022 by Pulumi

getConnection

This data source can be used to fetch information about a specific Glue Connection.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.Glue.GetConnection.InvokeAsync(new Aws.Glue.GetConnectionArgs
        {
            Id = "123456789123:connection",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/glue"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := glue.LookupConnection(ctx, &glue.LookupConnectionArgs{
			Id: "123456789123:connection",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = Output.of(GlueFunctions.getConnection(GetConnectionArgs.builder()
            .id("123456789123:connection")
            .build()));

    }
}
import pulumi
import pulumi_aws as aws

example = aws.glue.get_connection(id="123456789123:connection")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.glue.getConnection({
    id: "123456789123:connection",
}));
variables:
  example:
    Fn::Invoke:
      Function: aws:glue:getConnection
      Arguments:
        id: 123456789123:connection

Using getConnection

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getConnection(args: GetConnectionArgs, opts?: InvokeOptions): Promise<GetConnectionResult>
function getConnectionOutput(args: GetConnectionOutputArgs, opts?: InvokeOptions): Output<GetConnectionResult>
def get_connection(id: Optional[str] = None,
                   tags: Optional[Mapping[str, str]] = None,
                   opts: Optional[InvokeOptions] = None) -> GetConnectionResult
def get_connection_output(id: Optional[pulumi.Input[str]] = None,
                   tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetConnectionResult]
func LookupConnection(ctx *Context, args *LookupConnectionArgs, opts ...InvokeOption) (*LookupConnectionResult, error)
func LookupConnectionOutput(ctx *Context, args *LookupConnectionOutputArgs, opts ...InvokeOption) LookupConnectionResultOutput

> Note: This function is named LookupConnection in the Go SDK.

public static class GetConnection 
{
    public static Task<GetConnectionResult> InvokeAsync(GetConnectionArgs args, InvokeOptions? opts = null)
    public static Output<GetConnectionResult> Invoke(GetConnectionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetConnectionResult> getConnection(GetConnectionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:glue/getConnection:getConnection
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Id string

A concatenation of the catalog ID and connection name. For example, if your account ID is 123456789123 and the connection name is conn then the ID is 123456789123:conn.

Tags Dictionary<string, string>

The tags assigned to the resource

Id string

A concatenation of the catalog ID and connection name. For example, if your account ID is 123456789123 and the connection name is conn then the ID is 123456789123:conn.

Tags map[string]string

The tags assigned to the resource

id String

A concatenation of the catalog ID and connection name. For example, if your account ID is 123456789123 and the connection name is conn then the ID is 123456789123:conn.

tags Map<String,String>

The tags assigned to the resource

id string

A concatenation of the catalog ID and connection name. For example, if your account ID is 123456789123 and the connection name is conn then the ID is 123456789123:conn.

tags {[key: string]: string}

The tags assigned to the resource

id str

A concatenation of the catalog ID and connection name. For example, if your account ID is 123456789123 and the connection name is conn then the ID is 123456789123:conn.

tags Mapping[str, str]

The tags assigned to the resource

id String

A concatenation of the catalog ID and connection name. For example, if your account ID is 123456789123 and the connection name is conn then the ID is 123456789123:conn.

tags Map<String>

The tags assigned to the resource

getConnection Result

The following output properties are available:

Arn string

The ARN of the Glue Connection.

CatalogId string

The catalog ID of the Glue Connection.

ConnectionProperties Dictionary<string, string>
ConnectionType string

The type of Glue Connection.

Description string

Description of the connection.

Id string
MatchCriterias List<string>

A list of criteria that can be used in selecting this connection.

Name string

The name of the Glue Connection.

PhysicalConnectionRequirements List<GetConnectionPhysicalConnectionRequirement>

A map of physical connection requirements, such as VPC and SecurityGroup.

Tags Dictionary<string, string>

The tags assigned to the resource

Arn string

The ARN of the Glue Connection.

CatalogId string

The catalog ID of the Glue Connection.

ConnectionProperties map[string]string
ConnectionType string

The type of Glue Connection.

Description string

Description of the connection.

Id string
MatchCriterias []string

A list of criteria that can be used in selecting this connection.

Name string

The name of the Glue Connection.

PhysicalConnectionRequirements []GetConnectionPhysicalConnectionRequirement

A map of physical connection requirements, such as VPC and SecurityGroup.

Tags map[string]string

The tags assigned to the resource

arn String

The ARN of the Glue Connection.

catalogId String

The catalog ID of the Glue Connection.

connectionProperties Map<String,String>
connectionType String

The type of Glue Connection.

description String

Description of the connection.

id String
matchCriterias List<String>

A list of criteria that can be used in selecting this connection.

name String

The name of the Glue Connection.

physicalConnectionRequirements List<GetConnectionPhysicalConnectionRequirement>

A map of physical connection requirements, such as VPC and SecurityGroup.

tags Map<String,String>

The tags assigned to the resource

arn string

The ARN of the Glue Connection.

catalogId string

The catalog ID of the Glue Connection.

connectionProperties {[key: string]: string}
connectionType string

The type of Glue Connection.

description string

Description of the connection.

id string
matchCriterias string[]

A list of criteria that can be used in selecting this connection.

name string

The name of the Glue Connection.

physicalConnectionRequirements GetConnectionPhysicalConnectionRequirement[]

A map of physical connection requirements, such as VPC and SecurityGroup.

tags {[key: string]: string}

The tags assigned to the resource

arn str

The ARN of the Glue Connection.

catalog_id str

The catalog ID of the Glue Connection.

connection_properties Mapping[str, str]
connection_type str

The type of Glue Connection.

description str

Description of the connection.

id str
match_criterias Sequence[str]

A list of criteria that can be used in selecting this connection.

name str

The name of the Glue Connection.

physical_connection_requirements Sequence[GetConnectionPhysicalConnectionRequirement]

A map of physical connection requirements, such as VPC and SecurityGroup.

tags Mapping[str, str]

The tags assigned to the resource

arn String

The ARN of the Glue Connection.

catalogId String

The catalog ID of the Glue Connection.

connectionProperties Map<String>
connectionType String

The type of Glue Connection.

description String

Description of the connection.

id String
matchCriterias List<String>

A list of criteria that can be used in selecting this connection.

name String

The name of the Glue Connection.

physicalConnectionRequirements List<Property Map>

A map of physical connection requirements, such as VPC and SecurityGroup.

tags Map<String>

The tags assigned to the resource

Supporting Types

GetConnectionPhysicalConnectionRequirement

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.