We recommend new projects start with resources from the AWS provider.
aws-native.ec2.getRouteTable
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Specifies a route table for the specified VPC. After you create a route table, you can add routes and associate the table with a subnet. For more information, see Route tables in the Amazon VPC User Guide.
Using getRouteTable
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRouteTable(args: GetRouteTableArgs, opts?: InvokeOptions): Promise<GetRouteTableResult>
function getRouteTableOutput(args: GetRouteTableOutputArgs, opts?: InvokeOptions): Output<GetRouteTableResult>
def get_route_table(route_table_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRouteTableResult
def get_route_table_output(route_table_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRouteTableResult]
func LookupRouteTable(ctx *Context, args *LookupRouteTableArgs, opts ...InvokeOption) (*LookupRouteTableResult, error)
func LookupRouteTableOutput(ctx *Context, args *LookupRouteTableOutputArgs, opts ...InvokeOption) LookupRouteTableResultOutput
> Note: This function is named LookupRouteTable
in the Go SDK.
public static class GetRouteTable
{
public static Task<GetRouteTableResult> InvokeAsync(GetRouteTableArgs args, InvokeOptions? opts = null)
public static Output<GetRouteTableResult> Invoke(GetRouteTableInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRouteTableResult> getRouteTable(GetRouteTableArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:ec2:getRouteTable
arguments:
# arguments dictionary
The following arguments are supported:
- Route
Table stringId - The ID of the route table.
- Route
Table stringId - The ID of the route table.
- route
Table StringId - The ID of the route table.
- route
Table stringId - The ID of the route table.
- route_
table_ strid - The ID of the route table.
- route
Table StringId - The ID of the route table.
getRouteTable Result
The following output properties are available:
- Route
Table stringId - The ID of the route table.
- List<Pulumi.
Aws Native. Outputs. Tag> - Any tags assigned to the route table.
- Route
Table stringId - The ID of the route table.
- Tag
- Any tags assigned to the route table.
- route
Table StringId - The ID of the route table.
- List<Tag>
- Any tags assigned to the route table.
- route
Table stringId - The ID of the route table.
- Tag[]
- Any tags assigned to the route table.
- route_
table_ strid - The ID of the route table.
- Sequence[root_Tag]
- Any tags assigned to the route table.
- route
Table StringId - The ID of the route table.
- List<Property Map>
- Any tags assigned to the route table.
Supporting Types
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.