ConnectionArgs

data class ConnectionArgs(val hostArn: Output<String>? = null, val name: Output<String>? = null, val providerType: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val timeouts: Output<ConnectionTimeoutsArgs>? = null) : ConvertibleToJava<ConnectionArgs>

Resource for managing an AWS CodeConnections Connection.

NOTE: The aws.codeconnections.Connection resource is created in the state PENDING. Authentication with the connection provider must be completed in the AWS Console. See the AWS documentation for details.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.codeconnections.Connection("example", {
name: "example-connection",
providerType: "Bitbucket",
});
import pulumi
import pulumi_aws as aws
example = aws.codeconnections.Connection("example",
name="example-connection",
provider_type="Bitbucket")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.CodeConnections.Connection("example", new()
{
Name = "example-connection",
ProviderType = "Bitbucket",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/codeconnections"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := codeconnections.NewConnection(ctx, "example", &codeconnections.ConnectionArgs{
Name: pulumi.String("example-connection"),
ProviderType: pulumi.String("Bitbucket"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.codeconnections.Connection;
import com.pulumi.aws.codeconnections.ConnectionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Connection("example", ConnectionArgs.builder()
.name("example-connection")
.providerType("Bitbucket")
.build());
}
}
resources:
example:
type: aws:codeconnections:Connection
properties:
name: example-connection
providerType: Bitbucket

Import

Using pulumi import, import CodeConnections connection using the ARN. For example:

$ pulumi import aws:codeconnections/connection:Connection test-connection arn:aws:codeconnections:us-west-1:0123456789:connection/79d4d357-a2ee-41e4-b350-2fe39ae59448

Constructors

Link copied to clipboard
constructor(hostArn: Output<String>? = null, name: Output<String>? = null, providerType: Output<String>? = null, tags: Output<Map<String, String>>? = null, timeouts: Output<ConnectionTimeoutsArgs>? = null)

Properties

Link copied to clipboard
val hostArn: Output<String>? = null

The Amazon Resource Name (ARN) of the host associated with the connection. Conflicts with provider_type

Link copied to clipboard
val name: Output<String>? = null

The name of the connection to be created. The name must be unique in the calling AWS account. Changing name will create a new resource.

Link copied to clipboard
val providerType: Output<String>? = null

The name of the external provider where your third-party code repository is configured. Changing provider_type will create a new resource. Conflicts with host_arn.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Map of key-value resource tags to associate with the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val timeouts: Output<ConnectionTimeoutsArgs>? = null

Functions

Link copied to clipboard
open override fun toJava(): ConnectionArgs