get Route Table Routes
Provides informations for routes of a specific transit gateway, such as state, type, cidr
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = aws.ec2transitgateway.getRouteTableRoutes({
filters: [{
name: "type",
values: ["propagated"],
}],
transitGatewayRouteTableId: example.id,
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
test = aws.ec2transitgateway.get_route_table_routes(filters=[{
"name": "type",
"values": ["propagated"],
}],
transit_gateway_route_table_id=example["id"])
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = Aws.Ec2TransitGateway.GetRouteTableRoutes.Invoke(new()
{
Filters = new[]
{
new Aws.Ec2TransitGateway.Inputs.GetRouteTableRoutesFilterInputArgs
{
Name = "type",
Values = new[]
{
"propagated",
},
},
},
TransitGatewayRouteTableId = example.Id,
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2transitgateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ec2transitgateway.GetRouteTableRoutes(ctx, &ec2transitgateway.GetRouteTableRoutesArgs{
Filters: []ec2transitgateway.GetRouteTableRoutesFilter{
{
Name: "type",
Values: []string{
"propagated",
},
},
},
TransitGatewayRouteTableId: example.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2transitgateway.Ec2transitgatewayFunctions;
import com.pulumi.aws.ec2transitgateway.inputs.GetRouteTableRoutesArgs;
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 test = Ec2transitgatewayFunctions.getRouteTableRoutes(GetRouteTableRoutesArgs.builder()
.filters(GetRouteTableRoutesFilterArgs.builder()
.name("type")
.values("propagated")
.build())
.transitGatewayRouteTableId(example.id())
.build());
}
}
Content copied to clipboard
variables:
test:
fn::invoke:
function: aws:ec2transitgateway:getRouteTableRoutes
arguments:
filters:
- name: type
values:
- propagated
transitGatewayRouteTableId: ${example.id}
Content copied to clipboard
Return
A collection of values returned by getRouteTableRoutes.
Parameters
argument
A collection of arguments for invoking getRouteTableRoutes.
suspend fun getRouteTableRoutes(filters: List<GetRouteTableRoutesFilter>, transitGatewayRouteTableId: String): GetRouteTableRoutesResult
Return
A collection of values returned by getRouteTableRoutes.
Parameters
filters
Custom filter block as described below.
transit Gateway Route Table Id
Identifier of EC2 Transit Gateway Route Table. More complex filters can be expressed using one or more filter
sub-blocks, which take the following arguments:
See also
suspend fun getRouteTableRoutes(argument: suspend GetRouteTableRoutesPlainArgsBuilder.() -> Unit): GetRouteTableRoutesResult
Return
A collection of values returned by getRouteTableRoutes.
Parameters
argument
Builder for com.pulumi.aws.ec2transitgateway.kotlin.inputs.GetRouteTableRoutesPlainArgs.