public class AwsSecretsManagerPropertySourceLocator extends Object implements org.springframework.cloud.bootstrap.config.PropertySourceLocator
CompositePropertySource
with various
AwsSecretsManagerPropertySource
instances based on active profiles, application
name and default context permutations. Mostly copied from Spring Cloud Consul's config
support.
Note: this class is used only by legacy Spring Cloud Bootstrap phase based config
loading.Constructor and Description |
---|
AwsSecretsManagerPropertySourceLocator(com.amazonaws.services.secretsmanager.AWSSecretsManager smClient,
AwsSecretsManagerProperties properties) |
AwsSecretsManagerPropertySourceLocator(String propertySourceName,
com.amazonaws.services.secretsmanager.AWSSecretsManager smClient,
AwsSecretsManagerProperties properties) |
Modifier and Type | Method and Description |
---|---|
List<String> |
getContexts() |
PropertySource<?> |
locate(Environment environment) |
public AwsSecretsManagerPropertySourceLocator(String propertySourceName, com.amazonaws.services.secretsmanager.AWSSecretsManager smClient, AwsSecretsManagerProperties properties)
public AwsSecretsManagerPropertySourceLocator(com.amazonaws.services.secretsmanager.AWSSecretsManager smClient, AwsSecretsManagerProperties properties)
public PropertySource<?> locate(Environment environment)
locate
in interface org.springframework.cloud.bootstrap.config.PropertySourceLocator
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.