Package io.micronaut.aws.secretsmanager
Class SecretsManagerConfigurationProperties
java.lang.Object
io.micronaut.aws.secretsmanager.SecretsManagerConfigurationProperties
- All Implemented Interfaces:
SecretsManagerConfiguration
,io.micronaut.core.util.Toggleable
@ConfigurationProperties("aws.secretsmanager")
public class SecretsManagerConfigurationProperties
extends Object
implements SecretsManagerConfiguration
ConfigurationProperties
implementation of SecretsManagerConfiguration
.- Since:
- 2.8.0
- Author:
- Sergio del Amo
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Secret configuration holder that allows for flexibility in secret key naming in the Micronaut context to avoid a potential keys name collision. -
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
The default enable value.static final String
Prefix for Amazon EC2 configuration metadata. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionProvide a list of secret configurations that allows for flexibility in secret key naming.boolean
void
setEnabled
(boolean enabled) Default value (true).
-
Field Details
-
PREFIX
Prefix for Amazon EC2 configuration metadata.- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
secrets
-
-
Constructor Details
-
SecretsManagerConfigurationProperties
public SecretsManagerConfigurationProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
- Returns:
- Whether the AWS Secrets Manager configuration is enabled
-
setEnabled
public void setEnabled(boolean enabled) Default value (true).- Parameters:
enabled
- Enable or disable the AWS Secrets Manager configuration.
-
getSecrets
Description copied from interface:SecretsManagerConfiguration
Provide a list of secret configurations that allows for flexibility in secret key naming. This is provided by an option to define a key group prefix for any secret name.- Specified by:
getSecrets
in interfaceSecretsManagerConfiguration
- Returns:
- the AWS Secrets Manager secrets configuration.
-