Class GetRouteTable
Inheritance
System.Object
GetRouteTable
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 GetRouteTable
Methods
View SourceInvokeAsync(GetRouteTableArgs, InvokeOptions)
Get information on an EC2 Transit Gateway Route Table.
{{% examples %}}
Example Usage
{{% example %}}
By Filter
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Aws.Ec2TransitGateway.GetRouteTable.InvokeAsync(new Aws.Ec2TransitGateway.GetRouteTableArgs
{
Filters =
{
new Aws.Ec2TransitGateway.Inputs.GetRouteTableFilterArgs
{
Name = "default-association-route-table",
Values =
{
"true",
},
},
new Aws.Ec2TransitGateway.Inputs.GetRouteTableFilterArgs
{
Name = "transit-gateway-id",
Values =
{
"tgw-12345678",
},
},
},
}));
}
}
{{% /example %}} {{% example %}}
By Identifier
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Aws.Ec2TransitGateway.GetRouteTable.InvokeAsync(new Aws.Ec2TransitGateway.GetRouteTableArgs
{
Id = "tgw-rtb-12345678",
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetRouteTableResult> InvokeAsync(GetRouteTableArgs args = null, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetRouteTableArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetRouteTableResult> |