@Requires(beans=software.amazon.awssdk.services.secretsmanager.SecretsManagerClient.class) @Singleton public class SecretsManagerKeyValueFetcher extends java.lang.Object implements KeyValueFetcher
KeyValueFetcher
implementations for AWS Secrets Manager.Constructor and Description |
---|
SecretsManagerKeyValueFetcher(software.amazon.awssdk.services.secretsmanager.SecretsManagerClient secretsClient,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.util.Map> |
keyValuesByPrefix(java.lang.String prefix) |
public SecretsManagerKeyValueFetcher(software.amazon.awssdk.services.secretsmanager.SecretsManagerClient secretsClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
secretsClient
- Secrets ClientobjectMapper
- Object Mapper@NonNull public java.util.Optional<java.util.Map> keyValuesByPrefix(@NonNull java.lang.String prefix)
keyValuesByPrefix
in interface KeyValueFetcher
prefix
- AWS Distributed Configuration Resource's name prefix. E.g. /config/application_dev/