@Generated(value="jsii-pacmak/1.13.0 (build 385c325)", date="2020-10-07T19:57:40.497Z") @Stability(value=Experimental) public interface NodejsFunctionProps extends software.amazon.jsii.JsiiSerializable, FunctionOptions, ParcelBaseOptions
| 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 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, getCurrentVersionOptions, getDeadLetterQueue, getDeadLetterQueueEnabled, getDescription, getEnvironment, getEvents, getFilesystem, getFunctionName, getInitialPolicy, getLayers, getLogRetention, getLogRetentionRetryOptions, getLogRetentionRole, getMemorySize, getProfiling, getProfilingGroup, getReservedConcurrentExecutions, getRole, getSecurityGroup, getSecurityGroups, getTimeout, getTracing, getVpc, getVpcSubnetsgetMaxEventAge, getOnFailure, getOnSuccess, getRetryAttemptsgetBuildArgs, getBundlingDockerImage, getCacheDir, getExternalModules, getForceDockerBundling, getMinify, getNodeModules, getParcelEnvironment, getParcelVersion, getProjectRoot, getSourceMaps@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 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: - `NODEJS_12_X` if `process.versions.node` >= '12.0.0', `NODEJS_10_X` otherwise.
@Stability(value=Experimental) static NodejsFunctionProps.Builder builder()
builder in interface EventInvokeConfigOptionsbuilder in interface FunctionOptionsbuilder in interface ParcelBaseOptionsNodejsFunctionProps.Builder of NodejsFunctionPropsCopyright © 2020. All rights reserved.