Class GcpSecretManagerAutoConfiguration

java.lang.Object
com.google.cloud.spring.autoconfigure.secretmanager.GcpSecretManagerAutoConfiguration

@AutoConfiguration @EnableConfigurationProperties(GcpSecretManagerProperties.class) @ConditionalOnClass(SecretManagerTemplate.class) @ConditionalOnProperty(value="spring.cloud.gcp.secretmanager.enabled", matchIfMissing=true) public class GcpSecretManagerAutoConfiguration extends Object
Autoconfiguration for GCP Secret Manager.
Since:
4.0.1
  • Constructor Details

  • Method Details

    • secretManagerClient

      @Bean @ConditionalOnMissingBean public com.google.cloud.secretmanager.v1.SecretManagerServiceClient secretManagerClient() throws IOException
      Throws:
      IOException
    • secretManagerTemplate

      @Bean @ConditionalOnMissingBean public SecretManagerTemplate secretManagerTemplate(com.google.cloud.secretmanager.v1.SecretManagerServiceClient client)