import * as core from "@terrascript/core"; export interface Ec2TransitGatewayConnectArgs extends core.ResourceArgs { /** * (Optional) The tunnel protocol. Valida values: `gre`. Default is `gre`. */ protocol?: string | core.StringOut; /** * (Optional) Key-value tags for the EC2 Transit Gateway Connect. If configured with a provider [`defau * lt_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#defa * ult_tags-configuration-block) present, tags with matching keys will overwrite those defined at the p * rovider-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 Connect should be associated with the EC2 Transit Gateway association * default route table. This cannot be configured or perform drift detection with Resource Access Mana * ger shared EC2 Transit Gateways. Default value: `true`. */ transitGatewayDefaultRouteTableAssociation?: boolean | core.BooleanOut; /** * (Optional) Boolean whether the Connect should propagate routes with the EC2 Transit Gateway propagat * ion default route table. This cannot be configured or perform drift detection with Resource Access M * anager shared EC2 Transit Gateways. Default value: `true`. */ transitGatewayDefaultRouteTablePropagation?: boolean | core.BooleanOut; /** * (Required) Identifier of EC2 Transit Gateway. */ transitGatewayId: string | core.StringOut; /** * (Required) The underlaying VPC attachment */ transportAttachmentId: string | core.StringOut; } export class Ec2TransitGatewayConnect extends core.Resource { /** * EC2 Transit Gateway Attachment identifier */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) The tunnel protocol. Valida values: `gre`. Default is `gre`. */ @core.attr(String) public protocol?: string | core.StringOut; /** * (Optional) Key-value tags for the EC2 Transit Gateway Connect. If configured with a provider [`defau * lt_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#defa * ult_tags-configuration-block) present, tags with matching keys will overwrite those defined at the p * rovider-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 Connect should be associated with the EC2 Transit Gateway association * default route table. This cannot be configured or perform drift detection with Resource Access Mana * ger shared EC2 Transit Gateways. Default value: `true`. */ @core.attr(Boolean) public transitGatewayDefaultRouteTableAssociation?: boolean | core.BooleanOut; /** * (Optional) Boolean whether the Connect should propagate routes with the EC2 Transit Gateway propagat * ion default route table. This cannot be configured or perform drift detection with Resource Access M * anager 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) The underlaying VPC attachment */ @core.attr(String) public transportAttachmentId!: string | core.StringOut; constructor(name: string, args?: Ec2TransitGatewayConnectArgs) { super(name, "aws_ec2_transit_gateway_connect", args); } public override getNamespace(): string { return "aws_transit_gateway"; } }