ImportCertificate
Source:
src/AWS/ACM/ImportCertificate.ts
Runtime binding for acm:ImportCertificate.
An account-level operation (no certificate argument) that imports an
externally issued certificate into ACM in us-east-1 — the classic
rotation flow where a function obtains a renewed certificate from an
outside CA and re-imports it over the existing ACM entry by passing its
CertificateArn. Provide the implementation with
Effect.provide(AWS.ACM.ImportCertificateHttp).
Importing Certificates
Section titled “Importing Certificates”// init — account-level binding takes no resourceconst importCertificate = yield* AWS.ACM.ImportCertificate();
// runtime — re-import a renewed certificate over the existing ARNconst encoder = new TextEncoder();const result = yield* importCertificate({ CertificateArn: existingArn, Certificate: encoder.encode(certificatePem), PrivateKey: Redacted.make(encoder.encode(privateKeyPem)), CertificateChain: encoder.encode(chainPem),});