Class SecretsManagerPropertySources

java.lang.Object
io.awspring.cloud.autoconfigure.config.secretsmanager.SecretsManagerPropertySources

public class SecretsManagerPropertySources extends Object
Provides prefix config import support.
Author:
EddĂș MelĂ©ndez, Maciej Walkowiak, Arun Patra
  • Constructor Details

    • SecretsManagerPropertySources

      public SecretsManagerPropertySources()
  • Method Details

    • createPropertySource

      @Nullable public SecretsManagerPropertySource createPropertySource(String context, boolean optional, software.amazon.awssdk.services.secretsmanager.SecretsManagerClient client)
      Creates property source for given context.
      Parameters:
      context - property source context equivalent to the secret name
      optional - if creating context should fail with exception if secret cannot be loaded
      client - Secret Manager client
      Returns:
      a property source or null if secret could not be loaded and optional is set to true