From 3819c26e6a6bfe567e4b1593b32e76dd685b21d2 Mon Sep 17 00:00:00 2001 From: Madeline Kusters Date: Tue, 6 Sep 2022 19:02:09 -0700 Subject: [PATCH] add to README --- packages/@aws-cdk/aws-lambda/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/@aws-cdk/aws-lambda/README.md b/packages/@aws-cdk/aws-lambda/README.md index f12afc0c3d809..57ee32a31f711 100644 --- a/packages/@aws-cdk/aws-lambda/README.md +++ b/packages/@aws-cdk/aws-lambda/README.md @@ -33,6 +33,9 @@ runtime code. * `lambda.Code.fromAsset(path)` - specify a directory or a .zip file in the local filesystem which will be zipped and uploaded to S3 before deployment. See also [bundling asset code](#bundling-asset-code). + * `lambda.Code.fromAssetConstruct(asset)` - specify an Asset construct containing + the Lambda code bundle or a .zip file. Similar to `fromAsset()`, but you supply + your own Asset construct rather than having one created for you from a local path. * `lambda.Code.fromDockerBuild(path, options)` - use the result of a Docker build as code. The runtime code is expected to be located at `/asset` in the image and will be zipped and uploaded to S3 as an asset.