Connection

class Connection : KotlinCustomResource

Manages an App Runner Connection.

NOTE: After creation, you must complete the authentication handshake using the App Runner console.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.apprunner.Connection("example", {
connectionName: "example",
providerType: "GITHUB",
tags: {
Name: "example-apprunner-connection",
},
});
import pulumi
import pulumi_aws as aws
example = aws.apprunner.Connection("example",
connection_name="example",
provider_type="GITHUB",
tags={
"Name": "example-apprunner-connection",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.AppRunner.Connection("example", new()
{
ConnectionName = "example",
ProviderType = "GITHUB",
Tags =
{
{ "Name", "example-apprunner-connection" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/apprunner"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apprunner.NewConnection(ctx, "example", &apprunner.ConnectionArgs{
ConnectionName: pulumi.String("example"),
ProviderType: pulumi.String("GITHUB"),
Tags: pulumi.StringMap{
"Name": pulumi.String("example-apprunner-connection"),
},
})
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.apprunner.Connection;
import com.pulumi.aws.apprunner.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()
.connectionName("example")
.providerType("GITHUB")
.tags(Map.of("Name", "example-apprunner-connection"))
.build());
}
}
resources:
example:
type: aws:apprunner:Connection
properties:
connectionName: example
providerType: GITHUB
tags:
Name: example-apprunner-connection

Import

Using pulumi import, import App Runner Connections using the connection_name. For example:

$ pulumi import aws:apprunner/connection:Connection example example

Properties

Link copied to clipboard
val arn: Output<String>

ARN of the connection.

Link copied to clipboard
val connectionName: Output<String>

Name of the connection.

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

Source repository provider. Valid values: GITHUB.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val status: Output<String>

Current state of the App Runner connection. When the state is AVAILABLE, you can use the connection to create an aws.apprunner.Service resource.

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

Key-value map of resource tags. 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>>

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

Link copied to clipboard
val urn: Output<String>