RouteTablePropagationArgs

data class RouteTablePropagationArgs(val transitGatewayAttachmentId: Output<String>? = null, val transitGatewayRouteTableId: Output<String>? = null) : ConvertibleToJava<RouteTablePropagationArgs>

Manages an EC2 Transit Gateway Route Table propagation.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.ec2transitgateway.RouteTablePropagation("example", {
transitGatewayAttachmentId: exampleAwsEc2TransitGatewayVpcAttachment.id,
transitGatewayRouteTableId: exampleAwsEc2TransitGatewayRouteTable.id,
});
import pulumi
import pulumi_aws as aws
example = aws.ec2transitgateway.RouteTablePropagation("example",
transit_gateway_attachment_id=example_aws_ec2_transit_gateway_vpc_attachment["id"],
transit_gateway_route_table_id=example_aws_ec2_transit_gateway_route_table["id"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Ec2TransitGateway.RouteTablePropagation("example", new()
{
TransitGatewayAttachmentId = exampleAwsEc2TransitGatewayVpcAttachment.Id,
TransitGatewayRouteTableId = exampleAwsEc2TransitGatewayRouteTable.Id,
});
});
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.NewRouteTablePropagation(ctx, "example", &ec2transitgateway.RouteTablePropagationArgs{
TransitGatewayAttachmentId: pulumi.Any(exampleAwsEc2TransitGatewayVpcAttachment.Id),
TransitGatewayRouteTableId: pulumi.Any(exampleAwsEc2TransitGatewayRouteTable.Id),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2transitgateway.RouteTablePropagation;
import com.pulumi.aws.ec2transitgateway.RouteTablePropagationArgs;
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) {
var example = new RouteTablePropagation("example", RouteTablePropagationArgs.builder()
.transitGatewayAttachmentId(exampleAwsEc2TransitGatewayVpcAttachment.id())
.transitGatewayRouteTableId(exampleAwsEc2TransitGatewayRouteTable.id())
.build());
}
}
resources:
example:
type: aws:ec2transitgateway:RouteTablePropagation
properties:
transitGatewayAttachmentId: ${exampleAwsEc2TransitGatewayVpcAttachment.id}
transitGatewayRouteTableId: ${exampleAwsEc2TransitGatewayRouteTable.id}

Import

Using pulumi import, import aws_ec2_transit_gateway_route_table_propagation using the EC2 Transit Gateway Route Table identifier, an underscore, and the EC2 Transit Gateway Attachment identifier. For example:

$ pulumi import aws:ec2transitgateway/routeTablePropagation:RouteTablePropagation example tgw-rtb-12345678_tgw-attach-87654321

Constructors

Link copied to clipboard
constructor(transitGatewayAttachmentId: Output<String>? = null, transitGatewayRouteTableId: Output<String>? = null)

Properties

Link copied to clipboard
val transitGatewayAttachmentId: Output<String>? = null

Identifier of EC2 Transit Gateway Attachment.

Link copied to clipboard
val transitGatewayRouteTableId: Output<String>? = null

Identifier of EC2 Transit Gateway Route Table.

Functions

Link copied to clipboard
open override fun toJava(): RouteTablePropagationArgs