Package io.micronaut.aws.secretsmanager
Class SecretsManagerConfigurationClient
java.lang.Object
io.micronaut.aws.distributedconfiguration.AwsDistributedConfigurationClient
io.micronaut.aws.secretsmanager.SecretsManagerConfigurationClient
- All Implemented Interfaces:
io.micronaut.core.naming.Described
,io.micronaut.discovery.config.ConfigurationClient
@Requires(beans={AwsDistributedConfiguration.class,SecretsManagerGroupNameAwareKeyValueFetcher.class})
@Singleton
public class SecretsManagerConfigurationClient
extends AwsDistributedConfigurationClient
Distributed configuration client for AWS Secrets Manager.
- Since:
- 2.8.0
- Author:
- Sergio del Amo
- See Also:
-
Field Summary
Fields inherited from interface io.micronaut.discovery.config.ConfigurationClient
CONFIGURATION_PREFIX, ENABLED, READ_TIMEOUT
-
Constructor Summary
ConstructorDescriptionSecretsManagerConfigurationClient
(AwsDistributedConfiguration awsDistributedConfiguration, SecretsManagerKeyValueFetcher secretsManagerKeyValueFetcher, @Nullable io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, SecretsManagerConfiguration secretsManagerConfiguration) -
Method Summary
Methods inherited from class io.micronaut.aws.distributedconfiguration.AwsDistributedConfigurationClient
getPropertySources
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.naming.Described
getDescription
-
Constructor Details
-
SecretsManagerConfigurationClient
public SecretsManagerConfigurationClient(AwsDistributedConfiguration awsDistributedConfiguration, SecretsManagerKeyValueFetcher secretsManagerKeyValueFetcher, @Nullable @Nullable io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, SecretsManagerConfiguration secretsManagerConfiguration) - Parameters:
awsDistributedConfiguration
- AWS Distributed ConfigurationsecretsManagerKeyValueFetcher
- Secrets Manager Key Value FetcherapplicationConfiguration
- Application ConfigurationsecretsManagerConfiguration
- Secrets Configuration
-
-
Method Details
-
adaptPropertyKey
Description copied from class:AwsDistributedConfigurationClient
Adapts an original key. For example, key could be appended to a prefix in order to avoid naming ambiguity. *- Specified by:
adaptPropertyKey
in classAwsDistributedConfigurationClient
- Parameters:
originalKey
- an original property keygroupName
- a property group name- Returns:
- An adapted property key (e.g. key that has been appended to a prefix)
-
getPropertySourceName
- Specified by:
getPropertySourceName
in classAwsDistributedConfigurationClient
- Returns:
- The name of the property source
-
getDescription
-