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

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

  email: string | core.StringOut;

  iamArn?: string | core.StringOut;

  identityType: string | core.StringOut;

  namespace?: string | core.StringOut;

  sessionName?: string | core.StringOut;

  userName?: string | core.StringOut;

  userRole: string | core.StringOut;
}

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

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

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

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

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

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

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

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

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

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

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

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