@Generated(value="jsii-pacmak/1.6.0 (build 248e75b)", date="2020-06-04T00:02:21.528Z") @Stability(value=Experimental) public interface NodejsFunctionProps extends software.amazon.jsii.JsiiSerializable, FunctionOptions
EXPERIMENTAL
| Modifier and Type | Interface and Description |
|---|---|
static class |
NodejsFunctionProps.Builder
A builder for
NodejsFunctionProps |
static class |
NodejsFunctionProps.Jsii$Proxy
An implementation for
NodejsFunctionProps |
| Modifier and Type | Method and Description |
|---|---|
static NodejsFunctionProps.Builder |
builder() |
default String |
getBuildDir()
The build directory.
|
default String |
getCacheDir()
The cache directory.
|
default Map<String,String> |
getContainerEnvironment()
The environment variables to pass to the container running Parcel.
|
default String |
getEntry()
Path to the entry file (JavaScript or TypeScript).
|
default String |
getHandler()
The name of the exported handler in the entry file.
|
default Boolean |
getMinify()
Whether to minify files when bundling.
|
default String |
getNodeDockerTag()
The docker tag of the node base image to use in the parcel-bundler docker image.
|
default String |
getProjectRoot()
The root of the project.
|
default Runtime |
getRuntime()
The runtime environment.
|
default Boolean |
getSourceMaps()
Whether to include source maps when bundling.
|
getAllowAllOutbound, getCurrentVersionOptions, getDeadLetterQueue, getDeadLetterQueueEnabled, getDescription, getEnvironment, getEvents, getFunctionName, getInitialPolicy, getLayers, getLogRetention, getLogRetentionRole, getMemorySize, getReservedConcurrentExecutions, getRole, getSecurityGroup, getSecurityGroups, getTimeout, getTracing, getVpc, getVpcSubnetsgetMaxEventAge, getOnFailure, getOnSuccess, getRetryAttempts@Stability(value=Experimental) @Nullable default String getBuildDir()
Default: - `.build` in the entry file directory
EXPERIMENTAL
@Stability(value=Experimental) @Nullable default String getCacheDir()
Parcel uses a filesystem cache for fast rebuilds.
Default: - `.cache` in the root directory
EXPERIMENTAL
@Stability(value=Experimental) @Nullable default Map<String,String> getContainerEnvironment()
Default: - no environment variables are passed to the container
EXPERIMENTAL
@Stability(value=Experimental) @Nullable default String getEntry()
Default: - Derived from the name of the defining file and the construct's id. If the `NodejsFunction` is defined in `stack.ts` with `my-handler` as id (`new NodejsFunction(this, 'my-handler')`), the construct will look at `stack.my-handler.ts` and `stack.my-handler.js`.
EXPERIMENTAL
@Stability(value=Experimental) @Nullable default String getHandler()
Default: handler
EXPERIMENTAL
@Stability(value=Experimental) @Nullable default Boolean getMinify()
Default: false
EXPERIMENTAL
@Stability(value=Experimental) @Nullable default String getNodeDockerTag()
Default: - the `process.versions.node` alpine image
EXPERIMENTAL
https://hub.docker.com/_/node/?tab=tags@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 Runtime getRuntime()
Only runtimes of the Node.js family are supported.
Default: - `NODEJS_12_X` if `process.versions.node` >= '12.0.0', `NODEJS_10_X` otherwise.
EXPERIMENTAL
@Stability(value=Experimental) @Nullable default Boolean getSourceMaps()
Default: false
EXPERIMENTAL
@Stability(value=Experimental) static NodejsFunctionProps.Builder builder()
builder in interface EventInvokeConfigOptionsbuilder in interface FunctionOptionsNodejsFunctionProps.Builder of NodejsFunctionPropsCopyright © 2020. All rights reserved.