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

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::DirectConnectGateway

    Using getDirectConnectGateway

    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 getDirectConnectGateway(args: GetDirectConnectGatewayArgs, opts?: InvokeOptions): Promise<GetDirectConnectGatewayResult>
    function getDirectConnectGatewayOutput(args: GetDirectConnectGatewayOutputArgs, opts?: InvokeOptions): Output<GetDirectConnectGatewayResult>
    def get_direct_connect_gateway(direct_connect_gateway_arn: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetDirectConnectGatewayResult
    def get_direct_connect_gateway_output(direct_connect_gateway_arn: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetDirectConnectGatewayResult]
    func LookupDirectConnectGateway(ctx *Context, args *LookupDirectConnectGatewayArgs, opts ...InvokeOption) (*LookupDirectConnectGatewayResult, error)
    func LookupDirectConnectGatewayOutput(ctx *Context, args *LookupDirectConnectGatewayOutputArgs, opts ...InvokeOption) LookupDirectConnectGatewayResultOutput

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

    public static class GetDirectConnectGateway 
    {
        public static Task<GetDirectConnectGatewayResult> InvokeAsync(GetDirectConnectGatewayArgs args, InvokeOptions? opts = null)
        public static Output<GetDirectConnectGatewayResult> Invoke(GetDirectConnectGatewayInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDirectConnectGatewayResult> getDirectConnectGateway(GetDirectConnectGatewayArgs args, InvokeOptions options)
    public static Output<GetDirectConnectGatewayResult> getDirectConnectGateway(GetDirectConnectGatewayArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws-native:directconnect:getDirectConnectGateway
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DirectConnectGatewayArn string
    The ARN of the Direct Connect gateway.
    DirectConnectGatewayArn string
    The ARN of the Direct Connect gateway.
    directConnectGatewayArn String
    The ARN of the Direct Connect gateway.
    directConnectGatewayArn string
    The ARN of the Direct Connect gateway.
    direct_connect_gateway_arn str
    The ARN of the Direct Connect gateway.
    directConnectGatewayArn String
    The ARN of the Direct Connect gateway.

    getDirectConnectGateway Result

    The following output properties are available:

    DirectConnectGatewayArn string
    The ARN of the Direct Connect gateway.
    DirectConnectGatewayId string
    The ID of the Direct Connect gateway.
    DirectConnectGatewayName string
    The name of the Direct Connect gateway.
    Tags List<Pulumi.AwsNative.Outputs.Tag>
    The tags associated with the Direct Connect gateway.
    DirectConnectGatewayArn string
    The ARN of the Direct Connect gateway.
    DirectConnectGatewayId string
    The ID of the Direct Connect gateway.
    DirectConnectGatewayName string
    The name of the Direct Connect gateway.
    Tags Tag
    The tags associated with the Direct Connect gateway.
    directConnectGatewayArn String
    The ARN of the Direct Connect gateway.
    directConnectGatewayId String
    The ID of the Direct Connect gateway.
    directConnectGatewayName String
    The name of the Direct Connect gateway.
    tags List<Tag>
    The tags associated with the Direct Connect gateway.
    directConnectGatewayArn string
    The ARN of the Direct Connect gateway.
    directConnectGatewayId string
    The ID of the Direct Connect gateway.
    directConnectGatewayName string
    The name of the Direct Connect gateway.
    tags Tag[]
    The tags associated with the Direct Connect gateway.
    direct_connect_gateway_arn str
    The ARN of the Direct Connect gateway.
    direct_connect_gateway_id str
    The ID of the Direct Connect gateway.
    direct_connect_gateway_name str
    The name of the Direct Connect gateway.
    tags Sequence[root_Tag]
    The tags associated with the Direct Connect gateway.
    directConnectGatewayArn String
    The ARN of the Direct Connect gateway.
    directConnectGatewayId String
    The ID of the Direct Connect gateway.
    directConnectGatewayName String
    The name of the Direct Connect gateway.
    tags List<Property Map>
    The tags associated with the Direct Connect gateway.

    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.