Class AWSParameterStoreConfigClient
java.lang.Object
io.micronaut.discovery.aws.parameterstore.AWSParameterStoreConfigClient
- All Implemented Interfaces:
io.micronaut.core.naming.Described
,io.micronaut.discovery.config.ConfigurationClient
@Singleton
@Requires(env="ec2") @Requires(beans={AWSParameterStoreConfiguration.class,software.amazon.awssdk.services.ssm.SsmAsyncClient.class})
public class AWSParameterStoreConfigClient
extends Object
implements io.micronaut.discovery.config.ConfigurationClient
A
ConfigurationClient
implementation for AWS ParameterStore.- Since:
- 1.0
- Author:
- Rvanderwerf, graemerocher
-
Field Summary
Fields inherited from interface io.micronaut.discovery.config.ConfigurationClient
CONFIGURATION_PREFIX, ENABLED, READ_TIMEOUT
-
Method Summary
Modifier and TypeMethodDescriptionprotected software.amazon.awssdk.services.ssm.SsmAsyncClient
Description.org.reactivestreams.Publisher<io.micronaut.context.env.PropertySource>
getPropertySources
(io.micronaut.context.env.Environment environment) Get your PropertySources from AWS Parameter Store.protected AWSParameterQueryProvider
protected void
setClient
(software.amazon.awssdk.services.ssm.SsmAsyncClient client) protected void
setQueryProvider
(AWSParameterQueryProvider queryProvider) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.naming.Described
getDescription
-
Method Details
-
getPropertySources
public org.reactivestreams.Publisher<io.micronaut.context.env.PropertySource> getPropertySources(io.micronaut.context.env.Environment environment) Get your PropertySources from AWS Parameter Store. Property sources are expected to be set up in this way: \ config \ micronaut \ environment name \ app name \ If you want to change the base \configuration\micronaut set the property aws.system-manager.parameterStore.rootHierarchyPath- Specified by:
getPropertySources
in interfaceio.micronaut.discovery.config.ConfigurationClient
- Parameters:
environment
- The environment- Returns:
- property source objects by environment.
-
getDescription
Description.- Specified by:
getDescription
in interfaceio.micronaut.core.naming.Described
- Returns:
- the description
-
setClient
protected void setClient(software.amazon.awssdk.services.ssm.SsmAsyncClient client) - Parameters:
client
- SsmAsyncClient client
-
getClient
protected software.amazon.awssdk.services.ssm.SsmAsyncClient getClient()- Returns:
- SsmAsyncClient client
-
getQueryProvider
- Returns:
- query provider
-
setQueryProvider
- Parameters:
queryProvider
- query provider
-