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

export interface UserProfileArgs extends core.ResourceArgs {
  allowSelfManagement?: boolean | core.BooleanOut;

  sshPublicKey?: string | core.StringOut;

  sshUsername: string | core.StringOut;

  userArn: string | core.StringOut;
}

export class UserProfile extends core.Resource<UserProfileArgs> {
  @core.attr(Boolean)
  public allowSelfManagement?: boolean | core.BooleanOut;

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

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

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

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

  constructor(name: string, args?: UserProfileArgs) {
    super(name, "aws_opsworks_user_profile", args);
  }

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