Class SecretManagerConfigurationProperties
java.lang.Object
io.micronaut.gcp.secretmanager.configuration.SecretManagerConfigurationProperties
@ConfigurationProperties("gcp.secret-manager")
public class SecretManagerConfigurationProperties
extends Object
Configuration for SecretManager clients and config client integration.
- Since:
- 3.4.0
- Author:
- Vinicius Carvalho
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetKeys()@Nullable StringSpecifies the location of the regional secrets used to create aSecretManagerServiceClientspecific to the location endpoint.booleanWhether to load the default config files (`application`, `application_${env}`, `[APPLICATION_NAME], `[APPLICATION_NAME]_${env}`).voidsetCustomConfigs(Set<String> customConfigs) voidsetDefaultConfigEnabled(boolean defaultConfigEnabled) voidvoidsetLocation(@Nullable String location) 
- 
Field Details- 
PREFIX- See Also:
 
 
- 
- 
Constructor Details- 
SecretManagerConfigurationPropertiespublic SecretManagerConfigurationProperties()
 
- 
- 
Method Details- 
getCustomConfigs- Returns:
- Custom config files to be included as property sources.
 
- 
setCustomConfigs- Parameters:
- customConfigs- configs to be set
 
- 
getKeys- Returns:
- Set of secrets to be loaded
 
- 
setKeys- Parameters:
- keys- keys to be set
 
- 
isDefaultConfigEnabledpublic boolean isDefaultConfigEnabled()Whether to load the default config files (`application`, `application_${env}`, `[APPLICATION_NAME], `[APPLICATION_NAME]_${env}`). Default value: true.- Returns:
- Whether to load the default config files.
- Since:
- 6.1.0
 
- 
setDefaultConfigEnabledpublic void setDefaultConfigEnabled(boolean defaultConfigEnabled) - Parameters:
- defaultConfigEnabled- Whether to load the default config files.
- Since:
- 6.1.0
 
- 
getLocationSpecifies the location of the regional secrets used to create aSecretManagerServiceClientspecific to the location endpoint. If not provided, the client will be created using the global endpoint. It must be one of the available location for the regional endpoints. See Secret Manager locations for more information.- Returns:
- Location of the regional secrets
 
- 
setLocation- Parameters:
- location- Sets the location of the regional secrets
 
 
-