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

export interface FiltersArgs extends core.SchemaArgs {
  field: string | core.StringOut;

  value: string | core.StringOut;
}

export class Filters extends core.Schema<FiltersArgs> {
  @core.attr(String)
  public field!: string | core.StringOut;

  @core.attr(String)
  public value!: string | core.StringOut;
}

export interface DsProductArgs {
  filters: core.Array<Filters> | core.ArrayOut<Filters>;

  serviceCode: string | core.StringOut;
}

export class DsProduct extends core.Data<DsProductArgs> {
  @core.attr(Filters, { kind: "array" })
  public filters!: core.Array<Filters> | core.ArrayOut<Filters>;

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

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

  @core.attr(String)
  public serviceCode!: string | core.StringOut;

  constructor(name: string, args?: DsProductArgs) {
    super(name, "aws_pricing_product", args);
  }

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