1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. directconnect
  5. getConnection

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.57.0
published on Monday, Mar 9, 2026 by Pulumi
aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.57.0
published on Monday, Mar 9, 2026 by Pulumi

    Resource Type definition for AWS::DirectConnect::Connection

    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(connection_arn: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetConnectionResult
    def get_connection_output(connection_arn: Optional[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)
    public static Output<GetConnectionResult> getConnection(GetConnectionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws-native:directconnect:getConnection
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ConnectionArn string
    The ARN of the connection.
    ConnectionArn string
    The ARN of the connection.
    connectionArn String
    The ARN of the connection.
    connectionArn string
    The ARN of the connection.
    connection_arn str
    The ARN of the connection.
    connectionArn String
    The ARN of the connection.

    getConnection Result

    The following output properties are available:

    ConnectionArn string
    The ARN of the connection.
    ConnectionId string
    The ID of the connection.
    ConnectionName string
    The name of the connection.
    ConnectionState string
    The state of the connection.
    LagId string
    The ID or ARN of the LAG to associate the connection with.
    Tags List<Pulumi.AwsNative.Outputs.Tag>
    The tags associated with the connection.
    ConnectionArn string
    The ARN of the connection.
    ConnectionId string
    The ID of the connection.
    ConnectionName string
    The name of the connection.
    ConnectionState string
    The state of the connection.
    LagId string
    The ID or ARN of the LAG to associate the connection with.
    Tags Tag
    The tags associated with the connection.
    connectionArn String
    The ARN of the connection.
    connectionId String
    The ID of the connection.
    connectionName String
    The name of the connection.
    connectionState String
    The state of the connection.
    lagId String
    The ID or ARN of the LAG to associate the connection with.
    tags List<Tag>
    The tags associated with the connection.
    connectionArn string
    The ARN of the connection.
    connectionId string
    The ID of the connection.
    connectionName string
    The name of the connection.
    connectionState string
    The state of the connection.
    lagId string
    The ID or ARN of the LAG to associate the connection with.
    tags Tag[]
    The tags associated with the connection.
    connection_arn str
    The ARN of the connection.
    connection_id str
    The ID of the connection.
    connection_name str
    The name of the connection.
    connection_state str
    The state of the connection.
    lag_id str
    The ID or ARN of the LAG to associate the connection with.
    tags Sequence[root_Tag]
    The tags associated with the connection.
    connectionArn String
    The ARN of the connection.
    connectionId String
    The ID of the connection.
    connectionName String
    The name of the connection.
    connectionState String
    The state of the connection.
    lagId String
    The ID or ARN of the LAG to associate the connection with.
    tags List<Property Map>
    The tags associated with the connection.

    Supporting Types

    Tag

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.57.0
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.