@Generated(value="jsii-pacmak/1.11.0 (build 1e9b8e1)", date="2020-08-27T08:37:46.810Z") @Stability(value=Experimental) public interface ParcelBaseOptions extends software.amazon.jsii.JsiiSerializable
EXPERIMENTAL
| Modifier and Type | Interface and Description |
|---|---|
static class |
ParcelBaseOptions.Builder
A builder for
ParcelBaseOptions |
static class |
ParcelBaseOptions.Jsii$Proxy
An implementation for
ParcelBaseOptions |
| Modifier and Type | Method and Description |
|---|---|
static ParcelBaseOptions.Builder |
builder() |
default Map<String,String> |
getBuildArgs()
Build arguments to pass when building the bundling image.
|
default String |
getCacheDir()
The cache directory (relative to the project root).
|
default List<String> |
getExternalModules()
A list of modules that should be considered as externals (already available in the runtime).
|
default Boolean |
getForceDockerBundling()
Force bundling in a Docker container even if local bundling is possible.This is useful if your function relies on node modules that should be installed (`nodeModules`) in a Lambda compatible environment.
|
default Boolean |
getMinify()
Whether to minify files when bundling.
|
default List<String> |
getNodeModules()
A list of modules that should be installed instead of bundled.
|
default Map<String,String> |
getParcelEnvironment()
Environment variables defined when Parcel runs.
|
default String |
getParcelVersion()
The version of Parcel to use when running in a Docker container.
|
default String |
getProjectRoot()
The root of the project.
|
default Boolean |
getSourceMaps()
Whether to include source maps when bundling.
|
@Stability(value=Experimental) @Nullable default Map<String,String> getBuildArgs()
Default: - no build arguments are passed
EXPERIMENTAL
@Stability(value=Experimental) @Nullable default String getCacheDir()
Parcel uses a filesystem cache for fast rebuilds.
Default: - `.parcel-cache` in the working directory
EXPERIMENTAL
@Stability(value=Experimental) @Nullable default List<String> getExternalModules()
Default: ['aws-sdk']
EXPERIMENTAL
@Stability(value=Experimental) @Nullable default Boolean getForceDockerBundling()
Default: false
EXPERIMENTAL
@Stability(value=Experimental) @Nullable default Boolean getMinify()
Default: false
EXPERIMENTAL
@Stability(value=Experimental) @Nullable default List<String> getNodeModules()
Modules are installed in a Lambda compatible environnment.
Default: - all modules are bundled
EXPERIMENTAL
@Stability(value=Experimental) @Nullable default Map<String,String> getParcelEnvironment()
Default: - no environment variables are defined.
EXPERIMENTAL
@Stability(value=Experimental) @Nullable default String getParcelVersion()
Default: - 2.0.0-beta.1
EXPERIMENTAL
@Stability(value=Experimental) @Nullable default String getProjectRoot()
This will be used as the source for the volume
mounted in the Docker container. If you specify this prop, ensure that
this path includes entry and any module/dependencies used by your
function otherwise bundling will not be possible.
Default: - the closest path containing a .git folder
EXPERIMENTAL
@Stability(value=Experimental) @Nullable default Boolean getSourceMaps()
Default: false
EXPERIMENTAL
@Stability(value=Experimental) static ParcelBaseOptions.Builder builder()
ParcelBaseOptions.Builder of ParcelBaseOptionsCopyright © 2020. All rights reserved.