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

export interface FilterArgs extends core.SchemaArgs {
  name: string | core.StringOut;

  values: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export class Filter extends core.Schema<FilterArgs> {
  @core.attr(String)
  public name!: string | core.StringOut;

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

export interface DsEc2TransitGatewayArgs {
  filter?: core.Array<Filter> | core.ArrayOut<Filter>;

  id?: string | core.StringOut;

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

export class DsEc2TransitGateway extends core.Data<DsEc2TransitGatewayArgs> {
  @core.attr(Number, { computed: true })
  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, { computed: true })
  public autoAcceptSharedAttachments!: string | core.StringOut;

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

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

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

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

  @core.attr(Filter, { kind: "array" })
  public filter?: core.Array<Filter> | core.ArrayOut<Filter>;

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

  @core.attr(String, { computed: true })
  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, { computed: true, kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

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

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

  constructor(name: string, args?: DsEc2TransitGatewayArgs) {
    super(name, "aws_ec2_transit_gateway", args);
  }

  public override getNamespace(): string {
    return "aws_transit_gateway";
  }
}
