@Generated(value="jsii-pacmak/1.13.0 (build 385c325)", date="2020-10-07T19:57:40.498Z") @Stability(value=Experimental) public interface ParcelBaseOptions extends software.amazon.jsii.JsiiSerializable
| 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()
(experimental) Build arguments to pass when building the bundling image.
|
default BundlingDockerImage |
getBundlingDockerImage()
(experimental) A custom bundling Docker image.
|
default String |
getCacheDir()
(experimental) The cache directory (relative to the project root).
|
default List<String> |
getExternalModules()
(experimental) A list of modules that should be considered as externals (already available in the runtime).
|
default Boolean |
getForceDockerBundling()
(experimental) 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()
(experimental) Whether to minify files when bundling.
|
default List<String> |
getNodeModules()
(experimental) A list of modules that should be installed instead of bundled.
|
default Map<String,String> |
getParcelEnvironment()
(experimental) Environment variables defined when Parcel runs.
|
default String |
getParcelVersion()
(experimental) The version of Parcel to use when running in a Docker container.
|
default String |
getProjectRoot()
(experimental) The root of the project.
|
default Boolean |
getSourceMaps()
(experimental) Whether to include source maps when bundling.
|
@Stability(value=Experimental) @Nullable default Map<String,String> getBuildArgs()
Default: - no build arguments are passed
@Stability(value=Experimental) @Nullable default BundlingDockerImage getBundlingDockerImage()
This image should have Parcel installed at /. If you plan to use nodeModules
it should also have npm or yarn depending on the lock file you're using.
See https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk/aws-lambda-nodejs/parcel/Dockerfile for the default image provided by @aws-cdk/aws-lambda-nodejs.
Default: - use the Docker image provided by
@Stability(value=Experimental) @Nullable default String getCacheDir()
Parcel uses a filesystem cache for fast rebuilds.
Default: - `.parcel-cache` in the working directory
@Stability(value=Experimental) @Nullable default List<String> getExternalModules()
Default: ['aws-sdk']
@Stability(value=Experimental) @Nullable default Boolean getForceDockerBundling()
Default: false
@Stability(value=Experimental) @Nullable default Boolean getMinify()
Default: false
@Stability(value=Experimental) @Nullable default List<String> getNodeModules()
Modules are installed in a Lambda compatible environnment.
Default: - all modules are bundled
@Stability(value=Experimental) @Nullable default Map<String,String> getParcelEnvironment()
Default: - no environment variables are defined.
@Stability(value=Experimental) @Nullable default String getParcelVersion()
Default: - 2.0.0-beta.1
@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
@Stability(value=Experimental) @Nullable default Boolean getSourceMaps()
Default: false
@Stability(value=Experimental) static ParcelBaseOptions.Builder builder()
ParcelBaseOptions.Builder of ParcelBaseOptionsCopyright © 2020. All rights reserved.