get Local Gateway Route Table
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
A collection of arguments for invoking getLocalGatewayRouteTable.
Return
A collection of values returned by getLocalGatewayRouteTable.
Parameters
ID of the specific local gateway route table to retrieve.
Local Gateway Route Table Id assigned to desired local gateway route table
ARN of the Outpost the local gateway route table is associated with.
State of the local gateway route table.
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
Builder for com.pulumi.aws.ec2.kotlin.inputs.GetLocalGatewayRouteTablePlainArgs.