ListCertificates
Source:
src/AWS/ACM/ListCertificates.ts
Runtime binding for acm:ListCertificates.
An account-level operation (no certificate argument) that enumerates the
ACM certificates in us-east-1 — the region where alchemy-managed
certificates live. Useful for expiry monitors that sweep every certificate
in the account. Note that the default filter only returns RSA_2048
certificates; pass Includes.keyTypes to widen it. Provide the
implementation with Effect.provide(AWS.ACM.ListCertificatesHttp).
Inspecting Certificates
Section titled “Inspecting Certificates”// init — account-level binding takes no resourceconst listCertificates = yield* AWS.ACM.ListCertificates();
// runtimeconst result = yield* listCertificates({ CertificateStatuses: ["ISSUED"],});const expiring = (result.CertificateSummaryList ?? []).filter( (summary) => summary.NotAfter !== undefined && summary.NotAfter.getTime() - Date.now() < 30 * 24 * 60 * 60 * 1000,);