@aws-cdk/aws-lambda-python-alpha 2.26.0-alpha.0 → 2.27.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +18 -5
- package/.jsii.tabl.json +9 -9
- package/README.md +1 -1
- package/lib/function.js +1 -1
- package/lib/layer.js +1 -1
- package/package.json +7 -7
package/.jsii
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"url": "https://aws.amazon.com"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"aws-cdk-lib": "^2.
|
|
11
|
+
"aws-cdk-lib": "^2.27.0",
|
|
12
12
|
"constructs": "^10.0.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencyClosure": {
|
|
@@ -1107,6 +1107,19 @@
|
|
|
1107
1107
|
}
|
|
1108
1108
|
}
|
|
1109
1109
|
},
|
|
1110
|
+
"aws-cdk-lib.aws_emrserverless": {
|
|
1111
|
+
"targets": {
|
|
1112
|
+
"dotnet": {
|
|
1113
|
+
"namespace": "Amazon.CDK.AWS.EMRServerless"
|
|
1114
|
+
},
|
|
1115
|
+
"java": {
|
|
1116
|
+
"package": "software.amazon.awscdk.services.emrserverless"
|
|
1117
|
+
},
|
|
1118
|
+
"python": {
|
|
1119
|
+
"module": "aws_cdk.aws_emrserverless"
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
1110
1123
|
"aws-cdk-lib.aws_events": {
|
|
1111
1124
|
"targets": {
|
|
1112
1125
|
"dotnet": {
|
|
@@ -2943,7 +2956,7 @@
|
|
|
2943
2956
|
},
|
|
2944
2957
|
"targets": {
|
|
2945
2958
|
"dotnet": {
|
|
2946
|
-
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/
|
|
2959
|
+
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/main/logo/default-256-dark.png",
|
|
2947
2960
|
"namespace": "Amazon.CDK",
|
|
2948
2961
|
"packageId": "Amazon.CDK.Lib"
|
|
2949
2962
|
},
|
|
@@ -3019,7 +3032,7 @@
|
|
|
3019
3032
|
},
|
|
3020
3033
|
"name": "@aws-cdk/aws-lambda-python-alpha",
|
|
3021
3034
|
"readme": {
|
|
3022
|
-
"markdown": "# Amazon Lambda Python Library\n\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n\n\n> The APIs of higher level constructs in this module are experimental and under active development.\n> They are subject to non-backward compatible changes or removal in any future version. These are\n> not subject to the [Semantic Versioning](https://semver.org/) model and breaking changes will be\n> announced in the release notes. This means that while you may use them, you may need to update\n> your source code when upgrading to a newer version of this package.\n\n---\n\n<!--END STABILITY BANNER-->\n\nThis library provides constructs for Python Lambda functions.\n\nTo use this module, you will need to have Docker installed.\n\n## Python Function\n\nDefine a `PythonFunction`:\n\n```ts\nnew lambda.PythonFunction(this, 'MyFunction', {\n entry: '/path/to/my/function', // required\n runtime: Runtime.PYTHON_3_8, // required\n index: 'my_index.py', // optional, defaults to 'index.py'\n handler: 'my_exported_func', // optional, defaults to 'handler'\n});\n```\n\nAll other properties of `lambda.Function` are supported, see also the [AWS Lambda construct library](https://github.com/aws/aws-cdk/tree/
|
|
3035
|
+
"markdown": "# Amazon Lambda Python Library\n\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n\n\n> The APIs of higher level constructs in this module are experimental and under active development.\n> They are subject to non-backward compatible changes or removal in any future version. These are\n> not subject to the [Semantic Versioning](https://semver.org/) model and breaking changes will be\n> announced in the release notes. This means that while you may use them, you may need to update\n> your source code when upgrading to a newer version of this package.\n\n---\n\n<!--END STABILITY BANNER-->\n\nThis library provides constructs for Python Lambda functions.\n\nTo use this module, you will need to have Docker installed.\n\n## Python Function\n\nDefine a `PythonFunction`:\n\n```ts\nnew lambda.PythonFunction(this, 'MyFunction', {\n entry: '/path/to/my/function', // required\n runtime: Runtime.PYTHON_3_8, // required\n index: 'my_index.py', // optional, defaults to 'index.py'\n handler: 'my_exported_func', // optional, defaults to 'handler'\n});\n```\n\nAll other properties of `lambda.Function` are supported, see also the [AWS Lambda construct library](https://github.com/aws/aws-cdk/tree/main/packages/%40aws-cdk/aws-lambda).\n\n## Python Layer\n\nYou may create a python-based lambda layer with `PythonLayerVersion`. If `PythonLayerVersion` detects a `requirements.txt`\nor `Pipfile` or `poetry.lock` with the associated `pyproject.toml` at the entry path, then `PythonLayerVersion` will include the dependencies inline with your code in the\nlayer.\n\nDefine a `PythonLayerVersion`:\n\n```ts\nnew lambda.PythonLayerVersion(this, 'MyLayer', {\n entry: '/path/to/my/layer', // point this to your library's directory\n})\n```\n\nA layer can also be used as a part of a `PythonFunction`:\n\n```ts\nnew lambda.PythonFunction(this, 'MyFunction', {\n entry: '/path/to/my/function',\n runtime: Runtime.PYTHON_3_8,\n layers: [\n new lambda.PythonLayerVersion(this, 'MyLayer', {\n entry: '/path/to/my/layer', // point this to your library's directory\n }),\n ],\n});\n```\n\n## Packaging\n\nIf `requirements.txt`, `Pipfile` or `poetry.lock` exists at the entry path, the construct will handle installing all required modules in a [Lambda compatible Docker container](https://gallery.ecr.aws/sam/build-python3.7) according to the `runtime` and with the Docker platform based on the target architecture of the Lambda function.\n\nPython bundles are only recreated and published when a file in a source directory has changed.\nTherefore (and as a general best-practice), it is highly recommended to commit a lockfile with a\nlist of all transitive dependencies and their exact versions. This will ensure that when any dependency version is updated, the bundle asset is recreated and uploaded.\n\nTo that end, we recommend using [`pipenv`] or [`poetry`] which have lockfile support.\n\n- [`pipenv`](https://pipenv-fork.readthedocs.io/en/latest/basics.html#example-pipfile-lock)\n- [`poetry`](https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control)\n\nPackaging is executed using the `Packaging` class, which:\n\n1. Infers the packaging type based on the files present.\n2. If it sees a `Pipfile` or a `poetry.lock` file, it exports it to a compatible `requirements.txt` file with credentials (if they're available in the source files or in the bundling container).\n3. Installs dependencies using `pip`.\n4. Copies the dependencies into an asset that is bundled for the Lambda package.\n\n**Lambda with a requirements.txt**\n\n```plaintext\n.\n├── lambda_function.py # exports a function named 'handler'\n├── requirements.txt # has to be present at the entry path\n```\n\n**Lambda with a Pipfile**\n\n```plaintext\n.\n├── lambda_function.py # exports a function named 'handler'\n├── Pipfile # has to be present at the entry path\n├── Pipfile.lock # your lock file\n```\n\n**Lambda with a poetry.lock**\n\n```plaintext\n.\n├── lambda_function.py # exports a function named 'handler'\n├── pyproject.toml # your poetry project definition\n├── poetry.lock # your poetry lock file has to be present at the entry path\n```\n\n## Custom Bundling\n\nCustom bundling can be performed by passing in additional build arguments that point to index URLs to private repos, or by using an entirely custom Docker images for bundling dependencies. The build args currently supported are:\n\n- `PIP_INDEX_URL`\n- `PIP_EXTRA_INDEX_URL`\n- `HTTPS_PROXY`\n\nAdditional build args for bundling that refer to PyPI indexes can be specified as:\n\n```ts\nconst entry = '/path/to/function';\nconst image = DockerImage.fromBuild(entry);\n\nnew lambda.PythonFunction(this, 'function', {\n entry,\n runtime: Runtime.PYTHON_3_8,\n bundling: {\n buildArgs: { PIP_INDEX_URL: \"https://your.index.url/simple/\", PIP_EXTRA_INDEX_URL: \"https://your.extra-index.url/simple/\" },\n },\n});\n```\n\nIf using a custom Docker image for bundling, the dependencies are installed with `pip`, `pipenv` or `poetry` by using the `Packaging` class. A different bundling Docker image that is in the same directory as the function can be specified as:\n\n ```ts\nconst entry = '/path/to/function';\nconst image = DockerImage.fromBuild(entry);\n\nnew lambda.PythonFunction(this, 'function', {\n entry,\n runtime: Runtime.PYTHON_3_8,\n bundling: { image },\n});\n```\n\n## Custom Bundling with Code Artifact\n\nTo use a Code Artifact PyPI repo, the `PIP_INDEX_URL` for bundling the function can be customized (requires AWS CLI in the build environment):\n\n```ts\nimport { execSync } from 'child_process';\n\nconst entry = '/path/to/function';\nconst image = DockerImage.fromBuild(entry);\n\nconst domain = 'my-domain';\nconst domainOwner = '111122223333';\nconst repoName = 'my_repo';\nconst region = 'us-east-1';\nconst codeArtifactAuthToken = execSync(`aws codeartifact get-authorization-token --domain ${domain} --domain-owner ${domainOwner} --query authorizationToken --output text`).toString().trim();\n\nconst indexUrl = `https://aws:${codeArtifactAuthToken}@${domain}-${domainOwner}.d.codeartifact.${region}.amazonaws.com/pypi/${repoName}/simple/`;\n\nnew lambda.PythonFunction(this, 'function', {\n entry,\n runtime: Runtime.PYTHON_3_8,\n bundling: {\n environment: { PIP_INDEX_URL: indexUrl },\n },\n});\n```\n\nThe index URL or the token are only used during bundling and thus not included in the final asset. Setting only environment variable for `PIP_INDEX_URL` or `PIP_EXTRA_INDEX_URL` should work for accesing private Python repositories with `pip`, `pipenv` and `poetry` based dependencies.\n\nIf you also want to use the Code Artifact repo for building the base Docker image for bundling, use `buildArgs`. However, note that setting custom build args for bundling will force the base bundling image to be rebuilt every time (i.e. skip the Docker cache). Build args can be customized as:\n\n```ts\nimport { execSync } from 'child_process';\n\nconst entry = '/path/to/function';\nconst image = DockerImage.fromBuild(entry);\n\nconst domain = 'my-domain';\nconst domainOwner = '111122223333';\nconst repoName = 'my_repo';\nconst region = 'us-east-1';\nconst codeArtifactAuthToken = execSync(`aws codeartifact get-authorization-token --domain ${domain} --domain-owner ${domainOwner} --query authorizationToken --output text`).toString().trim();\n\nconst indexUrl = `https://aws:${codeArtifactAuthToken}@${domain}-${domainOwner}.d.codeartifact.${region}.amazonaws.com/pypi/${repoName}/simple/`;\n\nnew lambda.PythonFunction(this, 'function', {\n entry,\n runtime: Runtime.PYTHON_3_8,\n bundling: {\n buildArgs: { PIP_INDEX_URL: indexUrl },\n },\n});\n```\n"
|
|
3023
3036
|
},
|
|
3024
3037
|
"repository": {
|
|
3025
3038
|
"directory": "packages/individual-packages/aws-lambda-python",
|
|
@@ -3029,7 +3042,7 @@
|
|
|
3029
3042
|
"schema": "jsii/0.10.0",
|
|
3030
3043
|
"targets": {
|
|
3031
3044
|
"dotnet": {
|
|
3032
|
-
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/
|
|
3045
|
+
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/main/logo/default-256-dark.png",
|
|
3033
3046
|
"namespace": "Amazon.CDK.AWS.Lambda.Python.Alpha",
|
|
3034
3047
|
"packageId": "Amazon.CDK.AWS.Lambda.Python.Alpha"
|
|
3035
3048
|
},
|
|
@@ -3520,6 +3533,6 @@
|
|
|
3520
3533
|
"symbolId": "lib/layer:PythonLayerVersionProps"
|
|
3521
3534
|
}
|
|
3522
3535
|
},
|
|
3523
|
-
"version": "2.
|
|
3536
|
+
"version": "2.27.0-alpha.0",
|
|
3524
3537
|
"fingerprint": "**********"
|
|
3525
3538
|
}
|
package/.jsii.tabl.json
CHANGED
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"226": 1,
|
|
54
54
|
"281": 4
|
|
55
55
|
},
|
|
56
|
-
"fqnsFingerprint": "
|
|
56
|
+
"fqnsFingerprint": "1319fc3388c11bffe807797dcd1b7a2868c1c53945ec7c44d9a6ce9c96d6244d"
|
|
57
57
|
},
|
|
58
58
|
"53686c43ad7160036474e74010ea12f31c3ff817524e232264f2795823254c1a": {
|
|
59
59
|
"translations": {
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
"226": 1,
|
|
161
161
|
"281": 4
|
|
162
162
|
},
|
|
163
|
-
"fqnsFingerprint": "
|
|
163
|
+
"fqnsFingerprint": "2d3b48fbce9e5d6c53baeabbac3c4cfd617a01a3bc5cd7375da5089d7c448812"
|
|
164
164
|
},
|
|
165
165
|
"f263241052727b50b49ec356568b7a69019d835dfc04249cef6b843690d6a71c": {
|
|
166
166
|
"translations": {
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
"281": 5,
|
|
222
222
|
"282": 1
|
|
223
223
|
},
|
|
224
|
-
"fqnsFingerprint": "
|
|
224
|
+
"fqnsFingerprint": "6413413b38a4456e7990e774cb0fe79c8981d52103dedd18d4380143623b4bf1"
|
|
225
225
|
},
|
|
226
226
|
"7300f4badf25be82206db2ddea0d127c48665c4ca57e1030819c01fd03375d05": {
|
|
227
227
|
"translations": {
|
|
@@ -282,7 +282,7 @@
|
|
|
282
282
|
"281": 2,
|
|
283
283
|
"282": 2
|
|
284
284
|
},
|
|
285
|
-
"fqnsFingerprint": "
|
|
285
|
+
"fqnsFingerprint": "6413413b38a4456e7990e774cb0fe79c8981d52103dedd18d4380143623b4bf1"
|
|
286
286
|
},
|
|
287
287
|
"14e4ba79828d038e590c7e524c824df007cc37e22d21a9867a3f714df7531431": {
|
|
288
288
|
"translations": {
|
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
"282": 1,
|
|
354
354
|
"290": 1
|
|
355
355
|
},
|
|
356
|
-
"fqnsFingerprint": "
|
|
356
|
+
"fqnsFingerprint": "6413413b38a4456e7990e774cb0fe79c8981d52103dedd18d4380143623b4bf1"
|
|
357
357
|
},
|
|
358
358
|
"3b28361dfadd6daca165162a42c06bce31bc977911dc6cb37fd4212bf3c53fba": {
|
|
359
359
|
"translations": {
|
|
@@ -424,7 +424,7 @@
|
|
|
424
424
|
"282": 1,
|
|
425
425
|
"290": 1
|
|
426
426
|
},
|
|
427
|
-
"fqnsFingerprint": "
|
|
427
|
+
"fqnsFingerprint": "6413413b38a4456e7990e774cb0fe79c8981d52103dedd18d4380143623b4bf1"
|
|
428
428
|
},
|
|
429
429
|
"8c6e45181f0dbc7b76c7757eb559a6a2e14089f3c0d142067ef510dac8445b89": {
|
|
430
430
|
"translations": {
|
|
@@ -484,7 +484,7 @@
|
|
|
484
484
|
"281": 5,
|
|
485
485
|
"282": 1
|
|
486
486
|
},
|
|
487
|
-
"fqnsFingerprint": "
|
|
487
|
+
"fqnsFingerprint": "6413413b38a4456e7990e774cb0fe79c8981d52103dedd18d4380143623b4bf1"
|
|
488
488
|
},
|
|
489
489
|
"1fe68738b650f042a6ca8c4370a73d0a12f94c263535d18a6fcf558138da45b9": {
|
|
490
490
|
"translations": {
|
|
@@ -544,7 +544,7 @@
|
|
|
544
544
|
"281": 5,
|
|
545
545
|
"282": 1
|
|
546
546
|
},
|
|
547
|
-
"fqnsFingerprint": "
|
|
547
|
+
"fqnsFingerprint": "6413413b38a4456e7990e774cb0fe79c8981d52103dedd18d4380143623b4bf1"
|
|
548
548
|
},
|
|
549
549
|
"1487ff584727a1589c5476ca3c4df23801dbe200acd7d18d1bda015d3ea3244c": {
|
|
550
550
|
"translations": {
|
|
@@ -604,7 +604,7 @@
|
|
|
604
604
|
"281": 5,
|
|
605
605
|
"282": 1
|
|
606
606
|
},
|
|
607
|
-
"fqnsFingerprint": "
|
|
607
|
+
"fqnsFingerprint": "6413413b38a4456e7990e774cb0fe79c8981d52103dedd18d4380143623b4bf1"
|
|
608
608
|
},
|
|
609
609
|
"2577bd631c6ca99528df5a0dcc24cc3934fd1629688eaf608a382ff7bc1b6a0f": {
|
|
610
610
|
"translations": {
|
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ new lambda.PythonFunction(this, 'MyFunction', {
|
|
|
33
33
|
});
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
All other properties of `lambda.Function` are supported, see also the [AWS Lambda construct library](https://github.com/aws/aws-cdk/tree/
|
|
36
|
+
All other properties of `lambda.Function` are supported, see also the [AWS Lambda construct library](https://github.com/aws/aws-cdk/tree/main/packages/%40aws-cdk/aws-lambda).
|
|
37
37
|
|
|
38
38
|
## Python Layer
|
|
39
39
|
|
package/lib/function.js
CHANGED
|
@@ -52,5 +52,5 @@ class PythonFunction extends aws_lambda_1.Function {
|
|
|
52
52
|
}
|
|
53
53
|
exports.PythonFunction = PythonFunction;
|
|
54
54
|
_a = JSII_RTTI_SYMBOL_1;
|
|
55
|
-
PythonFunction[_a] = { fqn: "@aws-cdk/aws-lambda-python-alpha.PythonFunction", version: "2.
|
|
55
|
+
PythonFunction[_a] = { fqn: "@aws-cdk/aws-lambda-python-alpha.PythonFunction", version: "2.27.0-alpha.0" };
|
|
56
56
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnVuY3Rpb24uanMiLCJzb3VyY2VS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bGljZSgwLCAtMyl9LiR7aGFuZGxlcn1gLnJlcGxhY2UoL1xcLy9nLCAnLicpO1xuXG4gICAgaWYgKHByb3BzLnJ1bnRpbWUgJiYgcHJvcHMucnVudGltZS5mYW1pbHkgIT09IFJ1bnRpbWVGYW1pbHkuUFlUSE9OKSB7XG4gICAgICB0aHJvdyBuZXcgRXJyb3IoJ09ubHkgYFBZVEhPTmAgcnVudGltZXMgYXJlIHN1cHBvcnRlZC4nKTtcbiAgICB9XG5cbiAgICBzdXBlcihzY29wZSwgaWQsIHtcbiAgICAgIC4uLnByb3BzLFxuICAgICAgcnVudGltZSxcbiAgICAgIGNvZGU6IEJ1bmRsaW5nLmJ1bmRsZSh7XG4gICAgICAgIGVudHJ5LFxuICAgICAgICBydW50aW1lLFxuICAgICAgICBza2lwOiAhU3RhY2sub2Yoc2NvcGUpLmJ1bmRsaW5nUmVxdWlyZWQsXG4gICAgICAgIC4uLnByb3BzLmJ1bmRsaW5nLFxuICAgICAgfSksXG4gICAgICBoYW5kbGVyOiByZXNvbHZlZEhhbmRsZXIsXG4gICAgfSk7XG4gIH1cbn1cbiJdfQ==
|
package/lib/layer.js
CHANGED
|
@@ -53,5 +53,5 @@ class PythonLayerVersion extends lambda.LayerVersion {
|
|
|
53
53
|
}
|
|
54
54
|
exports.PythonLayerVersion = PythonLayerVersion;
|
|
55
55
|
_a = JSII_RTTI_SYMBOL_1;
|
|
56
|
-
PythonLayerVersion[_a] = { fqn: "@aws-cdk/aws-lambda-python-alpha.PythonLayerVersion", version: "2.
|
|
56
|
+
PythonLayerVersion[_a] = { fqn: "@aws-cdk/aws-lambda-python-alpha.PythonLayerVersion", version: "2.27.0-alpha.0" };
|
|
57
57
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF5ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJsYXllci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QU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xuXG4gICAgc3VwZXIoc2NvcGUsIGlkLCB7XG4gICAgICAuLi5wcm9wcyxcbiAgICAgIGNvbXBhdGlibGVSdW50aW1lcyxcbiAgICAgIGNvZGU6IEJ1bmRsaW5nLmJ1bmRsZSh7XG4gICAgICAgIGVudHJ5LFxuICAgICAgICBydW50aW1lLFxuICAgICAgICBhcmNoaXRlY3R1cmUsXG4gICAgICAgIG91dHB1dFBhdGhTdWZmaXg6ICdweXRob24nLFxuICAgICAgICBza2lwOiAhU3RhY2sub2Yoc2NvcGUpLmJ1bmRsaW5nUmVxdWlyZWQsXG4gICAgICAgIC4uLnByb3BzLmJ1bmRsaW5nLFxuICAgICAgfSksXG4gICAgfSk7XG4gIH1cbn1cbiJdfQ==
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-cdk/aws-lambda-python-alpha",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.27.0-alpha.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The CDK Construct Library for AWS Lambda in Python",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dotnet": {
|
|
19
19
|
"namespace": "Amazon.CDK.AWS.Lambda.Python.Alpha",
|
|
20
20
|
"packageId": "Amazon.CDK.AWS.Lambda.Python.Alpha",
|
|
21
|
-
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/
|
|
21
|
+
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/main/logo/default-256-dark.png"
|
|
22
22
|
},
|
|
23
23
|
"python": {
|
|
24
24
|
"distName": "aws-cdk.aws-lambda-python-alpha",
|
|
@@ -76,17 +76,17 @@
|
|
|
76
76
|
},
|
|
77
77
|
"license": "Apache-2.0",
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@aws-cdk/cdk-build-tools": "2.
|
|
80
|
-
"@aws-cdk/integ-runner": "2.
|
|
81
|
-
"@aws-cdk/pkglint": "2.
|
|
79
|
+
"@aws-cdk/cdk-build-tools": "2.27.0",
|
|
80
|
+
"@aws-cdk/integ-runner": "2.27.0",
|
|
81
|
+
"@aws-cdk/pkglint": "2.27.0",
|
|
82
82
|
"@types/jest": "^27.5.0",
|
|
83
|
-
"aws-cdk-lib": "2.
|
|
83
|
+
"aws-cdk-lib": "2.27.0",
|
|
84
84
|
"constructs": "^10.0.0"
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {},
|
|
87
87
|
"homepage": "https://github.com/aws/aws-cdk",
|
|
88
88
|
"peerDependencies": {
|
|
89
|
-
"aws-cdk-lib": "^2.
|
|
89
|
+
"aws-cdk-lib": "^2.27.0",
|
|
90
90
|
"constructs": "^10.0.0"
|
|
91
91
|
},
|
|
92
92
|
"engines": {
|