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

export interface CertificateValidationArgs extends core.ResourceArgs {
  certificateArn: string | core.StringOut;

  validationRecordFqdns?: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export class CertificateValidation extends core.Resource<CertificateValidationArgs> {
  @core.attr(String)
  public certificateArn!: string | core.StringOut;

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

  @core.attr(String, { kind: "array" })
  public validationRecordFqdns?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

  constructor(name: string, args?: CertificateValidationArgs) {
    super(name, "aws_acm_certificate_validation", args);
  }

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