Connection

class Connection : KotlinCustomResource

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

Properties

Link copied to clipboard
val arn: Output<String>

The codeconnections connection ARN.

Link copied to clipboard

The codeconnections connection status. Possible values are PENDING, AVAILABLE and ERROR.

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

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

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 ownerAccountId: Output<String>
Link copied to clipboard
val providerType: Output<String>

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 pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

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 tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
Link copied to clipboard
val urn: Output<String>