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

export interface SshKeyArgs extends core.ResourceArgs {
  body: string | core.StringOut;

  serverId: string | core.StringOut;

  userName: string | core.StringOut;
}

export class SshKey extends core.Resource<SshKeyArgs> {
  @core.attr(String)
  public body!: string | core.StringOut;

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

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

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

  constructor(name: string, args?: SshKeyArgs) {
    super(name, "aws_transfer_ssh_key", args);
  }

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