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

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

  sendEmailNotification?: boolean | core.BooleanOut;

  stackName: string | core.StringOut;

  userName: string | core.StringOut;
}

export class UserStackAssociation extends core.Resource<UserStackAssociationArgs> {
  @core.attr(String)
  public authenticationType!: string | core.StringOut;

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

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

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

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

  constructor(name: string, args?: UserStackAssociationArgs) {
    super(name, "aws_appstream_user_stack_association", args);
  }

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