getTransitGatewayRouteTables

Provides information for multiple EC2 Transit Gateway Route Tables, such as their identifiers.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var exampleTransitGatewayRouteTables = Output.Create(Aws.Ec2.GetTransitGatewayRouteTables.InvokeAsync());
        this.Example = data.Aws_ec2_transit_gateway_route_table.Example.Ids;
    }

    [Output("example")]
    public Output<string> Example { get; set; }
}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ec2.GetTransitGatewayRouteTables(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("example", data.Aws_ec2_transit_gateway_route_table.Example.Ids)
		return nil
	})
}
import pulumi
import pulumi_aws as aws

example_transit_gateway_route_tables = aws.ec2.get_transit_gateway_route_tables()
pulumi.export("example", data["aws_ec2_transit_gateway_route_table"]["example"]["ids"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const exampleTransitGatewayRouteTables = aws.ec2.getTransitGatewayRouteTables({});
export const example = data.aws_ec2_transit_gateway_route_table.example.ids;

Using getTransitGatewayRouteTables

function getTransitGatewayRouteTables(args: GetTransitGatewayRouteTablesArgs, opts?: InvokeOptions): Promise<GetTransitGatewayRouteTablesResult>
def get_transit_gateway_route_tables(filters: Optional[Sequence[GetTransitGatewayRouteTablesFilter]] = None,
                                     tags: Optional[Mapping[str, str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetTransitGatewayRouteTablesResult
func GetTransitGatewayRouteTables(ctx *Context, args *GetTransitGatewayRouteTablesArgs, opts ...InvokeOption) (*GetTransitGatewayRouteTablesResult, error)

Note: This function is named GetTransitGatewayRouteTables in the Go SDK.

public static class GetTransitGatewayRouteTables {
    public static Task<GetTransitGatewayRouteTablesResult> InvokeAsync(GetTransitGatewayRouteTablesArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Filters List<GetTransitGatewayRouteTablesFilter>
Custom filter block as described below.
Tags Dictionary<string, string>
A mapping of tags, each pair of which must exactly match a pair on the desired transit gateway route table.
Filters []GetTransitGatewayRouteTablesFilter
Custom filter block as described below.
Tags map[string]string
A mapping of tags, each pair of which must exactly match a pair on the desired transit gateway route table.
filters GetTransitGatewayRouteTablesFilter[]
Custom filter block as described below.
tags {[key: string]: string}
A mapping of tags, each pair of which must exactly match a pair on the desired transit gateway route table.
filters Sequence[GetTransitGatewayRouteTablesFilter]
Custom filter block as described below.
tags Mapping[str, str]
A mapping of tags, each pair of which must exactly match a pair on the desired transit gateway route table.

getTransitGatewayRouteTables Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
Set of Transit Gateway Route Table identifiers.
Tags Dictionary<string, string>
Filters List<GetTransitGatewayRouteTablesFilter>
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
Set of Transit Gateway Route Table identifiers.
Tags map[string]string
Filters []GetTransitGatewayRouteTablesFilter
id string
The provider-assigned unique ID for this managed resource.
ids string[]
Set of Transit Gateway Route Table identifiers.
tags {[key: string]: string}
filters GetTransitGatewayRouteTablesFilter[]
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
Set of Transit Gateway Route Table identifiers.
tags Mapping[str, str]
filters Sequence[GetTransitGatewayRouteTablesFilter]

Supporting Types

GetTransitGatewayRouteTablesFilter

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 Transit 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 Transit 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 Transit 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 Sequence[str]
Set of values that are accepted for the given field. A Transit 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.