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 SourceInvokeAsync(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> |