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

export interface AccessKeyArgs extends core.ResourceArgs {
  pgpKey?: string | core.StringOut;

  status?: string | core.StringOut;

  user: string | core.StringOut;
}

export class AccessKey extends core.Resource<AccessKeyArgs> {
  @core.attr(String, { computed: true })
  public createDate!: string | core.StringOut;

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: AccessKeyArgs) {
    super(name, "aws_iam_access_key", args);
  }

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