1. Packages
  2. AWS
  3. API Docs
  4. ec2transitgateway
  5. getRouteTablePropagations
AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

aws.ec2transitgateway.getRouteTablePropagations

Explore with Pulumi AI

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

Example Usage

By Transit Gateway Identifier

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = aws.ec2transitgateway.getRouteTablePropagations({
    transitGatewayRouteTableId: exampleAwsEc2TransitGatewayRouteTable.id,
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.ec2transitgateway.get_route_table_propagations(transit_gateway_route_table_id=example_aws_ec2_transit_gateway_route_table["id"])
Copy
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.GetRouteTablePropagations(ctx, &ec2transitgateway.GetRouteTablePropagationsArgs{
			TransitGatewayRouteTableId: exampleAwsEc2TransitGatewayRouteTable.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = Aws.Ec2TransitGateway.GetRouteTablePropagations.Invoke(new()
    {
        TransitGatewayRouteTableId = exampleAwsEc2TransitGatewayRouteTable.Id,
    });

});
Copy
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.GetRouteTablePropagationsArgs;
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 example = Ec2transitgatewayFunctions.getRouteTablePropagations(GetRouteTablePropagationsArgs.builder()
            .transitGatewayRouteTableId(exampleAwsEc2TransitGatewayRouteTable.id())
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:ec2transitgateway:getRouteTablePropagations
      arguments:
        transitGatewayRouteTableId: ${exampleAwsEc2TransitGatewayRouteTable.id}
Copy

Using getRouteTablePropagations

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getRouteTablePropagations(args: GetRouteTablePropagationsArgs, opts?: InvokeOptions): Promise<GetRouteTablePropagationsResult>
function getRouteTablePropagationsOutput(args: GetRouteTablePropagationsOutputArgs, opts?: InvokeOptions): Output<GetRouteTablePropagationsResult>
Copy
def get_route_table_propagations(filters: Optional[Sequence[GetRouteTablePropagationsFilter]] = None,
                                 transit_gateway_route_table_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetRouteTablePropagationsResult
def get_route_table_propagations_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetRouteTablePropagationsFilterArgs]]]] = None,
                                 transit_gateway_route_table_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetRouteTablePropagationsResult]
Copy
func GetRouteTablePropagations(ctx *Context, args *GetRouteTablePropagationsArgs, opts ...InvokeOption) (*GetRouteTablePropagationsResult, error)
func GetRouteTablePropagationsOutput(ctx *Context, args *GetRouteTablePropagationsOutputArgs, opts ...InvokeOption) GetRouteTablePropagationsResultOutput
Copy

> Note: This function is named GetRouteTablePropagations in the Go SDK.

public static class GetRouteTablePropagations 
{
    public static Task<GetRouteTablePropagationsResult> InvokeAsync(GetRouteTablePropagationsArgs args, InvokeOptions? opts = null)
    public static Output<GetRouteTablePropagationsResult> Invoke(GetRouteTablePropagationsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRouteTablePropagationsResult> getRouteTablePropagations(GetRouteTablePropagationsArgs args, InvokeOptions options)
public static Output<GetRouteTablePropagationsResult> getRouteTablePropagations(GetRouteTablePropagationsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:ec2transitgateway/getRouteTablePropagations:getRouteTablePropagations
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

TransitGatewayRouteTableId This property is required. string

Identifier of EC2 Transit Gateway Route Table.

The following arguments are optional:

Filters List<GetRouteTablePropagationsFilter>

Custom filter block as described below.

More complex filters can be expressed using one or more filter sub-blocks, which take the following arguments:

TransitGatewayRouteTableId This property is required. string

Identifier of EC2 Transit Gateway Route Table.

The following arguments are optional:

Filters []GetRouteTablePropagationsFilter

Custom filter block as described below.

More complex filters can be expressed using one or more filter sub-blocks, which take the following arguments:

transitGatewayRouteTableId This property is required. String

Identifier of EC2 Transit Gateway Route Table.

The following arguments are optional:

filters List<GetRouteTablePropagationsFilter>

Custom filter block as described below.

More complex filters can be expressed using one or more filter sub-blocks, which take the following arguments:

transitGatewayRouteTableId This property is required. string

Identifier of EC2 Transit Gateway Route Table.

The following arguments are optional:

filters GetRouteTablePropagationsFilter[]

Custom filter block as described below.

More complex filters can be expressed using one or more filter sub-blocks, which take the following arguments:

transit_gateway_route_table_id This property is required. str

Identifier of EC2 Transit Gateway Route Table.

The following arguments are optional:

filters Sequence[GetRouteTablePropagationsFilter]

Custom filter block as described below.

More complex filters can be expressed using one or more filter sub-blocks, which take the following arguments:

transitGatewayRouteTableId This property is required. String

Identifier of EC2 Transit Gateway Route Table.

The following arguments are optional:

filters List<Property Map>

Custom filter block as described below.

More complex filters can be expressed using one or more filter sub-blocks, which take the following arguments:

getRouteTablePropagations 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 Association identifiers.
TransitGatewayRouteTableId string
Filters List<GetRouteTablePropagationsFilter>
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
Set of Transit Gateway Route Table Association identifiers.
TransitGatewayRouteTableId string
Filters []GetRouteTablePropagationsFilter
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
Set of Transit Gateway Route Table Association identifiers.
transitGatewayRouteTableId String
filters List<GetRouteTablePropagationsFilter>
id string
The provider-assigned unique ID for this managed resource.
ids string[]
Set of Transit Gateway Route Table Association identifiers.
transitGatewayRouteTableId string
filters GetRouteTablePropagationsFilter[]
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
Set of Transit Gateway Route Table Association identifiers.
transit_gateway_route_table_id str
filters Sequence[GetRouteTablePropagationsFilter]
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
Set of Transit Gateway Route Table Association identifiers.
transitGatewayRouteTableId String
filters List<Property Map>

Supporting Types

GetRouteTablePropagationsFilter

Name This property is required. string
Name of the field to filter by, as defined by the underlying AWS API.
Values This property is required. 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 This property is required. string
Name of the field to filter by, as defined by the underlying AWS API.
Values This property is required. []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 This property is required. String
Name of the field to filter by, as defined by the underlying AWS API.
values This property is required. 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 This property is required. string
Name of the field to filter by, as defined by the underlying AWS API.
values This property is required. 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 This property is required. str
Name of the field to filter by, as defined by the underlying AWS API.
values This property is required. 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.
name This property is required. String
Name of the field to filter by, as defined by the underlying AWS API.
values This property is required. 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.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.