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

export interface DsRandomPasswordArgs {
  excludeCharacters?: string | core.StringOut;

  excludeLowercase?: boolean | core.BooleanOut;

  excludeNumbers?: boolean | core.BooleanOut;

  excludePunctuation?: boolean | core.BooleanOut;

  excludeUppercase?: boolean | core.BooleanOut;

  includeSpace?: boolean | core.BooleanOut;

  passwordLength?: number | core.NumberOut;

  randomPassword?: string | core.StringOut;

  requireEachIncludedType?: boolean | core.BooleanOut;
}

export class DsRandomPassword extends core.Data<DsRandomPasswordArgs> {
  @core.attr(String)
  public excludeCharacters?: string | core.StringOut;

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

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

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

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

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

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

  @core.attr(Number)
  public passwordLength?: number | core.NumberOut;

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

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

  constructor(name: string, args?: DsRandomPasswordArgs) {
    super(name, "aws_secretsmanager_random_password", args);
  }

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