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

  owner?: string | core.StringOut;
}

export class DsComponents extends core.Data<DsComponentsArgs> {
  @core.attr(String, { computed: true, kind: "array" })
  public arns!: core.Array<string> | core.ArrayOut<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, kind: "array" })
  public names!: core.Array<string> | core.ArrayOut<core.StringOut>;

  @core.attr(String)
  public owner?: string | core.StringOut;

  constructor(name: string, args?: DsComponentsArgs) {
    super(name, "aws_imagebuilder_components", args);
  }

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