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

export interface DsUserSshKeyArgs {
  encoding: string | core.StringOut;

  sshPublicKeyId: string | core.StringOut;

  username: string | core.StringOut;
}

export class DsUserSshKey extends core.Data<DsUserSshKeyArgs> {
  @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, { computed: true })
  public publicKey!: string | core.StringOut;

  @core.attr(String)
  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?: DsUserSshKeyArgs) {
    super(name, "aws_iam_user_ssh_key", args);
  }

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