Show / Hide Table of Contents

Class GetPeeringAttachment

Inheritance
System.Object
GetPeeringAttachment
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 GetPeeringAttachment

Methods

View Source

InvokeAsync(GetPeeringAttachmentArgs, InvokeOptions)

Get information on an EC2 Transit Gateway Peering Attachment.

{{% examples %}}

Example Usage

{{% example %}}

By Filter

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var example = Output.Create(Aws.Ec2TransitGateway.GetPeeringAttachment.InvokeAsync(new Aws.Ec2TransitGateway.GetPeeringAttachmentArgs
    {
        Filters = 
        {
            new Aws.Ec2TransitGateway.Inputs.GetPeeringAttachmentFilterArgs
            {
                Name = "transit-gateway-attachment-id",
                Values = 
                {
                    "tgw-attach-12345678",
                },
            },
        },
    }));
}

}

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

By Identifier

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var attachment = Output.Create(Aws.Ec2TransitGateway.GetPeeringAttachment.InvokeAsync(new Aws.Ec2TransitGateway.GetPeeringAttachmentArgs
    {
        Id = "tgw-attach-12345678",
    }));
}

}

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

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