Skip to content

DescribeCertificate

Source: src/AWS/ACM/DescribeCertificate.ts

Runtime binding for acm:DescribeCertificate.

Bind this operation to a Certificate to get a callable that reads the certificate’s live metadata — status, domain validation state, renewal summary, expiry — from inside a function runtime. Useful for expiry monitors and issuance dashboards. Provide the implementation with Effect.provide(AWS.ACM.DescribeCertificateHttp).

// init — bind the operation to the certificate
const describeCertificate = yield* AWS.ACM.DescribeCertificate(certificate);
// runtime
const { Certificate: detail } = yield* describeCertificate();
const status = detail?.Status;
const notAfter = detail?.NotAfter;