GetLocalGatewayRouteTable

Provides details about an EC2 Local Gateway Route Table.

This data source can prove useful when a module accepts a local gateway route table id as an input variable and needs to, for example, find the associated Outpost or Local Gateway.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var config = new Config();
        var awsEc2LocalGatewayRouteTable = config.RequireObject<dynamic>("awsEc2LocalGatewayRouteTable");
        var selected = Output.Create(Aws.Ec2.GetLocalGatewayRouteTable.InvokeAsync(new Aws.Ec2.GetLocalGatewayRouteTableArgs
        {
            LocalGatewayRouteTableId = awsEc2LocalGatewayRouteTable,
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/ec2"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        opt0 := awsEc2LocalGatewayRouteTable
        _, err := ec2.GetLocalGatewayRouteTable(ctx, &ec2.GetLocalGatewayRouteTableArgs{
            LocalGatewayRouteTableId: &opt0,
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

config = pulumi.Config()
aws_ec2_local_gateway_route_table = config.require_object("awsEc2LocalGatewayRouteTable")
selected = aws.ec2.get_local_gateway_route_table(local_gateway_route_table_id=aws_ec2_local_gateway_route_table)
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const config = new pulumi.Config();
const awsEc2LocalGatewayRouteTable = config.require("awsEc2LocalGatewayRouteTable");

const selected = pulumi.output(aws.ec2.getLocalGatewayRouteTable({
    localGatewayRouteTableId: awsEc2LocalGatewayRouteTable,
}, { async: true }));

Using GetLocalGatewayRouteTable

function getLocalGatewayRouteTable(args: GetLocalGatewayRouteTableArgs, opts?: InvokeOptions): Promise<GetLocalGatewayRouteTableResult>
function  get_local_gateway_route_table(filters=None, local_gateway_id=None, local_gateway_route_table_id=None, outpost_arn=None, state=None, tags=None, opts=None)
func GetLocalGatewayRouteTable(ctx *Context, args *GetLocalGatewayRouteTableArgs, opts ...InvokeOption) (*GetLocalGatewayRouteTableResult, error)
public static class GetLocalGatewayRouteTable {
    public static Task<GetLocalGatewayRouteTableResult> InvokeAsync(GetLocalGatewayRouteTableArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Filters List<GetLocalGatewayRouteTableFilterArgs>
LocalGatewayId string

The id of the specific local gateway route table to retrieve.

LocalGatewayRouteTableId string

Local Gateway Route Table Id assigned to desired local gateway route table

OutpostArn string

The arn of the Outpost the local gateway route table is associated with.

State string

The state of the local gateway route table.

Tags Dictionary<string, string>

A mapping of tags, each pair of which must exactly match a pair on the desired local gateway route table.

Filters []GetLocalGatewayRouteTableFilter
LocalGatewayId string

The id of the specific local gateway route table to retrieve.

LocalGatewayRouteTableId string

Local Gateway Route Table Id assigned to desired local gateway route table

OutpostArn string

The arn of the Outpost the local gateway route table is associated with.

State string

The state of the local gateway route table.

Tags map[string]string

A mapping of tags, each pair of which must exactly match a pair on the desired local gateway route table.

filters GetLocalGatewayRouteTableFilter[]
localGatewayId string

The id of the specific local gateway route table to retrieve.

localGatewayRouteTableId string

Local Gateway Route Table Id assigned to desired local gateway route table

outpostArn string

The arn of the Outpost the local gateway route table is associated with.

state string

The state of the local gateway route table.

tags {[key: string]: string}

A mapping of tags, each pair of which must exactly match a pair on the desired local gateway route table.

filters List[GetLocalGatewayRouteTableFilter]
local_gateway_id str

The id of the specific local gateway route table to retrieve.

local_gateway_route_table_id str

Local Gateway Route Table Id assigned to desired local gateway route table

outpost_arn str

The arn of the Outpost the local gateway route table is associated with.

state str

The state of the local gateway route table.

tags Dict[str, str]

A mapping of tags, each pair of which must exactly match a pair on the desired local gateway route table.

GetLocalGatewayRouteTable Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

LocalGatewayId string
LocalGatewayRouteTableId string
OutpostArn string
State string
Tags Dictionary<string, string>
Filters List<GetLocalGatewayRouteTableFilter>
Id string

The provider-assigned unique ID for this managed resource.

LocalGatewayId string
LocalGatewayRouteTableId string
OutpostArn string
State string
Tags map[string]string
Filters []GetLocalGatewayRouteTableFilter
id string

The provider-assigned unique ID for this managed resource.

localGatewayId string
localGatewayRouteTableId string
outpostArn string
state string
tags {[key: string]: string}
filters GetLocalGatewayRouteTableFilter[]
id str

The provider-assigned unique ID for this managed resource.

local_gateway_id str
local_gateway_route_table_id str
outpost_arn str
state str
tags Dict[str, str]
filters List[GetLocalGatewayRouteTableFilter]

Supporting Types

GetLocalGatewayRouteTableFilter

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Name string

The name of the field to filter by, as defined by the underlying AWS API.

Values List<string>

Set of values that are accepted for the given field. A local gateway route table will be selected if any one of the given values matches.

Name string

The name of the field to filter by, as defined by the underlying AWS API.

Values []string

Set of values that are accepted for the given field. A local gateway route table will be selected if any one of the given values matches.

name string

The name of the field to filter by, as defined by the underlying AWS API.

values string[]

Set of values that are accepted for the given field. A local gateway route table will be selected if any one of the given values matches.

name str

The name of the field to filter by, as defined by the underlying AWS API.

values List[str]

Set of values that are accepted for the given field. A local gateway route table will be selected if any one of the given values matches.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.