Package io.micronaut.aws.secretsmanager
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets the group key prefix.void
setSecretName
(String secretName) Sets secret name.
-
Constructor Details
-
SecretConfiguration
public SecretConfiguration()
-
-
Method Details
-
setSecretName
Sets secret name.- Parameters:
secretName
- secret name
-
setPrefix
Sets the group key prefix.- Parameters:
prefix
- prefix
-
getSecretName
- Returns:
- a secret name
-
getPrefix
- Returns:
- a secret key group prefix
-