AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.4.0 published on Wednesday, May 4, 2022 by Pulumi

getConnection

Provides details about CodeStar Connection.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.CodeStarConnections.GetConnection.InvokeAsync(new Aws.CodeStarConnections.GetConnectionArgs
        {
            Arn = aws_codestarconnections_connection.Example.Arn,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/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
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = Output.of(CodestarconnectionsFunctions.getConnection(GetConnectionArgs.builder()
            .arn(aws_codestarconnections_connection.getExample().getArn())
            .build()));

        }
}
import pulumi
import pulumi_aws as aws

example = aws.codestarconnections.get_connection(arn=aws_codestarconnections_connection["example"]["arn"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = aws.codestarconnections.getConnection({
    arn: aws_codestarconnections_connection.example.arn,
});
variables:
  example:
    Fn::Invoke:
      Function: aws:codestarconnections:getConnection
      Arguments:
        arn: ${aws_codestarconnections_connection.example.arn}

Using getConnection

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getConnection(args: GetConnectionArgs, opts?: InvokeOptions): Promise<GetConnectionResult>
function getConnectionOutput(args: GetConnectionOutputArgs, opts?: InvokeOptions): Output<GetConnectionResult>
def get_connection(arn: Optional[str] = None,
                   tags: Optional[Mapping[str, str]] = None,
                   opts: Optional[InvokeOptions] = None) -> GetConnectionResult
def get_connection_output(arn: Optional[pulumi.Input[str]] = None,
                   tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetConnectionResult]
func LookupConnection(ctx *Context, args *LookupConnectionArgs, opts ...InvokeOption) (*LookupConnectionResult, error)
func LookupConnectionOutput(ctx *Context, args *LookupConnectionOutputArgs, opts ...InvokeOption) LookupConnectionResultOutput

> Note: This function is named LookupConnection in the Go SDK.

public static class GetConnection 
{
    public static Task<GetConnectionResult> InvokeAsync(GetConnectionArgs args, InvokeOptions? opts = null)
    public static Output<GetConnectionResult> Invoke(GetConnectionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetConnectionResult> getConnection(GetConnectionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:codestarconnections/getConnection:getConnection
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Arn string

The CodeStar Connection ARN.

Tags Dictionary<string, string>

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

Arn string

The CodeStar Connection ARN.

Tags map[string]string

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

arn String

The CodeStar Connection ARN.

tags Map

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

arn string

The CodeStar Connection ARN.

tags {[key: string]: string}

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

arn str

The CodeStar Connection ARN.

tags Mapping[str, str]

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

arn String

The CodeStar Connection ARN.

tags Map

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

getConnection Result

The following output properties are available:

Arn string
ConnectionStatus string

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

HostArn string

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

Id string

The provider-assigned unique ID for this managed resource.

Name string

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

ProviderType string

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

Tags Dictionary<string, string>

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

Arn string
ConnectionStatus string

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

HostArn string

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

Id string

The provider-assigned unique ID for this managed resource.

Name string

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

ProviderType string

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

Tags map[string]string

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

arn String
connectionStatus String

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

hostArn String

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

id String

The provider-assigned unique ID for this managed resource.

name String

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

providerType String

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

tags Map

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

arn string
connectionStatus string

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

hostArn string

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

id string

The provider-assigned unique ID for this managed resource.

name string

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

providerType string

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

tags {[key: string]: string}

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

arn str
connection_status str

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

host_arn str

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

id str

The provider-assigned unique ID for this managed resource.

name str

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

provider_type str

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

tags Mapping[str, str]

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

arn String
connectionStatus String

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

hostArn String

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

id String

The provider-assigned unique ID for this managed resource.

name String

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

providerType String

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

tags Map

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

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.