import * as core from "@terrascript/core"; export interface Ec2TransitGatewayVpcAttachmentArgs extends core.ResourceArgs { /** * (Optional) Whether Appliance Mode support is enabled. If enabled, a traffic flow between a source an * d destination uses the same Availability Zone for the VPC attachment for the lifetime of that flow. * Valid values: `disable`, `enable`. Default value: `disable`. */ applianceModeSupport?: string | core.StringOut; /** * (Optional) Whether DNS support is enabled. Valid values: `disable`, `enable`. Default value: `enable * . */ dnsSupport?: string | core.StringOut; /** * (Optional) Whether IPv6 support is enabled. Valid values: `disable`, `enable`. Default value: `disab * le`. */ ipv6Support?: string | core.StringOut; /** * (Required) Identifiers of EC2 Subnets. */ subnetIds: core.Array | core.ArrayOut; /** * (Optional) Key-value tags for the EC2 Transit Gateway VPC Attachment. If configured with a provider * [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/do * cs#default_tags-configuration-block) present, tags with matching keys will overwrite those defined a * t the provider-level. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; /** * (Optional) Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway asso * ciation default route table. This cannot be configured or perform drift detection with Resource Acce * ss Manager shared EC2 Transit Gateways. Default value: `true`. */ transitGatewayDefaultRouteTableAssociation?: boolean | core.BooleanOut; /** * (Optional) Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway p * ropagation default route table. This cannot be configured or perform drift detection with Resource A * ccess Manager shared EC2 Transit Gateways. Default value: `true`. */ transitGatewayDefaultRouteTablePropagation?: boolean | core.BooleanOut; /** * (Required) Identifier of EC2 Transit Gateway. */ transitGatewayId: string | core.StringOut; /** * (Required) Identifier of EC2 VPC. */ vpcId: string | core.StringOut; } export class Ec2TransitGatewayVpcAttachment extends core.Resource { /** * (Optional) Whether Appliance Mode support is enabled. If enabled, a traffic flow between a source an * d destination uses the same Availability Zone for the VPC attachment for the lifetime of that flow. * Valid values: `disable`, `enable`. Default value: `disable`. */ @core.attr(String) public applianceModeSupport?: string | core.StringOut; /** * (Optional) Whether DNS support is enabled. Valid values: `disable`, `enable`. Default value: `enable * . */ @core.attr(String) public dnsSupport?: string | core.StringOut; /** * EC2 Transit Gateway Attachment identifier */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) Whether IPv6 support is enabled. Valid values: `disable`, `enable`. Default value: `disab * le`. */ @core.attr(String) public ipv6Support?: string | core.StringOut; /** * (Required) Identifiers of EC2 Subnets. */ @core.attr(String, { kind: "array" }) public subnetIds!: core.Array | core.ArrayOut; /** * (Optional) Key-value tags for the EC2 Transit Gateway VPC Attachment. If configured with a provider * [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/do * cs#default_tags-configuration-block) present, tags with matching keys will overwrite those defined a * t the provider-level. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; /** * (Optional) Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway asso * ciation default route table. This cannot be configured or perform drift detection with Resource Acce * ss Manager shared EC2 Transit Gateways. Default value: `true`. */ @core.attr(Boolean) public transitGatewayDefaultRouteTableAssociation?: boolean | core.BooleanOut; /** * (Optional) Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway p * ropagation default route table. This cannot be configured or perform drift detection with Resource A * ccess Manager shared EC2 Transit Gateways. Default value: `true`. */ @core.attr(Boolean) public transitGatewayDefaultRouteTablePropagation?: boolean | core.BooleanOut; /** * (Required) Identifier of EC2 Transit Gateway. */ @core.attr(String) public transitGatewayId!: string | core.StringOut; /** * (Required) Identifier of EC2 VPC. */ @core.attr(String) public vpcId!: string | core.StringOut; /** * Identifier of the AWS account that owns the EC2 VPC. */ @core.attr(String, { computed: true }) public vpcOwnerId!: string | core.StringOut; constructor(name: string, args?: Ec2TransitGatewayVpcAttachmentArgs) { super(name, "aws_ec2_transit_gateway_vpc_attachment", args); } public override getNamespace(): string { return "aws_transit_gateway"; } }