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

export interface CertificateArgs extends core.ResourceArgs {
  certificateId: string | core.StringOut;

  certificatePem?: string | core.StringOut;

  certificateWallet?: string | core.StringOut;

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

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

export class Certificate extends core.Resource<CertificateArgs> {
  @core.attr(String, { computed: true })
  public certificateArn!: string | core.StringOut;

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

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

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

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

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

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

  constructor(name: string, args?: CertificateArgs) {
    super(name, "aws_dms_certificate", args);
  }

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