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

export interface UserArgs extends core.ResourceArgs {
  authenticationType: string | core.StringOut;

  enabled?: boolean | core.BooleanOut;

  firstName?: string | core.StringOut;

  lastName?: string | core.StringOut;

  sendEmailNotification?: boolean | core.BooleanOut;

  userName: string | core.StringOut;
}

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: UserArgs) {
    super(name, "aws_appstream_user", args);
  }

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