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

export interface UserSshKeyArgs extends core.ResourceArgs {
  encoding: string | core.StringOut;

  publicKey: string | core.StringOut;

  status?: string | core.StringOut;

  username: string | core.StringOut;
}

export class UserSshKey extends core.Resource<UserSshKeyArgs> {
  @core.attr(String)
  public encoding!: string | core.StringOut;

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

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

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

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

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

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

  constructor(name: string, args?: UserSshKeyArgs) {
    super(name, "aws_iam_user_ssh_key", args);
  }

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