GetGateway

Retrieve information about a Direct Connect Gateway.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.DirectConnect.GetGateway.InvokeAsync(new Aws.DirectConnect.GetGatewayArgs
        {
            Name = "example",
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/directconnect"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := directconnect.LookupGateway(ctx, &directconnect.LookupGatewayArgs{
            Name: "example",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

example = aws.directconnect.get_gateway(name="example")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.directconnect.getGateway({
    name: "example",
}, { async: true }));

Using GetGateway

function getGateway(args: GetGatewayArgs, opts?: InvokeOptions): Promise<GetGatewayResult>
function  get_gateway(name=None, opts=None)
func LookupGateway(ctx *Context, args *LookupGatewayArgs, opts ...InvokeOption) (*LookupGatewayResult, error)

Note: This function is named LookupGateway in the Go SDK.

public static class GetGateway {
    public static Task<GetGatewayResult> InvokeAsync(GetGatewayArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the gateway to retrieve.

Name string

The name of the gateway to retrieve.

name string

The name of the gateway to retrieve.

name str

The name of the gateway to retrieve.

GetGateway Result

The following output properties are available:

AmazonSideAsn string

The ASN on the Amazon side of the connection.

Id string

The provider-assigned unique ID for this managed resource.

Name string
OwnerAccountId string

AWS Account ID of the gateway.

AmazonSideAsn string

The ASN on the Amazon side of the connection.

Id string

The provider-assigned unique ID for this managed resource.

Name string
OwnerAccountId string

AWS Account ID of the gateway.

amazonSideAsn string

The ASN on the Amazon side of the connection.

id string

The provider-assigned unique ID for this managed resource.

name string
ownerAccountId string

AWS Account ID of the gateway.

amazon_side_asn str

The ASN on the Amazon side of the connection.

id str

The provider-assigned unique ID for this managed resource.

name str
owner_account_id str

AWS Account ID of the gateway.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.