Show / Hide Table of Contents

Class GetVpnAttachment

Inheritance
System.Object
GetVpnAttachment
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.Ec2TransitGateway
Assembly: Pulumi.Aws.dll
Syntax
public static class GetVpnAttachment

Methods

View Source

InvokeAsync(GetVpnAttachmentArgs, InvokeOptions)

Get information on an EC2 Transit Gateway VPN Attachment.

{{% examples %}}

Example Usage

{{% example %}}

By Transit Gateway and VPN Connection Identifiers

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var example = Output.Create(Aws.Ec2TransitGateway.GetVpnAttachment.InvokeAsync(new Aws.Ec2TransitGateway.GetVpnAttachmentArgs
    {
        TransitGatewayId = aws_ec2_transit_gateway.Example.Id,
        VpnConnectionId = aws_vpn_connection.Example.Id,
    }));
}

}

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

Filter

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var test = Output.Create(Aws.Ec2TransitGateway.GetVpnAttachment.InvokeAsync(new Aws.Ec2TransitGateway.GetVpnAttachmentArgs
    {
        Filters = 
        {
            new Aws.Ec2TransitGateway.Inputs.GetVpnAttachmentFilterArgs
            {
                Name = "resource-id",
                Values = 
                {
                    "some-resource",
                },
            },
        },
    }));
}

}

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

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