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

  mostRecent?: boolean | core.BooleanOut;

  name?: string | core.StringOut;

  snapshotIds?: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

  @core.attr(String, { computed: true })
  public creationTime!: string | 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(Boolean)
  public mostRecent?: boolean | core.BooleanOut;

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

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

  @core.attr(String, { kind: "array" })
  public snapshotIds?: core.Array<string> | core.ArrayOut<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 volumeId!: string | core.StringOut;

  constructor(name: string, args?: DsOpenzfsSnapshotArgs) {
    super(name, "aws_fsx_openzfs_snapshot", args);
  }

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