@Generated(value="jsii-pacmak/0.21.2 (build 4370756)", date="2020-02-07T03:00:57.031Z") @Stability(value=Experimental) public interface NodejsFunctionProps extends software.amazon.jsii.JsiiSerializable, software.amazon.awscdk.services.lambda.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 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 software.amazon.awscdk.services.lambda.Runtime |
getRuntime()
The runtime environment.
|
default Boolean |
getSourceMaps()
Whether to include source maps when bundling.
|
getAllowAllOutbound, getDeadLetterQueue, getDeadLetterQueueEnabled, getDescription, getEnvironment, getEvents, getFunctionName, getInitialPolicy, getLayers, getLogRetention, getLogRetentionRole, getMemorySize, getReservedConcurrentExecutions, getRole, getSecurityGroup, getSecurityGroups, getTimeout, getTracing, getVpc, getVpcSubnets@Stability(value=Experimental) default String getBuildDir()
Default: - `.build` in the entry file directory
EXPERIMENTAL
@Stability(value=Experimental) default String getCacheDir()
Parcel uses a filesystem cache for fast rebuilds.
Default: - `.cache` in the root directory
EXPERIMENTAL
@Stability(value=Experimental) 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) default String getHandler()
Default: handler
EXPERIMENTAL
@Stability(value=Experimental) default Boolean getMinify()
Default: false
EXPERIMENTAL
@Stability(value=Experimental) default software.amazon.awscdk.services.lambda.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) default Boolean getSourceMaps()
Default: false
EXPERIMENTAL
@Stability(value=Experimental) static NodejsFunctionProps.Builder builder()
builder in interface software.amazon.awscdk.services.lambda.EventInvokeConfigOptionsbuilder in interface software.amazon.awscdk.services.lambda.FunctionOptionsNodejsFunctionProps.Builder of NodejsFunctionPropsCopyright © 2024. All rights reserved.