GetConfiguration
Source:
src/AWS/AppConfig/GetConfiguration.ts
Fetch the live, deployed configuration for a Lambda (or other AWS runtime)
via the AppConfig data plane. Backed by StartConfigurationSession +
GetLatestConfiguration: the binding starts a session on first use, caches
the poll token, and returns the latest content on each call.
Provide AppConfig.GetConfigurationHttp on the hosting function’s Effect
(Effect.provide(AppConfig.GetConfigurationHttp)) to satisfy the binding.
Reading Live Configuration
Section titled “Reading Live Configuration”const getConfig = yield* AppConfig.GetConfiguration(app, env, profile);const { content, contentType } = yield* getConfig();const settings = JSON.parse(content ?? "{}");