import type * as acmpca from "@distilled.cloud/aws/acm-pca"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; import type { CertificateAuthority } from "./CertificateAuthority.ts"; export interface RevokeCertificateRequest extends Omit { } /** * Runtime binding for `acm-pca:RevokeCertificate`. * * Bind a {@link CertificateAuthority} inside a function runtime to revoke * certificates the CA issued (e.g. on credential compromise). Revoked * certificates appear in the CA's CRL/OCSP responses when revocation is * configured. The serial number is the hex serial from the issued * certificate. Provide `ACMPCA.RevokeCertificateHttp` on the Function * effect to implement the binding. * * ### Revoking Certificates * **Example:** Revoke a Compromised Certificate * ```typescript * // init * const revokeCertificate = yield* ACMPCA.RevokeCertificate(ca); * * // runtime * yield* revokeCertificate({ * CertificateSerial: serialHex, * RevocationReason: "KEY_COMPROMISE", * }); * ``` * * @binding */ export interface RevokeCertificate extends Binding.Service Effect.Effect<(request: RevokeCertificateRequest) => Effect.Effect>> { } export declare const RevokeCertificate: RevokeCertificate; //# sourceMappingURL=RevokeCertificate.d.ts.map