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

export interface UserLoginProfileArgs extends core.ResourceArgs {
  passwordLength?: number | core.NumberOut;

  passwordResetRequired?: boolean | core.BooleanOut;

  pgpKey?: string | core.StringOut;

  user: string | core.StringOut;
}

export class UserLoginProfile extends core.Resource<UserLoginProfileArgs> {
  @core.attr(String, { computed: true })
  public encryptedPassword!: string | core.StringOut;

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

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

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

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

  @core.attr(Boolean, { computed: true })
  public passwordResetRequired?: boolean | core.BooleanOut;

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

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

  constructor(name: string, args?: UserLoginProfileArgs) {
    super(name, "aws_iam_user_login_profile", args);
  }

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