public class AppConfigProvider extends BaseProvider
ParamProvider
on top of the AppConfig service. AppConfig provides
a mechanism to retrieve and update configuration of applications over time.
AppConfig requires the user to create an application, environment, and configuration profile.
The configuration profile's value can then be retrieved, by key name, through this provider.
Because AppConfig is designed to handle rollouts of configuration over time, we must first establish a session for each key we wish to retrieve, and then poll the session for the latest value when the user re-requests it. This means we must hold a keyed set of session tokens and values.
cacheManager, PARAMETERS
Modifier and Type | Method and Description |
---|---|
static software.amazon.lambda.powertools.parameters.AppConfigProvider.Builder |
builder()
Create a builder that can be used to configure and create a
AppConfigProvider . |
protected java.util.Map<java.lang.String,java.lang.String> |
getMultipleValues(java.lang.String path)
Retrieve multiple parameter values from the underlying parameter store.
Abstract: Implement this method in a child class of BaseProvider |
protected java.lang.String |
getValue(java.lang.String key)
Retrieve the parameter value from the AppConfig parameter store.
|
defaultMaxAge, get, get, getMultiple, now, resetToDefaults, setTransformationManager, withMaxAge, withTransformation
public static software.amazon.lambda.powertools.parameters.AppConfigProvider.Builder builder()
AppConfigProvider
.AppConfigProvider.Builder
protected java.lang.String getValue(java.lang.String key)
getValue
in class BaseProvider
key
- key of the parameter. This ties back to AppConfig's 'profile' conceptprotected java.util.Map<java.lang.String,java.lang.String> getMultipleValues(java.lang.String path)
BaseProvider
BaseProvider
getMultipleValues
in class BaseProvider
path
- Parameter store pathCopyright © 2025. All rights reserved.