@Stability(value=Experimental) @Internal public static final class NodejsFunctionProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements NodejsFunctionProps
NodejsFunctionPropssoftware.amazon.jsii.JsiiObject.InitializationModeNodejsFunctionProps.Builder, NodejsFunctionProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(Boolean awsSdkConnectionReuse,
String depsLockFilePath,
String entry,
String handler,
Runtime runtime,
Boolean allowAllOutbound,
Boolean allowPublicSubnet,
VersionOptions currentVersionOptions,
software.amazon.awscdk.services.sqs.IQueue deadLetterQueue,
Boolean deadLetterQueueEnabled,
String description,
Map<String,String> environment,
List<? extends IEventSource> events,
FileSystem filesystem,
String functionName,
List<? extends software.amazon.awscdk.services.iam.PolicyStatement> initialPolicy,
List<? extends ILayerVersion> layers,
software.amazon.awscdk.services.logs.RetentionDays logRetention,
LogRetentionRetryOptions logRetentionRetryOptions,
software.amazon.awscdk.services.iam.IRole logRetentionRole,
Number memorySize,
Boolean profiling,
software.amazon.awscdk.services.codeguruprofiler.IProfilingGroup profilingGroup,
Number reservedConcurrentExecutions,
software.amazon.awscdk.services.iam.IRole role,
software.amazon.awscdk.services.ec2.ISecurityGroup securityGroup,
List<? extends software.amazon.awscdk.services.ec2.ISecurityGroup> securityGroups,
Duration timeout,
Tracing tracing,
software.amazon.awscdk.services.ec2.IVpc vpc,
software.amazon.awscdk.services.ec2.SubnetSelection vpcSubnets,
Duration maxEventAge,
IDestination onFailure,
IDestination onSuccess,
Number retryAttempts,
Map<String,String> buildArgs,
BundlingDockerImage bundlingDockerImage,
Map<String,String> bundlingEnvironment,
String esbuildVersion,
List<String> externalModules,
Boolean forceDockerBundling,
Map<String,String> loader,
Boolean minify,
List<String> nodeModules,
Boolean sourceMap,
String target)
Constructor that initializes the object based on literal property values passed by the
NodejsFunctionProps.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Boolean |
getAllowAllOutbound() |
Boolean |
getAllowPublicSubnet() |
Boolean |
getAwsSdkConnectionReuse()
(experimental) Whether to automatically reuse TCP connections when working with the AWS SDK for JavaScript.
|
Map<String,String> |
getBuildArgs()
(experimental) Build arguments to pass when building the bundling image.
|
BundlingDockerImage |
getBundlingDockerImage()
(experimental) A custom bundling Docker image.
|
Map<String,String> |
getBundlingEnvironment()
(experimental) Environment variables defined when bundling runs.
|
VersionOptions |
getCurrentVersionOptions() |
software.amazon.awscdk.services.sqs.IQueue |
getDeadLetterQueue() |
Boolean |
getDeadLetterQueueEnabled() |
String |
getDepsLockFilePath()
(experimental) The path to the dependencies lock file (`yarn.lock` or `package-lock.json`).
|
String |
getDescription() |
String |
getEntry()
(experimental) Path to the entry file (JavaScript or TypeScript).
|
Map<String,String> |
getEnvironment() |
String |
getEsbuildVersion()
(experimental) The version of esbuild to use when running in a Docker container.
|
List<IEventSource> |
getEvents() |
List<String> |
getExternalModules()
(experimental) A list of modules that should be considered as externals (already available in the runtime).
|
FileSystem |
getFilesystem() |
Boolean |
getForceDockerBundling()
(experimental) Force bundling in a Docker container even if local bundling is possible.
|
String |
getFunctionName() |
String |
getHandler()
(experimental) The name of the exported handler in the entry file.
|
List<software.amazon.awscdk.services.iam.PolicyStatement> |
getInitialPolicy() |
List<ILayerVersion> |
getLayers() |
Map<String,String> |
getLoader()
(experimental) Use loaders to change how a given input file is interpreted.
|
software.amazon.awscdk.services.logs.RetentionDays |
getLogRetention() |
LogRetentionRetryOptions |
getLogRetentionRetryOptions() |
software.amazon.awscdk.services.iam.IRole |
getLogRetentionRole() |
Duration |
getMaxEventAge() |
Number |
getMemorySize() |
Boolean |
getMinify()
(experimental) Whether to minify files when bundling.
|
List<String> |
getNodeModules()
(experimental) A list of modules that should be installed instead of bundled.
|
IDestination |
getOnFailure() |
IDestination |
getOnSuccess() |
Boolean |
getProfiling() |
software.amazon.awscdk.services.codeguruprofiler.IProfilingGroup |
getProfilingGroup() |
Number |
getReservedConcurrentExecutions() |
Number |
getRetryAttempts() |
software.amazon.awscdk.services.iam.IRole |
getRole() |
Runtime |
getRuntime()
(experimental) The runtime environment.
|
software.amazon.awscdk.services.ec2.ISecurityGroup |
getSecurityGroup() |
List<software.amazon.awscdk.services.ec2.ISecurityGroup> |
getSecurityGroups() |
Boolean |
getSourceMap()
(experimental) Whether to include source maps when bundling.
|
String |
getTarget()
(experimental) Target environment for the generated JavaScript code.
|
Duration |
getTimeout() |
Tracing |
getTracing() |
software.amazon.awscdk.services.ec2.IVpc |
getVpc() |
software.amazon.awscdk.services.ec2.SubnetSelection |
getVpcSubnets() |
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(Boolean awsSdkConnectionReuse, String depsLockFilePath, String entry, String handler, Runtime runtime, Boolean allowAllOutbound, Boolean allowPublicSubnet, VersionOptions currentVersionOptions, software.amazon.awscdk.services.sqs.IQueue deadLetterQueue, Boolean deadLetterQueueEnabled, String description, Map<String,String> environment, List<? extends IEventSource> events, FileSystem filesystem, String functionName, List<? extends software.amazon.awscdk.services.iam.PolicyStatement> initialPolicy, List<? extends ILayerVersion> layers, software.amazon.awscdk.services.logs.RetentionDays logRetention, LogRetentionRetryOptions logRetentionRetryOptions, software.amazon.awscdk.services.iam.IRole logRetentionRole, Number memorySize, Boolean profiling, software.amazon.awscdk.services.codeguruprofiler.IProfilingGroup profilingGroup, Number reservedConcurrentExecutions, software.amazon.awscdk.services.iam.IRole role, software.amazon.awscdk.services.ec2.ISecurityGroup securityGroup, List<? extends software.amazon.awscdk.services.ec2.ISecurityGroup> securityGroups, Duration timeout, Tracing tracing, software.amazon.awscdk.services.ec2.IVpc vpc, software.amazon.awscdk.services.ec2.SubnetSelection vpcSubnets, Duration maxEventAge, IDestination onFailure, IDestination onSuccess, Number retryAttempts, Map<String,String> buildArgs, BundlingDockerImage bundlingDockerImage, Map<String,String> bundlingEnvironment, String esbuildVersion, List<String> externalModules, Boolean forceDockerBundling, Map<String,String> loader, Boolean minify, List<String> nodeModules, Boolean sourceMap, String target)
NodejsFunctionProps.Builder.public final Boolean getAwsSdkConnectionReuse()
NodejsFunctionProps
This sets the AWS_NODEJS_CONNECTION_REUSE_ENABLED environment variable
to 1.
Default: true
getAwsSdkConnectionReuse in interface NodejsFunctionPropshttps://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/node-reusing-connections.htmlpublic final String getDepsLockFilePath()
NodejsFunctionPropsThis 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
getDepsLockFilePath in interface NodejsFunctionPropspublic final String getEntry()
NodejsFunctionPropsDefault: - 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`.
getEntry in interface NodejsFunctionPropspublic final String getHandler()
NodejsFunctionPropsDefault: handler
getHandler in interface NodejsFunctionPropspublic final Runtime getRuntime()
NodejsFunctionPropsOnly runtimes of the Node.js family are supported.
Default: - `NODEJS_12_X` if `process.versions.node` >= '12.0.0', `NODEJS_10_X` otherwise.
getRuntime in interface NodejsFunctionPropspublic final Boolean getAllowAllOutbound()
getAllowAllOutbound in interface FunctionOptionspublic final Boolean getAllowPublicSubnet()
getAllowPublicSubnet in interface FunctionOptionspublic final VersionOptions getCurrentVersionOptions()
getCurrentVersionOptions in interface FunctionOptionspublic final software.amazon.awscdk.services.sqs.IQueue getDeadLetterQueue()
getDeadLetterQueue in interface FunctionOptionspublic final Boolean getDeadLetterQueueEnabled()
getDeadLetterQueueEnabled in interface FunctionOptionspublic final String getDescription()
getDescription in interface FunctionOptionspublic final Map<String,String> getEnvironment()
getEnvironment in interface FunctionOptionspublic final List<IEventSource> getEvents()
getEvents in interface FunctionOptionspublic final FileSystem getFilesystem()
getFilesystem in interface FunctionOptionspublic final String getFunctionName()
getFunctionName in interface FunctionOptionspublic final List<software.amazon.awscdk.services.iam.PolicyStatement> getInitialPolicy()
getInitialPolicy in interface FunctionOptionspublic final List<ILayerVersion> getLayers()
getLayers in interface FunctionOptionspublic final software.amazon.awscdk.services.logs.RetentionDays getLogRetention()
getLogRetention in interface FunctionOptionspublic final LogRetentionRetryOptions getLogRetentionRetryOptions()
getLogRetentionRetryOptions in interface FunctionOptionspublic final software.amazon.awscdk.services.iam.IRole getLogRetentionRole()
getLogRetentionRole in interface FunctionOptionspublic final Number getMemorySize()
getMemorySize in interface FunctionOptionspublic final Boolean getProfiling()
getProfiling in interface FunctionOptionspublic final software.amazon.awscdk.services.codeguruprofiler.IProfilingGroup getProfilingGroup()
getProfilingGroup in interface FunctionOptionspublic final Number getReservedConcurrentExecutions()
getReservedConcurrentExecutions in interface FunctionOptionspublic final software.amazon.awscdk.services.iam.IRole getRole()
getRole in interface FunctionOptionspublic final software.amazon.awscdk.services.ec2.ISecurityGroup getSecurityGroup()
getSecurityGroup in interface FunctionOptionspublic final List<software.amazon.awscdk.services.ec2.ISecurityGroup> getSecurityGroups()
getSecurityGroups in interface FunctionOptionspublic final Duration getTimeout()
getTimeout in interface FunctionOptionspublic final Tracing getTracing()
getTracing in interface FunctionOptionspublic final software.amazon.awscdk.services.ec2.IVpc getVpc()
getVpc in interface FunctionOptionspublic final software.amazon.awscdk.services.ec2.SubnetSelection getVpcSubnets()
getVpcSubnets in interface FunctionOptionspublic final Duration getMaxEventAge()
getMaxEventAge in interface EventInvokeConfigOptionspublic final IDestination getOnFailure()
getOnFailure in interface EventInvokeConfigOptionspublic final IDestination getOnSuccess()
getOnSuccess in interface EventInvokeConfigOptionspublic final Number getRetryAttempts()
getRetryAttempts in interface EventInvokeConfigOptionspublic final Map<String,String> getBuildArgs()
BundlingOptionsDefault: - no build arguments are passed
getBuildArgs in interface BundlingOptionspublic final BundlingDockerImage getBundlingDockerImage()
BundlingOptions
This image should have esbuild installed globally. 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/lib/Dockerfile for the default image provided by @aws-cdk/aws-lambda-nodejs.
Default: - use the Docker image provided by
getBundlingDockerImage in interface BundlingOptionspublic final Map<String,String> getBundlingEnvironment()
BundlingOptionsDefault: - no environment variables are defined.
getBundlingEnvironment in interface BundlingOptionspublic final String getEsbuildVersion()
BundlingOptionsDefault: - latest v0
getEsbuildVersion in interface BundlingOptionspublic final List<String> getExternalModules()
BundlingOptionsDefault: ['aws-sdk']
getExternalModules in interface BundlingOptionspublic final Boolean getForceDockerBundling()
BundlingOptions
This is useful if your function relies on node modules
that should be installed (nodeModules) in a Lambda compatible
environment.
Default: false
getForceDockerBundling in interface BundlingOptionspublic final Map<String,String> getLoader()
BundlingOptions
Configuring a loader for a given file type lets you load that file type with
an import statement or a require call.
Default: - use esbuild default loaders
Example:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 {".png";"dataurl"; }
getLoader in interface BundlingOptionshttps://esbuild.github.io/api/#loaderpublic final Boolean getMinify()
BundlingOptionsDefault: false
getMinify in interface BundlingOptionspublic final List<String> getNodeModules()
BundlingOptionsModules are installed in a Lambda compatible environnment only when bundling runs in Docker.
Default: - all modules are bundled
getNodeModules in interface BundlingOptionspublic final Boolean getSourceMap()
BundlingOptionsDefault: false
getSourceMap in interface BundlingOptionspublic final String getTarget()
BundlingOptionsDefault: - the node version of the runtime
getTarget in interface BundlingOptionshttps://esbuild.github.io/api/#target@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2020. All rights reserved.