@Requires(env="ec2") @Requires(property="aws.client.system-manager.parameterstore.enabled",value="true",defaultValue="false")
@ConfigurationProperties(value="aws.client.system-manager.parameterstore")
public class AWSParameterStoreConfiguration
extends java.lang.Object
implements io.micronaut.core.util.Toggleable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIGURATION_PREFIX
The prefix for configuration.
|
static java.lang.String |
ENABLED
Constant for whether AWS parameter store is enabled or not.
|
Constructor and Description |
---|
AWSParameterStoreConfiguration() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRootHierarchyPath()
This is the default for the root hierarchy on the parameter store.
|
boolean |
getUseSecureParameters() |
boolean |
isEnabled()
Enable or disable this feature.
|
boolean |
isSearchActiveEnvironments() |
void |
setEnabled(boolean enabled)
Enable or disable distributed configuration with AWS Parameter Store.
|
void |
setRootHierarchyPath(java.lang.String rootHierarchyPath)
The the root hierarchy on the parameter store.
|
void |
setSearchActiveEnvironments(boolean searchActiveEnvironments)
Search additional paths suffixed with each active environment.
|
void |
setUseSecureParameters(boolean useSecureParameters)
Use auto-decryption via MKS for SecureString parameters.
|
public static final java.lang.String ENABLED
public static final java.lang.String CONFIGURATION_PREFIX
public boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
public void setEnabled(boolean enabled)
enabled
- enable this feature@NonNull public java.lang.String getRootHierarchyPath()
public void setRootHierarchyPath(@NonNull java.lang.String rootHierarchyPath)
rootHierarchyPath
- root prefix used for all calls to get Parameter store valuespublic boolean getUseSecureParameters()
public void setUseSecureParameters(boolean useSecureParameters)
useSecureParameters
- True if secure parameters should be usedpublic boolean isSearchActiveEnvironments()
public void setSearchActiveEnvironments(boolean searchActiveEnvironments)
searchActiveEnvironments
- True if paths suffixed with micronaut profiles should be searched