RouteTableAssociationArgs

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

Manages an EC2 Transit Gateway Route Table association.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2transitgateway.RouteTableAssociation;
import com.pulumi.aws.ec2transitgateway.RouteTableAssociationArgs;
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 RouteTableAssociation("example", RouteTableAssociationArgs.builder()
.transitGatewayAttachmentId(aws_ec2_transit_gateway_vpc_attachment.example().id())
.transitGatewayRouteTableId(aws_ec2_transit_gateway_route_table.example().id())
.build());
}
}

Import

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

$ pulumi import aws:ec2transitgateway/routeTableAssociation:RouteTableAssociation example tgw-rtb-12345678_tgw-attach-87654321

Constructors

Link copied to clipboard
fun RouteTableAssociationArgs(replaceExistingAssociation: Output<Boolean>? = null, transitGatewayAttachmentId: Output<String>? = null, transitGatewayRouteTableId: Output<String>? = null)

Functions

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

Properties

Link copied to clipboard
val replaceExistingAssociation: Output<Boolean>? = null

Boolean whether the Gateway Attachment should remove any current Route Table association before associating with the specified Route Table. Default value: false. This argument is intended for use with EC2 Transit Gateways shared into the current account, otherwise the transit_gateway_default_route_table_association argument of the aws.ec2transitgateway.VpcAttachment resource should be used.

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.