TransitGatewayRouteTableAttachmentArgs

data class TransitGatewayRouteTableAttachmentArgs(val peeringId: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val transitGatewayRouteTableArn: Output<String>? = null) : ConvertibleToJava<TransitGatewayRouteTableAttachmentArgs>

Creates a transit gateway route table attachment.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.networkmanager.TransitGatewayRouteTableAttachment;
import com.pulumi.aws.networkmanager.TransitGatewayRouteTableAttachmentArgs;
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 TransitGatewayRouteTableAttachment("example", TransitGatewayRouteTableAttachmentArgs.builder()
.peeringId(aws_networkmanager_transit_gateway_peering.example().id())
.transitGatewayRouteTableArn(aws_ec2_transit_gateway_route_table.example().arn())
.build());
}
}

Import

aws_networkmanager_transit_gateway_route_table_attachment can be imported using the attachment ID, e.g.

$ pulumi import aws:networkmanager/transitGatewayRouteTableAttachment:TransitGatewayRouteTableAttachment example attachment-0f8fa60d2238d1bd8

Constructors

Link copied to clipboard
constructor(peeringId: Output<String>? = null, tags: Output<Map<String, String>>? = null, transitGatewayRouteTableArn: Output<String>? = null)

Properties

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

The ID of the peer for the attachment.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key-value tags for the attachment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

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

The ARN of the transit gateway route table for the attachment.

Functions

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