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

export interface DsUserPoolsArgs {
  /**
   * (required) Name of the cognito user pools. Name is not a unique attribute for cognito user pool, so
   * multiple pools might be returned with given name. If the pool name is expected to be unique, you can
   * reference the pool id via ```tolist(data.aws_cognito_user_pools.selected.ids)[0]```
   */
  name: string | core.StringOut;
}

export class DsUserPools extends core.Data<DsUserPoolsArgs> {
  /**
   * The set of cognito user pool Amazon Resource Names (ARNs).
   */
  @core.attr(String, { computed: true, kind: "array" })
  public arns!: core.Array<string> | core.ArrayOut<core.StringOut>;

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

  /**
   * The set of cognito user pool ids.
   */
  @core.attr(String, { computed: true, kind: "array" })
  public ids!: core.Array<string> | core.ArrayOut<core.StringOut>;

  /**
   * (required) Name of the cognito user pools. Name is not a unique attribute for cognito user pool, so
   * multiple pools might be returned with given name. If the pool name is expected to be unique, you can
   * reference the pool id via ```tolist(data.aws_cognito_user_pools.selected.ids)[0]```
   */
  @core.attr(String)
  public name!: string | core.StringOut;

  constructor(name: string, args?: DsUserPoolsArgs) {
    super(name, "aws_cognito_user_pools", args);
  }

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