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 DsEc2TransitGatewayRouteTableArgs {
  filter?: core.Array<Filter> | core.ArrayOut<Filter>;

  id?: string | core.StringOut;

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

export class DsEc2TransitGatewayRouteTable extends core.Data<DsEc2TransitGatewayRouteTableArgs> {
  @core.attr(String, { computed: true })
  public arn!: string | core.StringOut;

  @core.attr(Boolean, { computed: true })
  public defaultAssociationRouteTable!: boolean | core.BooleanOut;

  @core.attr(Boolean, { computed: true })
  public defaultPropagationRouteTable!: boolean | core.BooleanOut;

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

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

  constructor(name: string, args?: DsEc2TransitGatewayRouteTableArgs) {
    super(name, "aws_ec2_transit_gateway_route_table", args);
  }

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