HostArgs

data class HostArgs(val name: Output<String>? = null, val providerEndpoint: Output<String>? = null, val providerType: Output<String>? = null, val vpcConfiguration: Output<HostVpcConfigurationArgs>? = null) : ConvertibleToJava<HostArgs>

Provides a CodeStar Host.

NOTE: The aws.codestarconnections.Host resource is created in the state PENDING. Authentication with the host provider must be completed in the AWS Console. For more information visit Set up a pending host.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.codestarconnections.Host("example", {
name: "example-host",
providerEndpoint: "https://example.com",
providerType: "GitHubEnterpriseServer",
});
import pulumi
import pulumi_aws as aws
example = aws.codestarconnections.Host("example",
name="example-host",
provider_endpoint="https://example.com",
provider_type="GitHubEnterpriseServer")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.CodeStarConnections.Host("example", new()
{
Name = "example-host",
ProviderEndpoint = "https://example.com",
ProviderType = "GitHubEnterpriseServer",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/codestarconnections"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := codestarconnections.NewHost(ctx, "example", &codestarconnections.HostArgs{
Name: pulumi.String("example-host"),
ProviderEndpoint: pulumi.String("https://example.com"),
ProviderType: pulumi.String("GitHubEnterpriseServer"),
})
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.codestarconnections.Host;
import com.pulumi.aws.codestarconnections.HostArgs;
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 Host("example", HostArgs.builder()
.name("example-host")
.providerEndpoint("https://example.com")
.providerType("GitHubEnterpriseServer")
.build());
}
}
resources:
example:
type: aws:codestarconnections:Host
properties:
name: example-host
providerEndpoint: https://example.com
providerType: GitHubEnterpriseServer

Import

Using pulumi import, import CodeStar Host using the ARN. For example:

$ pulumi import aws:codestarconnections/host:Host example-host arn:aws:codestar-connections:us-west-1:0123456789:host/79d4d357-a2ee-41e4-b350-2fe39ae59448

Constructors

Link copied to clipboard
constructor(name: Output<String>? = null, providerEndpoint: Output<String>? = null, providerType: Output<String>? = null, vpcConfiguration: Output<HostVpcConfigurationArgs>? = null)

Properties

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

The name of the host to be created. The name must be unique in the calling AWS account.

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

The endpoint of the infrastructure to be represented by the host after it is created.

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

The name of the external provider where your third-party code repository is configured.

Link copied to clipboard

The VPC configuration to be provisioned for the host. A VPC must be configured, and the infrastructure to be represented by the host must already be connected to the VPC.

Functions

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