Skip to content

SearchCertificates

Source: src/AWS/ACM/SearchCertificates.ts

Runtime binding for acm:SearchCertificates.

An account-level operation (no certificate argument) that searches the ACM certificates in us-east-1 with richer filtering than ListCertificates — X.509 attributes, status, type, and renewal eligibility can be combined in a filter statement. Provide the implementation with Effect.provide(AWS.ACM.SearchCertificatesHttp).

// init — account-level binding takes no resource
const searchCertificates = yield* AWS.ACM.SearchCertificates();
// runtime
const result = yield* searchCertificates({
FilterStatement: { Filter: { CertificateArn: certificateArn } },
});
const arns = (result.Results ?? []).map((r) => r.CertificateArn);