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

  groupId?: string | core.StringOut;

  identityStoreId: string | core.StringOut;
}

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

  @core.attr(Filter, { kind: "array" })
  public filter!: core.Array<Filter> | core.ArrayOut<Filter>;

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

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

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

  constructor(name: string, args?: DsGroupArgs) {
    super(name, "aws_identitystore_group", args);
  }

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