UNPKG

cdk-encrypted-secret

Version:

CDK Construct that creates an AWS Secret Manager Secret and sets the value from an encrypted Ciphertext.

4 lines (3 loc) 273 B
import { fromStatic as convertToProvider } from "@smithy/property-provider"; const isFunction = (func) => typeof func === "function"; export const fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : convertToProvider(defaultValue);