App Configuration Notification Template
App Configuration is a centralized feature management and configuration service for use with web and mobile applications, microservices, and distributed environments.
To learn more about the App Configuration destination, see App Configuration
Constructing an App Configuration notification template
Construct the template block. Make sure that the template is a well-formed JSON that adheres to the Handlebars template syntax and semantics.
Handlebars is a templating language that allows for dynamic content generation within templates. Handlebars can be used to customize notification messages by using template variables and conditional logic. See Handlebars for more information on the various helpers available while creating templates.
Make sure you include "enabled":"true" or "enabled":"false" in your template depending on how you want your feature flag to behave when a notification is sent to the App Configuration
destination. Without this, there will be no action in the destination when the notification is sent and you may face errors when sending notifications from the API.
App Configuration notification template example
{
{{#if (equal severity "LOW")}}
"enabled": false
{{else}}
"enabled": true
{{/if}}
}