Skip to content

A wrapper around @aws-sdk/client-appconfigdata to provide background polling and caching.

License

Notifications You must be signed in to change notification settings

tarehart/aws-appconfig-poller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

cdfc2ae · Dec 10, 2023

History

7 Commits
Dec 10, 2023
Dec 10, 2023
Dec 10, 2023
Dec 10, 2023
Dec 9, 2023
Dec 9, 2023
Dec 9, 2023
Dec 9, 2023
Dec 9, 2023
Dec 10, 2023
Dec 10, 2023
Dec 9, 2023
Dec 10, 2023
Dec 10, 2023
Dec 10, 2023
Dec 9, 2023

Repository files navigation

aws-appconfig-poller

Build Status - GitHub Actions

A wrapper around @aws-sdk/client-appconfigdata to provide background polling and caching.

Usage

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;

License

Licensed under the MIT license. See the LICENSE file for details.

About

A wrapper around @aws-sdk/client-appconfigdata to provide background polling and caching.

Resources

License

Stars

Watchers

Forks

Packages

No packages published