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

export interface Ec2TransitGatewayConnectArgs extends core.ResourceArgs {
  protocol?: string | 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;

  transportAttachmentId: string | core.StringOut;
}

export class Ec2TransitGatewayConnect extends core.Resource<Ec2TransitGatewayConnectArgs> {
  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  @core.attr(String)
  public protocol?: string | 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 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";
  }
}
