Connection
Resource for managing an AWS CodeConnections Connection.
NOTE: The
aws.codeconnections.Connectionresource is created in the statePENDING. 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",
});Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.codeconnections.Connection("example",
name="example-connection",
provider_type="Bitbucket")Content copied to clipboard
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",
});
});Content copied to clipboard
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
})
}Content copied to clipboard
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());
}
}Content copied to clipboard
resources:
example:
type: aws:codeconnections:Connection
properties:
name: example-connection
providerType: BitbucketContent copied to clipboard
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-2fe39ae59448Content copied to clipboard
Properties
Link copied to clipboard
The codeconnections connection status. Possible values are PENDING, AVAILABLE and ERROR.
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard