Class GetVpcAttachment
Inheritance
System.Object
GetVpcAttachment
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 GetVpcAttachment
Methods
View SourceInvokeAsync(GetVpcAttachmentArgs, InvokeOptions)
Get information on an EC2 Transit Gateway VPC Attachment.
{{% examples %}}
Example Usage
{{% example %}}
By Filter
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Aws.Ec2TransitGateway.GetVpcAttachment.InvokeAsync(new Aws.Ec2TransitGateway.GetVpcAttachmentArgs
{
Filters =
{
new Aws.Ec2TransitGateway.Inputs.GetVpcAttachmentFilterArgs
{
Name = "vpc-id",
Values =
{
"vpc-12345678",
},
},
},
}));
}
}
{{% /example %}} {{% example %}}
By Identifier
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Aws.Ec2TransitGateway.GetVpcAttachment.InvokeAsync(new Aws.Ec2TransitGateway.GetVpcAttachmentArgs
{
Id = "tgw-attach-12345678",
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetVpcAttachmentResult> InvokeAsync(GetVpcAttachmentArgs args = null, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetVpcAttachmentArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetVpcAttachmentResult> |