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

export interface DsCertificateArgs {
  id?: string | core.StringOut;

  latestValidTill?: boolean | core.BooleanOut;
}

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

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

  @core.attr(Boolean, { computed: true })
  public customerOverride!: boolean | core.BooleanOut;

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

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

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

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

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

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

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

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