# AWS Lambda Layer with zip
[![NPM version](https://badge.fury.io/js/cdk-lambda-layer-zip.svg)](https://badge.fury.io/js/cdk-lambda-layer-zip)
[![PyPI version](https://badge.fury.io/py/cdk-lambda-layer-zip.svg)](https://badge.fury.io/py/cdk-lambda-layer-zip)
![Release](https://github.com/clarencetw/cdk-lambda-layer-zip/workflows/release/badge.svg)
[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/clarencetw/cdk-lambda-layer-zip)
Usage:
```python
// ZipLayer bundles the tar gzip 7z in a lambda layer
import { ZipLayer } from 'cdk-lambda-layer-zip';
declare const fn: lambda.Function;
fn.addLayers(new ZipLayer(this, 'ZipLayer'));
```
```python
import { ZipLayer } from 'cdk-lambda-layer-zip'
import * as lambda from 'aws-cdk-lib/aws-lambda'
new lambda.Function(this, 'MyLambda', {
code: lambda.Code.fromAsset(path.join(__dirname, 'my-lambda-handler')),
handler: 'index.main',
runtime: lambda.Runtime.PYTHON_3_9,
layers: [new ZipLayer(this, 'ZipLayer')]
});
```
Raw data
{
"_id": null,
"home_page": "https://github.com/clarencetw/cdk-lambda-layer-zip.git",
"name": "cdk-lambda-layer-zip",
"maintainer": "",
"docs_url": null,
"requires_python": "~=3.7",
"maintainer_email": "",
"keywords": "",
"author": "clarencetw<mr.lin.clarence@gmail.com>",
"author_email": "",
"download_url": "",
"platform": null,
"description": "# AWS Lambda Layer with zip\n\n[![NPM version](https://badge.fury.io/js/cdk-lambda-layer-zip.svg)](https://badge.fury.io/js/cdk-lambda-layer-zip)\n[![PyPI version](https://badge.fury.io/py/cdk-lambda-layer-zip.svg)](https://badge.fury.io/py/cdk-lambda-layer-zip)\n![Release](https://github.com/clarencetw/cdk-lambda-layer-zip/workflows/release/badge.svg)\n[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/clarencetw/cdk-lambda-layer-zip)\n\nUsage:\n\n```python\n// ZipLayer bundles the tar gzip 7z in a lambda layer\nimport { ZipLayer } from 'cdk-lambda-layer-zip';\n\ndeclare const fn: lambda.Function;\nfn.addLayers(new ZipLayer(this, 'ZipLayer'));\n```\n\n```python\nimport { ZipLayer } from 'cdk-lambda-layer-zip'\nimport * as lambda from 'aws-cdk-lib/aws-lambda'\n\nnew lambda.Function(this, 'MyLambda', {\n code: lambda.Code.fromAsset(path.join(__dirname, 'my-lambda-handler')),\n handler: 'index.main',\n runtime: lambda.Runtime.PYTHON_3_9,\n layers: [new ZipLayer(this, 'ZipLayer')]\n});\n```\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "Lambda Layer for tar gz 7z",
"version": "2.0.377",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "af8a47e55e84fa8bf2af122b4cd16b2615dbf1454e8a3526202dd2b132d86ac4",
"md5": "aaa8a0410d6059d151582cb2377d142f",
"sha256": "d247253783ee0db56e8c35e0f2519ea348f4308af1fd9a2b2a71182ea657450a"
},
"downloads": -1,
"filename": "cdk_lambda_layer_zip-2.0.377-py3-none-any.whl",
"has_sig": false,
"md5_digest": "aaa8a0410d6059d151582cb2377d142f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.7",
"size": 6783114,
"upload_time": "2023-04-19T00:45:13",
"upload_time_iso_8601": "2023-04-19T00:45:13.826469Z",
"url": "https://files.pythonhosted.org/packages/af/8a/47e55e84fa8bf2af122b4cd16b2615dbf1454e8a3526202dd2b132d86ac4/cdk_lambda_layer_zip-2.0.377-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-19 00:45:13",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "clarencetw",
"github_project": "cdk-lambda-layer-zip.git",
"lcname": "cdk-lambda-layer-zip"
}