Interface LambdaConfig.HotReload

Enclosing class:
LambdaConfig

public static interface LambdaConfig.HotReload
Configuration for hot-reload development mode.
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional allow-list of absolute path prefixes.
    boolean
    When true, the magic bucket name hot-reload triggers a bind-mount of the S3Key path (a Docker-host absolute path) into the Lambda container instead of extracting a ZIP.
  • Method Details

    • enabled

      boolean enabled()
      When true, the magic bucket name hot-reload triggers a bind-mount of the S3Key path (a Docker-host absolute path) into the Lambda container instead of extracting a ZIP. Changes on disk are visible on the next invocation without re-deploying. Disabled by default — when false, hot-reload is an ordinary (non-existent) bucket and returns NoSuchBucket as usual.
      Returns:
      true if hot-reload is enabled
    • allowedPaths

      Optional<List<String>> allowedPaths()
      Optional allow-list of absolute path prefixes. When non-empty, the S3Key supplied to a hot-reload CreateFunction/UpdateFunctionCode must start with one of these prefixes. Empty = all absolute paths are accepted.
      Returns:
      the list of allowed path prefixes, or empty if unrestricted