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

export interface FilterArgs extends core.SchemaArgs {
  attributePath: string | core.StringOut;

  attributeValue: string | core.StringOut;
}

export class Filter extends core.Schema<FilterArgs> {
  @core.attr(String)
  public attributePath!: string | core.StringOut;

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

export interface DsUserArgs {
  filter: core.Array<Filter> | core.ArrayOut<Filter>;

  identityStoreId: string | core.StringOut;

  userId?: string | core.StringOut;
}

export class DsUser extends core.Data<DsUserArgs> {
  @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)
  public identityStoreId!: string | core.StringOut;

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

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

  constructor(name: string, args?: DsUserArgs) {
    super(name, "aws_identitystore_user", args);
  }

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