import * as core from "@terrascript/core";

export interface Ec2TransitGatewayVpcAttachmentArgs extends core.ResourceArgs {
  applianceModeSupport?: string | core.StringOut;

  dnsSupport?: string | core.StringOut;

  ipv6Support?: string | core.StringOut;

  subnetIds: core.Array<string> | core.ArrayOut<core.StringOut>;

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

  transitGatewayDefaultRouteTableAssociation?: boolean | core.BooleanOut;

  transitGatewayDefaultRouteTablePropagation?: boolean | core.BooleanOut;

  transitGatewayId: string | core.StringOut;

  vpcId: string | core.StringOut;
}

export class Ec2TransitGatewayVpcAttachment extends core.Resource<Ec2TransitGatewayVpcAttachmentArgs> {
  @core.attr(String)
  public applianceModeSupport?: string | core.StringOut;

  @core.attr(String)
  public dnsSupport?: string | core.StringOut;

  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  @core.attr(String)
  public ipv6Support?: string | core.StringOut;

  @core.attr(String, { kind: "array" })
  public subnetIds!: core.Array<string> | core.ArrayOut<core.StringOut>;

  @core.attr(String, { kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  @core.attr(String, { computed: true, kind: "map" })
  public tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

  @core.attr(Boolean)
  public transitGatewayDefaultRouteTableAssociation?: boolean | core.BooleanOut;

  @core.attr(Boolean)
  public transitGatewayDefaultRouteTablePropagation?: boolean | core.BooleanOut;

  @core.attr(String)
  public transitGatewayId!: string | core.StringOut;

  @core.attr(String)
  public vpcId!: string | core.StringOut;

  @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";
  }
}
