Skip to content

RevokeCertificate

Source: src/AWS/ACM/RevokeCertificate.ts

Runtime binding for acm:RevokeCertificate.

Bind this operation to a Certificate to get a callable that revokes a previously exported public certificate — e.g. from a security-automation function reacting to a leaked private key. Revocation is permanent. Provide the implementation with Effect.provide(AWS.ACM.RevokeCertificateHttp).

// init — bind the operation to the certificate
const revokeCertificate = yield* AWS.ACM.RevokeCertificate(certificate);
// runtime
yield* revokeCertificate({ RevocationReason: "KEY_COMPROMISE" });