AWS v6.71.0 published on Friday, Mar 7, 2025 by Pulumi
aws.glue.getConnection
Explore with Pulumi AI
This data source can be used to fetch information about a specific Glue Connection.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.glue.getConnection({
    id: "123456789123:connection",
});
import pulumi
import pulumi_aws as aws
example = aws.glue.get_connection(id="123456789123:connection")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/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
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var example = Aws.Glue.GetConnection.Invoke(new()
    {
        Id = "123456789123:connection",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.glue.GlueFunctions;
import com.pulumi.aws.glue.inputs.GetConnectionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var example = GlueFunctions.getConnection(GetConnectionArgs.builder()
            .id("123456789123:connection")
            .build());
    }
}
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)
public static Output<GetConnectionResult> getConnection(GetConnectionArgs args, InvokeOptions options)
fn::invoke:
  function: aws:glue/getConnection:getConnection
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Id string
- Concatenation of the catalog ID and connection name. For example, if your account ID is
123456789123and the connection name isconnthen the ID is123456789123:conn.
- Dictionary<string, string>
- Tags assigned to the resource
- Id string
- Concatenation of the catalog ID and connection name. For example, if your account ID is
123456789123and the connection name isconnthen the ID is123456789123:conn.
- map[string]string
- Tags assigned to the resource
- id String
- Concatenation of the catalog ID and connection name. For example, if your account ID is
123456789123and the connection name isconnthen the ID is123456789123:conn.
- Map<String,String>
- Tags assigned to the resource
- id string
- Concatenation of the catalog ID and connection name. For example, if your account ID is
123456789123and the connection name isconnthen the ID is123456789123:conn.
- {[key: string]: string}
- Tags assigned to the resource
- id str
- Concatenation of the catalog ID and connection name. For example, if your account ID is
123456789123and the connection name isconnthen the ID is123456789123:conn.
- Mapping[str, str]
- Tags assigned to the resource
- id String
- Concatenation of the catalog ID and connection name. For example, if your account ID is
123456789123and the connection name isconnthen the ID is123456789123:conn.
- Map<String>
- Tags assigned to the resource
getConnection Result
The following output properties are available:
- Arn string
- ARN of the Glue Connection.
- CatalogId string
- Catalog ID of the Glue Connection.
- ConnectionProperties Dictionary<string, string>
- ConnectionType string
- 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
- Name of the Glue Connection.
- PhysicalConnection List<GetRequirements Connection Physical Connection Requirement> 
- A map of physical connection requirements, such as VPC and SecurityGroup.
- Dictionary<string, string>
- Tags assigned to the resource
- Arn string
- ARN of the Glue Connection.
- CatalogId string
- Catalog ID of the Glue Connection.
- ConnectionProperties map[string]string
- ConnectionType string
- 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
- Name of the Glue Connection.
- PhysicalConnection []GetRequirements Connection Physical Connection Requirement 
- A map of physical connection requirements, such as VPC and SecurityGroup.
- map[string]string
- Tags assigned to the resource
- arn String
- ARN of the Glue Connection.
- catalogId String
- Catalog ID of the Glue Connection.
- connectionProperties Map<String,String>
- connectionType String
- 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
- Name of the Glue Connection.
- physicalConnection List<GetRequirements Connection Physical Connection Requirement> 
- A map of physical connection requirements, such as VPC and SecurityGroup.
- Map<String,String>
- Tags assigned to the resource
- arn string
- ARN of the Glue Connection.
- catalogId string
- Catalog ID of the Glue Connection.
- connectionProperties {[key: string]: string}
- connectionType string
- 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
- Name of the Glue Connection.
- physicalConnection GetRequirements Connection Physical Connection Requirement[] 
- A map of physical connection requirements, such as VPC and SecurityGroup.
- {[key: string]: string}
- Tags assigned to the resource
- arn str
- ARN of the Glue Connection.
- catalog_id str
- Catalog ID of the Glue Connection.
- connection_properties Mapping[str, str]
- connection_type str
- 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
- Name of the Glue Connection.
- physical_connection_ Sequence[Getrequirements Connection Physical Connection Requirement] 
- A map of physical connection requirements, such as VPC and SecurityGroup.
- Mapping[str, str]
- Tags assigned to the resource
- arn String
- ARN of the Glue Connection.
- catalogId String
- Catalog ID of the Glue Connection.
- connectionProperties Map<String>
- connectionType String
- 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
- Name of the Glue Connection.
- physicalConnection List<Property Map>Requirements 
- A map of physical connection requirements, such as VPC and SecurityGroup.
- Map<String>
- Tags assigned to the resource
Supporting Types
GetConnectionPhysicalConnectionRequirement    
- AvailabilityZone string
- SecurityGroup List<string>Id Lists 
- SubnetId string
- AvailabilityZone string
- SecurityGroup []stringId Lists 
- SubnetId string
- availabilityZone String
- securityGroup List<String>Id Lists 
- subnetId String
- availabilityZone string
- securityGroup string[]Id Lists 
- subnetId string
- availability_zone str
- security_group_ Sequence[str]id_ lists 
- subnet_id str
- availabilityZone String
- securityGroup List<String>Id Lists 
- subnetId String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.