import * as core from "@terrascript/core"; export interface Ec2TransitGatewayArgs extends core.ResourceArgs { /** * (Optional) Private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is * 64512` to `65534` for 16-bit ASNs and `4200000000` to `4294967294` for 32-bit ASNs. Default value: * 64512`. */ amazonSideAsn?: number | core.NumberOut; /** * (Optional) Whether resource attachment requests are automatically accepted. Valid values: `disable`, * enable`. Default value: `disable`. */ autoAcceptSharedAttachments?: string | core.StringOut; /** * (Optional) Whether resource attachments are automatically associated with the default association ro * ute table. Valid values: `disable`, `enable`. Default value: `enable`. */ defaultRouteTableAssociation?: string | core.StringOut; /** * (Optional) Whether resource attachments automatically propagate routes to the default propagation ro * ute table. Valid values: `disable`, `enable`. Default value: `enable`. */ defaultRouteTablePropagation?: string | core.StringOut; /** * (Optional) Description of the EC2 Transit Gateway. */ description?: string | core.StringOut; /** * (Optional) Whether DNS support is enabled. Valid values: `disable`, `enable`. Default value: `enable * . */ dnsSupport?: string | core.StringOut; /** * (Optional) Whether Multicast support is enabled. Required to use `ec2_transit_gateway_multicast_doma * in`. Valid values: `disable`, `enable`. Default value: `disable`. */ multicastSupport?: string | core.StringOut; /** * (Optional) Key-value tags for the EC2 Transit Gateway. If configured with a provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags * configuration-block) present, tags with matching keys will overwrite those defined at 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) One or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size /24 CIDR blo * ck or larger for IPv4, or a size /64 CIDR block or larger for IPv6. */ transitGatewayCidrBlocks?: core.Array | core.ArrayOut; /** * (Optional) Whether VPN Equal Cost Multipath Protocol support is enabled. Valid values: `disable`, `e * nable`. Default value: `enable`. */ vpnEcmpSupport?: string | core.StringOut; } export class Ec2TransitGateway extends core.Resource { /** * (Optional) Private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is * 64512` to `65534` for 16-bit ASNs and `4200000000` to `4294967294` for 32-bit ASNs. Default value: * 64512`. */ @core.attr(Number) public amazonSideAsn?: number | core.NumberOut; /** * EC2 Transit Gateway Amazon Resource Name (ARN) */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * Identifier of the default association route table */ @core.attr(String, { computed: true }) public associationDefaultRouteTableId!: string | core.StringOut; /** * (Optional) Whether resource attachment requests are automatically accepted. Valid values: `disable`, * enable`. Default value: `disable`. */ @core.attr(String) public autoAcceptSharedAttachments?: string | core.StringOut; /** * (Optional) Whether resource attachments are automatically associated with the default association ro * ute table. Valid values: `disable`, `enable`. Default value: `enable`. */ @core.attr(String) public defaultRouteTableAssociation?: string | core.StringOut; /** * (Optional) Whether resource attachments automatically propagate routes to the default propagation ro * ute table. Valid values: `disable`, `enable`. Default value: `enable`. */ @core.attr(String) public defaultRouteTablePropagation?: string | core.StringOut; /** * (Optional) Description of the EC2 Transit Gateway. */ @core.attr(String) public description?: 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 identifier */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) Whether Multicast support is enabled. Required to use `ec2_transit_gateway_multicast_doma * in`. Valid values: `disable`, `enable`. Default value: `disable`. */ @core.attr(String) public multicastSupport?: string | core.StringOut; /** * Identifier of the AWS account that owns the EC2 Transit Gateway */ @core.attr(String, { computed: true }) public ownerId!: string | core.StringOut; /** * Identifier of the default propagation route table */ @core.attr(String, { computed: true }) public propagationDefaultRouteTableId!: string | core.StringOut; /** * (Optional) Key-value tags for the EC2 Transit Gateway. If configured with a provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags * configuration-block) present, tags with matching keys will overwrite those defined at 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) One or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size /24 CIDR blo * ck or larger for IPv4, or a size /64 CIDR block or larger for IPv6. */ @core.attr(String, { kind: "array" }) public transitGatewayCidrBlocks?: | core.Array | core.ArrayOut; /** * (Optional) Whether VPN Equal Cost Multipath Protocol support is enabled. Valid values: `disable`, `e * nable`. Default value: `enable`. */ @core.attr(String) public vpnEcmpSupport?: string | core.StringOut; constructor(name: string, args?: Ec2TransitGatewayArgs) { super(name, "aws_ec2_transit_gateway", args); } public override getNamespace(): string { return "aws_transit_gateway"; } }