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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
@NonNull String
Delimiter after prefix and application name.@NonNull String
boolean
Search additional paths suffixed with each active environment.boolean
Whether paths for the Default Application name should be searched or not.void
setCommonApplicationName
(@NonNull String commonApplicationName) Default Application name.void
setDelimiter
(@NonNull String delimiter) Delimiter for AWS Distributed Configuration resources names.void
Prefix for AWS Distributed Configuration resources names.void
setPrefixes
(@NonNull List<String> prefixes) List of prefixes for AWS Distributed Configuration resources names.void
setSearchActiveEnvironments
(boolean searchActiveEnvironments) Search additional paths suffixed with each active environment.void
setSearchCommonApplication
(boolean searchCommonApplication) Whether paths for theAwsDistributedConfiguration.getCommonApplicationName()
should be searched or not.
-
Field Details
-
PREFIX
- See Also:
-
DEFAULT_PREFIX
- See Also:
-
DEFAULT_COMMON_APPLICATION_NAME
- See Also:
-
DEFAULT_DELIMETER
- See Also:
-
DEFAULT_SEARCH_COMMON_APPLICATION
public static final boolean DEFAULT_SEARCH_COMMON_APPLICATION- See Also:
-
DEFAULT_SEARCH_ACTIVE_ENVIRONMENTS
public static final boolean DEFAULT_SEARCH_ACTIVE_ENVIRONMENTS- See Also:
-
-
Constructor Details
-
AwsDistributedConfigurationProperties
public AwsDistributedConfigurationProperties()
-
-
Method Details
-
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 interfaceAwsDistributedConfiguration
- Returns:
- Delimiter after
AwsDistributedConfiguration.getPrefix()
and application name for AWS Distributed Configuration resources names.
-
setDelimiter
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 interfaceAwsDistributedConfiguration
- 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 interfaceAwsDistributedConfiguration
- Returns:
- Whether paths for the
AwsDistributedConfiguration.getCommonApplicationName()
should be searched or not.
-
setSearchCommonApplication
public void setSearchCommonApplication(boolean searchCommonApplication) Whether paths for theAwsDistributedConfiguration.getCommonApplicationName()
should be searched or not. Default value (true).- Parameters:
searchCommonApplication
- Whether paths for theAwsDistributedConfiguration.getCommonApplicationName()
should be searched or not.
-
getPrefixes
- Specified by:
getPrefixes
in interfaceAwsDistributedConfiguration
- Returns:
- List of prefixes for AWS Distributed Configuration resources names. If it is non-empty,
AwsDistributedConfiguration.getPrefix()
is not used.
-
setPrefixes
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
- Specified by:
getPrefix
in interfaceAwsDistributedConfiguration
- Returns:
- Prefix for AWS Distributed Configuration resources names. For example `/config/`.
If
AwsDistributedConfiguration.getPrefixes()
returns non-empty list, this value is ignored.
-
setPrefix
Prefix for AWS Distributed Configuration resources names. Default ("/config/")- Parameters:
prefix
- Prefix for AWS Distributed Configuration resources names. For example `/config/`
-
getCommonApplicationName
- Specified by:
getCommonApplicationName
in interfaceAwsDistributedConfiguration
- Returns:
- Default Application name. e.g. application
-
setCommonApplicationName
Default Application name. Default value ("application").- Parameters:
commonApplicationName
- Default Application name. e.g. application
-