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

export interface DsServerCertificateArgs {
  latest?: boolean | core.BooleanOut;

  name?: string | core.StringOut;

  namePrefix?: string | core.StringOut;

  pathPrefix?: string | core.StringOut;
}

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

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

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsServerCertificateArgs) {
    super(name, "aws_iam_server_certificate", args);
  }

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