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

export interface DsUserArgs {
  accessString?: string | core.StringOut;

  engine?: string | core.StringOut;

  noPasswordRequired?: boolean | core.BooleanOut;

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

  userId: string | core.StringOut;

  userName?: string | core.StringOut;
}

export class DsUser extends core.Data<DsUserArgs> {
  @core.attr(String)
  public accessString?: string | core.StringOut;

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

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

  @core.attr(Boolean)
  public noPasswordRequired?: boolean | core.BooleanOut;

  @core.attr(String, { kind: "array" })
  public passwords?: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

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

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