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
  • Constructor Details

    • SecretsManagerGroupNameAwareKeyValueFetcher

      public SecretsManagerGroupNameAwareKeyValueFetcher(software.amazon.awssdk.services.secretsmanager.SecretsManagerClient secretsClient, io.micronaut.json.JsonMapper objectMapper)
      Parameters:
      secretsClient - Secrets Client
      objectMapper - 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 class SecretsManagerKeyValueFetcher
      Parameters:
      secret - a secret list entry
      result - a map that collects the results