VpcAttachmentAccepterArgs

data class VpcAttachmentAccepterArgs(val tags: Output<Map<String, String>>? = null, val transitGatewayAttachmentId: Output<String>? = null, val transitGatewayDefaultRouteTableAssociation: Output<Boolean>? = null, val transitGatewayDefaultRouteTablePropagation: Output<Boolean>? = null) : ConvertibleToJava<VpcAttachmentAccepterArgs>

Manages the accepter's side of an EC2 Transit Gateway VPC Attachment. When a cross-account (requester's AWS account differs from the accepter's AWS account) EC2 Transit Gateway VPC Attachment is created, an EC2 Transit Gateway VPC Attachment resource is automatically created in the accepter's account. The requester can use the aws.ec2transitgateway.VpcAttachment resource to manage its side of the connection and the accepter can use the aws.ec2transitgateway.VpcAttachmentAccepter resource to "adopt" its side of the connection into management.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2transitgateway.VpcAttachmentAccepter;
import com.pulumi.aws.ec2transitgateway.VpcAttachmentAccepterArgs;
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 VpcAttachmentAccepter("example", VpcAttachmentAccepterArgs.builder()
.transitGatewayAttachmentId(aws_ec2_transit_gateway_vpc_attachment.example().id())
.tags(Map.of("Name", "Example cross-account attachment"))
.build());
}
}

Import

aws_ec2_transit_gateway_vpc_attachment_accepter can be imported by using the EC2 Transit Gateway Attachment identifier, e.g.,

$ pulumi import aws:ec2transitgateway/vpcAttachmentAccepter:VpcAttachmentAccepter example tgw-attach-12345678

Constructors

Link copied to clipboard
constructor(tags: Output<Map<String, String>>? = null, transitGatewayAttachmentId: Output<String>? = null, transitGatewayDefaultRouteTableAssociation: Output<Boolean>? = null, transitGatewayDefaultRouteTablePropagation: Output<Boolean>? = null)

Properties

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

Key-value tags for the EC2 Transit Gateway VPC 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 transitGatewayAttachmentId: Output<String>? = null

The ID of the EC2 Transit Gateway Attachment to manage.

Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value: true.

Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value: true.

Functions

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