Class SSMProviderBuilder

java.lang.Object
software.amazon.lambda.powertools.parameters.ssm.SSMProviderBuilder

public class SSMProviderBuilder extends Object
Builder for the SSMProvider
  • Constructor Details

    • SSMProviderBuilder

      public SSMProviderBuilder()
  • Method Details

    • build

      public SSMProvider build()
      Create a SSMProvider instance.
      Returns:
      a SSMProvider
    • withClient

      public SSMProviderBuilder withClient(software.amazon.awssdk.services.ssm.SsmClient client)
      Set custom SsmClient to pass to the SSMProvider.
      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

      public SSMProviderBuilder withCacheManager(CacheManager cacheManager)
      Provide a CacheManager to the SSMProvider
      Parameters:
      cacheManager - the manager that will handle the cache of parameters
      Returns:
      the builder to chain calls (eg.
      builder.withCacheManager().build()
      )
    • withTransformationManager

      public SSMProviderBuilder withTransformationManager(TransformationManager transformationManager)
      Provide a transformationManager to the SSMProvider
      Parameters:
      transformationManager - the manager that will handle transformation of parameters
      Returns:
      the builder to chain calls (eg.
      builder.withTransformationManager().build()
      )