import * as core from "@terrascript/core"; export interface DsCertificateArgs { /** * (Required) The domain of the certificate to look up. If no certificate is found with this name, an e * rror will be returned. */ domain: string | core.StringOut; /** * (Optional) A list of key algorithms to filter certificates. By default, ACM does not return all cert * ificate types when searching. See the [ACM API Reference](https://docs.aws.amazon.com/acm/latest/API * Reference/API_CertificateDetail.html#ACM-Type-CertificateDetail-KeyAlgorithm) for supported key algo * rithms. */ keyTypes?: core.Array | core.ArrayOut; /** * (Optional) If set to true, it sorts the certificates matched by previous criteria by the NotBefore f * ield, returning only the most recent one. If set to false, it returns an error if more than one cert * ificate is found. Defaults to false. */ mostRecent?: boolean | core.BooleanOut; /** * (Optional) A list of statuses on which to filter the returned list. Valid values are `PENDING_VALIDA * TION`, `ISSUED`, */ statuses?: core.Array | core.ArrayOut; /** * A mapping of tags for the resource. */ tags?: core.Map | core.MapOut; /** * (Optional) A list of types on which to filter the returned list. Valid values are `AMAZON_ISSUED` an * d `IMPORTED`. */ types?: core.Array | core.ArrayOut; } export class DsCertificate extends core.Data { /** * Amazon Resource Name (ARN) of the found certificate, suitable for referencing in other resources tha * t support ACM certificates. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The ACM-issued certificate. */ @core.attr(String, { computed: true }) public certificate!: string | core.StringOut; /** * Certificates forming the requested ACM-issued certificate's chain of trust. The chain consists of th * e certificate of the issuing CA and the intermediate certificates of any other subordinate CAs. */ @core.attr(String, { computed: true }) public certificateChain!: string | core.StringOut; /** * (Required) The domain of the certificate to look up. If no certificate is found with this name, an e * rror will be returned. */ @core.attr(String) public domain!: string | core.StringOut; /** * Amazon Resource Name (ARN) of the found certificate, suitable for referencing in other resources tha * t support ACM certificates. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) A list of key algorithms to filter certificates. By default, ACM does not return all cert * ificate types when searching. See the [ACM API Reference](https://docs.aws.amazon.com/acm/latest/API * Reference/API_CertificateDetail.html#ACM-Type-CertificateDetail-KeyAlgorithm) for supported key algo * rithms. */ @core.attr(String, { kind: "array" }) public keyTypes?: core.Array | core.ArrayOut; /** * (Optional) If set to true, it sorts the certificates matched by previous criteria by the NotBefore f * ield, returning only the most recent one. If set to false, it returns an error if more than one cert * ificate is found. Defaults to false. */ @core.attr(Boolean) public mostRecent?: boolean | core.BooleanOut; /** * Status of the found certificate. */ @core.attr(String, { computed: true }) public status!: string | core.StringOut; /** * (Optional) A list of statuses on which to filter the returned list. Valid values are `PENDING_VALIDA * TION`, `ISSUED`, */ @core.attr(String, { kind: "array" }) public statuses?: core.Array | core.ArrayOut; /** * A mapping of tags for the resource. */ @core.attr(String, { computed: true, kind: "map" }) public tags?: core.Map | core.MapOut; /** * (Optional) A list of types on which to filter the returned list. Valid values are `AMAZON_ISSUED` an * d `IMPORTED`. */ @core.attr(String, { kind: "array" }) public types?: core.Array | core.ArrayOut; constructor(name: string, args?: DsCertificateArgs) { super(name, "aws_acm_certificate", args); } public override getNamespace(): string { return "aws_acm"; } }