1. Packages
  2. Packages
  3. AWS
  4. API Docs
  5. glue
  6. Connection
Viewing docs for AWS v7.30.0
published on Thursday, May 14, 2026 by Pulumi
aws logo
Viewing docs for AWS v7.30.0
published on Thursday, May 14, 2026 by Pulumi

    Manages an AWS Glue Connection.

    Example Usage

    Non-VPC Connection

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.glue.Connection("example", {
        name: "example",
        connectionProperties: {
            JDBC_CONNECTION_URL: "jdbc:mysql://example.com/exampledatabase",
            PASSWORD: "examplepassword",
            USERNAME: "exampleusername",
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.glue.Connection("example",
        name="example",
        connection_properties={
            "JDBC_CONNECTION_URL": "jdbc:mysql://example.com/exampledatabase",
            "PASSWORD": "examplepassword",
            "USERNAME": "exampleusername",
        })
    
    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.NewConnection(ctx, "example", &glue.ConnectionArgs{
    			Name: pulumi.String("example"),
    			ConnectionProperties: pulumi.StringMap{
    				"JDBC_CONNECTION_URL": pulumi.String("jdbc:mysql://example.com/exampledatabase"),
    				"PASSWORD":            pulumi.String("examplepassword"),
    				"USERNAME":            pulumi.String("exampleusername"),
    			},
    		})
    		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 = new Aws.Glue.Connection("example", new()
        {
            Name = "example",
            ConnectionProperties = 
            {
                { "JDBC_CONNECTION_URL", "jdbc:mysql://example.com/exampledatabase" },
                { "PASSWORD", "examplepassword" },
                { "USERNAME", "exampleusername" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.glue.Connection;
    import com.pulumi.aws.glue.ConnectionArgs;
    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) {
            var example = new Connection("example", ConnectionArgs.builder()
                .name("example")
                .connectionProperties(Map.ofEntries(
                    Map.entry("JDBC_CONNECTION_URL", "jdbc:mysql://example.com/exampledatabase"),
                    Map.entry("PASSWORD", "examplepassword"),
                    Map.entry("USERNAME", "exampleusername")
                ))
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:glue:Connection
        properties:
          name: example
          connectionProperties:
            JDBC_CONNECTION_URL: jdbc:mysql://example.com/exampledatabase
            PASSWORD: examplepassword
            USERNAME: exampleusername
    
    Example coming soon!
    

    Non-VPC Connection with secret manager reference

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.secretsmanager.getSecret({
        name: "example-secret",
    });
    const exampleConnection = new aws.glue.Connection("example", {
        name: "example",
        connectionProperties: {
            JDBC_CONNECTION_URL: "jdbc:mysql://example.com/exampledatabase",
            SECRET_ID: example.then(example => example.name),
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.secretsmanager.get_secret(name="example-secret")
    example_connection = aws.glue.Connection("example",
        name="example",
        connection_properties={
            "JDBC_CONNECTION_URL": "jdbc:mysql://example.com/exampledatabase",
            "SECRET_ID": example.name,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/glue"
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/secretsmanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := secretsmanager.LookupSecret(ctx, &secretsmanager.LookupSecretArgs{
    			Name: pulumi.StringRef("example-secret"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = glue.NewConnection(ctx, "example", &glue.ConnectionArgs{
    			Name: pulumi.String("example"),
    			ConnectionProperties: pulumi.StringMap{
    				"JDBC_CONNECTION_URL": pulumi.String("jdbc:mysql://example.com/exampledatabase"),
    				"SECRET_ID":           pulumi.String(pulumi.String(example.Name)),
    			},
    		})
    		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.SecretsManager.GetSecret.Invoke(new()
        {
            Name = "example-secret",
        });
    
        var exampleConnection = new Aws.Glue.Connection("example", new()
        {
            Name = "example",
            ConnectionProperties = 
            {
                { "JDBC_CONNECTION_URL", "jdbc:mysql://example.com/exampledatabase" },
                { "SECRET_ID", example.Apply(getSecretResult => getSecretResult.Name) },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.secretsmanager.SecretsmanagerFunctions;
    import com.pulumi.aws.secretsmanager.inputs.GetSecretArgs;
    import com.pulumi.aws.glue.Connection;
    import com.pulumi.aws.glue.ConnectionArgs;
    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 = SecretsmanagerFunctions.getSecret(GetSecretArgs.builder()
                .name("example-secret")
                .build());
    
            var exampleConnection = new Connection("exampleConnection", ConnectionArgs.builder()
                .name("example")
                .connectionProperties(Map.ofEntries(
                    Map.entry("JDBC_CONNECTION_URL", "jdbc:mysql://example.com/exampledatabase"),
                    Map.entry("SECRET_ID", example.name())
                ))
                .build());
    
        }
    }
    
    resources:
      exampleConnection:
        type: aws:glue:Connection
        name: example
        properties:
          name: example
          connectionProperties:
            JDBC_CONNECTION_URL: jdbc:mysql://example.com/exampledatabase
            SECRET_ID: ${example.name}
    variables:
      example:
        fn::invoke:
          function: aws:secretsmanager:getSecret
          arguments:
            name: example-secret
    
    Example coming soon!
    

    VPC Connection

    For more information, see the AWS Documentation.

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.glue.Connection("example", {
        name: "example",
        connectionProperties: {
            JDBC_CONNECTION_URL: `jdbc:mysql://${exampleAwsRdsCluster.endpoint}/exampledatabase`,
            PASSWORD: "examplepassword",
            USERNAME: "exampleusername",
        },
        physicalConnectionRequirements: {
            availabilityZone: exampleAwsSubnet.availabilityZone,
            securityGroupIdLists: [exampleAwsSecurityGroup.id],
            subnetId: exampleAwsSubnet.id,
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.glue.Connection("example",
        name="example",
        connection_properties={
            "JDBC_CONNECTION_URL": f"jdbc:mysql://{example_aws_rds_cluster['endpoint']}/exampledatabase",
            "PASSWORD": "examplepassword",
            "USERNAME": "exampleusername",
        },
        physical_connection_requirements={
            "availability_zone": example_aws_subnet["availabilityZone"],
            "security_group_id_lists": [example_aws_security_group["id"]],
            "subnet_id": example_aws_subnet["id"],
        })
    
    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.NewConnection(ctx, "example", &glue.ConnectionArgs{
    			Name: pulumi.String("example"),
    			ConnectionProperties: pulumi.StringMap{
    				"JDBC_CONNECTION_URL": pulumi.Sprintf("jdbc:mysql://%v/exampledatabase", exampleAwsRdsCluster.Endpoint),
    				"PASSWORD":            pulumi.String("examplepassword"),
    				"USERNAME":            pulumi.String("exampleusername"),
    			},
    			PhysicalConnectionRequirements: &glue.ConnectionPhysicalConnectionRequirementsArgs{
    				AvailabilityZone: pulumi.Any(exampleAwsSubnet.AvailabilityZone),
    				SecurityGroupIdLists: pulumi.StringArray{
    					exampleAwsSecurityGroup.Id,
    				},
    				SubnetId: pulumi.Any(exampleAwsSubnet.Id),
    			},
    		})
    		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 = new Aws.Glue.Connection("example", new()
        {
            Name = "example",
            ConnectionProperties = 
            {
                { "JDBC_CONNECTION_URL", $"jdbc:mysql://{exampleAwsRdsCluster.Endpoint}/exampledatabase" },
                { "PASSWORD", "examplepassword" },
                { "USERNAME", "exampleusername" },
            },
            PhysicalConnectionRequirements = new Aws.Glue.Inputs.ConnectionPhysicalConnectionRequirementsArgs
            {
                AvailabilityZone = exampleAwsSubnet.AvailabilityZone,
                SecurityGroupIdLists = new[]
                {
                    exampleAwsSecurityGroup.Id,
                },
                SubnetId = exampleAwsSubnet.Id,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.glue.Connection;
    import com.pulumi.aws.glue.ConnectionArgs;
    import com.pulumi.aws.glue.inputs.ConnectionPhysicalConnectionRequirementsArgs;
    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) {
            var example = new Connection("example", ConnectionArgs.builder()
                .name("example")
                .connectionProperties(Map.ofEntries(
                    Map.entry("JDBC_CONNECTION_URL", String.format("jdbc:mysql://%s/exampledatabase", exampleAwsRdsCluster.endpoint())),
                    Map.entry("PASSWORD", "examplepassword"),
                    Map.entry("USERNAME", "exampleusername")
                ))
                .physicalConnectionRequirements(ConnectionPhysicalConnectionRequirementsArgs.builder()
                    .availabilityZone(exampleAwsSubnet.availabilityZone())
                    .securityGroupIdLists(exampleAwsSecurityGroup.id())
                    .subnetId(exampleAwsSubnet.id())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:glue:Connection
        properties:
          name: example
          connectionProperties:
            JDBC_CONNECTION_URL: jdbc:mysql://${exampleAwsRdsCluster.endpoint}/exampledatabase
            PASSWORD: examplepassword
            USERNAME: exampleusername
          physicalConnectionRequirements:
            availabilityZone: ${exampleAwsSubnet.availabilityZone}
            securityGroupIdLists:
              - ${exampleAwsSecurityGroup.id}
            subnetId: ${exampleAwsSubnet.id}
    
    Example coming soon!
    

    Connection using a custom connector

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    // Define the custom connector using the connection_type of `CUSTOM` with the match_criteria of `template_connection`
    // Example here being a snowflake jdbc connector with a secret having user and password as keys
    const example = aws.secretsmanager.getSecret({
        name: "example-secret",
    });
    const example1 = new aws.glue.Connection("example1", {
        name: "example1",
        connectionType: "CUSTOM",
        connectionProperties: {
            CONNECTOR_CLASS_NAME: "net.snowflake.client.jdbc.SnowflakeDriver",
            CONNECTION_TYPE: "Jdbc",
            CONNECTOR_URL: "s3://example/snowflake-jdbc.jar",
            JDBC_CONNECTION_URL: "[[\"default=jdbc:snowflake://example.com/?user=${user}&password=${password}\"],\",\"]",
        },
        matchCriterias: ["template-connection"],
    });
    // Reference the connector using match_criteria with the connector created above.
    const example2 = new aws.glue.Connection("example2", {
        name: "example2",
        connectionType: "CUSTOM",
        connectionProperties: {
            CONNECTOR_CLASS_NAME: "net.snowflake.client.jdbc.SnowflakeDriver",
            CONNECTION_TYPE: "Jdbc",
            CONNECTOR_URL: "s3://example/snowflake-jdbc.jar",
            JDBC_CONNECTION_URL: "jdbc:snowflake://example.com/?user=${user}&password=${password}",
            SECRET_ID: example.then(example => example.name),
        },
        matchCriterias: [
            "Connection",
            example1.name,
        ],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    # Define the custom connector using the connection_type of `CUSTOM` with the match_criteria of `template_connection`
    # Example here being a snowflake jdbc connector with a secret having user and password as keys
    example = aws.secretsmanager.get_secret(name="example-secret")
    example1 = aws.glue.Connection("example1",
        name="example1",
        connection_type="CUSTOM",
        connection_properties={
            "CONNECTOR_CLASS_NAME": "net.snowflake.client.jdbc.SnowflakeDriver",
            "CONNECTION_TYPE": "Jdbc",
            "CONNECTOR_URL": "s3://example/snowflake-jdbc.jar",
            "JDBC_CONNECTION_URL": "[[\"default=jdbc:snowflake://example.com/?user=${user}&password=${password}\"],\",\"]",
        },
        match_criterias=["template-connection"])
    # Reference the connector using match_criteria with the connector created above.
    example2 = aws.glue.Connection("example2",
        name="example2",
        connection_type="CUSTOM",
        connection_properties={
            "CONNECTOR_CLASS_NAME": "net.snowflake.client.jdbc.SnowflakeDriver",
            "CONNECTION_TYPE": "Jdbc",
            "CONNECTOR_URL": "s3://example/snowflake-jdbc.jar",
            "JDBC_CONNECTION_URL": "jdbc:snowflake://example.com/?user=${user}&password=${password}",
            "SECRET_ID": example.name,
        },
        match_criterias=[
            "Connection",
            example1.name,
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/glue"
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/secretsmanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Define the custom connector using the connection_type of `CUSTOM` with the match_criteria of `template_connection`
    		// Example here being a snowflake jdbc connector with a secret having user and password as keys
    		example, err := secretsmanager.LookupSecret(ctx, &secretsmanager.LookupSecretArgs{
    			Name: pulumi.StringRef("example-secret"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		example1, err := glue.NewConnection(ctx, "example1", &glue.ConnectionArgs{
    			Name:           pulumi.String("example1"),
    			ConnectionType: pulumi.String("CUSTOM"),
    			ConnectionProperties: pulumi.StringMap{
    				"CONNECTOR_CLASS_NAME": pulumi.String("net.snowflake.client.jdbc.SnowflakeDriver"),
    				"CONNECTION_TYPE":      pulumi.String("Jdbc"),
    				"CONNECTOR_URL":        pulumi.String("s3://example/snowflake-jdbc.jar"),
    				"JDBC_CONNECTION_URL":  pulumi.String("[[\"default=jdbc:snowflake://example.com/?user=${user}&password=${password}\"],\",\"]"),
    			},
    			MatchCriterias: pulumi.StringArray{
    				pulumi.String("template-connection"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// Reference the connector using match_criteria with the connector created above.
    		_, err = glue.NewConnection(ctx, "example2", &glue.ConnectionArgs{
    			Name:           pulumi.String("example2"),
    			ConnectionType: pulumi.String("CUSTOM"),
    			ConnectionProperties: pulumi.StringMap{
    				"CONNECTOR_CLASS_NAME": pulumi.String("net.snowflake.client.jdbc.SnowflakeDriver"),
    				"CONNECTION_TYPE":      pulumi.String("Jdbc"),
    				"CONNECTOR_URL":        pulumi.String("s3://example/snowflake-jdbc.jar"),
    				"JDBC_CONNECTION_URL":  pulumi.String("jdbc:snowflake://example.com/?user=${user}&password=${password}"),
    				"SECRET_ID":            pulumi.String(pulumi.String(example.Name)),
    			},
    			MatchCriterias: pulumi.StringArray{
    				pulumi.String("Connection"),
    				example1.Name,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        // Define the custom connector using the connection_type of `CUSTOM` with the match_criteria of `template_connection`
        // Example here being a snowflake jdbc connector with a secret having user and password as keys
        var example = Aws.SecretsManager.GetSecret.Invoke(new()
        {
            Name = "example-secret",
        });
    
        var example1 = new Aws.Glue.Connection("example1", new()
        {
            Name = "example1",
            ConnectionType = "CUSTOM",
            ConnectionProperties = 
            {
                { "CONNECTOR_CLASS_NAME", "net.snowflake.client.jdbc.SnowflakeDriver" },
                { "CONNECTION_TYPE", "Jdbc" },
                { "CONNECTOR_URL", "s3://example/snowflake-jdbc.jar" },
                { "JDBC_CONNECTION_URL", "[[\"default=jdbc:snowflake://example.com/?user=${user}&password=${password}\"],\",\"]" },
            },
            MatchCriterias = new[]
            {
                "template-connection",
            },
        });
    
        // Reference the connector using match_criteria with the connector created above.
        var example2 = new Aws.Glue.Connection("example2", new()
        {
            Name = "example2",
            ConnectionType = "CUSTOM",
            ConnectionProperties = 
            {
                { "CONNECTOR_CLASS_NAME", "net.snowflake.client.jdbc.SnowflakeDriver" },
                { "CONNECTION_TYPE", "Jdbc" },
                { "CONNECTOR_URL", "s3://example/snowflake-jdbc.jar" },
                { "JDBC_CONNECTION_URL", "jdbc:snowflake://example.com/?user=${user}&password=${password}" },
                { "SECRET_ID", example.Apply(getSecretResult => getSecretResult.Name) },
            },
            MatchCriterias = new[]
            {
                "Connection",
                example1.Name,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.secretsmanager.SecretsmanagerFunctions;
    import com.pulumi.aws.secretsmanager.inputs.GetSecretArgs;
    import com.pulumi.aws.glue.Connection;
    import com.pulumi.aws.glue.ConnectionArgs;
    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) {
            // Define the custom connector using the connection_type of `CUSTOM` with the match_criteria of `template_connection`
            // Example here being a snowflake jdbc connector with a secret having user and password as keys
            final var example = SecretsmanagerFunctions.getSecret(GetSecretArgs.builder()
                .name("example-secret")
                .build());
    
            var example1 = new Connection("example1", ConnectionArgs.builder()
                .name("example1")
                .connectionType("CUSTOM")
                .connectionProperties(Map.ofEntries(
                    Map.entry("CONNECTOR_CLASS_NAME", "net.snowflake.client.jdbc.SnowflakeDriver"),
                    Map.entry("CONNECTION_TYPE", "Jdbc"),
                    Map.entry("CONNECTOR_URL", "s3://example/snowflake-jdbc.jar"),
                    Map.entry("JDBC_CONNECTION_URL", "[[\"default=jdbc:snowflake://example.com/?user=${user}&password=${password}\"],\",\"]")
                ))
                .matchCriterias("template-connection")
                .build());
    
            // Reference the connector using match_criteria with the connector created above.
            var example2 = new Connection("example2", ConnectionArgs.builder()
                .name("example2")
                .connectionType("CUSTOM")
                .connectionProperties(Map.ofEntries(
                    Map.entry("CONNECTOR_CLASS_NAME", "net.snowflake.client.jdbc.SnowflakeDriver"),
                    Map.entry("CONNECTION_TYPE", "Jdbc"),
                    Map.entry("CONNECTOR_URL", "s3://example/snowflake-jdbc.jar"),
                    Map.entry("JDBC_CONNECTION_URL", "jdbc:snowflake://example.com/?user=${user}&password=${password}"),
                    Map.entry("SECRET_ID", example.name())
                ))
                .matchCriterias(            
                    "Connection",
                    example1.name())
                .build());
    
        }
    }
    
    resources:
      example1:
        type: aws:glue:Connection
        properties:
          name: example1
          connectionType: CUSTOM
          connectionProperties:
            CONNECTOR_CLASS_NAME: net.snowflake.client.jdbc.SnowflakeDriver
            CONNECTION_TYPE: Jdbc
            CONNECTOR_URL: s3://example/snowflake-jdbc.jar
            JDBC_CONNECTION_URL: '[["default=jdbc:snowflake://example.com/?user=$${user}&password=$${password}"],","]'
          matchCriterias:
            - template-connection
      # Reference the connector using match_criteria with the connector created above.
      example2:
        type: aws:glue:Connection
        properties:
          name: example2
          connectionType: CUSTOM
          connectionProperties:
            CONNECTOR_CLASS_NAME: net.snowflake.client.jdbc.SnowflakeDriver
            CONNECTION_TYPE: Jdbc
            CONNECTOR_URL: s3://example/snowflake-jdbc.jar
            JDBC_CONNECTION_URL: jdbc:snowflake://example.com/?user=$${user}&password=$${password}
            SECRET_ID: ${example.name}
          matchCriterias:
            - Connection
            - ${example1.name}
    variables:
      # Define the custom connector using the connection_type of `CUSTOM` with the match_criteria of `template_connection`
      # Example here being a snowflake jdbc connector with a secret having user and password as keys
      example:
        fn::invoke:
          function: aws:secretsmanager:getSecret
          arguments:
            name: example-secret
    
    Example coming soon!
    

    Azure Cosmos Connection

    For more information, see the AWS Documentation.

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.secretsmanager.Secret("example", {name: "example-secret"});
    const exampleSecretVersion = new aws.secretsmanager.SecretVersion("example", {
        secretId: example.id,
        secretString: JSON.stringify({
            username: "exampleusername",
            password: "examplepassword",
        }),
    });
    const exampleConnection = new aws.glue.Connection("example", {
        name: "example",
        connectionType: "AZURECOSMOS",
        connectionProperties: {
            SparkProperties: pulumi.jsonStringify({
                secretId: example.name,
                "spark.cosmos.accountEndpoint": "https://exampledbaccount.documents.azure.com:443/",
            }),
        },
    });
    
    import pulumi
    import json
    import pulumi_aws as aws
    
    example = aws.secretsmanager.Secret("example", name="example-secret")
    example_secret_version = aws.secretsmanager.SecretVersion("example",
        secret_id=example.id,
        secret_string=json.dumps({
            "username": "exampleusername",
            "password": "examplepassword",
        }))
    example_connection = aws.glue.Connection("example",
        name="example",
        connection_type="AZURECOSMOS",
        connection_properties={
            "SparkProperties": pulumi.Output.json_dumps({
                "secretId": example.name,
                "spark.cosmos.accountEndpoint": "https://exampledbaccount.documents.azure.com:443/",
            }),
        })
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/glue"
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/secretsmanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := secretsmanager.NewSecret(ctx, "example", &secretsmanager.SecretArgs{
    			Name: pulumi.String("example-secret"),
    		})
    		if err != nil {
    			return err
    		}
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"username": "exampleusername",
    			"password": "examplepassword",
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		_, err = secretsmanager.NewSecretVersion(ctx, "example", &secretsmanager.SecretVersionArgs{
    			SecretId:     example.ID(),
    			SecretString: pulumi.String(pulumi.String(json0)),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = glue.NewConnection(ctx, "example", &glue.ConnectionArgs{
    			Name:           pulumi.String("example"),
    			ConnectionType: pulumi.String("AZURECOSMOS"),
    			ConnectionProperties: pulumi.StringMap{
    				"SparkProperties": example.Name.ApplyT(func(name string) (pulumi.String, error) {
    					var _zero pulumi.String
    					tmpJSON1, err := json.Marshal(map[string]interface{}{
    						"secretId":                     name,
    						"spark.cosmos.accountEndpoint": "https://exampledbaccount.documents.azure.com:443/",
    					})
    					if err != nil {
    						return _zero, err
    					}
    					json1 := string(tmpJSON1)
    					return pulumi.String(json1), nil
    				}).(pulumi.StringOutput),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.SecretsManager.Secret("example", new()
        {
            Name = "example-secret",
        });
    
        var exampleSecretVersion = new Aws.SecretsManager.SecretVersion("example", new()
        {
            SecretId = example.Id,
            SecretString = JsonSerializer.Serialize(new Dictionary<string, object?>
            {
                ["username"] = "exampleusername",
                ["password"] = "examplepassword",
            }),
        });
    
        var exampleConnection = new Aws.Glue.Connection("example", new()
        {
            Name = "example",
            ConnectionType = "AZURECOSMOS",
            ConnectionProperties = 
            {
                { "SparkProperties", Output.JsonSerialize(Output.Create(new Dictionary<string, object?>
                {
                    ["secretId"] = example.Name,
                    ["spark.cosmos.accountEndpoint"] = "https://exampledbaccount.documents.azure.com:443/",
                })) },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.secretsmanager.Secret;
    import com.pulumi.aws.secretsmanager.SecretArgs;
    import com.pulumi.aws.secretsmanager.SecretVersion;
    import com.pulumi.aws.secretsmanager.SecretVersionArgs;
    import com.pulumi.aws.glue.Connection;
    import com.pulumi.aws.glue.ConnectionArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    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) {
            var example = new Secret("example", SecretArgs.builder()
                .name("example-secret")
                .build());
    
            var exampleSecretVersion = new SecretVersion("exampleSecretVersion", SecretVersionArgs.builder()
                .secretId(example.id())
                .secretString(serializeJson(
                    jsonObject(
                        jsonProperty("username", "exampleusername"),
                        jsonProperty("password", "examplepassword")
                    )))
                .build());
    
            var exampleConnection = new Connection("exampleConnection", ConnectionArgs.builder()
                .name("example")
                .connectionType("AZURECOSMOS")
                .connectionProperties(Map.of("SparkProperties", example.name().applyValue(_name -> serializeJson(
                    jsonObject(
                        jsonProperty("secretId", _name),
                        jsonProperty("spark.cosmos.accountEndpoint", "https://exampledbaccount.documents.azure.com:443/")
                    )))))
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:secretsmanager:Secret
        properties:
          name: example-secret
      exampleSecretVersion:
        type: aws:secretsmanager:SecretVersion
        name: example
        properties:
          secretId: ${example.id}
          secretString:
            fn::toJSON:
              username: exampleusername
              password: examplepassword
      exampleConnection:
        type: aws:glue:Connection
        name: example
        properties:
          name: example
          connectionType: AZURECOSMOS
          connectionProperties:
            SparkProperties:
              fn::toJSON:
                secretId: ${example.name}
                spark.cosmos.accountEndpoint: https://exampledbaccount.documents.azure.com:443/
    
    Example coming soon!
    

    Azure SQL Connection

    For more information, see the AWS Documentation.

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.secretsmanager.Secret("example", {name: "example-secret"});
    const exampleSecretVersion = new aws.secretsmanager.SecretVersion("example", {
        secretId: example.id,
        secretString: JSON.stringify({
            username: "exampleusername",
            password: "examplepassword",
        }),
    });
    const exampleConnection = new aws.glue.Connection("example", {
        name: "example",
        connectionType: "AZURECOSMOS",
        connectionProperties: {
            SparkProperties: pulumi.jsonStringify({
                secretId: example.name,
                url: "jdbc:sqlserver:exampledbserver.database.windows.net:1433;database=exampledatabase",
            }),
        },
    });
    
    import pulumi
    import json
    import pulumi_aws as aws
    
    example = aws.secretsmanager.Secret("example", name="example-secret")
    example_secret_version = aws.secretsmanager.SecretVersion("example",
        secret_id=example.id,
        secret_string=json.dumps({
            "username": "exampleusername",
            "password": "examplepassword",
        }))
    example_connection = aws.glue.Connection("example",
        name="example",
        connection_type="AZURECOSMOS",
        connection_properties={
            "SparkProperties": pulumi.Output.json_dumps({
                "secretId": example.name,
                "url": "jdbc:sqlserver:exampledbserver.database.windows.net:1433;database=exampledatabase",
            }),
        })
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/glue"
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/secretsmanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := secretsmanager.NewSecret(ctx, "example", &secretsmanager.SecretArgs{
    			Name: pulumi.String("example-secret"),
    		})
    		if err != nil {
    			return err
    		}
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"username": "exampleusername",
    			"password": "examplepassword",
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		_, err = secretsmanager.NewSecretVersion(ctx, "example", &secretsmanager.SecretVersionArgs{
    			SecretId:     example.ID(),
    			SecretString: pulumi.String(pulumi.String(json0)),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = glue.NewConnection(ctx, "example", &glue.ConnectionArgs{
    			Name:           pulumi.String("example"),
    			ConnectionType: pulumi.String("AZURECOSMOS"),
    			ConnectionProperties: pulumi.StringMap{
    				"SparkProperties": example.Name.ApplyT(func(name string) (pulumi.String, error) {
    					var _zero pulumi.String
    					tmpJSON1, err := json.Marshal(map[string]interface{}{
    						"secretId": name,
    						"url":      "jdbc:sqlserver:exampledbserver.database.windows.net:1433;database=exampledatabase",
    					})
    					if err != nil {
    						return _zero, err
    					}
    					json1 := string(tmpJSON1)
    					return pulumi.String(json1), nil
    				}).(pulumi.StringOutput),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.SecretsManager.Secret("example", new()
        {
            Name = "example-secret",
        });
    
        var exampleSecretVersion = new Aws.SecretsManager.SecretVersion("example", new()
        {
            SecretId = example.Id,
            SecretString = JsonSerializer.Serialize(new Dictionary<string, object?>
            {
                ["username"] = "exampleusername",
                ["password"] = "examplepassword",
            }),
        });
    
        var exampleConnection = new Aws.Glue.Connection("example", new()
        {
            Name = "example",
            ConnectionType = "AZURECOSMOS",
            ConnectionProperties = 
            {
                { "SparkProperties", Output.JsonSerialize(Output.Create(new Dictionary<string, object?>
                {
                    ["secretId"] = example.Name,
                    ["url"] = "jdbc:sqlserver:exampledbserver.database.windows.net:1433;database=exampledatabase",
                })) },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.secretsmanager.Secret;
    import com.pulumi.aws.secretsmanager.SecretArgs;
    import com.pulumi.aws.secretsmanager.SecretVersion;
    import com.pulumi.aws.secretsmanager.SecretVersionArgs;
    import com.pulumi.aws.glue.Connection;
    import com.pulumi.aws.glue.ConnectionArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    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) {
            var example = new Secret("example", SecretArgs.builder()
                .name("example-secret")
                .build());
    
            var exampleSecretVersion = new SecretVersion("exampleSecretVersion", SecretVersionArgs.builder()
                .secretId(example.id())
                .secretString(serializeJson(
                    jsonObject(
                        jsonProperty("username", "exampleusername"),
                        jsonProperty("password", "examplepassword")
                    )))
                .build());
    
            var exampleConnection = new Connection("exampleConnection", ConnectionArgs.builder()
                .name("example")
                .connectionType("AZURECOSMOS")
                .connectionProperties(Map.of("SparkProperties", example.name().applyValue(_name -> serializeJson(
                    jsonObject(
                        jsonProperty("secretId", _name),
                        jsonProperty("url", "jdbc:sqlserver:exampledbserver.database.windows.net:1433;database=exampledatabase")
                    )))))
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:secretsmanager:Secret
        properties:
          name: example-secret
      exampleSecretVersion:
        type: aws:secretsmanager:SecretVersion
        name: example
        properties:
          secretId: ${example.id}
          secretString:
            fn::toJSON:
              username: exampleusername
              password: examplepassword
      exampleConnection:
        type: aws:glue:Connection
        name: example
        properties:
          name: example
          connectionType: AZURECOSMOS
          connectionProperties:
            SparkProperties:
              fn::toJSON:
                secretId: ${example.name}
                url: jdbc:sqlserver:exampledbserver.database.windows.net:1433;database=exampledatabase
    
    Example coming soon!
    

    Google BigQuery Connection

    For more information, see the AWS Documentation.

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    import * as std from "@pulumi/std";
    
    const example = new aws.secretsmanager.Secret("example", {name: "example-secret"});
    const exampleSecretVersion = new aws.secretsmanager.SecretVersion("example", {
        secretId: example.id,
        secretString: JSON.stringify({
            credentials: std.base64encode({
                input: `{
      \\"type\\": \\"service_account\\",
      \\"project_id\\": \\"example-project\\",
      \\"private_key_id\\": \\"example-key\\",
      \\"private_key\\": \\"-----BEGIN RSA PRIVATE KEY-----\\
    REDACTED\\
    -----END RSA PRIVATE KEY-----\\",
      \\"client_email\\": \\"example-project@appspot.gserviceaccount.com\\",
      \\"client_id\\": example-client\\",
      \\"auth_uri\\": \\"https://accounts.google.com/o/oauth2/auth\\",
      \\"token_uri\\": \\"https://oauth2.googleapis.com/token\\",
      \\"auth_provider_x509_cert_url\\": \\"https://www.googleapis.com/oauth2/v1/certs\\",
      \\"client_x509_cert_url\\": \\"https://www.googleapis.com/robot/v1/metadata/x509/example-project%%40appspot.gserviceaccount.com\\",
      \\"universe_domain\\": \\"googleapis.com\\"
    }
    `,
            }).then(invoke => invoke.result),
        }),
    });
    const exampleConnection = new aws.glue.Connection("example", {
        name: "example",
        connectionType: "BIGQUERY",
        connectionProperties: {
            SparkProperties: pulumi.jsonStringify({
                secretId: example.name,
            }),
        },
    });
    
    import pulumi
    import json
    import pulumi_aws as aws
    import pulumi_std as std
    
    example = aws.secretsmanager.Secret("example", name="example-secret")
    example_secret_version = aws.secretsmanager.SecretVersion("example",
        secret_id=example.id,
        secret_string=json.dumps({
            "credentials": std.base64encode(input="""{
      \"type\": \"service_account\",
      \"project_id\": \"example-project\",
      \"private_key_id\": \"example-key\",
      \"private_key\": \"-----BEGIN RSA PRIVATE KEY-----\
    REDACTED\
    -----END RSA PRIVATE KEY-----\",
      \"client_email\": \"example-project@appspot.gserviceaccount.com\",
      \"client_id\": example-client\",
      \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",
      \"token_uri\": \"https://oauth2.googleapis.com/token\",
      \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",
      \"client_x509_cert_url\": \"https://www.googleapis.com/robot/v1/metadata/x509/example-project%%40appspot.gserviceaccount.com\",
      \"universe_domain\": \"googleapis.com\"
    }
    """).result,
        }))
    example_connection = aws.glue.Connection("example",
        name="example",
        connection_type="BIGQUERY",
        connection_properties={
            "SparkProperties": pulumi.Output.json_dumps({
                "secretId": example.name,
            }),
        })
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/glue"
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/secretsmanager"
    	"github.com/pulumi/pulumi-std/sdk/go/std"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := secretsmanager.NewSecret(ctx, "example", &secretsmanager.SecretArgs{
    			Name: pulumi.String("example-secret"),
    		})
    		if err != nil {
    			return err
    		}
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"credentials": std.Base64encode(ctx, &std.Base64encodeArgs{
    				Input: `{
      \"type\": \"service_account\",
      \"project_id\": \"example-project\",
      \"private_key_id\": \"example-key\",
      \"private_key\": \"-----BEGIN RSA PRIVATE KEY-----\
    REDACTED\
    -----END RSA PRIVATE KEY-----\",
      \"client_email\": \"example-project@appspot.gserviceaccount.com\",
      \"client_id\": example-client\",
      \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",
      \"token_uri\": \"https://oauth2.googleapis.com/token\",
      \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",
      \"client_x509_cert_url\": \"https://www.googleapis.com/robot/v1/metadata/x509/example-project%%40appspot.gserviceaccount.com\",
      \"universe_domain\": \"googleapis.com\"
    }
    `,
    			}, nil).Result,
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		_, err = secretsmanager.NewSecretVersion(ctx, "example", &secretsmanager.SecretVersionArgs{
    			SecretId:     example.ID(),
    			SecretString: json0,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = glue.NewConnection(ctx, "example", &glue.ConnectionArgs{
    			Name:           pulumi.String("example"),
    			ConnectionType: pulumi.String("BIGQUERY"),
    			ConnectionProperties: pulumi.StringMap{
    				"SparkProperties": example.Name.ApplyT(func(name string) (pulumi.String, error) {
    					var _zero pulumi.String
    					tmpJSON1, err := json.Marshal(map[string]interface{}{
    						"secretId": name,
    					})
    					if err != nil {
    						return _zero, err
    					}
    					json1 := string(tmpJSON1)
    					return pulumi.String(json1), nil
    				}).(pulumi.StringOutput),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Aws = Pulumi.Aws;
    using Std = Pulumi.Std;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.SecretsManager.Secret("example", new()
        {
            Name = "example-secret",
        });
    
        var exampleSecretVersion = new Aws.SecretsManager.SecretVersion("example", new()
        {
            SecretId = example.Id,
            SecretString = JsonSerializer.Serialize(new Dictionary<string, object?>
            {
                ["credentials"] = Std.Base64encode.Invoke(new()
                {
                    Input = @"{
      \""type\"": \""service_account\"",
      \""project_id\"": \""example-project\"",
      \""private_key_id\"": \""example-key\"",
      \""private_key\"": \""-----BEGIN RSA PRIVATE KEY-----\
    REDACTED\
    -----END RSA PRIVATE KEY-----\"",
      \""client_email\"": \""example-project@appspot.gserviceaccount.com\"",
      \""client_id\"": example-client\"",
      \""auth_uri\"": \""https://accounts.google.com/o/oauth2/auth\"",
      \""token_uri\"": \""https://oauth2.googleapis.com/token\"",
      \""auth_provider_x509_cert_url\"": \""https://www.googleapis.com/oauth2/v1/certs\"",
      \""client_x509_cert_url\"": \""https://www.googleapis.com/robot/v1/metadata/x509/example-project%%40appspot.gserviceaccount.com\"",
      \""universe_domain\"": \""googleapis.com\""
    }
    ",
                }).Apply(invoke => invoke.Result),
            }),
        });
    
        var exampleConnection = new Aws.Glue.Connection("example", new()
        {
            Name = "example",
            ConnectionType = "BIGQUERY",
            ConnectionProperties = 
            {
                { "SparkProperties", Output.JsonSerialize(Output.Create(new Dictionary<string, object?>
                {
                    ["secretId"] = example.Name,
                })) },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.secretsmanager.Secret;
    import com.pulumi.aws.secretsmanager.SecretArgs;
    import com.pulumi.aws.secretsmanager.SecretVersion;
    import com.pulumi.aws.secretsmanager.SecretVersionArgs;
    import com.pulumi.std.StdFunctions;
    import com.pulumi.std.inputs.Base64encodeArgs;
    import com.pulumi.aws.glue.Connection;
    import com.pulumi.aws.glue.ConnectionArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    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) {
            var example = new Secret("example", SecretArgs.builder()
                .name("example-secret")
                .build());
    
            var exampleSecretVersion = new SecretVersion("exampleSecretVersion", SecretVersionArgs.builder()
                .secretId(example.id())
                .secretString(serializeJson(
                    jsonObject(
                        jsonProperty("credentials", StdFunctions.base64encode(Base64encodeArgs.builder()
                            .input("""
    {
      \"type\": \"service_account\",
      \"project_id\": \"example-project\",
      \"private_key_id\": \"example-key\",
      \"private_key\": \"-----BEGIN RSA PRIVATE KEY-----\
    REDACTED\
    -----END RSA PRIVATE KEY-----\",
      \"client_email\": \"example-project@appspot.gserviceaccount.com\",
      \"client_id\": example-client\",
      \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",
      \"token_uri\": \"https://oauth2.googleapis.com/token\",
      \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",
      \"client_x509_cert_url\": \"https://www.googleapis.com/robot/v1/metadata/x509/example-project%%40appspot.gserviceaccount.com\",
      \"universe_domain\": \"googleapis.com\"
    }
                            """)
                            .build()).result())
                    )))
                .build());
    
            var exampleConnection = new Connection("exampleConnection", ConnectionArgs.builder()
                .name("example")
                .connectionType("BIGQUERY")
                .connectionProperties(Map.of("SparkProperties", example.name().applyValue(_name -> serializeJson(
                    jsonObject(
                        jsonProperty("secretId", _name)
                    )))))
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:secretsmanager:Secret
        properties:
          name: example-secret
      exampleSecretVersion:
        type: aws:secretsmanager:SecretVersion
        name: example
        properties:
          secretId: ${example.id}
          secretString:
            fn::toJSON:
              credentials:
                fn::invoke:
                  function: std:base64encode
                  arguments:
                    input: |
                      {
                        \"type\": \"service_account\",
                        \"project_id\": \"example-project\",
                        \"private_key_id\": \"example-key\",
                        \"private_key\": \"-----BEGIN RSA PRIVATE KEY-----\
                      REDACTED\
                      -----END RSA PRIVATE KEY-----\",
                        \"client_email\": \"example-project@appspot.gserviceaccount.com\",
                        \"client_id\": example-client\",
                        \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",
                        \"token_uri\": \"https://oauth2.googleapis.com/token\",
                        \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",
                        \"client_x509_cert_url\": \"https://www.googleapis.com/robot/v1/metadata/x509/example-project%%40appspot.gserviceaccount.com\",
                        \"universe_domain\": \"googleapis.com\"
                      }
                  return: result
      exampleConnection:
        type: aws:glue:Connection
        name: example
        properties:
          name: example
          connectionType: BIGQUERY
          connectionProperties:
            SparkProperties:
              fn::toJSON:
                secretId: ${example.name}
    
    Example coming soon!
    

    OpenSearch Service Connection

    For more information, see the AWS Documentation.

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.secretsmanager.Secret("example", {name: "example-secret"});
    const exampleSecretVersion = new aws.secretsmanager.SecretVersion("example", {
        secretId: example.id,
        secretString: JSON.stringify({
            "opensearch.net.http.auth.user": "exampleusername",
            "opensearch.net.http.auth.pass": "examplepassword",
        }),
    });
    const exampleConnection = new aws.glue.Connection("example", {
        name: "example",
        connectionType: "OPENSEARCH",
        connectionProperties: {
            SparkProperties: pulumi.jsonStringify({
                secretId: example.name,
                "opensearch.nodes": "https://search-exampledomain-ixlmh4jieahrau3bfebcgp8cnm.us-east-1.es.amazonaws.com",
                "opensearch.port": "443",
                "opensearch.aws.sigv4.region": "us-east-1",
                "opensearch.nodes.wan.only": "true",
                "opensearch.aws.sigv4.enabled": "true",
            }),
        },
    });
    
    import pulumi
    import json
    import pulumi_aws as aws
    
    example = aws.secretsmanager.Secret("example", name="example-secret")
    example_secret_version = aws.secretsmanager.SecretVersion("example",
        secret_id=example.id,
        secret_string=json.dumps({
            "opensearch.net.http.auth.user": "exampleusername",
            "opensearch.net.http.auth.pass": "examplepassword",
        }))
    example_connection = aws.glue.Connection("example",
        name="example",
        connection_type="OPENSEARCH",
        connection_properties={
            "SparkProperties": pulumi.Output.json_dumps({
                "secretId": example.name,
                "opensearch.nodes": "https://search-exampledomain-ixlmh4jieahrau3bfebcgp8cnm.us-east-1.es.amazonaws.com",
                "opensearch.port": "443",
                "opensearch.aws.sigv4.region": "us-east-1",
                "opensearch.nodes.wan.only": "true",
                "opensearch.aws.sigv4.enabled": "true",
            }),
        })
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/glue"
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/secretsmanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := secretsmanager.NewSecret(ctx, "example", &secretsmanager.SecretArgs{
    			Name: pulumi.String("example-secret"),
    		})
    		if err != nil {
    			return err
    		}
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"opensearch.net.http.auth.user": "exampleusername",
    			"opensearch.net.http.auth.pass": "examplepassword",
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		_, err = secretsmanager.NewSecretVersion(ctx, "example", &secretsmanager.SecretVersionArgs{
    			SecretId:     example.ID(),
    			SecretString: pulumi.String(pulumi.String(json0)),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = glue.NewConnection(ctx, "example", &glue.ConnectionArgs{
    			Name:           pulumi.String("example"),
    			ConnectionType: pulumi.String("OPENSEARCH"),
    			ConnectionProperties: pulumi.StringMap{
    				"SparkProperties": example.Name.ApplyT(func(name string) (pulumi.String, error) {
    					var _zero pulumi.String
    					tmpJSON1, err := json.Marshal(map[string]interface{}{
    						"secretId":                     name,
    						"opensearch.nodes":             "https://search-exampledomain-ixlmh4jieahrau3bfebcgp8cnm.us-east-1.es.amazonaws.com",
    						"opensearch.port":              "443",
    						"opensearch.aws.sigv4.region":  "us-east-1",
    						"opensearch.nodes.wan.only":    "true",
    						"opensearch.aws.sigv4.enabled": "true",
    					})
    					if err != nil {
    						return _zero, err
    					}
    					json1 := string(tmpJSON1)
    					return pulumi.String(json1), nil
    				}).(pulumi.StringOutput),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.SecretsManager.Secret("example", new()
        {
            Name = "example-secret",
        });
    
        var exampleSecretVersion = new Aws.SecretsManager.SecretVersion("example", new()
        {
            SecretId = example.Id,
            SecretString = JsonSerializer.Serialize(new Dictionary<string, object?>
            {
                ["opensearch.net.http.auth.user"] = "exampleusername",
                ["opensearch.net.http.auth.pass"] = "examplepassword",
            }),
        });
    
        var exampleConnection = new Aws.Glue.Connection("example", new()
        {
            Name = "example",
            ConnectionType = "OPENSEARCH",
            ConnectionProperties = 
            {
                { "SparkProperties", Output.JsonSerialize(Output.Create(new Dictionary<string, object?>
                {
                    ["secretId"] = example.Name,
                    ["opensearch.nodes"] = "https://search-exampledomain-ixlmh4jieahrau3bfebcgp8cnm.us-east-1.es.amazonaws.com",
                    ["opensearch.port"] = "443",
                    ["opensearch.aws.sigv4.region"] = "us-east-1",
                    ["opensearch.nodes.wan.only"] = "true",
                    ["opensearch.aws.sigv4.enabled"] = "true",
                })) },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.secretsmanager.Secret;
    import com.pulumi.aws.secretsmanager.SecretArgs;
    import com.pulumi.aws.secretsmanager.SecretVersion;
    import com.pulumi.aws.secretsmanager.SecretVersionArgs;
    import com.pulumi.aws.glue.Connection;
    import com.pulumi.aws.glue.ConnectionArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    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) {
            var example = new Secret("example", SecretArgs.builder()
                .name("example-secret")
                .build());
    
            var exampleSecretVersion = new SecretVersion("exampleSecretVersion", SecretVersionArgs.builder()
                .secretId(example.id())
                .secretString(serializeJson(
                    jsonObject(
                        jsonProperty("opensearch.net.http.auth.user", "exampleusername"),
                        jsonProperty("opensearch.net.http.auth.pass", "examplepassword")
                    )))
                .build());
    
            var exampleConnection = new Connection("exampleConnection", ConnectionArgs.builder()
                .name("example")
                .connectionType("OPENSEARCH")
                .connectionProperties(Map.of("SparkProperties", example.name().applyValue(_name -> serializeJson(
                    jsonObject(
                        jsonProperty("secretId", _name),
                        jsonProperty("opensearch.nodes", "https://search-exampledomain-ixlmh4jieahrau3bfebcgp8cnm.us-east-1.es.amazonaws.com"),
                        jsonProperty("opensearch.port", "443"),
                        jsonProperty("opensearch.aws.sigv4.region", "us-east-1"),
                        jsonProperty("opensearch.nodes.wan.only", "true"),
                        jsonProperty("opensearch.aws.sigv4.enabled", "true")
                    )))))
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:secretsmanager:Secret
        properties:
          name: example-secret
      exampleSecretVersion:
        type: aws:secretsmanager:SecretVersion
        name: example
        properties:
          secretId: ${example.id}
          secretString:
            fn::toJSON:
              opensearch.net.http.auth.user: exampleusername
              opensearch.net.http.auth.pass: examplepassword
      exampleConnection:
        type: aws:glue:Connection
        name: example
        properties:
          name: example
          connectionType: OPENSEARCH
          connectionProperties:
            SparkProperties:
              fn::toJSON:
                secretId: ${example.name}
                opensearch.nodes: https://search-exampledomain-ixlmh4jieahrau3bfebcgp8cnm.us-east-1.es.amazonaws.com
                opensearch.port: '443'
                opensearch.aws.sigv4.region: us-east-1
                opensearch.nodes.wan.only: 'true'
                opensearch.aws.sigv4.enabled: 'true'
    
    Example coming soon!
    

    Snowflake Connection

    For more information, see the AWS Documentation.

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.secretsmanager.Secret("example", {name: "example-secret"});
    const exampleSecretVersion = new aws.secretsmanager.SecretVersion("example", {
        secretId: example.id,
        secretString: JSON.stringify({
            sfUser: "exampleusername",
            sfPassword: "examplepassword",
        }),
    });
    const exampleConnection = new aws.glue.Connection("example", {
        name: "example",
        connectionType: "SNOWFLAKE",
        connectionProperties: {
            SparkProperties: pulumi.jsonStringify({
                secretId: example.name,
                sfRole: "EXAMPLEETLROLE",
                sfUrl: "exampleorg-exampleconnection.snowflakecomputing.com",
            }),
        },
    });
    
    import pulumi
    import json
    import pulumi_aws as aws
    
    example = aws.secretsmanager.Secret("example", name="example-secret")
    example_secret_version = aws.secretsmanager.SecretVersion("example",
        secret_id=example.id,
        secret_string=json.dumps({
            "sfUser": "exampleusername",
            "sfPassword": "examplepassword",
        }))
    example_connection = aws.glue.Connection("example",
        name="example",
        connection_type="SNOWFLAKE",
        connection_properties={
            "SparkProperties": pulumi.Output.json_dumps({
                "secretId": example.name,
                "sfRole": "EXAMPLEETLROLE",
                "sfUrl": "exampleorg-exampleconnection.snowflakecomputing.com",
            }),
        })
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/glue"
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/secretsmanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := secretsmanager.NewSecret(ctx, "example", &secretsmanager.SecretArgs{
    			Name: pulumi.String("example-secret"),
    		})
    		if err != nil {
    			return err
    		}
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"sfUser":     "exampleusername",
    			"sfPassword": "examplepassword",
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		_, err = secretsmanager.NewSecretVersion(ctx, "example", &secretsmanager.SecretVersionArgs{
    			SecretId:     example.ID(),
    			SecretString: pulumi.String(pulumi.String(json0)),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = glue.NewConnection(ctx, "example", &glue.ConnectionArgs{
    			Name:           pulumi.String("example"),
    			ConnectionType: pulumi.String("SNOWFLAKE"),
    			ConnectionProperties: pulumi.StringMap{
    				"SparkProperties": example.Name.ApplyT(func(name string) (pulumi.String, error) {
    					var _zero pulumi.String
    					tmpJSON1, err := json.Marshal(map[string]interface{}{
    						"secretId": name,
    						"sfRole":   "EXAMPLEETLROLE",
    						"sfUrl":    "exampleorg-exampleconnection.snowflakecomputing.com",
    					})
    					if err != nil {
    						return _zero, err
    					}
    					json1 := string(tmpJSON1)
    					return pulumi.String(json1), nil
    				}).(pulumi.StringOutput),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.SecretsManager.Secret("example", new()
        {
            Name = "example-secret",
        });
    
        var exampleSecretVersion = new Aws.SecretsManager.SecretVersion("example", new()
        {
            SecretId = example.Id,
            SecretString = JsonSerializer.Serialize(new Dictionary<string, object?>
            {
                ["sfUser"] = "exampleusername",
                ["sfPassword"] = "examplepassword",
            }),
        });
    
        var exampleConnection = new Aws.Glue.Connection("example", new()
        {
            Name = "example",
            ConnectionType = "SNOWFLAKE",
            ConnectionProperties = 
            {
                { "SparkProperties", Output.JsonSerialize(Output.Create(new Dictionary<string, object?>
                {
                    ["secretId"] = example.Name,
                    ["sfRole"] = "EXAMPLEETLROLE",
                    ["sfUrl"] = "exampleorg-exampleconnection.snowflakecomputing.com",
                })) },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.secretsmanager.Secret;
    import com.pulumi.aws.secretsmanager.SecretArgs;
    import com.pulumi.aws.secretsmanager.SecretVersion;
    import com.pulumi.aws.secretsmanager.SecretVersionArgs;
    import com.pulumi.aws.glue.Connection;
    import com.pulumi.aws.glue.ConnectionArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    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) {
            var example = new Secret("example", SecretArgs.builder()
                .name("example-secret")
                .build());
    
            var exampleSecretVersion = new SecretVersion("exampleSecretVersion", SecretVersionArgs.builder()
                .secretId(example.id())
                .secretString(serializeJson(
                    jsonObject(
                        jsonProperty("sfUser", "exampleusername"),
                        jsonProperty("sfPassword", "examplepassword")
                    )))
                .build());
    
            var exampleConnection = new Connection("exampleConnection", ConnectionArgs.builder()
                .name("example")
                .connectionType("SNOWFLAKE")
                .connectionProperties(Map.of("SparkProperties", example.name().applyValue(_name -> serializeJson(
                    jsonObject(
                        jsonProperty("secretId", _name),
                        jsonProperty("sfRole", "EXAMPLEETLROLE"),
                        jsonProperty("sfUrl", "exampleorg-exampleconnection.snowflakecomputing.com")
                    )))))
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:secretsmanager:Secret
        properties:
          name: example-secret
      exampleSecretVersion:
        type: aws:secretsmanager:SecretVersion
        name: example
        properties:
          secretId: ${example.id}
          secretString:
            fn::toJSON:
              sfUser: exampleusername
              sfPassword: examplepassword
      exampleConnection:
        type: aws:glue:Connection
        name: example
        properties:
          name: example
          connectionType: SNOWFLAKE
          connectionProperties:
            SparkProperties:
              fn::toJSON:
                secretId: ${example.name}
                sfRole: EXAMPLEETLROLE
                sfUrl: exampleorg-exampleconnection.snowflakecomputing.com
    
    Example coming soon!
    

    DynamoDB Connection

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const test = new aws.glue.Connection("test", {
        name: "example",
        connectionType: "DYNAMODB",
        athenaProperties: {
            lambda_function_arn: "arn:aws:lambda:us-east-1:123456789012:function:athenafederatedcatalog_athena_abcdefgh",
            disable_spill_encryption: "false",
            spill_bucket: "example-bucket",
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    test = aws.glue.Connection("test",
        name="example",
        connection_type="DYNAMODB",
        athena_properties={
            "lambda_function_arn": "arn:aws:lambda:us-east-1:123456789012:function:athenafederatedcatalog_athena_abcdefgh",
            "disable_spill_encryption": "false",
            "spill_bucket": "example-bucket",
        })
    
    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.NewConnection(ctx, "test", &glue.ConnectionArgs{
    			Name:           pulumi.String("example"),
    			ConnectionType: pulumi.String("DYNAMODB"),
    			AthenaProperties: pulumi.StringMap{
    				"lambda_function_arn":      pulumi.String("arn:aws:lambda:us-east-1:123456789012:function:athenafederatedcatalog_athena_abcdefgh"),
    				"disable_spill_encryption": pulumi.String("false"),
    				"spill_bucket":             pulumi.String("example-bucket"),
    			},
    		})
    		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 test = new Aws.Glue.Connection("test", new()
        {
            Name = "example",
            ConnectionType = "DYNAMODB",
            AthenaProperties = 
            {
                { "lambda_function_arn", "arn:aws:lambda:us-east-1:123456789012:function:athenafederatedcatalog_athena_abcdefgh" },
                { "disable_spill_encryption", "false" },
                { "spill_bucket", "example-bucket" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.glue.Connection;
    import com.pulumi.aws.glue.ConnectionArgs;
    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) {
            var test = new Connection("test", ConnectionArgs.builder()
                .name("example")
                .connectionType("DYNAMODB")
                .athenaProperties(Map.ofEntries(
                    Map.entry("lambda_function_arn", "arn:aws:lambda:us-east-1:123456789012:function:athenafederatedcatalog_athena_abcdefgh"),
                    Map.entry("disable_spill_encryption", "false"),
                    Map.entry("spill_bucket", "example-bucket")
                ))
                .build());
    
        }
    }
    
    resources:
      test:
        type: aws:glue:Connection
        properties:
          name: example
          connectionType: DYNAMODB
          athenaProperties:
            lambda_function_arn: arn:aws:lambda:us-east-1:123456789012:function:athenafederatedcatalog_athena_abcdefgh
            disable_spill_encryption: 'false'
            spill_bucket: example-bucket
    
    Example coming soon!
    

    MySQL Federated Connection

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.glue.Connection("example", {
        name: "athenafederatedcatalog_mysql",
        connectionType: "MYSQL",
        athenaProperties: {
            lambda_function_arn: "arn:aws:lambda:us-east-1:123456789012:function:athenafederatedcatalog_mysql",
            spill_bucket: exampleAwsS3Bucket.bucket,
        },
        connectionProperties: {
            HOST: exampleAwsRdsCluster.endpoint,
            PORT: exampleAwsRdsCluster.port,
            DATABASE: exampleAwsRdsCluster.databaseName,
        },
        authenticationConfiguration: {
            authenticationType: "BASIC",
            secretArn: exampleAwsSecretsmanagerSecret.arn,
        },
        physicalConnectionRequirements: {
            availabilityZone: exampleAwsSubnet.availabilityZone,
            securityGroupIdLists: [exampleAwsSecurityGroup.id],
            subnetId: exampleAwsSubnet.id,
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.glue.Connection("example",
        name="athenafederatedcatalog_mysql",
        connection_type="MYSQL",
        athena_properties={
            "lambda_function_arn": "arn:aws:lambda:us-east-1:123456789012:function:athenafederatedcatalog_mysql",
            "spill_bucket": example_aws_s3_bucket["bucket"],
        },
        connection_properties={
            "HOST": example_aws_rds_cluster["endpoint"],
            "PORT": example_aws_rds_cluster["port"],
            "DATABASE": example_aws_rds_cluster["databaseName"],
        },
        authentication_configuration={
            "authentication_type": "BASIC",
            "secret_arn": example_aws_secretsmanager_secret["arn"],
        },
        physical_connection_requirements={
            "availability_zone": example_aws_subnet["availabilityZone"],
            "security_group_id_lists": [example_aws_security_group["id"]],
            "subnet_id": example_aws_subnet["id"],
        })
    
    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.NewConnection(ctx, "example", &glue.ConnectionArgs{
    			Name:           pulumi.String("athenafederatedcatalog_mysql"),
    			ConnectionType: pulumi.String("MYSQL"),
    			AthenaProperties: pulumi.StringMap{
    				"lambda_function_arn": pulumi.String("arn:aws:lambda:us-east-1:123456789012:function:athenafederatedcatalog_mysql"),
    				"spill_bucket":        pulumi.Any(exampleAwsS3Bucket.Bucket),
    			},
    			ConnectionProperties: pulumi.StringMap{
    				"HOST":     pulumi.Any(exampleAwsRdsCluster.Endpoint),
    				"PORT":     pulumi.Any(exampleAwsRdsCluster.Port),
    				"DATABASE": pulumi.Any(exampleAwsRdsCluster.DatabaseName),
    			},
    			AuthenticationConfiguration: &glue.ConnectionAuthenticationConfigurationArgs{
    				AuthenticationType: pulumi.String("BASIC"),
    				SecretArn:          pulumi.Any(exampleAwsSecretsmanagerSecret.Arn),
    			},
    			PhysicalConnectionRequirements: &glue.ConnectionPhysicalConnectionRequirementsArgs{
    				AvailabilityZone: pulumi.Any(exampleAwsSubnet.AvailabilityZone),
    				SecurityGroupIdLists: pulumi.StringArray{
    					exampleAwsSecurityGroup.Id,
    				},
    				SubnetId: pulumi.Any(exampleAwsSubnet.Id),
    			},
    		})
    		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 = new Aws.Glue.Connection("example", new()
        {
            Name = "athenafederatedcatalog_mysql",
            ConnectionType = "MYSQL",
            AthenaProperties = 
            {
                { "lambda_function_arn", "arn:aws:lambda:us-east-1:123456789012:function:athenafederatedcatalog_mysql" },
                { "spill_bucket", exampleAwsS3Bucket.Bucket },
            },
            ConnectionProperties = 
            {
                { "HOST", exampleAwsRdsCluster.Endpoint },
                { "PORT", exampleAwsRdsCluster.Port },
                { "DATABASE", exampleAwsRdsCluster.DatabaseName },
            },
            AuthenticationConfiguration = new Aws.Glue.Inputs.ConnectionAuthenticationConfigurationArgs
            {
                AuthenticationType = "BASIC",
                SecretArn = exampleAwsSecretsmanagerSecret.Arn,
            },
            PhysicalConnectionRequirements = new Aws.Glue.Inputs.ConnectionPhysicalConnectionRequirementsArgs
            {
                AvailabilityZone = exampleAwsSubnet.AvailabilityZone,
                SecurityGroupIdLists = new[]
                {
                    exampleAwsSecurityGroup.Id,
                },
                SubnetId = exampleAwsSubnet.Id,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.glue.Connection;
    import com.pulumi.aws.glue.ConnectionArgs;
    import com.pulumi.aws.glue.inputs.ConnectionAuthenticationConfigurationArgs;
    import com.pulumi.aws.glue.inputs.ConnectionPhysicalConnectionRequirementsArgs;
    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) {
            var example = new Connection("example", ConnectionArgs.builder()
                .name("athenafederatedcatalog_mysql")
                .connectionType("MYSQL")
                .athenaProperties(Map.ofEntries(
                    Map.entry("lambda_function_arn", "arn:aws:lambda:us-east-1:123456789012:function:athenafederatedcatalog_mysql"),
                    Map.entry("spill_bucket", exampleAwsS3Bucket.bucket())
                ))
                .connectionProperties(Map.ofEntries(
                    Map.entry("HOST", exampleAwsRdsCluster.endpoint()),
                    Map.entry("PORT", exampleAwsRdsCluster.port()),
                    Map.entry("DATABASE", exampleAwsRdsCluster.databaseName())
                ))
                .authenticationConfiguration(ConnectionAuthenticationConfigurationArgs.builder()
                    .authenticationType("BASIC")
                    .secretArn(exampleAwsSecretsmanagerSecret.arn())
                    .build())
                .physicalConnectionRequirements(ConnectionPhysicalConnectionRequirementsArgs.builder()
                    .availabilityZone(exampleAwsSubnet.availabilityZone())
                    .securityGroupIdLists(exampleAwsSecurityGroup.id())
                    .subnetId(exampleAwsSubnet.id())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:glue:Connection
        properties:
          name: athenafederatedcatalog_mysql
          connectionType: MYSQL
          athenaProperties:
            lambda_function_arn: arn:aws:lambda:us-east-1:123456789012:function:athenafederatedcatalog_mysql
            spill_bucket: ${exampleAwsS3Bucket.bucket}
          connectionProperties:
            HOST: ${exampleAwsRdsCluster.endpoint}
            PORT: ${exampleAwsRdsCluster.port}
            DATABASE: ${exampleAwsRdsCluster.databaseName}
          authenticationConfiguration:
            authenticationType: BASIC
            secretArn: ${exampleAwsSecretsmanagerSecret.arn}
          physicalConnectionRequirements:
            availabilityZone: ${exampleAwsSubnet.availabilityZone}
            securityGroupIdLists:
              - ${exampleAwsSecurityGroup.id}
            subnetId: ${exampleAwsSubnet.id}
    
    Example coming soon!
    

    Create Connection Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Connection(name: string, args?: ConnectionArgs, opts?: CustomResourceOptions);
    @overload
    def Connection(resource_name: str,
                   args: Optional[ConnectionArgs] = None,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def Connection(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   athena_properties: Optional[Mapping[str, str]] = None,
                   authentication_configuration: Optional[ConnectionAuthenticationConfigurationArgs] = None,
                   catalog_id: Optional[str] = None,
                   connection_properties: Optional[Mapping[str, str]] = None,
                   connection_type: Optional[str] = None,
                   description: Optional[str] = None,
                   match_criterias: Optional[Sequence[str]] = None,
                   name: Optional[str] = None,
                   physical_connection_requirements: Optional[ConnectionPhysicalConnectionRequirementsArgs] = None,
                   region: Optional[str] = None,
                   tags: Optional[Mapping[str, str]] = None)
    func NewConnection(ctx *Context, name string, args *ConnectionArgs, opts ...ResourceOption) (*Connection, error)
    public Connection(string name, ConnectionArgs? args = null, CustomResourceOptions? opts = null)
    public Connection(String name, ConnectionArgs args)
    public Connection(String name, ConnectionArgs args, CustomResourceOptions options)
    
    type: aws:glue:Connection
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws_glue_connection" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ConnectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ConnectionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ConnectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ConnectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ConnectionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var exampleconnectionResourceResourceFromGlueconnection = new Aws.Glue.Connection("exampleconnectionResourceResourceFromGlueconnection", new()
    {
        AthenaProperties = 
        {
            { "string", "string" },
        },
        AuthenticationConfiguration = new Aws.Glue.Inputs.ConnectionAuthenticationConfigurationArgs
        {
            AuthenticationType = "string",
            BasicAuthenticationCredentials = new Aws.Glue.Inputs.ConnectionAuthenticationConfigurationBasicAuthenticationCredentialsArgs
            {
                Password = "string",
                Username = "string",
            },
            CustomAuthenticationCredentials = 
            {
                { "string", "string" },
            },
            KmsKeyArn = "string",
            Oauth2Properties = new Aws.Glue.Inputs.ConnectionAuthenticationConfigurationOauth2PropertiesArgs
            {
                AuthorizationCodeProperties = new Aws.Glue.Inputs.ConnectionAuthenticationConfigurationOauth2PropertiesAuthorizationCodePropertiesArgs
                {
                    AuthorizationCode = "string",
                    RedirectUri = "string",
                },
                Oauth2ClientApplication = new Aws.Glue.Inputs.ConnectionAuthenticationConfigurationOauth2PropertiesOauth2ClientApplicationArgs
                {
                    AwsManagedClientApplicationReference = "string",
                    UserManagedClientApplicationClientId = "string",
                },
                Oauth2Credentials = new Aws.Glue.Inputs.ConnectionAuthenticationConfigurationOauth2PropertiesOauth2CredentialsArgs
                {
                    AccessToken = "string",
                    JwtToken = "string",
                    RefreshToken = "string",
                    UserManagedClientApplicationClientSecret = "string",
                },
                Oauth2GrantType = "string",
                TokenUrl = "string",
                TokenUrlParametersMap = 
                {
                    { "string", "string" },
                },
            },
            SecretArn = "string",
        },
        CatalogId = "string",
        ConnectionProperties = 
        {
            { "string", "string" },
        },
        ConnectionType = "string",
        Description = "string",
        MatchCriterias = new[]
        {
            "string",
        },
        Name = "string",
        PhysicalConnectionRequirements = new Aws.Glue.Inputs.ConnectionPhysicalConnectionRequirementsArgs
        {
            AvailabilityZone = "string",
            SecurityGroupIdLists = new[]
            {
                "string",
            },
            SubnetId = "string",
        },
        Region = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := glue.NewConnection(ctx, "exampleconnectionResourceResourceFromGlueconnection", &glue.ConnectionArgs{
    	AthenaProperties: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	AuthenticationConfiguration: &glue.ConnectionAuthenticationConfigurationArgs{
    		AuthenticationType: pulumi.String("string"),
    		BasicAuthenticationCredentials: &glue.ConnectionAuthenticationConfigurationBasicAuthenticationCredentialsArgs{
    			Password: pulumi.String("string"),
    			Username: pulumi.String("string"),
    		},
    		CustomAuthenticationCredentials: pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    		KmsKeyArn: pulumi.String("string"),
    		Oauth2Properties: &glue.ConnectionAuthenticationConfigurationOauth2PropertiesArgs{
    			AuthorizationCodeProperties: &glue.ConnectionAuthenticationConfigurationOauth2PropertiesAuthorizationCodePropertiesArgs{
    				AuthorizationCode: pulumi.String("string"),
    				RedirectUri:       pulumi.String("string"),
    			},
    			Oauth2ClientApplication: &glue.ConnectionAuthenticationConfigurationOauth2PropertiesOauth2ClientApplicationArgs{
    				AwsManagedClientApplicationReference: pulumi.String("string"),
    				UserManagedClientApplicationClientId: pulumi.String("string"),
    			},
    			Oauth2Credentials: &glue.ConnectionAuthenticationConfigurationOauth2PropertiesOauth2CredentialsArgs{
    				AccessToken:                              pulumi.String("string"),
    				JwtToken:                                 pulumi.String("string"),
    				RefreshToken:                             pulumi.String("string"),
    				UserManagedClientApplicationClientSecret: pulumi.String("string"),
    			},
    			Oauth2GrantType: pulumi.String("string"),
    			TokenUrl:        pulumi.String("string"),
    			TokenUrlParametersMap: pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    		},
    		SecretArn: pulumi.String("string"),
    	},
    	CatalogId: pulumi.String("string"),
    	ConnectionProperties: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	ConnectionType: pulumi.String("string"),
    	Description:    pulumi.String("string"),
    	MatchCriterias: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Name: pulumi.String("string"),
    	PhysicalConnectionRequirements: &glue.ConnectionPhysicalConnectionRequirementsArgs{
    		AvailabilityZone: pulumi.String("string"),
    		SecurityGroupIdLists: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		SubnetId: pulumi.String("string"),
    	},
    	Region: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    resource "aws_glue_connection" "exampleconnectionResourceResourceFromGlueconnection" {
      athena_properties = {
        "string" = "string"
      }
      authentication_configuration = {
        authentication_type = "string"
        basic_authentication_credentials = {
          password = "string"
          username = "string"
        }
        custom_authentication_credentials = {
          "string" = "string"
        }
        kms_key_arn = "string"
        oauth2_properties = {
          authorization_code_properties = {
            authorization_code = "string"
            redirect_uri       = "string"
          }
          oauth2_client_application = {
            aws_managed_client_application_reference  = "string"
            user_managed_client_application_client_id = "string"
          }
          oauth2_credentials = {
            access_token                                  = "string"
            jwt_token                                     = "string"
            refresh_token                                 = "string"
            user_managed_client_application_client_secret = "string"
          }
          oauth2_grant_type = "string"
          token_url         = "string"
          token_url_parameters_map = {
            "string" = "string"
          }
        }
        secret_arn = "string"
      }
      catalog_id = "string"
      connection_properties = {
        "string" = "string"
      }
      connection_type = "string"
      description     = "string"
      match_criterias = ["string"]
      name            = "string"
      physical_connection_requirements = {
        availability_zone       = "string"
        security_group_id_lists = ["string"]
        subnet_id               = "string"
      }
      region = "string"
      tags = {
        "string" = "string"
      }
    }
    
    var exampleconnectionResourceResourceFromGlueconnection = new com.pulumi.aws.glue.Connection("exampleconnectionResourceResourceFromGlueconnection", com.pulumi.aws.glue.ConnectionArgs.builder()
        .athenaProperties(Map.of("string", "string"))
        .authenticationConfiguration(ConnectionAuthenticationConfigurationArgs.builder()
            .authenticationType("string")
            .basicAuthenticationCredentials(ConnectionAuthenticationConfigurationBasicAuthenticationCredentialsArgs.builder()
                .password("string")
                .username("string")
                .build())
            .customAuthenticationCredentials(Map.of("string", "string"))
            .kmsKeyArn("string")
            .oauth2Properties(ConnectionAuthenticationConfigurationOauth2PropertiesArgs.builder()
                .authorizationCodeProperties(ConnectionAuthenticationConfigurationOauth2PropertiesAuthorizationCodePropertiesArgs.builder()
                    .authorizationCode("string")
                    .redirectUri("string")
                    .build())
                .oauth2ClientApplication(ConnectionAuthenticationConfigurationOauth2PropertiesOauth2ClientApplicationArgs.builder()
                    .awsManagedClientApplicationReference("string")
                    .userManagedClientApplicationClientId("string")
                    .build())
                .oauth2Credentials(ConnectionAuthenticationConfigurationOauth2PropertiesOauth2CredentialsArgs.builder()
                    .accessToken("string")
                    .jwtToken("string")
                    .refreshToken("string")
                    .userManagedClientApplicationClientSecret("string")
                    .build())
                .oauth2GrantType("string")
                .tokenUrl("string")
                .tokenUrlParametersMap(Map.of("string", "string"))
                .build())
            .secretArn("string")
            .build())
        .catalogId("string")
        .connectionProperties(Map.of("string", "string"))
        .connectionType("string")
        .description("string")
        .matchCriterias("string")
        .name("string")
        .physicalConnectionRequirements(ConnectionPhysicalConnectionRequirementsArgs.builder()
            .availabilityZone("string")
            .securityGroupIdLists("string")
            .subnetId("string")
            .build())
        .region("string")
        .tags(Map.of("string", "string"))
        .build());
    
    exampleconnection_resource_resource_from_glueconnection = aws.glue.Connection("exampleconnectionResourceResourceFromGlueconnection",
        athena_properties={
            "string": "string",
        },
        authentication_configuration={
            "authentication_type": "string",
            "basic_authentication_credentials": {
                "password": "string",
                "username": "string",
            },
            "custom_authentication_credentials": {
                "string": "string",
            },
            "kms_key_arn": "string",
            "oauth2_properties": {
                "authorization_code_properties": {
                    "authorization_code": "string",
                    "redirect_uri": "string",
                },
                "oauth2_client_application": {
                    "aws_managed_client_application_reference": "string",
                    "user_managed_client_application_client_id": "string",
                },
                "oauth2_credentials": {
                    "access_token": "string",
                    "jwt_token": "string",
                    "refresh_token": "string",
                    "user_managed_client_application_client_secret": "string",
                },
                "oauth2_grant_type": "string",
                "token_url": "string",
                "token_url_parameters_map": {
                    "string": "string",
                },
            },
            "secret_arn": "string",
        },
        catalog_id="string",
        connection_properties={
            "string": "string",
        },
        connection_type="string",
        description="string",
        match_criterias=["string"],
        name="string",
        physical_connection_requirements={
            "availability_zone": "string",
            "security_group_id_lists": ["string"],
            "subnet_id": "string",
        },
        region="string",
        tags={
            "string": "string",
        })
    
    const exampleconnectionResourceResourceFromGlueconnection = new aws.glue.Connection("exampleconnectionResourceResourceFromGlueconnection", {
        athenaProperties: {
            string: "string",
        },
        authenticationConfiguration: {
            authenticationType: "string",
            basicAuthenticationCredentials: {
                password: "string",
                username: "string",
            },
            customAuthenticationCredentials: {
                string: "string",
            },
            kmsKeyArn: "string",
            oauth2Properties: {
                authorizationCodeProperties: {
                    authorizationCode: "string",
                    redirectUri: "string",
                },
                oauth2ClientApplication: {
                    awsManagedClientApplicationReference: "string",
                    userManagedClientApplicationClientId: "string",
                },
                oauth2Credentials: {
                    accessToken: "string",
                    jwtToken: "string",
                    refreshToken: "string",
                    userManagedClientApplicationClientSecret: "string",
                },
                oauth2GrantType: "string",
                tokenUrl: "string",
                tokenUrlParametersMap: {
                    string: "string",
                },
            },
            secretArn: "string",
        },
        catalogId: "string",
        connectionProperties: {
            string: "string",
        },
        connectionType: "string",
        description: "string",
        matchCriterias: ["string"],
        name: "string",
        physicalConnectionRequirements: {
            availabilityZone: "string",
            securityGroupIdLists: ["string"],
            subnetId: "string",
        },
        region: "string",
        tags: {
            string: "string",
        },
    });
    
    type: aws:glue:Connection
    properties:
        athenaProperties:
            string: string
        authenticationConfiguration:
            authenticationType: string
            basicAuthenticationCredentials:
                password: string
                username: string
            customAuthenticationCredentials:
                string: string
            kmsKeyArn: string
            oauth2Properties:
                authorizationCodeProperties:
                    authorizationCode: string
                    redirectUri: string
                oauth2ClientApplication:
                    awsManagedClientApplicationReference: string
                    userManagedClientApplicationClientId: string
                oauth2Credentials:
                    accessToken: string
                    jwtToken: string
                    refreshToken: string
                    userManagedClientApplicationClientSecret: string
                oauth2GrantType: string
                tokenUrl: string
                tokenUrlParametersMap:
                    string: string
            secretArn: string
        catalogId: string
        connectionProperties:
            string: string
        connectionType: string
        description: string
        matchCriterias:
            - string
        name: string
        physicalConnectionRequirements:
            availabilityZone: string
            securityGroupIdLists:
                - string
            subnetId: string
        region: string
        tags:
            string: string
    

    Connection Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Connection resource accepts the following input properties:

    AthenaProperties Dictionary<string, string>
    Map of key-value pairs used as connection properties specific to the Athena compute environment.
    AuthenticationConfiguration ConnectionAuthenticationConfiguration
    Configuration block for authentication options. See authenticationConfiguration below.
    CatalogId string
    ID of the Data Catalog in which to create the connection. If none is supplied, the AWS account ID is used by default.
    ConnectionProperties Dictionary<string, string>
    Map of key-value pairs used as parameters for this connection. For more information, see the AWS Documentation.
    ConnectionType string
    Type of the connection. Valid values: AZURECOSMOS, AZURESQL, BIGQUERY, CUSTOM, DYNAMODB, JDBC, KAFKA, MARKETPLACE, MONGODB, NETWORK, OPENSEARCH, SNOWFLAKE. Defaults to JDBC. Some connection types require the SparkProperties property with a JSON document that contains the actual connection properties. For specific examples, refer to Example Usage.
    Description string
    Description of the connection.
    MatchCriterias List<string>
    List of criteria that can be used in selecting this connection.
    Name string

    Name of the connection.

    The following arguments are optional:

    PhysicalConnectionRequirements ConnectionPhysicalConnectionRequirements
    Map of physical connection requirements, such as VPC and SecurityGroup. See physicalConnectionRequirements below.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags Dictionary<string, string>
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    AthenaProperties map[string]string
    Map of key-value pairs used as connection properties specific to the Athena compute environment.
    AuthenticationConfiguration ConnectionAuthenticationConfigurationArgs
    Configuration block for authentication options. See authenticationConfiguration below.
    CatalogId string
    ID of the Data Catalog in which to create the connection. If none is supplied, the AWS account ID is used by default.
    ConnectionProperties map[string]string
    Map of key-value pairs used as parameters for this connection. For more information, see the AWS Documentation.
    ConnectionType string
    Type of the connection. Valid values: AZURECOSMOS, AZURESQL, BIGQUERY, CUSTOM, DYNAMODB, JDBC, KAFKA, MARKETPLACE, MONGODB, NETWORK, OPENSEARCH, SNOWFLAKE. Defaults to JDBC. Some connection types require the SparkProperties property with a JSON document that contains the actual connection properties. For specific examples, refer to Example Usage.
    Description string
    Description of the connection.
    MatchCriterias []string
    List of criteria that can be used in selecting this connection.
    Name string

    Name of the connection.

    The following arguments are optional:

    PhysicalConnectionRequirements ConnectionPhysicalConnectionRequirementsArgs
    Map of physical connection requirements, such as VPC and SecurityGroup. See physicalConnectionRequirements below.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags map[string]string
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    athena_properties map(string)
    Map of key-value pairs used as connection properties specific to the Athena compute environment.
    authentication_configuration object
    Configuration block for authentication options. See authenticationConfiguration below.
    catalog_id string
    ID of the Data Catalog in which to create the connection. If none is supplied, the AWS account ID is used by default.
    connection_properties map(string)
    Map of key-value pairs used as parameters for this connection. For more information, see the AWS Documentation.
    connection_type string
    Type of the connection. Valid values: AZURECOSMOS, AZURESQL, BIGQUERY, CUSTOM, DYNAMODB, JDBC, KAFKA, MARKETPLACE, MONGODB, NETWORK, OPENSEARCH, SNOWFLAKE. Defaults to JDBC. Some connection types require the SparkProperties property with a JSON document that contains the actual connection properties. For specific examples, refer to Example Usage.
    description string
    Description of the connection.
    match_criterias list(string)
    List of criteria that can be used in selecting this connection.
    name string

    Name of the connection.

    The following arguments are optional:

    physical_connection_requirements object
    Map of physical connection requirements, such as VPC and SecurityGroup. See physicalConnectionRequirements below.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags map(string)
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    athenaProperties Map<String,String>
    Map of key-value pairs used as connection properties specific to the Athena compute environment.
    authenticationConfiguration ConnectionAuthenticationConfiguration
    Configuration block for authentication options. See authenticationConfiguration below.
    catalogId String
    ID of the Data Catalog in which to create the connection. If none is supplied, the AWS account ID is used by default.
    connectionProperties Map<String,String>
    Map of key-value pairs used as parameters for this connection. For more information, see the AWS Documentation.
    connectionType String
    Type of the connection. Valid values: AZURECOSMOS, AZURESQL, BIGQUERY, CUSTOM, DYNAMODB, JDBC, KAFKA, MARKETPLACE, MONGODB, NETWORK, OPENSEARCH, SNOWFLAKE. Defaults to JDBC. Some connection types require the SparkProperties property with a JSON document that contains the actual connection properties. For specific examples, refer to Example Usage.
    description String
    Description of the connection.
    matchCriterias List<String>
    List of criteria that can be used in selecting this connection.
    name String

    Name of the connection.

    The following arguments are optional:

    physicalConnectionRequirements ConnectionPhysicalConnectionRequirements
    Map of physical connection requirements, such as VPC and SecurityGroup. See physicalConnectionRequirements below.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String,String>
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    athenaProperties {[key: string]: string}
    Map of key-value pairs used as connection properties specific to the Athena compute environment.
    authenticationConfiguration ConnectionAuthenticationConfiguration
    Configuration block for authentication options. See authenticationConfiguration below.
    catalogId string
    ID of the Data Catalog in which to create the connection. If none is supplied, the AWS account ID is used by default.
    connectionProperties {[key: string]: string}
    Map of key-value pairs used as parameters for this connection. For more information, see the AWS Documentation.
    connectionType string
    Type of the connection. Valid values: AZURECOSMOS, AZURESQL, BIGQUERY, CUSTOM, DYNAMODB, JDBC, KAFKA, MARKETPLACE, MONGODB, NETWORK, OPENSEARCH, SNOWFLAKE. Defaults to JDBC. Some connection types require the SparkProperties property with a JSON document that contains the actual connection properties. For specific examples, refer to Example Usage.
    description string
    Description of the connection.
    matchCriterias string[]
    List of criteria that can be used in selecting this connection.
    name string

    Name of the connection.

    The following arguments are optional:

    physicalConnectionRequirements ConnectionPhysicalConnectionRequirements
    Map of physical connection requirements, such as VPC and SecurityGroup. See physicalConnectionRequirements below.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags {[key: string]: string}
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    athena_properties Mapping[str, str]
    Map of key-value pairs used as connection properties specific to the Athena compute environment.
    authentication_configuration ConnectionAuthenticationConfigurationArgs
    Configuration block for authentication options. See authenticationConfiguration below.
    catalog_id str
    ID of the Data Catalog in which to create the connection. If none is supplied, the AWS account ID is used by default.
    connection_properties Mapping[str, str]
    Map of key-value pairs used as parameters for this connection. For more information, see the AWS Documentation.
    connection_type str
    Type of the connection. Valid values: AZURECOSMOS, AZURESQL, BIGQUERY, CUSTOM, DYNAMODB, JDBC, KAFKA, MARKETPLACE, MONGODB, NETWORK, OPENSEARCH, SNOWFLAKE. Defaults to JDBC. Some connection types require the SparkProperties property with a JSON document that contains the actual connection properties. For specific examples, refer to Example Usage.
    description str
    Description of the connection.
    match_criterias Sequence[str]
    List of criteria that can be used in selecting this connection.
    name str

    Name of the connection.

    The following arguments are optional:

    physical_connection_requirements ConnectionPhysicalConnectionRequirementsArgs
    Map of physical connection requirements, such as VPC and SecurityGroup. See physicalConnectionRequirements below.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Mapping[str, str]
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    athenaProperties Map<String>
    Map of key-value pairs used as connection properties specific to the Athena compute environment.
    authenticationConfiguration Property Map
    Configuration block for authentication options. See authenticationConfiguration below.
    catalogId String
    ID of the Data Catalog in which to create the connection. If none is supplied, the AWS account ID is used by default.
    connectionProperties Map<String>
    Map of key-value pairs used as parameters for this connection. For more information, see the AWS Documentation.
    connectionType String
    Type of the connection. Valid values: AZURECOSMOS, AZURESQL, BIGQUERY, CUSTOM, DYNAMODB, JDBC, KAFKA, MARKETPLACE, MONGODB, NETWORK, OPENSEARCH, SNOWFLAKE. Defaults to JDBC. Some connection types require the SparkProperties property with a JSON document that contains the actual connection properties. For specific examples, refer to Example Usage.
    description String
    Description of the connection.
    matchCriterias List<String>
    List of criteria that can be used in selecting this connection.
    name String

    Name of the connection.

    The following arguments are optional:

    physicalConnectionRequirements Property Map
    Map of physical connection requirements, such as VPC and SecurityGroup. See physicalConnectionRequirements below.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String>
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Connection resource produces the following output properties:

    Arn string
    ARN of the Glue Connection.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Arn string
    ARN of the Glue Connection.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    ARN of the Glue Connection.
    id string
    The provider-assigned unique ID for this managed resource.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the Glue Connection.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    ARN of the Glue Connection.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn str
    ARN of the Glue Connection.
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the Glue Connection.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

    Look up Existing Connection Resource

    Get an existing Connection resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ConnectionState, opts?: CustomResourceOptions): Connection
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            athena_properties: Optional[Mapping[str, str]] = None,
            authentication_configuration: Optional[ConnectionAuthenticationConfigurationArgs] = None,
            catalog_id: Optional[str] = None,
            connection_properties: Optional[Mapping[str, str]] = None,
            connection_type: Optional[str] = None,
            description: Optional[str] = None,
            match_criterias: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            physical_connection_requirements: Optional[ConnectionPhysicalConnectionRequirementsArgs] = None,
            region: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> Connection
    func GetConnection(ctx *Context, name string, id IDInput, state *ConnectionState, opts ...ResourceOption) (*Connection, error)
    public static Connection Get(string name, Input<string> id, ConnectionState? state, CustomResourceOptions? opts = null)
    public static Connection get(String name, Output<String> id, ConnectionState state, CustomResourceOptions options)
    resources:  _:    type: aws:glue:Connection    get:      id: ${id}
    import {
      to = aws_glue_connection.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string
    ARN of the Glue Connection.
    AthenaProperties Dictionary<string, string>
    Map of key-value pairs used as connection properties specific to the Athena compute environment.
    AuthenticationConfiguration ConnectionAuthenticationConfiguration
    Configuration block for authentication options. See authenticationConfiguration below.
    CatalogId string
    ID of the Data Catalog in which to create the connection. If none is supplied, the AWS account ID is used by default.
    ConnectionProperties Dictionary<string, string>
    Map of key-value pairs used as parameters for this connection. For more information, see the AWS Documentation.
    ConnectionType string
    Type of the connection. Valid values: AZURECOSMOS, AZURESQL, BIGQUERY, CUSTOM, DYNAMODB, JDBC, KAFKA, MARKETPLACE, MONGODB, NETWORK, OPENSEARCH, SNOWFLAKE. Defaults to JDBC. Some connection types require the SparkProperties property with a JSON document that contains the actual connection properties. For specific examples, refer to Example Usage.
    Description string
    Description of the connection.
    MatchCriterias List<string>
    List of criteria that can be used in selecting this connection.
    Name string

    Name of the connection.

    The following arguments are optional:

    PhysicalConnectionRequirements ConnectionPhysicalConnectionRequirements
    Map of physical connection requirements, such as VPC and SecurityGroup. See physicalConnectionRequirements below.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags Dictionary<string, string>
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Arn string
    ARN of the Glue Connection.
    AthenaProperties map[string]string
    Map of key-value pairs used as connection properties specific to the Athena compute environment.
    AuthenticationConfiguration ConnectionAuthenticationConfigurationArgs
    Configuration block for authentication options. See authenticationConfiguration below.
    CatalogId string
    ID of the Data Catalog in which to create the connection. If none is supplied, the AWS account ID is used by default.
    ConnectionProperties map[string]string
    Map of key-value pairs used as parameters for this connection. For more information, see the AWS Documentation.
    ConnectionType string
    Type of the connection. Valid values: AZURECOSMOS, AZURESQL, BIGQUERY, CUSTOM, DYNAMODB, JDBC, KAFKA, MARKETPLACE, MONGODB, NETWORK, OPENSEARCH, SNOWFLAKE. Defaults to JDBC. Some connection types require the SparkProperties property with a JSON document that contains the actual connection properties. For specific examples, refer to Example Usage.
    Description string
    Description of the connection.
    MatchCriterias []string
    List of criteria that can be used in selecting this connection.
    Name string

    Name of the connection.

    The following arguments are optional:

    PhysicalConnectionRequirements ConnectionPhysicalConnectionRequirementsArgs
    Map of physical connection requirements, such as VPC and SecurityGroup. See physicalConnectionRequirements below.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags map[string]string
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    ARN of the Glue Connection.
    athena_properties map(string)
    Map of key-value pairs used as connection properties specific to the Athena compute environment.
    authentication_configuration object
    Configuration block for authentication options. See authenticationConfiguration below.
    catalog_id string
    ID of the Data Catalog in which to create the connection. If none is supplied, the AWS account ID is used by default.
    connection_properties map(string)
    Map of key-value pairs used as parameters for this connection. For more information, see the AWS Documentation.
    connection_type string
    Type of the connection. Valid values: AZURECOSMOS, AZURESQL, BIGQUERY, CUSTOM, DYNAMODB, JDBC, KAFKA, MARKETPLACE, MONGODB, NETWORK, OPENSEARCH, SNOWFLAKE. Defaults to JDBC. Some connection types require the SparkProperties property with a JSON document that contains the actual connection properties. For specific examples, refer to Example Usage.
    description string
    Description of the connection.
    match_criterias list(string)
    List of criteria that can be used in selecting this connection.
    name string

    Name of the connection.

    The following arguments are optional:

    physical_connection_requirements object
    Map of physical connection requirements, such as VPC and SecurityGroup. See physicalConnectionRequirements below.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags map(string)
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the Glue Connection.
    athenaProperties Map<String,String>
    Map of key-value pairs used as connection properties specific to the Athena compute environment.
    authenticationConfiguration ConnectionAuthenticationConfiguration
    Configuration block for authentication options. See authenticationConfiguration below.
    catalogId String
    ID of the Data Catalog in which to create the connection. If none is supplied, the AWS account ID is used by default.
    connectionProperties Map<String,String>
    Map of key-value pairs used as parameters for this connection. For more information, see the AWS Documentation.
    connectionType String
    Type of the connection. Valid values: AZURECOSMOS, AZURESQL, BIGQUERY, CUSTOM, DYNAMODB, JDBC, KAFKA, MARKETPLACE, MONGODB, NETWORK, OPENSEARCH, SNOWFLAKE. Defaults to JDBC. Some connection types require the SparkProperties property with a JSON document that contains the actual connection properties. For specific examples, refer to Example Usage.
    description String
    Description of the connection.
    matchCriterias List<String>
    List of criteria that can be used in selecting this connection.
    name String

    Name of the connection.

    The following arguments are optional:

    physicalConnectionRequirements ConnectionPhysicalConnectionRequirements
    Map of physical connection requirements, such as VPC and SecurityGroup. See physicalConnectionRequirements below.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String,String>
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    ARN of the Glue Connection.
    athenaProperties {[key: string]: string}
    Map of key-value pairs used as connection properties specific to the Athena compute environment.
    authenticationConfiguration ConnectionAuthenticationConfiguration
    Configuration block for authentication options. See authenticationConfiguration below.
    catalogId string
    ID of the Data Catalog in which to create the connection. If none is supplied, the AWS account ID is used by default.
    connectionProperties {[key: string]: string}
    Map of key-value pairs used as parameters for this connection. For more information, see the AWS Documentation.
    connectionType string
    Type of the connection. Valid values: AZURECOSMOS, AZURESQL, BIGQUERY, CUSTOM, DYNAMODB, JDBC, KAFKA, MARKETPLACE, MONGODB, NETWORK, OPENSEARCH, SNOWFLAKE. Defaults to JDBC. Some connection types require the SparkProperties property with a JSON document that contains the actual connection properties. For specific examples, refer to Example Usage.
    description string
    Description of the connection.
    matchCriterias string[]
    List of criteria that can be used in selecting this connection.
    name string

    Name of the connection.

    The following arguments are optional:

    physicalConnectionRequirements ConnectionPhysicalConnectionRequirements
    Map of physical connection requirements, such as VPC and SecurityGroup. See physicalConnectionRequirements below.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags {[key: string]: string}
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn str
    ARN of the Glue Connection.
    athena_properties Mapping[str, str]
    Map of key-value pairs used as connection properties specific to the Athena compute environment.
    authentication_configuration ConnectionAuthenticationConfigurationArgs
    Configuration block for authentication options. See authenticationConfiguration below.
    catalog_id str
    ID of the Data Catalog in which to create the connection. If none is supplied, the AWS account ID is used by default.
    connection_properties Mapping[str, str]
    Map of key-value pairs used as parameters for this connection. For more information, see the AWS Documentation.
    connection_type str
    Type of the connection. Valid values: AZURECOSMOS, AZURESQL, BIGQUERY, CUSTOM, DYNAMODB, JDBC, KAFKA, MARKETPLACE, MONGODB, NETWORK, OPENSEARCH, SNOWFLAKE. Defaults to JDBC. Some connection types require the SparkProperties property with a JSON document that contains the actual connection properties. For specific examples, refer to Example Usage.
    description str
    Description of the connection.
    match_criterias Sequence[str]
    List of criteria that can be used in selecting this connection.
    name str

    Name of the connection.

    The following arguments are optional:

    physical_connection_requirements ConnectionPhysicalConnectionRequirementsArgs
    Map of physical connection requirements, such as VPC and SecurityGroup. See physicalConnectionRequirements below.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Mapping[str, str]
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the Glue Connection.
    athenaProperties Map<String>
    Map of key-value pairs used as connection properties specific to the Athena compute environment.
    authenticationConfiguration Property Map
    Configuration block for authentication options. See authenticationConfiguration below.
    catalogId String
    ID of the Data Catalog in which to create the connection. If none is supplied, the AWS account ID is used by default.
    connectionProperties Map<String>
    Map of key-value pairs used as parameters for this connection. For more information, see the AWS Documentation.
    connectionType String
    Type of the connection. Valid values: AZURECOSMOS, AZURESQL, BIGQUERY, CUSTOM, DYNAMODB, JDBC, KAFKA, MARKETPLACE, MONGODB, NETWORK, OPENSEARCH, SNOWFLAKE. Defaults to JDBC. Some connection types require the SparkProperties property with a JSON document that contains the actual connection properties. For specific examples, refer to Example Usage.
    description String
    Description of the connection.
    matchCriterias List<String>
    List of criteria that can be used in selecting this connection.
    name String

    Name of the connection.

    The following arguments are optional:

    physicalConnectionRequirements Property Map
    Map of physical connection requirements, such as VPC and SecurityGroup. See physicalConnectionRequirements below.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String>
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

    Supporting Types

    ConnectionAuthenticationConfiguration, ConnectionAuthenticationConfigurationArgs

    AuthenticationType string
    Type of authentication. Valid values: BASIC, CUSTOM, IAM, OAUTH2.
    BasicAuthenticationCredentials ConnectionAuthenticationConfigurationBasicAuthenticationCredentials
    Basic authentication credentials. See basicAuthenticationCredentials below.
    CustomAuthenticationCredentials Dictionary<string, string>
    Map of custom authentication credentials.
    KmsKeyArn string
    ARN of the KMS key used for encryption.
    Oauth2Properties ConnectionAuthenticationConfigurationOauth2Properties
    OAuth2 properties. See oauth2Properties below.
    SecretArn string
    ARN of the Secrets Manager secret containing credentials.
    AuthenticationType string
    Type of authentication. Valid values: BASIC, CUSTOM, IAM, OAUTH2.
    BasicAuthenticationCredentials ConnectionAuthenticationConfigurationBasicAuthenticationCredentials
    Basic authentication credentials. See basicAuthenticationCredentials below.
    CustomAuthenticationCredentials map[string]string
    Map of custom authentication credentials.
    KmsKeyArn string
    ARN of the KMS key used for encryption.
    Oauth2Properties ConnectionAuthenticationConfigurationOauth2Properties
    OAuth2 properties. See oauth2Properties below.
    SecretArn string
    ARN of the Secrets Manager secret containing credentials.
    authentication_type string
    Type of authentication. Valid values: BASIC, CUSTOM, IAM, OAUTH2.
    basic_authentication_credentials object
    Basic authentication credentials. See basicAuthenticationCredentials below.
    custom_authentication_credentials map(string)
    Map of custom authentication credentials.
    kms_key_arn string
    ARN of the KMS key used for encryption.
    oauth2_properties object
    OAuth2 properties. See oauth2Properties below.
    secret_arn string
    ARN of the Secrets Manager secret containing credentials.
    authenticationType String
    Type of authentication. Valid values: BASIC, CUSTOM, IAM, OAUTH2.
    basicAuthenticationCredentials ConnectionAuthenticationConfigurationBasicAuthenticationCredentials
    Basic authentication credentials. See basicAuthenticationCredentials below.
    customAuthenticationCredentials Map<String,String>
    Map of custom authentication credentials.
    kmsKeyArn String
    ARN of the KMS key used for encryption.
    oauth2Properties ConnectionAuthenticationConfigurationOauth2Properties
    OAuth2 properties. See oauth2Properties below.
    secretArn String
    ARN of the Secrets Manager secret containing credentials.
    authenticationType string
    Type of authentication. Valid values: BASIC, CUSTOM, IAM, OAUTH2.
    basicAuthenticationCredentials ConnectionAuthenticationConfigurationBasicAuthenticationCredentials
    Basic authentication credentials. See basicAuthenticationCredentials below.
    customAuthenticationCredentials {[key: string]: string}
    Map of custom authentication credentials.
    kmsKeyArn string
    ARN of the KMS key used for encryption.
    oauth2Properties ConnectionAuthenticationConfigurationOauth2Properties
    OAuth2 properties. See oauth2Properties below.
    secretArn string
    ARN of the Secrets Manager secret containing credentials.
    authentication_type str
    Type of authentication. Valid values: BASIC, CUSTOM, IAM, OAUTH2.
    basic_authentication_credentials ConnectionAuthenticationConfigurationBasicAuthenticationCredentials
    Basic authentication credentials. See basicAuthenticationCredentials below.
    custom_authentication_credentials Mapping[str, str]
    Map of custom authentication credentials.
    kms_key_arn str
    ARN of the KMS key used for encryption.
    oauth2_properties ConnectionAuthenticationConfigurationOauth2Properties
    OAuth2 properties. See oauth2Properties below.
    secret_arn str
    ARN of the Secrets Manager secret containing credentials.
    authenticationType String
    Type of authentication. Valid values: BASIC, CUSTOM, IAM, OAUTH2.
    basicAuthenticationCredentials Property Map
    Basic authentication credentials. See basicAuthenticationCredentials below.
    customAuthenticationCredentials Map<String>
    Map of custom authentication credentials.
    kmsKeyArn String
    ARN of the KMS key used for encryption.
    oauth2Properties Property Map
    OAuth2 properties. See oauth2Properties below.
    secretArn String
    ARN of the Secrets Manager secret containing credentials.

    ConnectionAuthenticationConfigurationBasicAuthenticationCredentials, ConnectionAuthenticationConfigurationBasicAuthenticationCredentialsArgs

    Password string
    Password for authentication.
    Username string
    Username for authentication.
    Password string
    Password for authentication.
    Username string
    Username for authentication.
    password string
    Password for authentication.
    username string
    Username for authentication.
    password String
    Password for authentication.
    username String
    Username for authentication.
    password string
    Password for authentication.
    username string
    Username for authentication.
    password str
    Password for authentication.
    username str
    Username for authentication.
    password String
    Password for authentication.
    username String
    Username for authentication.

    ConnectionAuthenticationConfigurationOauth2Properties, ConnectionAuthenticationConfigurationOauth2PropertiesArgs

    AuthorizationCodeProperties ConnectionAuthenticationConfigurationOauth2PropertiesAuthorizationCodeProperties
    Authorization code properties. See authorizationCodeProperties below.
    Oauth2ClientApplication ConnectionAuthenticationConfigurationOauth2PropertiesOauth2ClientApplication
    OAuth2 client application details. See oauth2ClientApplication below.
    Oauth2Credentials ConnectionAuthenticationConfigurationOauth2PropertiesOauth2Credentials
    OAuth2 credentials. See oauth2Credentials below.
    Oauth2GrantType string
    OAuth2 grant type. Valid values: AUTHORIZATION_CODE, CLIENT_CREDENTIALS, JWT_BEARER.
    TokenUrl string
    Token URL for OAuth2 authentication.
    TokenUrlParametersMap Dictionary<string, string>
    Map of additional parameters for the token URL.
    AuthorizationCodeProperties ConnectionAuthenticationConfigurationOauth2PropertiesAuthorizationCodeProperties
    Authorization code properties. See authorizationCodeProperties below.
    Oauth2ClientApplication ConnectionAuthenticationConfigurationOauth2PropertiesOauth2ClientApplication
    OAuth2 client application details. See oauth2ClientApplication below.
    Oauth2Credentials ConnectionAuthenticationConfigurationOauth2PropertiesOauth2Credentials
    OAuth2 credentials. See oauth2Credentials below.
    Oauth2GrantType string
    OAuth2 grant type. Valid values: AUTHORIZATION_CODE, CLIENT_CREDENTIALS, JWT_BEARER.
    TokenUrl string
    Token URL for OAuth2 authentication.
    TokenUrlParametersMap map[string]string
    Map of additional parameters for the token URL.
    authorization_code_properties object
    Authorization code properties. See authorizationCodeProperties below.
    oauth2_client_application object
    OAuth2 client application details. See oauth2ClientApplication below.
    oauth2_credentials object
    OAuth2 credentials. See oauth2Credentials below.
    oauth2_grant_type string
    OAuth2 grant type. Valid values: AUTHORIZATION_CODE, CLIENT_CREDENTIALS, JWT_BEARER.
    token_url string
    Token URL for OAuth2 authentication.
    token_url_parameters_map map(string)
    Map of additional parameters for the token URL.
    authorizationCodeProperties ConnectionAuthenticationConfigurationOauth2PropertiesAuthorizationCodeProperties
    Authorization code properties. See authorizationCodeProperties below.
    oauth2ClientApplication ConnectionAuthenticationConfigurationOauth2PropertiesOauth2ClientApplication
    OAuth2 client application details. See oauth2ClientApplication below.
    oauth2Credentials ConnectionAuthenticationConfigurationOauth2PropertiesOauth2Credentials
    OAuth2 credentials. See oauth2Credentials below.
    oauth2GrantType String
    OAuth2 grant type. Valid values: AUTHORIZATION_CODE, CLIENT_CREDENTIALS, JWT_BEARER.
    tokenUrl String
    Token URL for OAuth2 authentication.
    tokenUrlParametersMap Map<String,String>
    Map of additional parameters for the token URL.
    authorizationCodeProperties ConnectionAuthenticationConfigurationOauth2PropertiesAuthorizationCodeProperties
    Authorization code properties. See authorizationCodeProperties below.
    oauth2ClientApplication ConnectionAuthenticationConfigurationOauth2PropertiesOauth2ClientApplication
    OAuth2 client application details. See oauth2ClientApplication below.
    oauth2Credentials ConnectionAuthenticationConfigurationOauth2PropertiesOauth2Credentials
    OAuth2 credentials. See oauth2Credentials below.
    oauth2GrantType string
    OAuth2 grant type. Valid values: AUTHORIZATION_CODE, CLIENT_CREDENTIALS, JWT_BEARER.
    tokenUrl string
    Token URL for OAuth2 authentication.
    tokenUrlParametersMap {[key: string]: string}
    Map of additional parameters for the token URL.
    authorization_code_properties ConnectionAuthenticationConfigurationOauth2PropertiesAuthorizationCodeProperties
    Authorization code properties. See authorizationCodeProperties below.
    oauth2_client_application ConnectionAuthenticationConfigurationOauth2PropertiesOauth2ClientApplication
    OAuth2 client application details. See oauth2ClientApplication below.
    oauth2_credentials ConnectionAuthenticationConfigurationOauth2PropertiesOauth2Credentials
    OAuth2 credentials. See oauth2Credentials below.
    oauth2_grant_type str
    OAuth2 grant type. Valid values: AUTHORIZATION_CODE, CLIENT_CREDENTIALS, JWT_BEARER.
    token_url str
    Token URL for OAuth2 authentication.
    token_url_parameters_map Mapping[str, str]
    Map of additional parameters for the token URL.
    authorizationCodeProperties Property Map
    Authorization code properties. See authorizationCodeProperties below.
    oauth2ClientApplication Property Map
    OAuth2 client application details. See oauth2ClientApplication below.
    oauth2Credentials Property Map
    OAuth2 credentials. See oauth2Credentials below.
    oauth2GrantType String
    OAuth2 grant type. Valid values: AUTHORIZATION_CODE, CLIENT_CREDENTIALS, JWT_BEARER.
    tokenUrl String
    Token URL for OAuth2 authentication.
    tokenUrlParametersMap Map<String>
    Map of additional parameters for the token URL.

    ConnectionAuthenticationConfigurationOauth2PropertiesAuthorizationCodeProperties, ConnectionAuthenticationConfigurationOauth2PropertiesAuthorizationCodePropertiesArgs

    AuthorizationCode string
    Authorization code.
    RedirectUri string
    Redirect URI for OAuth2 flow.
    AuthorizationCode string
    Authorization code.
    RedirectUri string
    Redirect URI for OAuth2 flow.
    authorization_code string
    Authorization code.
    redirect_uri string
    Redirect URI for OAuth2 flow.
    authorizationCode String
    Authorization code.
    redirectUri String
    Redirect URI for OAuth2 flow.
    authorizationCode string
    Authorization code.
    redirectUri string
    Redirect URI for OAuth2 flow.
    authorization_code str
    Authorization code.
    redirect_uri str
    Redirect URI for OAuth2 flow.
    authorizationCode String
    Authorization code.
    redirectUri String
    Redirect URI for OAuth2 flow.

    ConnectionAuthenticationConfigurationOauth2PropertiesOauth2ClientApplication, ConnectionAuthenticationConfigurationOauth2PropertiesOauth2ClientApplicationArgs

    AwsManagedClientApplicationReference string
    Reference to an AWS-managed client application.
    UserManagedClientApplicationClientId string
    Client ID for a user-managed client application.
    AwsManagedClientApplicationReference string
    Reference to an AWS-managed client application.
    UserManagedClientApplicationClientId string
    Client ID for a user-managed client application.
    aws_managed_client_application_reference string
    Reference to an AWS-managed client application.
    user_managed_client_application_client_id string
    Client ID for a user-managed client application.
    awsManagedClientApplicationReference String
    Reference to an AWS-managed client application.
    userManagedClientApplicationClientId String
    Client ID for a user-managed client application.
    awsManagedClientApplicationReference string
    Reference to an AWS-managed client application.
    userManagedClientApplicationClientId string
    Client ID for a user-managed client application.
    aws_managed_client_application_reference str
    Reference to an AWS-managed client application.
    user_managed_client_application_client_id str
    Client ID for a user-managed client application.
    awsManagedClientApplicationReference String
    Reference to an AWS-managed client application.
    userManagedClientApplicationClientId String
    Client ID for a user-managed client application.

    ConnectionAuthenticationConfigurationOauth2PropertiesOauth2Credentials, ConnectionAuthenticationConfigurationOauth2PropertiesOauth2CredentialsArgs

    AccessToken string
    OAuth2 access token.
    JwtToken string
    JWT token.
    RefreshToken string
    OAuth2 refresh token.
    UserManagedClientApplicationClientSecret string
    Client secret for user-managed client application.
    AccessToken string
    OAuth2 access token.
    JwtToken string
    JWT token.
    RefreshToken string
    OAuth2 refresh token.
    UserManagedClientApplicationClientSecret string
    Client secret for user-managed client application.
    access_token string
    OAuth2 access token.
    jwt_token string
    JWT token.
    refresh_token string
    OAuth2 refresh token.
    user_managed_client_application_client_secret string
    Client secret for user-managed client application.
    accessToken String
    OAuth2 access token.
    jwtToken String
    JWT token.
    refreshToken String
    OAuth2 refresh token.
    userManagedClientApplicationClientSecret String
    Client secret for user-managed client application.
    accessToken string
    OAuth2 access token.
    jwtToken string
    JWT token.
    refreshToken string
    OAuth2 refresh token.
    userManagedClientApplicationClientSecret string
    Client secret for user-managed client application.
    access_token str
    OAuth2 access token.
    jwt_token str
    JWT token.
    refresh_token str
    OAuth2 refresh token.
    user_managed_client_application_client_secret str
    Client secret for user-managed client application.
    accessToken String
    OAuth2 access token.
    jwtToken String
    JWT token.
    refreshToken String
    OAuth2 refresh token.
    userManagedClientApplicationClientSecret String
    Client secret for user-managed client application.

    ConnectionPhysicalConnectionRequirements, ConnectionPhysicalConnectionRequirementsArgs

    AvailabilityZone string
    Availability zone of the connection. This field is redundant and implied by subnetId, but is currently an API requirement.
    SecurityGroupIdLists List<string>
    Security group ID list used by the connection.
    SubnetId string
    Subnet ID used by the connection.
    AvailabilityZone string
    Availability zone of the connection. This field is redundant and implied by subnetId, but is currently an API requirement.
    SecurityGroupIdLists []string
    Security group ID list used by the connection.
    SubnetId string
    Subnet ID used by the connection.
    availability_zone string
    Availability zone of the connection. This field is redundant and implied by subnetId, but is currently an API requirement.
    security_group_id_lists list(string)
    Security group ID list used by the connection.
    subnet_id string
    Subnet ID used by the connection.
    availabilityZone String
    Availability zone of the connection. This field is redundant and implied by subnetId, but is currently an API requirement.
    securityGroupIdLists List<String>
    Security group ID list used by the connection.
    subnetId String
    Subnet ID used by the connection.
    availabilityZone string
    Availability zone of the connection. This field is redundant and implied by subnetId, but is currently an API requirement.
    securityGroupIdLists string[]
    Security group ID list used by the connection.
    subnetId string
    Subnet ID used by the connection.
    availability_zone str
    Availability zone of the connection. This field is redundant and implied by subnetId, but is currently an API requirement.
    security_group_id_lists Sequence[str]
    Security group ID list used by the connection.
    subnet_id str
    Subnet ID used by the connection.
    availabilityZone String
    Availability zone of the connection. This field is redundant and implied by subnetId, but is currently an API requirement.
    securityGroupIdLists List<String>
    Security group ID list used by the connection.
    subnetId String
    Subnet ID used by the connection.

    Import

    Using pulumi import, import Glue Connections using the CATALOG-ID (AWS account ID if not custom) and NAME. For example:

    $ pulumi import aws:glue/connection:Connection MyConnection 123456789012:MyConnection
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    Viewing docs for AWS v7.30.0
    published on Thursday, May 14, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.