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

  localGatewayId?: string | core.StringOut;

  localGatewayRouteTableId?: string | core.StringOut;

  outpostArn?: string | core.StringOut;

  state?: string | core.StringOut;

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

export class DsEc2LocalGatewayRouteTable extends core.Data<DsEc2LocalGatewayRouteTableArgs> {
  @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 localGatewayId?: string | core.StringOut;

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

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

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

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

  constructor(name: string, args?: DsEc2LocalGatewayRouteTableArgs) {
    super(name, "aws_ec2_local_gateway_route_table", args);
  }

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