@Requires(classes={com.amazonaws.ClientConfiguration.class,io.micronaut.configuration.aws.AWSClientConfiguration.class}) @Requires(env="ec2") @Requires(property="aws.client.system-manager.parameterstore.enabled",value="true",defaultValue="false") @ConfigurationProperties(value="system-manager.parameterstore") public class AWSParameterStoreConfiguration extends io.micronaut.configuration.aws.AWSClientConfiguration implements Toggleable
Modifier and Type | Field and Description |
---|---|
static String |
CONFIGURATION_PREFIX
The prefix for configuration.
|
static String |
ENABLED
Constant for whether AWS parameter store is enabled or not.
|
Constructor and Description |
---|
AWSParameterStoreConfiguration() |
Modifier and Type | Method and Description |
---|---|
String |
getRootHierarchyPath()
This is the default for the root hierarchy on the parameter store.
|
boolean |
getUseSecureParameters() |
boolean |
isEnabled()
Enable or disable this feature.
|
void |
setEnabled(boolean enabled)
Enable or disable distributed configuration with AWS Parameter Store.
|
void |
setRootHierarchyPath(String rootHierarchyPath)
The the root hierarchy on the parameter store.
|
void |
setUseSecureParameters(boolean useSecureParameters)
Use auto-decryption via MKS for SecureString parameters.
|
public static final String ENABLED
public static final String CONFIGURATION_PREFIX
public boolean isEnabled()
isEnabled
in interface Toggleable
public void setEnabled(boolean enabled)
enabled
- enable this feature@Nonnull public String getRootHierarchyPath()
public void setRootHierarchyPath(@Nonnull 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 used