Skip to content

ServerCertificate

Source: src/AWS/IAM/ServerCertificate.ts

An IAM server certificate.

ServerCertificate uploads and tracks a TLS certificate bundle for legacy IAM-integrated services. The private key is write-only and should be provided as a redacted value when possible.

const certificate = yield* ServerCertificate("ApiTlsCertificate", {
certificateBody: "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----",
privateKey: Redacted.make(
"-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----",
),
certificateChain: "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----",
});