Viewing docs for AWS v7.46.0
published on Thursday, Sep 10, 2026 by Pulumi
published on Thursday, Sep 10, 2026 by Pulumi
Viewing docs for AWS v7.46.0
published on Thursday, Sep 10, 2026 by Pulumi
published on Thursday, Sep 10, 2026 by Pulumi
Retrieve information about a Direct Connect Connection.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.directconnect.getConnection({
name: "tf-dx-connection",
});
import pulumi
import pulumi_aws as aws
example = aws.directconnect.get_connection(name="tf-dx-connection")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/directconnect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := directconnect.LookupConnection(ctx, &directconnect.LookupConnectionArgs{
Name: "tf-dx-connection",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.DirectConnect.GetConnection.Invoke(new()
{
Name = "tf-dx-connection",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.directconnect.DirectconnectFunctions;
import com.pulumi.aws.directconnect.inputs.GetConnectionArgs;
import java.util.ArrayList;
import java.util.Arrays;
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) {
final var example = DirectconnectFunctions.getConnection(GetConnectionArgs.builder()
.name("tf-dx-connection")
.build());
}
}
variables:
example:
fn::invoke:
function: aws:directconnect:getConnection
arguments:
name: tf-dx-connection
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
data "aws_directconnect_getconnection" "example" {
name = "tf-dx-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?: InvokeOutputOptions): Output<GetConnectionResult>def get_connection(name: Optional[str] = None,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetConnectionResult
def get_connection_output(name: pulumi.Input[Optional[str]] = None,
region: pulumi.Input[Optional[str]] = None,
tags: pulumi.Input[Optional[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOutputOptions] = 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 Output<GetConnectionResult> Invoke(GetConnectionInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetConnectionResult> getConnection(GetConnectionArgs args, InvokeOptions options)
public static Output<GetConnectionResult> getConnection(GetConnectionArgs args, InvokeOptions options)
public static Output<GetConnectionResult> getConnection(GetConnectionArgs args, InvokeOutputOptions options)
fn::invoke:
function: aws:directconnect/getConnection:getConnection
arguments:
# arguments dictionarydata "aws_directconnect_get_connection" "name" {
# arguments
}The following arguments are supported:
getConnection Result
The following output properties are available:
- Arn string
- ARN of the connection.
- Aws
Device string - Direct Connect endpoint on which the physical connection terminates.
- Bandwidth string
- Bandwidth of the connection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- AWS Direct Connect location where the connection is located.
- Name string
- Owner
Account stringId - ID of the AWS account that owns the connection.
- Partner
Name string - The name of the AWS Direct Connect service provider associated with the connection.
- Prefix
Pool intSize Ipv4 - The total number of inbound IPv4 route prefixes that can be allocated across the virtual interfaces on the connection.
- Prefix
Pool intSize Ipv6 - The total number of inbound IPv6 route prefixes that can be allocated across the virtual interfaces on the connection.
- Prefix
Pool intUnallocated Count Ipv4 - The number of inbound IPv4 route prefixes in the connection prefix pool not yet allocated to a virtual interface.
- Prefix
Pool intUnallocated Count Ipv6 - The number of inbound IPv6 route prefixes in the connection prefix pool not yet allocated to a virtual interface.
- Provider
Name string - Name of the service provider associated with the connection.
- Rate
Limiter List<GetStatuses Connection Rate Limiter Status> - Rate limiter status for the connection. See
rateLimiterStatusBlock below. - Region string
- State string
- State of the connection.
- Dictionary<string, string>
- Map of tags for the resource.
- Vlan
Id int - The VLAN ID.
- Arn string
- ARN of the connection.
- Aws
Device string - Direct Connect endpoint on which the physical connection terminates.
- Bandwidth string
- Bandwidth of the connection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- AWS Direct Connect location where the connection is located.
- Name string
- Owner
Account stringId - ID of the AWS account that owns the connection.
- Partner
Name string - The name of the AWS Direct Connect service provider associated with the connection.
- Prefix
Pool intSize Ipv4 - The total number of inbound IPv4 route prefixes that can be allocated across the virtual interfaces on the connection.
- Prefix
Pool intSize Ipv6 - The total number of inbound IPv6 route prefixes that can be allocated across the virtual interfaces on the connection.
- Prefix
Pool intUnallocated Count Ipv4 - The number of inbound IPv4 route prefixes in the connection prefix pool not yet allocated to a virtual interface.
- Prefix
Pool intUnallocated Count Ipv6 - The number of inbound IPv6 route prefixes in the connection prefix pool not yet allocated to a virtual interface.
- Provider
Name string - Name of the service provider associated with the connection.
- Rate
Limiter []GetStatuses Connection Rate Limiter Status - Rate limiter status for the connection. See
rateLimiterStatusBlock below. - Region string
- State string
- State of the connection.
- map[string]string
- Map of tags for the resource.
- Vlan
Id int - The VLAN ID.
- arn string
- ARN of the connection.
- aws_
device string - Direct Connect endpoint on which the physical connection terminates.
- bandwidth string
- Bandwidth of the connection.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- AWS Direct Connect location where the connection is located.
- name string
- owner_
account_ stringid - ID of the AWS account that owns the connection.
- partner_
name string - The name of the AWS Direct Connect service provider associated with the connection.
- prefix_
pool_ numbersize_ ipv4 - The total number of inbound IPv4 route prefixes that can be allocated across the virtual interfaces on the connection.
- prefix_
pool_ numbersize_ ipv6 - The total number of inbound IPv6 route prefixes that can be allocated across the virtual interfaces on the connection.
- prefix_
pool_ numberunallocated_ count_ ipv4 - The number of inbound IPv4 route prefixes in the connection prefix pool not yet allocated to a virtual interface.
- prefix_
pool_ numberunallocated_ count_ ipv6 - The number of inbound IPv6 route prefixes in the connection prefix pool not yet allocated to a virtual interface.
- provider_
name string - Name of the service provider associated with the connection.
- rate_
limiter_ list(object)statuses - Rate limiter status for the connection. See
rateLimiterStatusBlock below. - region string
- state string
- State of the connection.
- map(string)
- Map of tags for the resource.
- vlan_
id number - The VLAN ID.
- arn String
- ARN of the connection.
- aws
Device String - Direct Connect endpoint on which the physical connection terminates.
- bandwidth String
- Bandwidth of the connection.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- AWS Direct Connect location where the connection is located.
- name String
- owner
Account StringId - ID of the AWS account that owns the connection.
- partner
Name String - The name of the AWS Direct Connect service provider associated with the connection.
- prefix
Pool IntegerSize Ipv4 - The total number of inbound IPv4 route prefixes that can be allocated across the virtual interfaces on the connection.
- prefix
Pool IntegerSize Ipv6 - The total number of inbound IPv6 route prefixes that can be allocated across the virtual interfaces on the connection.
- prefix
Pool IntegerUnallocated Count Ipv4 - The number of inbound IPv4 route prefixes in the connection prefix pool not yet allocated to a virtual interface.
- prefix
Pool IntegerUnallocated Count Ipv6 - The number of inbound IPv6 route prefixes in the connection prefix pool not yet allocated to a virtual interface.
- provider
Name String - Name of the service provider associated with the connection.
- rate
Limiter List<GetStatuses Connection Rate Limiter Status> - Rate limiter status for the connection. See
rateLimiterStatusBlock below. - region String
- state String
- State of the connection.
- Map<String,String>
- Map of tags for the resource.
- vlan
Id Integer - The VLAN ID.
- arn string
- ARN of the connection.
- aws
Device string - Direct Connect endpoint on which the physical connection terminates.
- bandwidth string
- Bandwidth of the connection.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- AWS Direct Connect location where the connection is located.
- name string
- owner
Account stringId - ID of the AWS account that owns the connection.
- partner
Name string - The name of the AWS Direct Connect service provider associated with the connection.
- prefix
Pool numberSize Ipv4 - The total number of inbound IPv4 route prefixes that can be allocated across the virtual interfaces on the connection.
- prefix
Pool numberSize Ipv6 - The total number of inbound IPv6 route prefixes that can be allocated across the virtual interfaces on the connection.
- prefix
Pool numberUnallocated Count Ipv4 - The number of inbound IPv4 route prefixes in the connection prefix pool not yet allocated to a virtual interface.
- prefix
Pool numberUnallocated Count Ipv6 - The number of inbound IPv6 route prefixes in the connection prefix pool not yet allocated to a virtual interface.
- provider
Name string - Name of the service provider associated with the connection.
- rate
Limiter GetStatuses Connection Rate Limiter Status[] - Rate limiter status for the connection. See
rateLimiterStatusBlock below. - region string
- state string
- State of the connection.
- {[key: string]: string}
- Map of tags for the resource.
- vlan
Id number - The VLAN ID.
- arn str
- ARN of the connection.
- aws_
device str - Direct Connect endpoint on which the physical connection terminates.
- bandwidth str
- Bandwidth of the connection.
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- AWS Direct Connect location where the connection is located.
- name str
- owner_
account_ strid - ID of the AWS account that owns the connection.
- partner_
name str - The name of the AWS Direct Connect service provider associated with the connection.
- prefix_
pool_ intsize_ ipv4 - The total number of inbound IPv4 route prefixes that can be allocated across the virtual interfaces on the connection.
- prefix_
pool_ intsize_ ipv6 - The total number of inbound IPv6 route prefixes that can be allocated across the virtual interfaces on the connection.
- prefix_
pool_ intunallocated_ count_ ipv4 - The number of inbound IPv4 route prefixes in the connection prefix pool not yet allocated to a virtual interface.
- prefix_
pool_ intunallocated_ count_ ipv6 - The number of inbound IPv6 route prefixes in the connection prefix pool not yet allocated to a virtual interface.
- provider_
name str - Name of the service provider associated with the connection.
- rate_
limiter_ Sequence[Getstatuses Connection Rate Limiter Status] - Rate limiter status for the connection. See
rateLimiterStatusBlock below. - region str
- state str
- State of the connection.
- Mapping[str, str]
- Map of tags for the resource.
- vlan_
id int - The VLAN ID.
- arn String
- ARN of the connection.
- aws
Device String - Direct Connect endpoint on which the physical connection terminates.
- bandwidth String
- Bandwidth of the connection.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- AWS Direct Connect location where the connection is located.
- name String
- owner
Account StringId - ID of the AWS account that owns the connection.
- partner
Name String - The name of the AWS Direct Connect service provider associated with the connection.
- prefix
Pool NumberSize Ipv4 - The total number of inbound IPv4 route prefixes that can be allocated across the virtual interfaces on the connection.
- prefix
Pool NumberSize Ipv6 - The total number of inbound IPv6 route prefixes that can be allocated across the virtual interfaces on the connection.
- prefix
Pool NumberUnallocated Count Ipv4 - The number of inbound IPv4 route prefixes in the connection prefix pool not yet allocated to a virtual interface.
- prefix
Pool NumberUnallocated Count Ipv6 - The number of inbound IPv6 route prefixes in the connection prefix pool not yet allocated to a virtual interface.
- provider
Name String - Name of the service provider associated with the connection.
- rate
Limiter List<Property Map>Statuses - Rate limiter status for the connection. See
rateLimiterStatusBlock below. - region String
- state String
- State of the connection.
- Map<String>
- Map of tags for the resource.
- vlan
Id Number - The VLAN ID.
Supporting Types
GetConnectionRateLimiterStatus
- In
Use int - Number of rate limiters currently in use.
- Max
Allowed int - Maximum number of rate limiters allowed on the connection.
- Remaining int
- Number of rate limiters remaining (available).
- Total
Bandwidth string - Total bandwidth allocated across all rate limiters.
- In
Use int - Number of rate limiters currently in use.
- Max
Allowed int - Maximum number of rate limiters allowed on the connection.
- Remaining int
- Number of rate limiters remaining (available).
- Total
Bandwidth string - Total bandwidth allocated across all rate limiters.
- in_
use number - Number of rate limiters currently in use.
- max_
allowed number - Maximum number of rate limiters allowed on the connection.
- remaining number
- Number of rate limiters remaining (available).
- total_
bandwidth string - Total bandwidth allocated across all rate limiters.
- in
Use Integer - Number of rate limiters currently in use.
- max
Allowed Integer - Maximum number of rate limiters allowed on the connection.
- remaining Integer
- Number of rate limiters remaining (available).
- total
Bandwidth String - Total bandwidth allocated across all rate limiters.
- in
Use number - Number of rate limiters currently in use.
- max
Allowed number - Maximum number of rate limiters allowed on the connection.
- remaining number
- Number of rate limiters remaining (available).
- total
Bandwidth string - Total bandwidth allocated across all rate limiters.
- in_
use int - Number of rate limiters currently in use.
- max_
allowed int - Maximum number of rate limiters allowed on the connection.
- remaining int
- Number of rate limiters remaining (available).
- total_
bandwidth str - Total bandwidth allocated across all rate limiters.
- in
Use Number - Number of rate limiters currently in use.
- max
Allowed Number - Maximum number of rate limiters allowed on the connection.
- remaining Number
- Number of rate limiters remaining (available).
- total
Bandwidth String - Total bandwidth allocated across all rate limiters.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
Viewing docs for AWS v7.46.0
published on Thursday, Sep 10, 2026 by Pulumi
published on Thursday, Sep 10, 2026 by Pulumi