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

export interface DsCertificateArgs {
  arn: string | core.StringOut;

  certificateAuthorityArn: string | core.StringOut;
}

export class DsCertificate extends core.Data<DsCertificateArgs> {
  @core.attr(String)
  public arn!: string | core.StringOut;

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

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

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

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

  constructor(name: string, args?: DsCertificateArgs) {
    super(name, "aws_acmpca_certificate", args);
  }

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