Transit Gateway Route Table Attachment Args
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());
}
}
Content copied to clipboard
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
Content copied to clipboard