com.pulumi.aws.codeconnections.kotlin.HostArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.codeconnections.kotlin
import com.pulumi.aws.codeconnections.HostArgs.builder
import com.pulumi.aws.codeconnections.kotlin.inputs.HostTimeoutsArgs
import com.pulumi.aws.codeconnections.kotlin.inputs.HostTimeoutsArgsBuilder
import com.pulumi.aws.codeconnections.kotlin.inputs.HostVpcConfigurationArgs
import com.pulumi.aws.codeconnections.kotlin.inputs.HostVpcConfigurationArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Resource for managing an AWS CodeConnections Host.
* > **NOTE:** The `aws.codeconnections.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](https://docs.aws.amazon.com/dtconsole/latest/userguide/connections-host-setup.html).
* ## Example Usage
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.codeconnections.Host("example", {
* name: "example-host",
* providerEndpoint: "https://example.com",
* providerType: "GitHubEnterpriseServer",
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.codeconnections.Host("example",
* name="example-host",
* provider_endpoint="https://example.com",
* provider_type="GitHubEnterpriseServer")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.CodeConnections.Host("example", new()
* {
* Name = "example-host",
* ProviderEndpoint = "https://example.com",
* ProviderType = "GitHubEnterpriseServer",
* });
* });
* ```
* ```go
* 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.NewHost(ctx, "example", &codeconnections.HostArgs{
* Name: pulumi.String("example-host"),
* ProviderEndpoint: pulumi.String("https://example.com"),
* ProviderType: pulumi.String("GitHubEnterpriseServer"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.codeconnections.Host;
* import com.pulumi.aws.codeconnections.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());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:codeconnections:Host
* properties:
* name: example-host
* providerEndpoint: https://example.com
* providerType: GitHubEnterpriseServer
* ```
*
* ## Import
* Using `pulumi import`, import CodeConnections Host using the ARN. For example:
* ```sh
* $ pulumi import aws:codeconnections/host:Host example-host arn:aws:codeconnections:us-west-1:0123456789:host/79d4d357-a2ee-41e4-b350-2fe39ae59448
* ```
* @property name The name of the host to be created. The name must be unique in the calling AWS account.
* @property providerEndpoint The endpoint of the infrastructure to be represented by the host after it is created.
* @property providerType The name of the external provider where your third-party code repository is configured.
* @property tags
* @property timeouts
* @property vpcConfiguration 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.
*/
public data class HostArgs(
public val name: Output? = null,
public val providerEndpoint: Output? = null,
public val providerType: Output? = null,
public val tags: Output
© 2015 - 2024 Weber Informatics LLC | Privacy Policy