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

export interface Ec2TransitGatewayArgs extends core.ResourceArgs {
  amazonSideAsn?: number | core.NumberOut;

  autoAcceptSharedAttachments?: string | core.StringOut;

  defaultRouteTableAssociation?: string | core.StringOut;

  defaultRouteTablePropagation?: string | core.StringOut;

  description?: string | core.StringOut;

  dnsSupport?: string | core.StringOut;

  multicastSupport?: string | core.StringOut;

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

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

  transitGatewayCidrBlocks?: core.Array<string> | core.ArrayOut<core.StringOut>;

  vpnEcmpSupport?: string | core.StringOut;
}

export class Ec2TransitGateway extends core.Resource<Ec2TransitGatewayArgs> {
  @core.attr(Number)
  public amazonSideAsn?: number | core.NumberOut;

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

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

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

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

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

  @core.attr(String)
  public description?: 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 multicastSupport?: string | core.StringOut;

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

  @core.attr(String, { computed: true })
  public propagationDefaultRouteTableId!: 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(String, { kind: "array" })
  public transitGatewayCidrBlocks?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

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