Show / Hide Table of Contents

Class GetVpnGateway

Inheritance
System.Object
GetVpnGateway
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Ec2
Assembly: Pulumi.Aws.dll
Syntax
public static class GetVpnGateway

Methods

View Source

InvokeAsync(GetVpnGatewayArgs, InvokeOptions)

The VPN Gateway data source provides details about a specific VPN gateway.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var selected = Output.Create(Aws.Ec2.GetVpnGateway.InvokeAsync(new Aws.Ec2.GetVpnGatewayArgs
    {
        Filters = 
        {
            new Aws.Ec2.Inputs.GetVpnGatewayFilterArgs
            {
                Name = "tag:Name",
                Values = 
                {
                    "vpn-gw",
                },
            },
        },
    }));
    this.VpnGatewayId = selected.Apply(selected => selected.Id);
}

[Output("vpnGatewayId")]
public Output<string> VpnGatewayId { get; set; }
}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetVpnGatewayResult> InvokeAsync(GetVpnGatewayArgs args = null, InvokeOptions options = null)
Parameters
Type Name Description
GetVpnGatewayArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetVpnGatewayResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.