CreateHostedConfigurationVersion
Source:
src/AWS/AppConfig/CreateHostedConfigurationVersion.ts
Write a new configuration version to the AppConfig hosted store from a
Lambda (or other AWS runtime). Pairs with StartDeployment to build
runtime feature-flag/configuration management services: write the new
content, then roll it out.
Provide AppConfig.CreateHostedConfigurationVersionHttp on the hosting
function’s Effect to implement the binding.
Writing Configuration at Runtime
Section titled “Writing Configuration at Runtime”const createVersion = yield* AppConfig.CreateHostedConfigurationVersion( app, profile,);const version = yield* createVersion({ Content: JSON.stringify({ featureX: false }), ContentType: "application/json",});// version.VersionNumber -> 2