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

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

export class DsEc2LocalGatewayVirtualInterfaceGroups extends core.Data<DsEc2LocalGatewayVirtualInterfaceGroupsArgs> {
  @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: "array" })
  public ids!: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

  constructor(
    name: string,
    args?: DsEc2LocalGatewayVirtualInterfaceGroupsArgs
  ) {
    super(name, "aws_ec2_local_gateway_virtual_interface_groups", args);
  }

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