Class SecretsManagerConfigDataLocationResolver
java.lang.Object
io.awspring.cloud.autoconfigure.config.AbstractAwsConfigDataLocationResolver<SecretsManagerConfigDataResource>
io.awspring.cloud.autoconfigure.config.secretsmanager.SecretsManagerConfigDataLocationResolver
- All Implemented Interfaces:
org.springframework.boot.context.config.ConfigDataLocationResolver<SecretsManagerConfigDataResource>
public class SecretsManagerConfigDataLocationResolver
extends AbstractAwsConfigDataLocationResolver<SecretsManagerConfigDataResource>
Resolves config data locations in AWS Secrets Manager.
- Since:
- 2.3.0
- Author:
- EddĂș MelĂ©ndez, Maciej Walkowiak, Arun Patra
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSecretsManagerConfigDataLocationResolver
(org.springframework.boot.logging.DeferredLogFactory deferredLogFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected software.amazon.awssdk.services.secretsmanager.SecretsManagerClient
createAwsSecretsManagerClient
(org.springframework.boot.BootstrapContext context) protected String
protected SecretsManagerProperties
loadProperties
(org.springframework.boot.context.properties.bind.Binder binder) resolve
(org.springframework.boot.context.config.ConfigDataLocationResolverContext resolverContext, org.springframework.boot.context.config.ConfigDataLocation location) Methods inherited from class io.awspring.cloud.autoconfigure.config.AbstractAwsConfigDataLocationResolver
configure, getCustomContexts, isResolvable, loadAwsProperties, loadCredentialsProperties, loadRegionProperties, registerAndPromoteBean, registerBean, registerBean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.boot.context.config.ConfigDataLocationResolver
resolveProfileSpecific
-
Field Details
-
PREFIX
AWS Secrets Manager Config Data prefix.- See Also:
-
-
Constructor Details
-
SecretsManagerConfigDataLocationResolver
public SecretsManagerConfigDataLocationResolver(org.springframework.boot.logging.DeferredLogFactory deferredLogFactory)
-
-
Method Details
-
getPrefix
- Specified by:
getPrefix
in classAbstractAwsConfigDataLocationResolver<SecretsManagerConfigDataResource>
-
resolve
public List<SecretsManagerConfigDataResource> resolve(org.springframework.boot.context.config.ConfigDataLocationResolverContext resolverContext, org.springframework.boot.context.config.ConfigDataLocation location) throws org.springframework.boot.context.config.ConfigDataLocationNotFoundException, org.springframework.boot.context.config.ConfigDataResourceNotFoundException - Specified by:
resolve
in interfaceorg.springframework.boot.context.config.ConfigDataLocationResolver<SecretsManagerConfigDataResource>
- Overrides:
resolve
in classAbstractAwsConfigDataLocationResolver<SecretsManagerConfigDataResource>
- Throws:
org.springframework.boot.context.config.ConfigDataLocationNotFoundException
org.springframework.boot.context.config.ConfigDataResourceNotFoundException
-
createAwsSecretsManagerClient
protected software.amazon.awssdk.services.secretsmanager.SecretsManagerClient createAwsSecretsManagerClient(org.springframework.boot.BootstrapContext context) -
loadProperties
protected SecretsManagerProperties loadProperties(org.springframework.boot.context.properties.bind.Binder binder)
-