Connect Args
data class ConnectArgs(val protocol: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val transitGatewayDefaultRouteTableAssociation: Output<Boolean>? = null, val transitGatewayDefaultRouteTablePropagation: Output<Boolean>? = null, val transitGatewayId: Output<String>? = null, val transportAttachmentId: Output<String>? = null) : ConvertibleToJava<ConnectArgs>
Manages an EC2 Transit Gateway Connect.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2transitgateway.VpcAttachment;
import com.pulumi.aws.ec2transitgateway.VpcAttachmentArgs;
import com.pulumi.aws.ec2transitgateway.Connect;
import com.pulumi.aws.ec2transitgateway.ConnectArgs;
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 VpcAttachment("example", VpcAttachmentArgs.builder()
.subnetIds(aws_subnet.example().id())
.transitGatewayId(aws_ec2_transit_gateway.example().id())
.vpcId(aws_vpc.example().id())
.build());
var attachment = new Connect("attachment", ConnectArgs.builder()
.transportAttachmentId(example.id())
.transitGatewayId(aws_ec2_transit_gateway.example().id())
.build());
}
}
Content copied to clipboard
Import
aws_ec2_transit_gateway_connect
can be imported by using the EC2 Transit Gateway Connect identifier, e.g.,
$ pulumi import aws:ec2transitgateway/connect:Connect example tgw-attach-12345678
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(protocol: Output<String>? = null, tags: Output<Map<String, String>>? = null, transitGatewayDefaultRouteTableAssociation: Output<Boolean>? = null, transitGatewayDefaultRouteTablePropagation: Output<Boolean>? = null, transitGatewayId: Output<String>? = null, transportAttachmentId: Output<String>? = null)
Properties
Link copied to clipboard
Boolean whether the Connect should be associated with the EC2 Transit Gateway association default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value: true
.
Link copied to clipboard
Boolean whether the Connect should propagate routes with the EC2 Transit Gateway propagation default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value: true
.
Link copied to clipboard
Identifier of EC2 Transit Gateway.
Link copied to clipboard
The underlaying VPC attachment