published on Thursday, May 14, 2026 by Pulumi
published on Thursday, May 14, 2026 by Pulumi
Provides details about an AWS 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/v7/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.ArrayList;
import java.util.Arrays;
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
Example coming soon!
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,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetConnectionResult
def get_connection_output(id: pulumi.Input[Optional[str]] = None,
region: pulumi.Input[Optional[str]] = None,
tags: pulumi.Input[Optional[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 dictionarydata "aws_glue_getconnection" "name" {
# arguments
}The 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.The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- 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.The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- 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.The following arguments are optional:
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map(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.The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- 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.The following arguments are optional:
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- {[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.The following arguments are optional:
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- 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.The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String>
- Tags assigned to the resource.
getConnection Result
The following output properties are available:
- Arn string
- ARN of the Glue Connection.
- Athena
Properties Dictionary<string, string> - Map of connection properties specific to the Athena compute environment.
- Authentication
Configurations List<GetConnection Authentication Configuration> - Configuration block for authentication options.
- Catalog
Id string - Catalog ID of the Glue Connection.
- Connection
Properties Dictionary<string, string> - Map of connection properties.
- Connection
Type string - Type of Glue Connection.
- Description string
- Description of the connection.
- Id string
- Match
Criterias List<string> - List of criteria that can be used in selecting this connection.
- Name string
- Name of the Glue Connection.
- Physical
Connection List<GetRequirements Connection Physical Connection Requirement> - Map of physical connection requirements, such as VPC and SecurityGroup.
- Region string
- Dictionary<string, string>
- Tags assigned to the resource.
- Arn string
- ARN of the Glue Connection.
- Athena
Properties map[string]string - Map of connection properties specific to the Athena compute environment.
- Authentication
Configurations []GetConnection Authentication Configuration - Configuration block for authentication options.
- Catalog
Id string - Catalog ID of the Glue Connection.
- Connection
Properties map[string]string - Map of connection properties.
- Connection
Type string - Type of Glue Connection.
- Description string
- Description of the connection.
- Id string
- Match
Criterias []string - List of criteria that can be used in selecting this connection.
- Name string
- Name of the Glue Connection.
- Physical
Connection []GetRequirements Connection Physical Connection Requirement - Map of physical connection requirements, such as VPC and SecurityGroup.
- Region string
- map[string]string
- Tags assigned to the resource.
- arn string
- ARN of the Glue Connection.
- athena_
properties map(string) - Map of connection properties specific to the Athena compute environment.
- authentication_
configurations list(object) - Configuration block for authentication options.
- catalog_
id string - Catalog ID of the Glue Connection.
- connection_
properties map(string) - Map of connection properties.
- connection_
type string - Type of Glue Connection.
- description string
- Description of the connection.
- id string
- match_
criterias list(string) - List of criteria that can be used in selecting this connection.
- name string
- Name of the Glue Connection.
- physical_
connection_ list(object)requirements - Map of physical connection requirements, such as VPC and SecurityGroup.
- region string
- map(string)
- Tags assigned to the resource.
- arn String
- ARN of the Glue Connection.
- athena
Properties Map<String,String> - Map of connection properties specific to the Athena compute environment.
- authentication
Configurations List<GetConnection Authentication Configuration> - Configuration block for authentication options.
- catalog
Id String - Catalog ID of the Glue Connection.
- connection
Properties Map<String,String> - Map of connection properties.
- connection
Type String - Type of Glue Connection.
- description String
- Description of the connection.
- id String
- match
Criterias List<String> - List of criteria that can be used in selecting this connection.
- name String
- Name of the Glue Connection.
- physical
Connection List<GetRequirements Connection Physical Connection Requirement> - Map of physical connection requirements, such as VPC and SecurityGroup.
- region String
- Map<String,String>
- Tags assigned to the resource.
- arn string
- ARN of the Glue Connection.
- athena
Properties {[key: string]: string} - Map of connection properties specific to the Athena compute environment.
- authentication
Configurations GetConnection Authentication Configuration[] - Configuration block for authentication options.
- catalog
Id string - Catalog ID of the Glue Connection.
- connection
Properties {[key: string]: string} - Map of connection properties.
- connection
Type string - Type of Glue Connection.
- description string
- Description of the connection.
- id string
- match
Criterias string[] - List of criteria that can be used in selecting this connection.
- name string
- Name of the Glue Connection.
- physical
Connection GetRequirements Connection Physical Connection Requirement[] - Map of physical connection requirements, such as VPC and SecurityGroup.
- region string
- {[key: string]: string}
- Tags assigned to the resource.
- arn str
- ARN of the Glue Connection.
- athena_
properties Mapping[str, str] - Map of connection properties specific to the Athena compute environment.
- authentication_
configurations Sequence[GetConnection Authentication Configuration] - Configuration block for authentication options.
- catalog_
id str - Catalog ID of the Glue Connection.
- connection_
properties Mapping[str, str] - Map of connection properties.
- connection_
type str - Type of Glue Connection.
- description str
- Description of the connection.
- id str
- match_
criterias Sequence[str] - 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] - Map of physical connection requirements, such as VPC and SecurityGroup.
- region str
- Mapping[str, str]
- Tags assigned to the resource.
- arn String
- ARN of the Glue Connection.
- athena
Properties Map<String> - Map of connection properties specific to the Athena compute environment.
- authentication
Configurations List<Property Map> - Configuration block for authentication options.
- catalog
Id String - Catalog ID of the Glue Connection.
- connection
Properties Map<String> - Map of connection properties.
- connection
Type String - Type of Glue Connection.
- description String
- Description of the connection.
- id String
- match
Criterias List<String> - List of criteria that can be used in selecting this connection.
- name String
- Name of the Glue Connection.
- physical
Connection List<Property Map>Requirements - Map of physical connection requirements, such as VPC and SecurityGroup.
- region String
- Map<String>
- Tags assigned to the resource.
Supporting Types
GetConnectionAuthenticationConfiguration
GetConnectionAuthenticationConfigurationBasicAuthenticationCredential
GetConnectionAuthenticationConfigurationOauth2Property
-
List<Get
Connection Authentication Configuration Oauth2Property Authorization Code Property> - Oauth2Client
Applications List<GetConnection Authentication Configuration Oauth2Property Oauth2Client Application> - Oauth2Credentials
List<Get
Connection Authentication Configuration Oauth2Property Oauth2Credential> - Oauth2Grant
Type string - Token
Url string - Token
Url Dictionary<string, string>Parameters Map
-
[]Get
Connection Authentication Configuration Oauth2Property Authorization Code Property - Oauth2Client
Applications []GetConnection Authentication Configuration Oauth2Property Oauth2Client Application - Oauth2Credentials
[]Get
Connection Authentication Configuration Oauth2Property Oauth2Credential - Oauth2Grant
Type string - Token
Url string - Token
Url map[string]stringParameters Map
-
List<Get
Connection Authentication Configuration Oauth2Property Authorization Code Property> - oauth2Client
Applications List<GetConnection Authentication Configuration Oauth2Property Oauth2Client Application> - oauth2Credentials
List<Get
Connection Authentication Configuration Oauth2Property Oauth2Credential> - oauth2Grant
Type String - token
Url String - token
Url Map<String,String>Parameters Map
-
Get
Connection Authentication Configuration Oauth2Property Authorization Code Property[] - oauth2Client
Applications GetConnection Authentication Configuration Oauth2Property Oauth2Client Application[] - oauth2Credentials
Get
Connection Authentication Configuration Oauth2Property Oauth2Credential[] - oauth2Grant
Type string - token
Url string - token
Url {[key: string]: string}Parameters Map
-
Sequence[Get
Connection Authentication Configuration Oauth2Property Authorization Code Property] - oauth2_
client_ Sequence[Getapplications Connection Authentication Configuration Oauth2Property Oauth2Client Application] - oauth2_
credentials Sequence[GetConnection Authentication Configuration Oauth2Property Oauth2Credential] - oauth2_
grant_ strtype - token_
url str - token_
url_ Mapping[str, str]parameters_ map
GetConnectionAuthenticationConfigurationOauth2PropertyAuthorizationCodeProperty
- string
- Redirect
Uri string
- string
- Redirect
Uri string
- string
- redirect_
uri string
- String
- redirect
Uri String
- string
- redirect
Uri string
- str
- redirect_
uri str
- String
- redirect
Uri String
GetConnectionAuthenticationConfigurationOauth2PropertyOauth2ClientApplication
GetConnectionAuthenticationConfigurationOauth2PropertyOauth2Credential
- Access
Token string - Jwt
Token string - Refresh
Token string - User
Managed stringClient Application Client Secret
- Access
Token string - Jwt
Token string - Refresh
Token string - User
Managed stringClient Application Client Secret
- access_
token string - jwt_
token string - refresh_
token string - user_
managed_ stringclient_ application_ client_ secret
- access
Token String - jwt
Token String - refresh
Token String - user
Managed StringClient Application Client Secret
- access
Token string - jwt
Token string - refresh
Token string - user
Managed stringClient Application Client Secret
- access
Token String - jwt
Token String - refresh
Token String - user
Managed StringClient Application Client Secret
GetConnectionPhysicalConnectionRequirement
- Availability
Zone string - Security
Group List<string>Id Lists - Subnet
Id string
- Availability
Zone string - Security
Group []stringId Lists - Subnet
Id string
- availability_
zone string - security_
group_ list(string)id_ lists - subnet_
id string
- availability
Zone String - security
Group List<String>Id Lists - subnet
Id String
- availability
Zone string - security
Group string[]Id Lists - subnet
Id string
- availability_
zone str - security_
group_ Sequence[str]id_ lists - subnet_
id str
- availability
Zone String - security
Group List<String>Id Lists - subnet
Id String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Thursday, May 14, 2026 by Pulumi
