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

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

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

  mostRecent?: boolean | core.BooleanOut;

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

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

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

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

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

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

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

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

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

  @core.attr(Boolean)
  public mostRecent?: boolean | core.BooleanOut;

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

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

  @core.attr(String, { computed: true, kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

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

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

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