Select the embedded Flag Document
Supply the retrieved configuration
import { appConfigAgentStore } from '@aws-lambda-powertools/feature-flags/appconfig-agent';
import { search } from '@aws-lambda-powertools/feature-flags/envelope';
const store = appConfigAgentStore({
application: 'my-app', environment: 'prod', name: 'features',
envelope: 'powertools_json(settings).flags', envelopeSearchFn: search,
});
Searches a configuration with JMESPath and the Powertools custom functions.
Install
@aws-lambda-powertools/jmespathto use this optional helper.