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

The following example returns a specific local gateway route table ID

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.Ec2Functions;
import com.pulumi.aws.ec2.inputs.GetLocalGatewayRouteTableArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var awsEc2LocalGatewayRouteTable = config.get("awsEc2LocalGatewayRouteTable");
final var selected = Ec2Functions.getLocalGatewayRouteTable(GetLocalGatewayRouteTableArgs.builder()
.localGatewayRouteTableId(awsEc2LocalGatewayRouteTable)
.build());
}
}

Return

A collection of values returned by getLocalGatewayRouteTable.

Parameters

argument

A collection of arguments for invoking getLocalGatewayRouteTable.


suspend fun getLocalGatewayRouteTable(filters: List<GetLocalGatewayRouteTableFilter>? = null, localGatewayId: String? = null, localGatewayRouteTableId: String? = null, outpostArn: String? = null, state: String? = null, tags: Map<String, String>? = null): GetLocalGatewayRouteTableResult

Return

A collection of values returned by getLocalGatewayRouteTable.

Parameters

filters
localGatewayId

ID of the specific local gateway route table to retrieve.

localGatewayRouteTableId

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

outpostArn

ARN of the Outpost the local gateway route table is associated with.

state

State of the local gateway route table.

tags

Mapping of tags, each pair of which must exactly match a pair on the desired local gateway route table. More complex filters can be expressed using one or more filter sub-blocks, which take the following arguments:

See also


Return

A collection of values returned by getLocalGatewayRouteTable.

Parameters

argument

Builder for com.pulumi.aws.ec2.kotlin.inputs.GetLocalGatewayRouteTablePlainArgs.

See also