Class GetCustomerGateway
Inheritance
System.Object
GetCustomerGateway
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 GetCustomerGateway
Methods
View SourceInvokeAsync(GetCustomerGatewayArgs, InvokeOptions)
Get an existing AWS Customer Gateway.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var foo = Output.Create(Aws.Ec2.GetCustomerGateway.InvokeAsync(new Aws.Ec2.GetCustomerGatewayArgs
{
Filters =
{
new Aws.Ec2.Inputs.GetCustomerGatewayFilterArgs
{
Name = "tag:Name",
Values =
{
"foo-prod",
},
},
},
}));
var main = new Aws.Ec2.VpnGateway("main", new Aws.Ec2.VpnGatewayArgs
{
AmazonSideAsn = 7224,
VpcId = aws_vpc.Main.Id,
});
var transit = new Aws.Ec2.VpnConnection("transit", new Aws.Ec2.VpnConnectionArgs
{
CustomerGatewayId = foo.Apply(foo => foo.Id),
StaticRoutesOnly = false,
Type = foo.Apply(foo => foo.Type),
VpnGatewayId = main.Id,
});
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetCustomerGatewayResult> InvokeAsync(GetCustomerGatewayArgs args = null, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetCustomerGatewayArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetCustomerGatewayResult> |