Class SSMProviderBuilder
java.lang.Object
software.amazon.lambda.powertools.parameters.ssm.SSMProviderBuilder
Builder for the
SSMProvider-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create aSSMProviderinstance.withCacheManager(CacheManager cacheManager) Provide a CacheManager to theSSMProviderwithClient(software.amazon.awssdk.services.ssm.SsmClient client) Set customSsmClientto pass to theSSMProvider.withTransformationManager(TransformationManager transformationManager) Provide a transformationManager to theSSMProvider
-
Constructor Details
-
SSMProviderBuilder
public SSMProviderBuilder()
-
-
Method Details
-
build
Create aSSMProviderinstance.- Returns:
- a
SSMProvider
-
withClient
Set customSsmClientto pass to theSSMProvider.
Use it if you want to customize the region or any other part of the client.- Parameters:
client- Custom client- Returns:
- the builder to chain calls (eg.
builder.withClient().build()
)
-
withCacheManager
Provide a CacheManager to theSSMProvider- Parameters:
cacheManager- the manager that will handle the cache of parameters- Returns:
- the builder to chain calls (eg.
builder.withCacheManager().build()
)
-
withTransformationManager
Provide a transformationManager to theSSMProvider- Parameters:
transformationManager- the manager that will handle transformation of parameters- Returns:
- the builder to chain calls (eg.
builder.withTransformationManager().build()
)
-