A wrapper around @aws-sdk/client-appconfigdata to provide background polling and caching.
Initialize:
const poller = new Poller({
dataClient: dataClient,
sessionConfig: {
ApplicationIdentifier: 'MyApp',
EnvironmentIdentifier: 'Test',
ConfigurationProfileIdentifier: 'Config1',
},
logger: console.log,
});
await poller.start();
Fetch:
const value = poller.getConfigurationString().latestValue;
Licensed under the MIT license. See the LICENSE file for details.