Abstract
Protected
Abstract
_getProtected
Abstract
_getRetrieve multiple parameter values from the underlying parameter store.
Parameter name
Optional
options: unknownOptions to pass to the underlying implementated method
Retrieve a parameter value or return the cached value.
Parameter name
Optional
options: GetOptionsInterfaceOptions to configure maximum age, trasformation, AWS SDK options, or force fetch
Retrieve multiple parameter values or return the cached values.
Parameters path
Optional
options: GetMultipleOptionsInterfaceOptions to configure maximum age, trasformation, AWS SDK options, or force fetch
Base class for all providers.
As an abstract class, it should not be used directly, but rather extended by other providers.
It implements the common logic for all providers, such as caching, transformation, etc. Each provider that extends this class must implement the
_get
and_getMultiple
abstract methods.These methods are responsible for retrieving the values from the underlying parameter store. They are called by the
get
andgetMultiple
methods, which are responsible for caching and transformation.If there are multiple calls to the same parameter but in a different transform, they will be stored multiple times. This allows us to optimize by transforming the data only once per retrieval, thus there is no need to transform cached values multiple times.
However, this means that we need to make multiple calls to the underlying parameter store if we need to return it in different transforms.
Since the number of supported transform is small and the probability that a given parameter will always be used in a specific transform, this should be an acceptable tradeoff.