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

export interface SigningCertificateArgs extends core.ResourceArgs {
  certificateBody: string | core.StringOut;

  status?: string | core.StringOut;

  userName: string | core.StringOut;
}

export class SigningCertificate extends core.Resource<SigningCertificateArgs> {
  @core.attr(String)
  public certificateBody!: string | core.StringOut;

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

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

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

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

  constructor(name: string, args?: SigningCertificateArgs) {
    super(name, "aws_iam_signing_certificate", args);
  }

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