Interface PythonFunctionProps

All Superinterfaces:
EventInvokeConfigOptions, FunctionOptions,
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-17T05:10:20.049Z") @Stability(Experimental) public interface PythonFunctionProps extends, FunctionOptions
(experimental) Properties for a PythonFunction.


 String entry = "/path/to/function";
 DockerImage image = DockerImage.fromBuild(entry);
 PythonFunction.Builder.create(this, "function")
                 .buildArgs(Map.of("PIP_INDEX_URL", "https://your.index.url/simple/", "PIP_EXTRA_INDEX_URL", "https://your.extra-index.url/simple/"))
  • Method Details

    • getEntry

      @Stability(Experimental) @NotNull String getEntry()
      (experimental) Path to the source of the function or the location for dependencies.
    • getRuntime

      @Stability(Experimental) @NotNull Runtime getRuntime()
      (experimental) The runtime environment.

      Only runtimes of the Python family are supported.

    • getBundling

      @Stability(Experimental) @Nullable default BundlingOptions getBundling()
      (experimental) Bundling options to use for this function.

      Use this to specify custom bundling options like the bundling Docker image, asset hash type, custom hash, architecture, etc.

      Default: - Use the default bundling Docker image, with x86_64 architecture.

    • getHandler

      @Stability(Experimental) @Nullable default String getHandler()
      (experimental) The name of the exported handler in the index file.

      Default: handler

    • getIndex

      @Stability(Experimental) @Nullable default String getIndex()
      (experimental) The path (relative to entry) to the index file containing the exported handler.


    • builder

      @Stability(Experimental) static PythonFunctionProps.Builder builder()
      a PythonFunctionProps.Builder of PythonFunctionProps