Package io.micronaut.aws.secretsmanager
Class SecretsManagerGroupNameAwareKeyValueFetcher
java.lang.Object
io.micronaut.aws.secretsmanager.SecretsManagerKeyValueFetcher
io.micronaut.aws.secretsmanager.SecretsManagerGroupNameAwareKeyValueFetcher
- All Implemented Interfaces:
KeyValueFetcher
,SecretsKeyValueFetcher
@Requires(beans=software.amazon.awssdk.services.secretsmanager.SecretsManagerClient.class)
@Singleton
@Replaces(SecretsManagerKeyValueFetcher.class)
public class SecretsManagerGroupNameAwareKeyValueFetcher
extends SecretsManagerKeyValueFetcher
Key Value fetcher for AWS Secrets Manager that is aware of Secret Key Value group names.
- Since:
- 3.8.0
- Author:
- sbodvanski
-
Field Summary
Fields inherited from class io.micronaut.aws.secretsmanager.SecretsManagerKeyValueFetcher
objectMapper, secretsClient
-
Constructor Summary
ConstructorDescriptionSecretsManagerGroupNameAwareKeyValueFetcher
(software.amazon.awssdk.services.secretsmanager.SecretsManagerClient secretsClient, io.micronaut.json.JsonMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addSecretDetailsToResults
(software.amazon.awssdk.services.secretsmanager.model.SecretListEntry secret, Map result) Add secret details to the result map.Methods inherited from class io.micronaut.aws.secretsmanager.SecretsManagerKeyValueFetcher
fetchSecretValue, keyValuesByPrefix
-
Constructor Details
-
SecretsManagerGroupNameAwareKeyValueFetcher
public SecretsManagerGroupNameAwareKeyValueFetcher(software.amazon.awssdk.services.secretsmanager.SecretsManagerClient secretsClient, io.micronaut.json.JsonMapper objectMapper) - Parameters:
secretsClient
- Secrets ClientobjectMapper
- Object Mapper
-
-
Method Details
-
addSecretDetailsToResults
@NonNull protected void addSecretDetailsToResults(software.amazon.awssdk.services.secretsmanager.model.SecretListEntry secret, Map result) Description copied from class:SecretsManagerKeyValueFetcher
Add secret details to the result map.- Overrides:
addSecretDetailsToResults
in classSecretsManagerKeyValueFetcher
- Parameters:
secret
- a secret list entryresult
- a map that collects the results
-