@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:21.575Z") @Stability(value=Experimental) public interface NodejsFunctionProps extends software.amazon.jsii.JsiiSerializable, FunctionOptions
| 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 Boolean |
getAwsSdkConnectionReuse()
(experimental) Whether to automatically reuse TCP connections when working with the AWS SDK for JavaScript.
|
default BundlingOptions |
getBundling()
(experimental) Bundling options.
|
default String |
getDepsLockFilePath()
(experimental) The path to the dependencies lock file (`yarn.lock` or `package-lock.json`).
|
default String |
getEntry()
(experimental) Path to the entry file (JavaScript or TypeScript).
|
default String |
getHandler()
(experimental) The name of the exported handler in the entry file.
|
default Runtime |
getRuntime()
(experimental) The runtime environment.
|
getAllowAllOutbound, getAllowPublicSubnet, getCodeSigningConfig, getCurrentVersionOptions, getDeadLetterQueue, getDeadLetterQueueEnabled, getDescription, getEnvironment, getEnvironmentEncryption, getEvents, getFilesystem, getFunctionName, getInitialPolicy, getLayers, getLogRetention, getLogRetentionRetryOptions, getLogRetentionRole, getMemorySize, getProfiling, getProfilingGroup, getReservedConcurrentExecutions, getRole, getSecurityGroups, getTimeout, getTracing, getVpc, getVpcSubnetsgetMaxEventAge, getOnFailure, getOnSuccess, getRetryAttempts@Stability(value=Experimental) @Nullable default Boolean getAwsSdkConnectionReuse()
This sets the AWS_NODEJS_CONNECTION_REUSE_ENABLED environment variable
to 1.
Default: true
https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/node-reusing-connections.html@Stability(value=Experimental) @Nullable default BundlingOptions getBundling()
Default: - use default bundling options: no minify, no sourcemap, all modules are bundled.
@Stability(value=Experimental) @Nullable default String getDepsLockFilePath()
This will be used as the source for the volume mounted in the Docker container.
Modules specified in nodeModules will be installed using the right
installer (npm or yarn) along with this lock file.
Default: - the path is found by walking up parent directories searching for a `yarn.lock` or `package-lock.json` file
@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`.
@Stability(value=Experimental) @Nullable default String getHandler()
Default: handler
@Stability(value=Experimental) @Nullable default Runtime getRuntime()
Only runtimes of the Node.js family are supported.
Default: Runtime.NODEJS_14_X
@Stability(value=Experimental) static NodejsFunctionProps.Builder builder()
builder in interface EventInvokeConfigOptionsbuilder in interface FunctionOptionsNodejsFunctionProps.Builder of NodejsFunctionPropsCopyright © 2021. All rights reserved.