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

export interface CertificateAuthorityCertificateArgs extends core.ResourceArgs {
  certificate: string | core.StringOut;

  certificateAuthorityArn: string | core.StringOut;

  certificateChain?: string | core.StringOut;
}

export class CertificateAuthorityCertificate extends core.Resource<CertificateAuthorityCertificateArgs> {
  @core.attr(String)
  public certificate!: string | core.StringOut;

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

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

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

  constructor(name: string, args?: CertificateAuthorityCertificateArgs) {
    super(name, "aws_acmpca_certificate_authority_certificate", args);
  }

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