(deprecated) DEPRECATED.
(deprecated) DEPRECATED.
(deprecated) DEPRECATED.
Loads the function code from a local disk path.
Either a directory with the Lambda code bundle or a .zip file.
Create an ECR image from the specified asset and bind it as the Lambda code.
the directory from which the asset must be created.
properties to further configure the selected image.
Lambda handler code as an S3 object.
The S3 bucket.
The object key.
Optional S3 object version.
Creates a new Lambda source defined using CloudFormation parameters.
optional construction properties of {@link CfnParametersCode}.
a new instance of CfnParametersCode
Use an existing ECR image as the Lambda code.
the ECR repository that the image is in.
properties to further configure the selected image.
Inline code for Lambda handler.
The actual handler code (limited to 4KiB).
LambdaInlineCode
with inline code.
(deprecated) DEPRECATED.
Generated using TypeDoc
Same as AssetCode but exposes the sourceHash: https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk/aws-lambda/lib/code.ts Feature request to expose sourceHash on the official AssetCode class: https://github.com/aws/aws-cdk/issues/4901