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
LookupGatewayin the Go SDK.
public static class GetGateway {
public static Task<GetGatewayResult> InvokeAsync(GetGatewayArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetGateway Result
The following output properties are available:
- Amazon
Side stringAsn The ASN on the Amazon side of the connection.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Owner
Account stringId AWS Account ID of the gateway.
- Amazon
Side stringAsn The ASN on the Amazon side of the connection.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Owner
Account stringId AWS Account ID of the gateway.
- amazon
Side stringAsn The ASN on the Amazon side of the connection.
- id string
The provider-assigned unique ID for this managed resource.
- name string
- owner
Account stringId AWS Account ID of the gateway.
- amazon_
side_ strasn The ASN on the Amazon side of the connection.
- id str
The provider-assigned unique ID for this managed resource.
- name str
- owner_
account_ strid 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
awsTerraform Provider.