Class SecretsManagerConfigurationProperties.SecretConfiguration

java.lang.Object
io.micronaut.aws.secretsmanager.SecretsManagerConfigurationProperties.SecretConfiguration
Enclosing class:
SecretsManagerConfigurationProperties

@Introspected @EachProperty(value="secrets", list=true) public static class SecretsManagerConfigurationProperties.SecretConfiguration extends Object
Secret configuration holder that allows for flexibility in secret key naming in the Micronaut context to avoid a potential keys name collision. This is provided by an option to define a key group prefix for any secret name.
Since:
3.8.0
Author:
sbodvanski
  • Constructor Details

    • SecretConfiguration

      public SecretConfiguration()
  • Method Details

    • setSecretName

      public void setSecretName(String secretName)
      Sets secret name.
      Parameters:
      secretName - secret name
    • setPrefix

      public void setPrefix(String prefix)
      Sets the group key prefix.
      Parameters:
      prefix - prefix
    • getSecretName

      public String getSecretName()
      Returns:
      a secret name
    • getPrefix

      public String getPrefix()
      Returns:
      a secret key group prefix