Package io.awspring.cloud.parameterstore
Class ParameterStorePropertySource
java.lang.Object
org.springframework.core.env.PropertySource<T>
org.springframework.core.env.EnumerablePropertySource<T>
io.awspring.cloud.core.config.AwsPropertySource<ParameterStorePropertySource,software.amazon.awssdk.services.ssm.SsmClient>
io.awspring.cloud.parameterstore.ParameterStorePropertySource
public class ParameterStorePropertySource
extends AwsPropertySource<ParameterStorePropertySource,software.amazon.awssdk.services.ssm.SsmClient>
Recursively retrieves all parameters under the given context / path with decryption from the AWS Parameter Store
using the provided SSM client.
- Since:
- 2.0.0
- Author:
- Joris Kuipers, EddĂș MelĂ©ndez, Maciej Walkowiak
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.core.env.PropertySource
PropertySource.StubPropertySource
-
Field Summary
Fields inherited from class org.springframework.core.env.PropertySource
logger, name, source
-
Constructor Summary
ConstructorsConstructorDescriptionParameterStorePropertySource
(String context, software.amazon.awssdk.services.ssm.SsmClient ssmClient) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Creates a non-initialized copy of the property source.getProperty
(String name) String[]
void
init()
Initializes & fetches properties.Methods inherited from class org.springframework.core.env.EnumerablePropertySource
containsProperty
-
Constructor Details
-
ParameterStorePropertySource
public ParameterStorePropertySource(String context, software.amazon.awssdk.services.ssm.SsmClient ssmClient)
-
-
Method Details
-
init
public void init()Description copied from class:AwsPropertySource
Initializes & fetches properties.- Specified by:
init
in classAwsPropertySource<ParameterStorePropertySource,
software.amazon.awssdk.services.ssm.SsmClient>
-
copy
Description copied from class:AwsPropertySource
Creates a non-initialized copy of the property source.- Specified by:
copy
in classAwsPropertySource<ParameterStorePropertySource,
software.amazon.awssdk.services.ssm.SsmClient> - Returns:
- a property source
-
getPropertyNames
- Specified by:
getPropertyNames
in classEnumerablePropertySource<software.amazon.awssdk.services.ssm.SsmClient>
-
getProperty
- Specified by:
getProperty
in classPropertySource<software.amazon.awssdk.services.ssm.SsmClient>
-