codestarconnections

package
v4.38.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	pulumi.CustomResourceState

	// The codestar connection ARN.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The codestar connection status. Possible values are `PENDING`, `AVAILABLE` and `ERROR`.
	ConnectionStatus pulumi.StringOutput `pulumi:"connectionStatus"`
	// The Amazon Resource Name (ARN) of the host associated with the connection. Conflicts with `providerType`
	HostArn pulumi.StringPtrOutput `pulumi:"hostArn"`
	// 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.
	Name pulumi.StringOutput `pulumi:"name"`
	// The name of the external provider where your third-party code repository is configured. Valid values are `Bitbucket`, `GitHub` or `GitHubEnterpriseServer`. Changing `providerType` will create a new resource. Conflicts with `hostArn`
	ProviderType pulumi.StringOutput `pulumi:"providerType"`
	// Map of key-value resource tags to associate with the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// A map of tags assigned to the resource, including those inherited from the provider .
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
}

Provides a CodeStar Connection.

> **NOTE:** The `codestarconnections.Connection` resource is created in the state `PENDING`. Authentication with the connection provider must be completed in the AWS Console.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/codepipeline"
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/codestarconnections"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleConnection, err := codestarconnections.NewConnection(ctx, "exampleConnection", &codestarconnections.ConnectionArgs{
			ProviderType: pulumi.String("Bitbucket"),
		})
		if err != nil {
			return err
		}
		_, err = codepipeline.NewPipeline(ctx, "examplePipeline", &codepipeline.PipelineArgs{
			RoleArn:       pulumi.Any(aws_iam_role.Codepipeline_role.Arn),
			ArtifactStore: nil,
			Stages: codepipeline.PipelineStageArray{
				&codepipeline.PipelineStageArgs{
					Name: pulumi.String("Source"),
					Actions: codepipeline.PipelineStageActionArray{
						&codepipeline.PipelineStageActionArgs{
							Name:     pulumi.String("Source"),
							Category: pulumi.String("Source"),
							Owner:    pulumi.String("AWS"),
							Provider: pulumi.String("CodeStarSourceConnection"),
							Version:  pulumi.String("1"),
							OutputArtifacts: pulumi.StringArray{
								pulumi.String("source_output"),
							},
							Configuration: pulumi.StringMap{
								"ConnectionArn":    exampleConnection.Arn,
								"FullRepositoryId": pulumi.String("my-organization/test"),
								"BranchName":       pulumi.String("main"),
							},
						},
					},
				},
				&codepipeline.PipelineStageArgs{
					Name: pulumi.String("Build"),
					Actions: codepipeline.PipelineStageActionArray{
						nil,
					},
				},
				&codepipeline.PipelineStageArgs{
					Name: pulumi.String("Deploy"),
					Actions: codepipeline.PipelineStageActionArray{
						nil,
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CodeStar connections can be imported using the ARN, e.g.,

```sh

$ pulumi import aws:codestarconnections/connection:Connection test-connection arn:aws:codestar-connections:us-west-1:0123456789:connection/79d4d357-a2ee-41e4-b350-2fe39ae59448

```

func GetConnection

func GetConnection(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ConnectionState, opts ...pulumi.ResourceOption) (*Connection, error)

GetConnection gets an existing Connection resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewConnection

func NewConnection(ctx *pulumi.Context,
	name string, args *ConnectionArgs, opts ...pulumi.ResourceOption) (*Connection, error)

NewConnection registers a new resource with the given unique name, arguments, and options.

func (*Connection) ElementType

func (*Connection) ElementType() reflect.Type

func (*Connection) ToConnectionOutput

func (i *Connection) ToConnectionOutput() ConnectionOutput

func (*Connection) ToConnectionOutputWithContext

func (i *Connection) ToConnectionOutputWithContext(ctx context.Context) ConnectionOutput

type ConnectionArgs

type ConnectionArgs struct {
	// The Amazon Resource Name (ARN) of the host associated with the connection. Conflicts with `providerType`
	HostArn pulumi.StringPtrInput
	// 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.
	Name pulumi.StringPtrInput
	// The name of the external provider where your third-party code repository is configured. Valid values are `Bitbucket`, `GitHub` or `GitHubEnterpriseServer`. Changing `providerType` will create a new resource. Conflicts with `hostArn`
	ProviderType pulumi.StringPtrInput
	// Map of key-value resource tags to associate with the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapInput
}

The set of arguments for constructing a Connection resource.

func (ConnectionArgs) ElementType

func (ConnectionArgs) ElementType() reflect.Type

type ConnectionArray

type ConnectionArray []ConnectionInput

func (ConnectionArray) ElementType

func (ConnectionArray) ElementType() reflect.Type

func (ConnectionArray) ToConnectionArrayOutput

func (i ConnectionArray) ToConnectionArrayOutput() ConnectionArrayOutput

func (ConnectionArray) ToConnectionArrayOutputWithContext

func (i ConnectionArray) ToConnectionArrayOutputWithContext(ctx context.Context) ConnectionArrayOutput

type ConnectionArrayInput

type ConnectionArrayInput interface {
	pulumi.Input

	ToConnectionArrayOutput() ConnectionArrayOutput
	ToConnectionArrayOutputWithContext(context.Context) ConnectionArrayOutput
}

ConnectionArrayInput is an input type that accepts ConnectionArray and ConnectionArrayOutput values. You can construct a concrete instance of `ConnectionArrayInput` via:

ConnectionArray{ ConnectionArgs{...} }

type ConnectionArrayOutput

type ConnectionArrayOutput struct{ *pulumi.OutputState }

func (ConnectionArrayOutput) ElementType

func (ConnectionArrayOutput) ElementType() reflect.Type

func (ConnectionArrayOutput) Index

func (ConnectionArrayOutput) ToConnectionArrayOutput

func (o ConnectionArrayOutput) ToConnectionArrayOutput() ConnectionArrayOutput

func (ConnectionArrayOutput) ToConnectionArrayOutputWithContext

func (o ConnectionArrayOutput) ToConnectionArrayOutputWithContext(ctx context.Context) ConnectionArrayOutput

type ConnectionInput

type ConnectionInput interface {
	pulumi.Input

	ToConnectionOutput() ConnectionOutput
	ToConnectionOutputWithContext(ctx context.Context) ConnectionOutput
}

type ConnectionMap

type ConnectionMap map[string]ConnectionInput

func (ConnectionMap) ElementType

func (ConnectionMap) ElementType() reflect.Type

func (ConnectionMap) ToConnectionMapOutput

func (i ConnectionMap) ToConnectionMapOutput() ConnectionMapOutput

func (ConnectionMap) ToConnectionMapOutputWithContext

func (i ConnectionMap) ToConnectionMapOutputWithContext(ctx context.Context) ConnectionMapOutput

type ConnectionMapInput

type ConnectionMapInput interface {
	pulumi.Input

	ToConnectionMapOutput() ConnectionMapOutput
	ToConnectionMapOutputWithContext(context.Context) ConnectionMapOutput
}

ConnectionMapInput is an input type that accepts ConnectionMap and ConnectionMapOutput values. You can construct a concrete instance of `ConnectionMapInput` via:

ConnectionMap{ "key": ConnectionArgs{...} }

type ConnectionMapOutput

type ConnectionMapOutput struct{ *pulumi.OutputState }

func (ConnectionMapOutput) ElementType

func (ConnectionMapOutput) ElementType() reflect.Type

func (ConnectionMapOutput) MapIndex

func (ConnectionMapOutput) ToConnectionMapOutput

func (o ConnectionMapOutput) ToConnectionMapOutput() ConnectionMapOutput

func (ConnectionMapOutput) ToConnectionMapOutputWithContext

func (o ConnectionMapOutput) ToConnectionMapOutputWithContext(ctx context.Context) ConnectionMapOutput

type ConnectionOutput

type ConnectionOutput struct{ *pulumi.OutputState }

func (ConnectionOutput) ElementType

func (ConnectionOutput) ElementType() reflect.Type

func (ConnectionOutput) ToConnectionOutput

func (o ConnectionOutput) ToConnectionOutput() ConnectionOutput

func (ConnectionOutput) ToConnectionOutputWithContext

func (o ConnectionOutput) ToConnectionOutputWithContext(ctx context.Context) ConnectionOutput

type ConnectionState

type ConnectionState struct {
	// The codestar connection ARN.
	Arn pulumi.StringPtrInput
	// The codestar connection status. Possible values are `PENDING`, `AVAILABLE` and `ERROR`.
	ConnectionStatus pulumi.StringPtrInput
	// The Amazon Resource Name (ARN) of the host associated with the connection. Conflicts with `providerType`
	HostArn pulumi.StringPtrInput
	// 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.
	Name pulumi.StringPtrInput
	// The name of the external provider where your third-party code repository is configured. Valid values are `Bitbucket`, `GitHub` or `GitHubEnterpriseServer`. Changing `providerType` will create a new resource. Conflicts with `hostArn`
	ProviderType pulumi.StringPtrInput
	// Map of key-value resource tags to associate with the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapInput
	// A map of tags assigned to the resource, including those inherited from the provider .
	TagsAll pulumi.StringMapInput
}

func (ConnectionState) ElementType

func (ConnectionState) ElementType() reflect.Type

type Host added in v4.2.0

type Host struct {
	pulumi.CustomResourceState

	// The CodeStar Host ARN.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The name of the host to be created. The name must be unique in the calling AWS account.
	Name pulumi.StringOutput `pulumi:"name"`
	// The endpoint of the infrastructure to be represented by the host after it is created.
	ProviderEndpoint pulumi.StringOutput `pulumi:"providerEndpoint"`
	// The name of the external provider where your third-party code repository is configured.
	ProviderType pulumi.StringOutput `pulumi:"providerType"`
	// The CodeStar Host status. Possible values are `PENDING`, `AVAILABLE`, `VPC_CONFIG_DELETING`, `VPC_CONFIG_INITIALIZING`, and `VPC_CONFIG_FAILED_INITIALIZATION`.
	Status pulumi.StringOutput `pulumi:"status"`
	// 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.
	VpcConfiguration HostVpcConfigurationPtrOutput `pulumi:"vpcConfiguration"`
}

Provides a CodeStar Host.

> **NOTE:** The `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](https://docs.aws.amazon.com/dtconsole/latest/userguide/connections-host-setup.html).

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v4/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{
			ProviderEndpoint: pulumi.String("https://example.com"),
			ProviderType:     pulumi.String("GitHubEnterpriseServer"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CodeStar Host can be imported using the ARN, e.g.,

```sh

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

```

func GetHost added in v4.2.0

func GetHost(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *HostState, opts ...pulumi.ResourceOption) (*Host, error)

GetHost gets an existing Host resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewHost added in v4.2.0

func NewHost(ctx *pulumi.Context,
	name string, args *HostArgs, opts ...pulumi.ResourceOption) (*Host, error)

NewHost registers a new resource with the given unique name, arguments, and options.

func (*Host) ElementType added in v4.2.0

func (*Host) ElementType() reflect.Type

func (*Host) ToHostOutput added in v4.2.0

func (i *Host) ToHostOutput() HostOutput

func (*Host) ToHostOutputWithContext added in v4.2.0

func (i *Host) ToHostOutputWithContext(ctx context.Context) HostOutput

type HostArgs added in v4.2.0

type HostArgs struct {
	// The name of the host to be created. The name must be unique in the calling AWS account.
	Name pulumi.StringPtrInput
	// The endpoint of the infrastructure to be represented by the host after it is created.
	ProviderEndpoint pulumi.StringInput
	// The name of the external provider where your third-party code repository is configured.
	ProviderType pulumi.StringInput
	// 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.
	VpcConfiguration HostVpcConfigurationPtrInput
}

The set of arguments for constructing a Host resource.

func (HostArgs) ElementType added in v4.2.0

func (HostArgs) ElementType() reflect.Type

type HostArray added in v4.2.0

type HostArray []HostInput

func (HostArray) ElementType added in v4.2.0

func (HostArray) ElementType() reflect.Type

func (HostArray) ToHostArrayOutput added in v4.2.0

func (i HostArray) ToHostArrayOutput() HostArrayOutput

func (HostArray) ToHostArrayOutputWithContext added in v4.2.0

func (i HostArray) ToHostArrayOutputWithContext(ctx context.Context) HostArrayOutput

type HostArrayInput added in v4.2.0

type HostArrayInput interface {
	pulumi.Input

	ToHostArrayOutput() HostArrayOutput
	ToHostArrayOutputWithContext(context.Context) HostArrayOutput
}

HostArrayInput is an input type that accepts HostArray and HostArrayOutput values. You can construct a concrete instance of `HostArrayInput` via:

HostArray{ HostArgs{...} }

type HostArrayOutput added in v4.2.0

type HostArrayOutput struct{ *pulumi.OutputState }

func (HostArrayOutput) ElementType added in v4.2.0

func (HostArrayOutput) ElementType() reflect.Type

func (HostArrayOutput) Index added in v4.2.0

func (HostArrayOutput) ToHostArrayOutput added in v4.2.0

func (o HostArrayOutput) ToHostArrayOutput() HostArrayOutput

func (HostArrayOutput) ToHostArrayOutputWithContext added in v4.2.0

func (o HostArrayOutput) ToHostArrayOutputWithContext(ctx context.Context) HostArrayOutput

type HostInput added in v4.2.0

type HostInput interface {
	pulumi.Input

	ToHostOutput() HostOutput
	ToHostOutputWithContext(ctx context.Context) HostOutput
}

type HostMap added in v4.2.0

type HostMap map[string]HostInput

func (HostMap) ElementType added in v4.2.0

func (HostMap) ElementType() reflect.Type

func (HostMap) ToHostMapOutput added in v4.2.0

func (i HostMap) ToHostMapOutput() HostMapOutput

func (HostMap) ToHostMapOutputWithContext added in v4.2.0

func (i HostMap) ToHostMapOutputWithContext(ctx context.Context) HostMapOutput

type HostMapInput added in v4.2.0

type HostMapInput interface {
	pulumi.Input

	ToHostMapOutput() HostMapOutput
	ToHostMapOutputWithContext(context.Context) HostMapOutput
}

HostMapInput is an input type that accepts HostMap and HostMapOutput values. You can construct a concrete instance of `HostMapInput` via:

HostMap{ "key": HostArgs{...} }

type HostMapOutput added in v4.2.0

type HostMapOutput struct{ *pulumi.OutputState }

func (HostMapOutput) ElementType added in v4.2.0

func (HostMapOutput) ElementType() reflect.Type

func (HostMapOutput) MapIndex added in v4.2.0

func (HostMapOutput) ToHostMapOutput added in v4.2.0

func (o HostMapOutput) ToHostMapOutput() HostMapOutput

func (HostMapOutput) ToHostMapOutputWithContext added in v4.2.0

func (o HostMapOutput) ToHostMapOutputWithContext(ctx context.Context) HostMapOutput

type HostOutput added in v4.2.0

type HostOutput struct{ *pulumi.OutputState }

func (HostOutput) ElementType added in v4.2.0

func (HostOutput) ElementType() reflect.Type

func (HostOutput) ToHostOutput added in v4.2.0

func (o HostOutput) ToHostOutput() HostOutput

func (HostOutput) ToHostOutputWithContext added in v4.2.0

func (o HostOutput) ToHostOutputWithContext(ctx context.Context) HostOutput

type HostState added in v4.2.0

type HostState struct {
	// The CodeStar Host ARN.
	Arn pulumi.StringPtrInput
	// The name of the host to be created. The name must be unique in the calling AWS account.
	Name pulumi.StringPtrInput
	// The endpoint of the infrastructure to be represented by the host after it is created.
	ProviderEndpoint pulumi.StringPtrInput
	// The name of the external provider where your third-party code repository is configured.
	ProviderType pulumi.StringPtrInput
	// The CodeStar Host status. Possible values are `PENDING`, `AVAILABLE`, `VPC_CONFIG_DELETING`, `VPC_CONFIG_INITIALIZING`, and `VPC_CONFIG_FAILED_INITIALIZATION`.
	Status pulumi.StringPtrInput
	// 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.
	VpcConfiguration HostVpcConfigurationPtrInput
}

func (HostState) ElementType added in v4.2.0

func (HostState) ElementType() reflect.Type

type HostVpcConfiguration added in v4.2.0

type HostVpcConfiguration struct {
	// he ID of the security group or security groups associated with the Amazon VPC connected to the infrastructure where your provider type is installed.
	SecurityGroupIds []string `pulumi:"securityGroupIds"`
	// The ID of the subnet or subnets associated with the Amazon VPC connected to the infrastructure where your provider type is installed.
	SubnetIds []string `pulumi:"subnetIds"`
	// The value of the Transport Layer Security (TLS) certificate associated with the infrastructure where your provider type is installed.
	TlsCertificate *string `pulumi:"tlsCertificate"`
	// The ID of the Amazon VPC connected to the infrastructure where your provider type is installed.
	VpcId string `pulumi:"vpcId"`
}

type HostVpcConfigurationArgs added in v4.2.0

type HostVpcConfigurationArgs struct {
	// he ID of the security group or security groups associated with the Amazon VPC connected to the infrastructure where your provider type is installed.
	SecurityGroupIds pulumi.StringArrayInput `pulumi:"securityGroupIds"`
	// The ID of the subnet or subnets associated with the Amazon VPC connected to the infrastructure where your provider type is installed.
	SubnetIds pulumi.StringArrayInput `pulumi:"subnetIds"`
	// The value of the Transport Layer Security (TLS) certificate associated with the infrastructure where your provider type is installed.
	TlsCertificate pulumi.StringPtrInput `pulumi:"tlsCertificate"`
	// The ID of the Amazon VPC connected to the infrastructure where your provider type is installed.
	VpcId pulumi.StringInput `pulumi:"vpcId"`
}

func (HostVpcConfigurationArgs) ElementType added in v4.2.0

func (HostVpcConfigurationArgs) ElementType() reflect.Type

func (HostVpcConfigurationArgs) ToHostVpcConfigurationOutput added in v4.2.0

func (i HostVpcConfigurationArgs) ToHostVpcConfigurationOutput() HostVpcConfigurationOutput

func (HostVpcConfigurationArgs) ToHostVpcConfigurationOutputWithContext added in v4.2.0

func (i HostVpcConfigurationArgs) ToHostVpcConfigurationOutputWithContext(ctx context.Context) HostVpcConfigurationOutput

func (HostVpcConfigurationArgs) ToHostVpcConfigurationPtrOutput added in v4.2.0

func (i HostVpcConfigurationArgs) ToHostVpcConfigurationPtrOutput() HostVpcConfigurationPtrOutput

func (HostVpcConfigurationArgs) ToHostVpcConfigurationPtrOutputWithContext added in v4.2.0

func (i HostVpcConfigurationArgs) ToHostVpcConfigurationPtrOutputWithContext(ctx context.Context) HostVpcConfigurationPtrOutput

type HostVpcConfigurationInput added in v4.2.0

type HostVpcConfigurationInput interface {
	pulumi.Input

	ToHostVpcConfigurationOutput() HostVpcConfigurationOutput
	ToHostVpcConfigurationOutputWithContext(context.Context) HostVpcConfigurationOutput
}

HostVpcConfigurationInput is an input type that accepts HostVpcConfigurationArgs and HostVpcConfigurationOutput values. You can construct a concrete instance of `HostVpcConfigurationInput` via:

HostVpcConfigurationArgs{...}

type HostVpcConfigurationOutput added in v4.2.0

type HostVpcConfigurationOutput struct{ *pulumi.OutputState }

func (HostVpcConfigurationOutput) ElementType added in v4.2.0

func (HostVpcConfigurationOutput) ElementType() reflect.Type

func (HostVpcConfigurationOutput) SecurityGroupIds added in v4.2.0

he ID of the security group or security groups associated with the Amazon VPC connected to the infrastructure where your provider type is installed.

func (HostVpcConfigurationOutput) SubnetIds added in v4.2.0

The ID of the subnet or subnets associated with the Amazon VPC connected to the infrastructure where your provider type is installed.

func (HostVpcConfigurationOutput) TlsCertificate added in v4.2.0

The value of the Transport Layer Security (TLS) certificate associated with the infrastructure where your provider type is installed.

func (HostVpcConfigurationOutput) ToHostVpcConfigurationOutput added in v4.2.0

func (o HostVpcConfigurationOutput) ToHostVpcConfigurationOutput() HostVpcConfigurationOutput

func (HostVpcConfigurationOutput) ToHostVpcConfigurationOutputWithContext added in v4.2.0

func (o HostVpcConfigurationOutput) ToHostVpcConfigurationOutputWithContext(ctx context.Context) HostVpcConfigurationOutput

func (HostVpcConfigurationOutput) ToHostVpcConfigurationPtrOutput added in v4.2.0

func (o HostVpcConfigurationOutput) ToHostVpcConfigurationPtrOutput() HostVpcConfigurationPtrOutput

func (HostVpcConfigurationOutput) ToHostVpcConfigurationPtrOutputWithContext added in v4.2.0

func (o HostVpcConfigurationOutput) ToHostVpcConfigurationPtrOutputWithContext(ctx context.Context) HostVpcConfigurationPtrOutput

func (HostVpcConfigurationOutput) VpcId added in v4.2.0

The ID of the Amazon VPC connected to the infrastructure where your provider type is installed.

type HostVpcConfigurationPtrInput added in v4.2.0

type HostVpcConfigurationPtrInput interface {
	pulumi.Input

	ToHostVpcConfigurationPtrOutput() HostVpcConfigurationPtrOutput
	ToHostVpcConfigurationPtrOutputWithContext(context.Context) HostVpcConfigurationPtrOutput
}

HostVpcConfigurationPtrInput is an input type that accepts HostVpcConfigurationArgs, HostVpcConfigurationPtr and HostVpcConfigurationPtrOutput values. You can construct a concrete instance of `HostVpcConfigurationPtrInput` via:

        HostVpcConfigurationArgs{...}

or:

        nil

func HostVpcConfigurationPtr added in v4.2.0

func HostVpcConfigurationPtr(v *HostVpcConfigurationArgs) HostVpcConfigurationPtrInput

type HostVpcConfigurationPtrOutput added in v4.2.0

type HostVpcConfigurationPtrOutput struct{ *pulumi.OutputState }

func (HostVpcConfigurationPtrOutput) Elem added in v4.2.0

func (HostVpcConfigurationPtrOutput) ElementType added in v4.2.0

func (HostVpcConfigurationPtrOutput) SecurityGroupIds added in v4.2.0

he ID of the security group or security groups associated with the Amazon VPC connected to the infrastructure where your provider type is installed.

func (HostVpcConfigurationPtrOutput) SubnetIds added in v4.2.0

The ID of the subnet or subnets associated with the Amazon VPC connected to the infrastructure where your provider type is installed.

func (HostVpcConfigurationPtrOutput) TlsCertificate added in v4.2.0

The value of the Transport Layer Security (TLS) certificate associated with the infrastructure where your provider type is installed.

func (HostVpcConfigurationPtrOutput) ToHostVpcConfigurationPtrOutput added in v4.2.0

func (o HostVpcConfigurationPtrOutput) ToHostVpcConfigurationPtrOutput() HostVpcConfigurationPtrOutput

func (HostVpcConfigurationPtrOutput) ToHostVpcConfigurationPtrOutputWithContext added in v4.2.0

func (o HostVpcConfigurationPtrOutput) ToHostVpcConfigurationPtrOutputWithContext(ctx context.Context) HostVpcConfigurationPtrOutput

func (HostVpcConfigurationPtrOutput) VpcId added in v4.2.0

The ID of the Amazon VPC connected to the infrastructure where your provider type is installed.

type LookupConnectionArgs

type LookupConnectionArgs struct {
	// The CodeStar Connection ARN.
	Arn string `pulumi:"arn"`
	// Map of key-value resource tags to associate with the resource.
	Tags map[string]string `pulumi:"tags"`
}

A collection of arguments for invoking getConnection.

type LookupConnectionOutputArgs added in v4.21.0

type LookupConnectionOutputArgs struct {
	// The CodeStar Connection ARN.
	Arn pulumi.StringInput `pulumi:"arn"`
	// Map of key-value resource tags to associate with the resource.
	Tags pulumi.StringMapInput `pulumi:"tags"`
}

A collection of arguments for invoking getConnection.

func (LookupConnectionOutputArgs) ElementType added in v4.21.0

func (LookupConnectionOutputArgs) ElementType() reflect.Type

type LookupConnectionResult

type LookupConnectionResult struct {
	Arn string `pulumi:"arn"`
	// The CodeStar Connection status. Possible values are `PENDING`, `AVAILABLE` and `ERROR`.
	ConnectionStatus string `pulumi:"connectionStatus"`
	// The Amazon Resource Name (ARN) of the host associated with the connection.
	HostArn string `pulumi:"hostArn"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The name of the CodeStar Connection. The name is unique in the calling AWS account.
	Name string `pulumi:"name"`
	// The name of the external provider where your third-party code repository is configured. Possible values are `Bitbucket`, `GitHub`, or `GitHubEnterpriseServer`.
	ProviderType string `pulumi:"providerType"`
	// Map of key-value resource tags to associate with the resource.
	Tags map[string]string `pulumi:"tags"`
}

A collection of values returned by getConnection.

func LookupConnection

func LookupConnection(ctx *pulumi.Context, args *LookupConnectionArgs, opts ...pulumi.InvokeOption) (*LookupConnectionResult, error)

Provides details about CodeStar Connection.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/codestarconnections"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := codestarconnections.LookupConnection(ctx, &codestarconnections.LookupConnectionArgs{
			Arn: aws_codestarconnections_connection.Example.Arn,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupConnectionResultOutput added in v4.21.0

type LookupConnectionResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getConnection.

func LookupConnectionOutput added in v4.21.0

func (LookupConnectionResultOutput) Arn added in v4.21.0

func (LookupConnectionResultOutput) ConnectionStatus added in v4.21.0

func (o LookupConnectionResultOutput) ConnectionStatus() pulumi.StringOutput

The CodeStar Connection status. Possible values are `PENDING`, `AVAILABLE` and `ERROR`.

func (LookupConnectionResultOutput) ElementType added in v4.21.0

func (LookupConnectionResultOutput) HostArn added in v4.21.0

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

func (LookupConnectionResultOutput) Id added in v4.21.0

The provider-assigned unique ID for this managed resource.

func (LookupConnectionResultOutput) Name added in v4.21.0

The name of the CodeStar Connection. The name is unique in the calling AWS account.

func (LookupConnectionResultOutput) ProviderType added in v4.21.0

The name of the external provider where your third-party code repository is configured. Possible values are `Bitbucket`, `GitHub`, or `GitHubEnterpriseServer`.

func (LookupConnectionResultOutput) Tags added in v4.21.0

Map of key-value resource tags to associate with the resource.

func (LookupConnectionResultOutput) ToLookupConnectionResultOutput added in v4.21.0

func (o LookupConnectionResultOutput) ToLookupConnectionResultOutput() LookupConnectionResultOutput

func (LookupConnectionResultOutput) ToLookupConnectionResultOutputWithContext added in v4.21.0

func (o LookupConnectionResultOutput) ToLookupConnectionResultOutputWithContext(ctx context.Context) LookupConnectionResultOutput

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL