ValidateConfiguration
Source:
src/AWS/AppConfig/ValidateConfiguration.ts
Validate a configuration version against a configuration profile’s
validators from a Lambda (or other AWS runtime). Pairs with
CreateHostedConfigurationVersion + StartDeployment: write
the new content, validate it, then roll it out. Fails with a typed
BadRequestException when a validator rejects the content; succeeds with
an empty response when validation passes (including when the profile has
no validators).
Provide AppConfig.ValidateConfigurationHttp on the hosting function’s
Effect to implement the binding.
Writing Configuration at Runtime
Section titled “Writing Configuration at Runtime”const validate = yield* AppConfig.ValidateConfiguration(app, profile);yield* validate({ ConfigurationVersion: "2" });