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
  • 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 interface io.micronaut.discovery.config.ConfigurationClient
      Parameters:
      environment - The environment
      Returns:
      property source objects by environment.
    • getDescription

      public String getDescription()
      Description.
      Specified by:
      getDescription in interface io.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

      protected AWSParameterQueryProvider getQueryProvider()
      Returns:
      query provider
    • setQueryProvider

      protected void setQueryProvider(AWSParameterQueryProvider queryProvider)
      Parameters:
      queryProvider - query provider