Class AwsDistributedConfigurationProperties

java.lang.Object
io.micronaut.aws.distributedconfiguration.AwsDistributedConfigurationProperties
All Implemented Interfaces:
AwsDistributedConfiguration

@ConfigurationProperties("aws.distributed-configuration") public class AwsDistributedConfigurationProperties extends Object implements AwsDistributedConfiguration
ConfigurationProperties implementation of AwsDistributedConfiguration.
Since:
2.8.0
Author:
Sergio del Amo
  • Field Details

  • Constructor Details

    • AwsDistributedConfigurationProperties

      public AwsDistributedConfigurationProperties()
  • Method Details

    • getDelimiter

      @NonNull public @NonNull String getDelimiter()
      Description copied from interface: AwsDistributedConfiguration
      Delimiter after prefix and application name. For /config/application_dev/micronaut.security.oauth2.clients.mycompanyauth.client-secret delimiter will be / The character between /config/application_dev and micronaut.security.oauth2.clients.mycompanyauth.client-secret
      Specified by:
      getDelimiter in interface AwsDistributedConfiguration
      Returns:
      Delimiter after AwsDistributedConfiguration.getPrefix() and application name for AWS Distributed Configuration resources names.
    • setDelimiter

      public void setDelimiter(@NonNull @NonNull String delimiter)
      Delimiter for AWS Distributed Configuration resources names. Default value ("/").
      Parameters:
      delimiter - Delimiter for AWS Distributed Configuration resources names.
    • isSearchActiveEnvironments

      public boolean isSearchActiveEnvironments()
      Search additional paths suffixed with each active environment. e.g. /config/application_ec2 Default value (true).
      Specified by:
      isSearchActiveEnvironments in interface AwsDistributedConfiguration
      Returns:
      Search active environment paths
    • setSearchActiveEnvironments

      public void setSearchActiveEnvironments(boolean searchActiveEnvironments)
      Search additional paths suffixed with each active environment. e.g. /config/application_ec2 Default value (true).
      Parameters:
      searchActiveEnvironments - True if paths suffixed with micronaut environments should be searched
    • isSearchCommonApplication

      public boolean isSearchCommonApplication()
      Whether paths for the Default Application name should be searched or not. Default value (true).
      Specified by:
      isSearchCommonApplication in interface AwsDistributedConfiguration
      Returns:
      Whether paths for the AwsDistributedConfiguration.getCommonApplicationName() should be searched or not.
    • setSearchCommonApplication

      public void setSearchCommonApplication(boolean searchCommonApplication)
      Whether paths for the AwsDistributedConfiguration.getCommonApplicationName() should be searched or not. Default value (true).
      Parameters:
      searchCommonApplication - Whether paths for the AwsDistributedConfiguration.getCommonApplicationName() should be searched or not.
    • getPrefixes

      @NonNull public @NonNull List<String> getPrefixes()
      Specified by:
      getPrefixes in interface AwsDistributedConfiguration
      Returns:
      List of prefixes for AWS Distributed Configuration resources names. If it is non-empty, AwsDistributedConfiguration.getPrefix() is not used.
    • setPrefixes

      public void setPrefixes(@NonNull @NonNull List<String> prefixes)
      List of prefixes for AWS Distributed Configuration resources names. If it is non-empty, AwsDistributedConfiguration.getPrefix() is not used.
      Parameters:
      prefixes - the list of prefixes
    • getPrefix

      @NonNull public @NonNull String getPrefix()
      Specified by:
      getPrefix in interface AwsDistributedConfiguration
      Returns:
      Prefix for AWS Distributed Configuration resources names. For example `/config/`. If AwsDistributedConfiguration.getPrefixes() returns non-empty list, this value is ignored.
    • setPrefix

      public void setPrefix(@NonNull @NonNull String prefix)
      Prefix for AWS Distributed Configuration resources names. Default ("/config/")
      Parameters:
      prefix - Prefix for AWS Distributed Configuration resources names. For example `/config/`
    • getCommonApplicationName

      @NonNull public @NonNull String getCommonApplicationName()
      Specified by:
      getCommonApplicationName in interface AwsDistributedConfiguration
      Returns:
      Default Application name. e.g. application
    • setCommonApplicationName

      public void setCommonApplicationName(@NonNull @NonNull String commonApplicationName)
      Default Application name. Default value ("application").
      Parameters:
      commonApplicationName - Default Application name. e.g. application