@aws-cdk/aws-lambda-python-alpha 2.40.0-alpha.0 → 2.41.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 CHANGED
@@ -8,7 +8,7 @@
8
8
  "url": "https://aws.amazon.com"
9
9
  },
10
10
  "dependencies": {
11
- "aws-cdk-lib": "^2.40.0",
11
+ "aws-cdk-lib": "^2.41.0",
12
12
  "constructs": "^10.0.0"
13
13
  },
14
14
  "dependencyClosure": {
@@ -3024,7 +3024,7 @@
3024
3024
  "stability": "experimental"
3025
3025
  },
3026
3026
  "homepage": "https://github.com/aws/aws-cdk",
3027
- "jsiiVersion": "1.66.0 (build 3c9512b)",
3027
+ "jsiiVersion": "1.67.0 (build 2c027f5)",
3028
3028
  "keywords": [
3029
3029
  "aws",
3030
3030
  "cdk",
@@ -3546,6 +3546,6 @@
3546
3546
  "symbolId": "lib/layer:PythonLayerVersionProps"
3547
3547
  }
3548
3548
  },
3549
- "version": "2.40.0-alpha.0",
3549
+ "version": "2.41.0-alpha.0",
3550
3550
  "fingerprint": "**********"
3551
3551
  }
Binary file
package/lib/Dockerfile CHANGED
@@ -7,10 +7,32 @@ ARG PIP_INDEX_URL
7
7
  ARG PIP_EXTRA_INDEX_URL
8
8
  ARG HTTPS_PROXY
9
9
 
10
+ # Create a new location for the pip cache
11
+ # Ensure all users can write to pip cache
12
+ RUN mkdir /tmp/pip-cache && \
13
+ chmod -R 777 /tmp/pip-cache
14
+
15
+ # set the cache location
16
+ ENV PIP_CACHE_DIR=/tmp/pip-cache
17
+
18
+ # create a new virtualenv for python to use
19
+ # so that it isn't using root
20
+ RUN python -m venv /usr/app/venv
21
+ ENV PATH="/usr/app/venv/bin:$PATH"
22
+
10
23
  # Upgrade pip (required by cryptography v3.4 and above, which is a dependency of poetry)
11
24
  RUN pip install --upgrade pip
12
25
 
26
+
13
27
  # pipenv 2022.4.8 is the last version with Python 3.6 support
14
28
  RUN pip install pipenv==2022.4.8 poetry
15
29
 
30
+ # Create a new location for the poetry cache
31
+ # Ensure all users can write to poetry cache
32
+ RUN mkdir /tmp/poetry-cache && \
33
+ chmod -R 777 /tmp/poetry-cache
34
+
35
+ # set the poetry cache
36
+ ENV POETRY_CACHE_DIR=/tmp/poetry-cache
37
+
16
38
  CMD [ "python" ]
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.40.0-alpha.0" };
55
+ PythonFunction[_a] = { fqn: "@aws-cdk/aws-lambda-python-alpha.PythonFunction", version: "2.41.0-alpha.0" };
56
56
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnVuY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJmdW5jdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSx5QkFBeUI7QUFDekIsNkJBQTZCO0FBQzdCLHVEQUEyRjtBQUMzRiw2Q0FBb0M7QUFFcEMseUNBQXNDO0FBNEN0Qzs7R0FFRztBQUNILE1BQWEsY0FBZSxTQUFRLHFCQUFRO0lBQzFDLFlBQVksS0FBZ0IsRUFBRSxFQUFVLEVBQUUsS0FBMEI7Ozs7OzsrQ0FEekQsY0FBYzs7OztRQUV2QixNQUFNLEVBQUUsS0FBSyxHQUFHLFVBQVUsRUFBRSxPQUFPLEdBQUcsU0FBUyxFQUFFLE9BQU8sRUFBRSxHQUFHLEtBQUssQ0FBQztRQUNuRSxJQUFJLEtBQUssQ0FBQyxLQUFLLElBQUksQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxLQUFLLENBQUMsRUFBRTtZQUM3QyxNQUFNLElBQUksS0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ZGxpbmcsXG4gICAgICB9KSxcbiAgICAgIGhhbmRsZXI6IHJlc29sdmVkSGFuZGxlcixcbiAgICB9KTtcbiAgfVxufVxuIl19
package/lib/layer.js CHANGED
@@ -52,5 +52,5 @@ class PythonLayerVersion extends lambda.LayerVersion {
52
52
  }
53
53
  exports.PythonLayerVersion = PythonLayerVersion;
54
54
  _a = JSII_RTTI_SYMBOL_1;
55
- PythonLayerVersion[_a] = { fqn: "@aws-cdk/aws-lambda-python-alpha.PythonLayerVersion", version: "2.40.0-alpha.0" };
55
+ PythonLayerVersion[_a] = { fqn: "@aws-cdk/aws-lambda-python-alpha.PythonLayerVersion", version: "2.41.0-alpha.0" };
56
56
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF5ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJsYXllci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSw2QkFBNkI7QUFDN0IsaURBQWlEO0FBQ2pELDZDQUFvQztBQUVwQyx5Q0FBc0M7QUFpQ3RDOzs7R0FHRztBQUNILE1BQWEsa0JBQW1CLFNBQVEsTUFBTSxDQUFDLFlBQVk7SUFDekQsWUFBWSxLQUFnQixFQUFFLEVBQVUsRUFBRSxLQUE4Qjs7Ozs7OytDQUQ3RCxrQkFBa0I7Ozs7UUFFM0IsTUFBTSxrQkFBa0IsR0FBRyxLQUFLLENBQUMsa0JBQWtCLElBQUksQ0FBQyxNQUFNLENBQUMsT0FBTyxDQUFDLFVBQVUsQ0FBQyxDQUFDO1FBQ25GLE1BQU0sdUJBQXVCLEdBQUcsS0FBSyxDQUFDLHVCQUF1QixJQUFJLENBQUMsTUFBTSxDQUFDLFlBQVksQ0FBQyxNQUFNLENBQUMsQ0FBQztRQUU5RixpREFBaUQ7UUFDakQsS0FBSyxNQUFNLE9BQU8sSUFBSSxrQkFBa0IsRUFBRTtZQUN4QyxJQUFJLE9BQU8sS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IGRlZmF1bHRzXG4gICAgY29uc3QgZW50cnkgPSBwYXRoLnJlc29sdmUocHJvcHMuZW50cnkpO1xuICAgIC8vIFBpY2sgdGhlIGZpcnN0IGNvbXBhdGlibGVSdW50aW1lIGFuZCBjb21wYXRpYmxlQXJjaGl0ZWN0dXJlcyB0byB1c2UgZm9yIGJ1bmRsaW5nXG4gICAgY29uc3QgcnVudGltZSA9IGNvbXBhdGlibGVSdW50aW1lc1swXTtcbiAgICBjb25zdCBhcmNoaXRlY3R1cmUgPSBjb21wYXRpYmxlQXJjaGl0ZWN0dXJlc1swXTtcblxuICAgIHN1cGVyKHNjb3BlLCBpZCwge1xuICAgICAgLi4ucHJvcHMsXG4gICAgICBjb21wYXRpYmxlUnVudGltZXMsXG4gICAgICBjb2RlOiBCdW5kbGluZy5idW5kbGUoe1xuICAgICAgICBlbnRyeSxcbiAgICAgICAgcnVudGltZSxcbiAgICAgICAgYXJjaGl0ZWN0dXJlLFxuICAgICAgICBvdXRwdXRQYXRoU3VmZml4OiAncHl0aG9uJyxcbiAgICAgICAgc2tpcDogIVN0YWNrLm9mKHNjb3BlKS5idW5kbGluZ1JlcXVpcmVkLFxuICAgICAgICAuLi5wcm9wcy5idW5kbGluZyxcbiAgICAgIH0pLFxuICAgIH0pO1xuICB9XG59XG4iXX0=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-cdk/aws-lambda-python-alpha",
3
- "version": "2.40.0-alpha.0",
3
+ "version": "2.41.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",
@@ -76,17 +76,18 @@
76
76
  },
77
77
  "license": "Apache-2.0",
78
78
  "devDependencies": {
79
- "@aws-cdk/cdk-build-tools": "2.40.0",
80
- "@aws-cdk/integ-runner": "2.40.0",
81
- "@aws-cdk/pkglint": "2.40.0",
79
+ "@aws-cdk/cdk-build-tools": "2.41.0",
80
+ "@aws-cdk/integ-runner": "2.41.0",
81
+ "@aws-cdk/pkglint": "2.41.0",
82
82
  "@types/jest": "^27.5.2",
83
- "aws-cdk-lib": "2.40.0",
84
- "constructs": "^10.0.0"
83
+ "aws-cdk-lib": "2.41.0",
84
+ "constructs": "^10.0.0",
85
+ "@aws-cdk/integ-tests-alpha": "2.41.0-alpha.0"
85
86
  },
86
87
  "dependencies": {},
87
88
  "homepage": "https://github.com/aws/aws-cdk",
88
89
  "peerDependencies": {
89
- "aws-cdk-lib": "^2.40.0",
90
+ "aws-cdk-lib": "^2.41.0",
90
91
  "constructs": "^10.0.0"
91
92
  },
92
93
  "engines": {
package/.jsii.tabl.json DELETED
@@ -1,722 +0,0 @@
1
- {
2
- "version": "2",
3
- "toolVersion": "1.66.0",
4
- "snippets": {
5
- "5044db3aa2cbd19f8d92b0e4571533d0c3964a4debb73355fc0b1849f831db50": {
6
- "translations": {
7
- "python": {
8
- "source": "lambda_.PythonFunction(self, \"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\"\n)",
9
- "version": "2"
10
- },
11
- "csharp": {
12
- "source": "new PythonFunction(this, \"MyFunction\", new PythonFunctionProps {\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\"\n});",
13
- "version": "1"
14
- },
15
- "java": {
16
- "source": "PythonFunction.Builder.create(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\")\n .build();",
17
- "version": "1"
18
- },
19
- "go": {
20
- "source": "lambda.NewPythonFunction(this, jsii.String(\"MyFunction\"), &pythonFunctionProps{\n\tentry: jsii.String(\"/path/to/my/function\"),\n\t // required\n\truntime: awscdk.Runtime_PYTHON_3_8(),\n\t // required\n\tindex: jsii.String(\"my_index.py\"),\n\t // optional, defaults to 'index.py'\n\thandler: jsii.String(\"my_exported_func\"),\n})",
21
- "version": "1"
22
- },
23
- "$": {
24
- "source": "new 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});",
25
- "version": "0"
26
- }
27
- },
28
- "location": {
29
- "api": {
30
- "api": "moduleReadme",
31
- "moduleFqn": "@aws-cdk/aws-lambda-python-alpha"
32
- },
33
- "field": {
34
- "field": "markdown",
35
- "line": 27
36
- }
37
- },
38
- "didCompile": true,
39
- "fqnsReferenced": [
40
- "@aws-cdk/aws-lambda-python-alpha.PythonFunction",
41
- "@aws-cdk/aws-lambda-python-alpha.PythonFunctionProps",
42
- "aws-cdk-lib.aws_lambda.Runtime",
43
- "aws-cdk-lib.aws_lambda.Runtime#PYTHON_3_8",
44
- "constructs.Construct"
45
- ],
46
- "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { DockerImage, Stack } from 'aws-cdk-lib';\nimport { Runtime } from 'aws-cdk-lib/aws-lambda';\nimport * as lambda from '@aws-cdk/aws-lambda-python-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\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/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
47
- "syntaxKindCounter": {
48
- "10": 4,
49
- "75": 8,
50
- "104": 1,
51
- "193": 1,
52
- "194": 2,
53
- "197": 1,
54
- "226": 1,
55
- "281": 4
56
- },
57
- "fqnsFingerprint": "7aaf7dc837b593fe1c6ed03e376ef962bfdf51afeeecf989c80910ec8e9807eb"
58
- },
59
- "53686c43ad7160036474e74010ea12f31c3ff817524e232264f2795823254c1a": {
60
- "translations": {
61
- "python": {
62
- "source": "lambda_.PythonLayerVersion(self, \"MyLayer\",\n entry=\"/path/to/my/layer\"\n)",
63
- "version": "2"
64
- },
65
- "csharp": {
66
- "source": "new PythonLayerVersion(this, \"MyLayer\", new PythonLayerVersionProps {\n Entry = \"/path/to/my/layer\"\n});",
67
- "version": "1"
68
- },
69
- "java": {
70
- "source": "PythonLayerVersion.Builder.create(this, \"MyLayer\")\n .entry(\"/path/to/my/layer\")\n .build();",
71
- "version": "1"
72
- },
73
- "go": {
74
- "source": "lambda.NewPythonLayerVersion(this, jsii.String(\"MyLayer\"), &pythonLayerVersionProps{\n\tentry: jsii.String(\"/path/to/my/layer\"),\n})",
75
- "version": "1"
76
- },
77
- "$": {
78
- "source": "new lambda.PythonLayerVersion(this, 'MyLayer', {\n entry: '/path/to/my/layer', // point this to your library's directory\n})",
79
- "version": "0"
80
- }
81
- },
82
- "location": {
83
- "api": {
84
- "api": "moduleReadme",
85
- "moduleFqn": "@aws-cdk/aws-lambda-python-alpha"
86
- },
87
- "field": {
88
- "field": "markdown",
89
- "line": 46
90
- }
91
- },
92
- "didCompile": true,
93
- "fqnsReferenced": [
94
- "@aws-cdk/aws-lambda-python-alpha.PythonLayerVersion",
95
- "@aws-cdk/aws-lambda-python-alpha.PythonLayerVersionProps",
96
- "constructs.Construct"
97
- ],
98
- "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { DockerImage, Stack } from 'aws-cdk-lib';\nimport { Runtime } from 'aws-cdk-lib/aws-lambda';\nimport * as lambda from '@aws-cdk/aws-lambda-python-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nnew lambda.PythonLayerVersion(this, 'MyLayer', {\n entry: '/path/to/my/layer', // point this to your library's directory\n})\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
99
- "syntaxKindCounter": {
100
- "10": 2,
101
- "75": 3,
102
- "104": 1,
103
- "193": 1,
104
- "194": 1,
105
- "197": 1,
106
- "226": 1,
107
- "281": 1
108
- },
109
- "fqnsFingerprint": "e15490338693f09f8460c6c29934aefce7581a7c09bcda00fcb352b12622a97e"
110
- },
111
- "5607c1746237addcc7a2cfa766894235cce9b700cdd5ea97a7e88222560655b7": {
112
- "translations": {
113
- "python": {
114
- "source": "lambda_.PythonFunction(self, \"MyFunction\",\n entry=\"/path/to/my/function\",\n runtime=Runtime.PYTHON_3_8,\n layers=[\n lambda_.PythonLayerVersion(self, \"MyLayer\",\n entry=\"/path/to/my/layer\"\n )\n ]\n)",
115
- "version": "2"
116
- },
117
- "csharp": {
118
- "source": "new PythonFunction(this, \"MyFunction\", new PythonFunctionProps {\n Entry = \"/path/to/my/function\",\n Runtime = Runtime.PYTHON_3_8,\n Layers = new [] {\n new PythonLayerVersion(this, \"MyLayer\", new PythonLayerVersionProps {\n Entry = \"/path/to/my/layer\"\n }) }\n});",
119
- "version": "1"
120
- },
121
- "java": {
122
- "source": "PythonFunction.Builder.create(this, \"MyFunction\")\n .entry(\"/path/to/my/function\")\n .runtime(Runtime.PYTHON_3_8)\n .layers(List.of(\n PythonLayerVersion.Builder.create(this, \"MyLayer\")\n .entry(\"/path/to/my/layer\")\n .build()))\n .build();",
123
- "version": "1"
124
- },
125
- "go": {
126
- "source": "lambda.NewPythonFunction(this, jsii.String(\"MyFunction\"), &pythonFunctionProps{\n\tentry: jsii.String(\"/path/to/my/function\"),\n\truntime: awscdk.Runtime_PYTHON_3_8(),\n\tlayers: []iLayerVersion{\n\t\tlambda.NewPythonLayerVersion(this, jsii.String(\"MyLayer\"), &pythonLayerVersionProps{\n\t\t\tentry: jsii.String(\"/path/to/my/layer\"),\n\t\t}),\n\t},\n})",
127
- "version": "1"
128
- },
129
- "$": {
130
- "source": "new 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});",
131
- "version": "0"
132
- }
133
- },
134
- "location": {
135
- "api": {
136
- "api": "moduleReadme",
137
- "moduleFqn": "@aws-cdk/aws-lambda-python-alpha"
138
- },
139
- "field": {
140
- "field": "markdown",
141
- "line": 54
142
- }
143
- },
144
- "didCompile": true,
145
- "fqnsReferenced": [
146
- "@aws-cdk/aws-lambda-python-alpha.PythonFunction",
147
- "@aws-cdk/aws-lambda-python-alpha.PythonFunctionProps",
148
- "@aws-cdk/aws-lambda-python-alpha.PythonLayerVersion",
149
- "@aws-cdk/aws-lambda-python-alpha.PythonLayerVersionProps",
150
- "aws-cdk-lib.aws_lambda.Runtime",
151
- "aws-cdk-lib.aws_lambda.Runtime#PYTHON_3_8",
152
- "constructs.Construct"
153
- ],
154
- "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { DockerImage, Stack } from 'aws-cdk-lib';\nimport { Runtime } from 'aws-cdk-lib/aws-lambda';\nimport * as lambda from '@aws-cdk/aws-lambda-python-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\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/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
155
- "syntaxKindCounter": {
156
- "10": 4,
157
- "75": 10,
158
- "104": 2,
159
- "192": 1,
160
- "193": 2,
161
- "194": 3,
162
- "197": 2,
163
- "226": 1,
164
- "281": 4
165
- },
166
- "fqnsFingerprint": "067c4ce008b094607342e31b9c56329cf97ec14a9582202e7a1af817a139bf39"
167
- },
168
- "f263241052727b50b49ec356568b7a69019d835dfc04249cef6b843690d6a71c": {
169
- "translations": {
170
- "python": {
171
- "source": "entry = \"/path/to/function\"\nimage = DockerImage.from_build(entry)\n\nlambda_.PythonFunction(self, \"function\",\n entry=entry,\n runtime=Runtime.PYTHON_3_8,\n bundling=lambda.BundlingOptions(\n build_args={\"PIP_INDEX_URL\": \"https://your.index.url/simple/\", \"PIP_EXTRA_INDEX_URL\": \"https://your.extra-index.url/simple/\"}\n )\n)",
172
- "version": "2"
173
- },
174
- "csharp": {
175
- "source": "string entry = \"/path/to/function\";\nDockerImage image = DockerImage.FromBuild(entry);\n\nnew PythonFunction(this, \"function\", new PythonFunctionProps {\n Entry = entry,\n Runtime = Runtime.PYTHON_3_8,\n Bundling = new BundlingOptions {\n BuildArgs = new Dictionary<string, string> { { \"PIP_INDEX_URL\", \"https://your.index.url/simple/\" }, { \"PIP_EXTRA_INDEX_URL\", \"https://your.extra-index.url/simple/\" } }\n }\n});",
176
- "version": "1"
177
- },
178
- "java": {
179
- "source": "String entry = \"/path/to/function\";\nDockerImage image = DockerImage.fromBuild(entry);\n\nPythonFunction.Builder.create(this, \"function\")\n .entry(entry)\n .runtime(Runtime.PYTHON_3_8)\n .bundling(BundlingOptions.builder()\n .buildArgs(Map.of(\"PIP_INDEX_URL\", \"https://your.index.url/simple/\", \"PIP_EXTRA_INDEX_URL\", \"https://your.extra-index.url/simple/\"))\n .build())\n .build();",
180
- "version": "1"
181
- },
182
- "go": {
183
- "source": "entry := \"/path/to/function\"\nimage := awscdk.DockerImage.fromBuild(entry)\n\nlambda.NewPythonFunction(this, jsii.String(\"function\"), &pythonFunctionProps{\n\tentry: jsii.String(entry),\n\truntime: awscdk.Runtime_PYTHON_3_8(),\n\tbundling: &bundlingOptions{\n\t\tbuildArgs: map[string]*string{\n\t\t\t\"PIP_INDEX_URL\": jsii.String(\"https://your.index.url/simple/\"),\n\t\t\t\"PIP_EXTRA_INDEX_URL\": jsii.String(\"https://your.extra-index.url/simple/\"),\n\t\t},\n\t},\n})",
184
- "version": "1"
185
- },
186
- "$": {
187
- "source": "const 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});",
188
- "version": "0"
189
- }
190
- },
191
- "location": {
192
- "api": {
193
- "api": "moduleReadme",
194
- "moduleFqn": "@aws-cdk/aws-lambda-python-alpha"
195
- },
196
- "field": {
197
- "field": "markdown",
198
- "line": 122
199
- }
200
- },
201
- "didCompile": true,
202
- "fqnsReferenced": [
203
- "@aws-cdk/aws-lambda-python-alpha.BundlingOptions",
204
- "@aws-cdk/aws-lambda-python-alpha.PythonFunction",
205
- "@aws-cdk/aws-lambda-python-alpha.PythonFunctionProps",
206
- "aws-cdk-lib.DockerImage",
207
- "aws-cdk-lib.DockerImage#fromBuild",
208
- "aws-cdk-lib.aws_lambda.Runtime",
209
- "aws-cdk-lib.aws_lambda.Runtime#PYTHON_3_8",
210
- "constructs.Construct"
211
- ],
212
- "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { DockerImage, Stack } from 'aws-cdk-lib';\nimport { Runtime } from 'aws-cdk-lib/aws-lambda';\nimport * as lambda from '@aws-cdk/aws-lambda-python-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\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/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
213
- "syntaxKindCounter": {
214
- "10": 4,
215
- "75": 15,
216
- "104": 1,
217
- "193": 3,
218
- "194": 3,
219
- "196": 1,
220
- "197": 1,
221
- "225": 2,
222
- "226": 1,
223
- "242": 2,
224
- "243": 2,
225
- "281": 5,
226
- "282": 1
227
- },
228
- "fqnsFingerprint": "bca55fa9fc4cd1f10ab5156b6fbe5324e1daf23cae7d36a180cea9e83cd1e531"
229
- },
230
- "7300f4badf25be82206db2ddea0d127c48665c4ca57e1030819c01fd03375d05": {
231
- "translations": {
232
- "python": {
233
- "source": "entry = \"/path/to/function\"\nimage = DockerImage.from_build(entry)\n\nlambda_.PythonFunction(self, \"function\",\n entry=entry,\n runtime=Runtime.PYTHON_3_8,\n bundling=lambda.BundlingOptions(image=image)\n)",
234
- "version": "2"
235
- },
236
- "csharp": {
237
- "source": "string entry = \"/path/to/function\";\nDockerImage image = DockerImage.FromBuild(entry);\n\nnew PythonFunction(this, \"function\", new PythonFunctionProps {\n Entry = entry,\n Runtime = Runtime.PYTHON_3_8,\n Bundling = new BundlingOptions { Image = image }\n});",
238
- "version": "1"
239
- },
240
- "java": {
241
- "source": "String entry = \"/path/to/function\";\nDockerImage image = DockerImage.fromBuild(entry);\n\nPythonFunction.Builder.create(this, \"function\")\n .entry(entry)\n .runtime(Runtime.PYTHON_3_8)\n .bundling(BundlingOptions.builder().image(image).build())\n .build();",
242
- "version": "1"
243
- },
244
- "go": {
245
- "source": "entry := \"/path/to/function\"\nimage := awscdk.DockerImage.fromBuild(entry)\n\nlambda.NewPythonFunction(this, jsii.String(\"function\"), &pythonFunctionProps{\n\tentry: jsii.String(entry),\n\truntime: awscdk.Runtime_PYTHON_3_8(),\n\tbundling: &bundlingOptions{\n\t\timage: image,\n\t},\n})",
246
- "version": "1"
247
- },
248
- "$": {
249
- "source": "const 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});",
250
- "version": "0"
251
- }
252
- },
253
- "location": {
254
- "api": {
255
- "api": "moduleReadme",
256
- "moduleFqn": "@aws-cdk/aws-lambda-python-alpha"
257
- },
258
- "field": {
259
- "field": "markdown",
260
- "line": 137
261
- }
262
- },
263
- "didCompile": true,
264
- "fqnsReferenced": [
265
- "@aws-cdk/aws-lambda-python-alpha.BundlingOptions",
266
- "@aws-cdk/aws-lambda-python-alpha.PythonFunction",
267
- "@aws-cdk/aws-lambda-python-alpha.PythonFunctionProps",
268
- "aws-cdk-lib.DockerImage",
269
- "aws-cdk-lib.DockerImage#fromBuild",
270
- "aws-cdk-lib.aws_lambda.Runtime",
271
- "aws-cdk-lib.aws_lambda.Runtime#PYTHON_3_8",
272
- "constructs.Construct"
273
- ],
274
- "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { DockerImage, Stack } from 'aws-cdk-lib';\nimport { Runtime } from 'aws-cdk-lib/aws-lambda';\nimport * as lambda from '@aws-cdk/aws-lambda-python-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\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/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
275
- "syntaxKindCounter": {
276
- "10": 2,
277
- "75": 13,
278
- "104": 1,
279
- "193": 2,
280
- "194": 3,
281
- "196": 1,
282
- "197": 1,
283
- "225": 2,
284
- "226": 1,
285
- "242": 2,
286
- "243": 2,
287
- "281": 2,
288
- "282": 2
289
- },
290
- "fqnsFingerprint": "bca55fa9fc4cd1f10ab5156b6fbe5324e1daf23cae7d36a180cea9e83cd1e531"
291
- },
292
- "14e4ba79828d038e590c7e524c824df007cc37e22d21a9867a3f714df7531431": {
293
- "translations": {
294
- "python": {
295
- "source": "from child_process import exec_sync\n\n\nentry = \"/path/to/function\"\nimage = DockerImage.from_build(entry)\n\ndomain = \"my-domain\"\ndomain_owner = \"111122223333\"\nrepo_name = \"my_repo\"\nregion = \"us-east-1\"\ncode_artifact_auth_token = exec_sync(f\"aws codeartifact get-authorization-token --domain {domain} --domain-owner {domainOwner} --query authorizationToken --output text\").to_string().trim()\n\nindex_url = f\"https://aws:{codeArtifactAuthToken}@{domain}-{domainOwner}.d.codeartifact.{region}.amazonaws.com/pypi/{repoName}/simple/\"\n\nlambda_.PythonFunction(self, \"function\",\n entry=entry,\n runtime=Runtime.PYTHON_3_8,\n bundling=lambda.BundlingOptions(\n environment={\"PIP_INDEX_URL\": index_url}\n )\n)",
296
- "version": "2"
297
- },
298
- "csharp": {
299
- "source": "using Child.Process;\n\n\nstring entry = \"/path/to/function\";\nDockerImage image = DockerImage.FromBuild(entry);\n\nstring domain = \"my-domain\";\nstring domainOwner = \"111122223333\";\nstring repoName = \"my_repo\";\nstring region = \"us-east-1\";\nstring codeArtifactAuthToken = ExecSync($\"aws codeartifact get-authorization-token --domain {domain} --domain-owner {domainOwner} --query authorizationToken --output text\").ToString().Trim();\n\nstring indexUrl = $\"https://aws:{codeArtifactAuthToken}@{domain}-{domainOwner}.d.codeartifact.{region}.amazonaws.com/pypi/{repoName}/simple/\";\n\nnew PythonFunction(this, \"function\", new PythonFunctionProps {\n Entry = entry,\n Runtime = Runtime.PYTHON_3_8,\n Bundling = new BundlingOptions {\n Environment = new Dictionary<string, string> { { \"PIP_INDEX_URL\", indexUrl } }\n }\n});",
300
- "version": "1"
301
- },
302
- "java": {
303
- "source": "import child.process.execSync;\n\n\nString entry = \"/path/to/function\";\nDockerImage image = DockerImage.fromBuild(entry);\n\nString domain = \"my-domain\";\nString domainOwner = \"111122223333\";\nString repoName = \"my_repo\";\nString region = \"us-east-1\";\nString codeArtifactAuthToken = execSync(String.format(\"aws codeartifact get-authorization-token --domain %s --domain-owner %s --query authorizationToken --output text\", domain, domainOwner)).toString().trim();\n\nString indexUrl = String.format(\"https://aws:%s@%s-%s.d.codeartifact.%s.amazonaws.com/pypi/%s/simple/\", codeArtifactAuthToken, domain, domainOwner, region, repoName);\n\nPythonFunction.Builder.create(this, \"function\")\n .entry(entry)\n .runtime(Runtime.PYTHON_3_8)\n .bundling(BundlingOptions.builder()\n .environment(Map.of(\"PIP_INDEX_URL\", indexUrl))\n .build())\n .build();",
304
- "version": "1"
305
- },
306
- "go": {
307
- "source": "import \"github.com/aws-samples/dummy/child_process\"\n\n\nentry := \"/path/to/function\"\nimage := awscdk.DockerImage.fromBuild(entry)\n\ndomain := \"my-domain\"\ndomainOwner := \"111122223333\"\nrepoName := \"my_repo\"\nregion := \"us-east-1\"\ncodeArtifactAuthToken := child_process.ExecSync(fmt.Sprintf(\"aws codeartifact get-authorization-token --domain %v --domain-owner %v --query authorizationToken --output text\", domain, domainOwner)).toString().trim()\n\nindexUrl := fmt.Sprintf(\"https://aws:%v@%v-%v.d.codeartifact.%v.amazonaws.com/pypi/%v/simple/\", codeArtifactAuthToken, domain, domainOwner, region, repoName)\n\nlambda.NewPythonFunction(this, jsii.String(\"function\"), &pythonFunctionProps{\n\tentry: jsii.String(entry),\n\truntime: awscdk.Runtime_PYTHON_3_8(),\n\tbundling: &bundlingOptions{\n\t\tenvironment: map[string]*string{\n\t\t\t\"PIP_INDEX_URL\": indexUrl,\n\t\t},\n\t},\n})",
308
- "version": "1"
309
- },
310
- "$": {
311
- "source": "import { 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});",
312
- "version": "0"
313
- }
314
- },
315
- "location": {
316
- "api": {
317
- "api": "moduleReadme",
318
- "moduleFqn": "@aws-cdk/aws-lambda-python-alpha"
319
- },
320
- "field": {
321
- "field": "markdown",
322
- "line": 152
323
- }
324
- },
325
- "didCompile": true,
326
- "fqnsReferenced": [
327
- "@aws-cdk/aws-lambda-python-alpha.BundlingOptions",
328
- "@aws-cdk/aws-lambda-python-alpha.PythonFunction",
329
- "@aws-cdk/aws-lambda-python-alpha.PythonFunctionProps",
330
- "aws-cdk-lib.DockerImage",
331
- "aws-cdk-lib.DockerImage#fromBuild",
332
- "aws-cdk-lib.aws_lambda.Runtime",
333
- "aws-cdk-lib.aws_lambda.Runtime#PYTHON_3_8",
334
- "constructs.Construct"
335
- ],
336
- "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport { execSync } from 'child_process';\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { DockerImage, Stack } from 'aws-cdk-lib';\nimport { Runtime } from 'aws-cdk-lib/aws-lambda';\nimport * as lambda from '@aws-cdk/aws-lambda-python-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\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/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
337
- "syntaxKindCounter": {
338
- "10": 7,
339
- "15": 2,
340
- "16": 5,
341
- "17": 2,
342
- "75": 32,
343
- "104": 1,
344
- "193": 3,
345
- "194": 5,
346
- "196": 4,
347
- "197": 1,
348
- "211": 2,
349
- "221": 7,
350
- "225": 8,
351
- "226": 1,
352
- "242": 8,
353
- "243": 8,
354
- "254": 1,
355
- "255": 1,
356
- "257": 1,
357
- "258": 1,
358
- "281": 4,
359
- "282": 1,
360
- "290": 1
361
- },
362
- "fqnsFingerprint": "bca55fa9fc4cd1f10ab5156b6fbe5324e1daf23cae7d36a180cea9e83cd1e531"
363
- },
364
- "3b28361dfadd6daca165162a42c06bce31bc977911dc6cb37fd4212bf3c53fba": {
365
- "translations": {
366
- "python": {
367
- "source": "from child_process import exec_sync\n\n\nentry = \"/path/to/function\"\nimage = DockerImage.from_build(entry)\n\ndomain = \"my-domain\"\ndomain_owner = \"111122223333\"\nrepo_name = \"my_repo\"\nregion = \"us-east-1\"\ncode_artifact_auth_token = exec_sync(f\"aws codeartifact get-authorization-token --domain {domain} --domain-owner {domainOwner} --query authorizationToken --output text\").to_string().trim()\n\nindex_url = f\"https://aws:{codeArtifactAuthToken}@{domain}-{domainOwner}.d.codeartifact.{region}.amazonaws.com/pypi/{repoName}/simple/\"\n\nlambda_.PythonFunction(self, \"function\",\n entry=entry,\n runtime=Runtime.PYTHON_3_8,\n bundling=lambda.BundlingOptions(\n build_args={\"PIP_INDEX_URL\": index_url}\n )\n)",
368
- "version": "2"
369
- },
370
- "csharp": {
371
- "source": "using Child.Process;\n\n\nstring entry = \"/path/to/function\";\nDockerImage image = DockerImage.FromBuild(entry);\n\nstring domain = \"my-domain\";\nstring domainOwner = \"111122223333\";\nstring repoName = \"my_repo\";\nstring region = \"us-east-1\";\nstring codeArtifactAuthToken = ExecSync($\"aws codeartifact get-authorization-token --domain {domain} --domain-owner {domainOwner} --query authorizationToken --output text\").ToString().Trim();\n\nstring indexUrl = $\"https://aws:{codeArtifactAuthToken}@{domain}-{domainOwner}.d.codeartifact.{region}.amazonaws.com/pypi/{repoName}/simple/\";\n\nnew PythonFunction(this, \"function\", new PythonFunctionProps {\n Entry = entry,\n Runtime = Runtime.PYTHON_3_8,\n Bundling = new BundlingOptions {\n BuildArgs = new Dictionary<string, string> { { \"PIP_INDEX_URL\", indexUrl } }\n }\n});",
372
- "version": "1"
373
- },
374
- "java": {
375
- "source": "import child.process.execSync;\n\n\nString entry = \"/path/to/function\";\nDockerImage image = DockerImage.fromBuild(entry);\n\nString domain = \"my-domain\";\nString domainOwner = \"111122223333\";\nString repoName = \"my_repo\";\nString region = \"us-east-1\";\nString codeArtifactAuthToken = execSync(String.format(\"aws codeartifact get-authorization-token --domain %s --domain-owner %s --query authorizationToken --output text\", domain, domainOwner)).toString().trim();\n\nString indexUrl = String.format(\"https://aws:%s@%s-%s.d.codeartifact.%s.amazonaws.com/pypi/%s/simple/\", codeArtifactAuthToken, domain, domainOwner, region, repoName);\n\nPythonFunction.Builder.create(this, \"function\")\n .entry(entry)\n .runtime(Runtime.PYTHON_3_8)\n .bundling(BundlingOptions.builder()\n .buildArgs(Map.of(\"PIP_INDEX_URL\", indexUrl))\n .build())\n .build();",
376
- "version": "1"
377
- },
378
- "go": {
379
- "source": "import \"github.com/aws-samples/dummy/child_process\"\n\n\nentry := \"/path/to/function\"\nimage := awscdk.DockerImage.fromBuild(entry)\n\ndomain := \"my-domain\"\ndomainOwner := \"111122223333\"\nrepoName := \"my_repo\"\nregion := \"us-east-1\"\ncodeArtifactAuthToken := child_process.ExecSync(fmt.Sprintf(\"aws codeartifact get-authorization-token --domain %v --domain-owner %v --query authorizationToken --output text\", domain, domainOwner)).toString().trim()\n\nindexUrl := fmt.Sprintf(\"https://aws:%v@%v-%v.d.codeartifact.%v.amazonaws.com/pypi/%v/simple/\", codeArtifactAuthToken, domain, domainOwner, region, repoName)\n\nlambda.NewPythonFunction(this, jsii.String(\"function\"), &pythonFunctionProps{\n\tentry: jsii.String(entry),\n\truntime: awscdk.Runtime_PYTHON_3_8(),\n\tbundling: &bundlingOptions{\n\t\tbuildArgs: map[string]*string{\n\t\t\t\"PIP_INDEX_URL\": indexUrl,\n\t\t},\n\t},\n})",
380
- "version": "1"
381
- },
382
- "$": {
383
- "source": "import { 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});",
384
- "version": "0"
385
- }
386
- },
387
- "location": {
388
- "api": {
389
- "api": "moduleReadme",
390
- "moduleFqn": "@aws-cdk/aws-lambda-python-alpha"
391
- },
392
- "field": {
393
- "field": "markdown",
394
- "line": 179
395
- }
396
- },
397
- "didCompile": true,
398
- "fqnsReferenced": [
399
- "@aws-cdk/aws-lambda-python-alpha.BundlingOptions",
400
- "@aws-cdk/aws-lambda-python-alpha.PythonFunction",
401
- "@aws-cdk/aws-lambda-python-alpha.PythonFunctionProps",
402
- "aws-cdk-lib.DockerImage",
403
- "aws-cdk-lib.DockerImage#fromBuild",
404
- "aws-cdk-lib.aws_lambda.Runtime",
405
- "aws-cdk-lib.aws_lambda.Runtime#PYTHON_3_8",
406
- "constructs.Construct"
407
- ],
408
- "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport { execSync } from 'child_process';\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { DockerImage, Stack } from 'aws-cdk-lib';\nimport { Runtime } from 'aws-cdk-lib/aws-lambda';\nimport * as lambda from '@aws-cdk/aws-lambda-python-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\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/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
409
- "syntaxKindCounter": {
410
- "10": 7,
411
- "15": 2,
412
- "16": 5,
413
- "17": 2,
414
- "75": 32,
415
- "104": 1,
416
- "193": 3,
417
- "194": 5,
418
- "196": 4,
419
- "197": 1,
420
- "211": 2,
421
- "221": 7,
422
- "225": 8,
423
- "226": 1,
424
- "242": 8,
425
- "243": 8,
426
- "254": 1,
427
- "255": 1,
428
- "257": 1,
429
- "258": 1,
430
- "281": 4,
431
- "282": 1,
432
- "290": 1
433
- },
434
- "fqnsFingerprint": "bca55fa9fc4cd1f10ab5156b6fbe5324e1daf23cae7d36a180cea9e83cd1e531"
435
- },
436
- "8c6e45181f0dbc7b76c7757eb559a6a2e14089f3c0d142067ef510dac8445b89": {
437
- "translations": {
438
- "python": {
439
- "source": "entry = \"/path/to/function\"\nimage = DockerImage.from_build(entry)\n\nlambda_.PythonFunction(self, \"function\",\n entry=entry,\n runtime=Runtime.PYTHON_3_8,\n bundling=lambda.BundlingOptions(\n build_args={\"PIP_INDEX_URL\": \"https://your.index.url/simple/\", \"PIP_EXTRA_INDEX_URL\": \"https://your.extra-index.url/simple/\"}\n )\n)",
440
- "version": "2"
441
- },
442
- "csharp": {
443
- "source": "string entry = \"/path/to/function\";\nDockerImage image = DockerImage.FromBuild(entry);\n\nnew PythonFunction(this, \"function\", new PythonFunctionProps {\n Entry = entry,\n Runtime = Runtime.PYTHON_3_8,\n Bundling = new BundlingOptions {\n BuildArgs = new Dictionary<string, string> { { \"PIP_INDEX_URL\", \"https://your.index.url/simple/\" }, { \"PIP_EXTRA_INDEX_URL\", \"https://your.extra-index.url/simple/\" } }\n }\n});",
444
- "version": "1"
445
- },
446
- "java": {
447
- "source": "String entry = \"/path/to/function\";\nDockerImage image = DockerImage.fromBuild(entry);\n\nPythonFunction.Builder.create(this, \"function\")\n .entry(entry)\n .runtime(Runtime.PYTHON_3_8)\n .bundling(BundlingOptions.builder()\n .buildArgs(Map.of(\"PIP_INDEX_URL\", \"https://your.index.url/simple/\", \"PIP_EXTRA_INDEX_URL\", \"https://your.extra-index.url/simple/\"))\n .build())\n .build();",
448
- "version": "1"
449
- },
450
- "go": {
451
- "source": "entry := \"/path/to/function\"\nimage := awscdk.DockerImage.fromBuild(entry)\n\nlambda.NewPythonFunction(this, jsii.String(\"function\"), &pythonFunctionProps{\n\tentry: jsii.String(entry),\n\truntime: awscdk.Runtime_PYTHON_3_8(),\n\tbundling: &bundlingOptions{\n\t\tbuildArgs: map[string]*string{\n\t\t\t\"PIP_INDEX_URL\": jsii.String(\"https://your.index.url/simple/\"),\n\t\t\t\"PIP_EXTRA_INDEX_URL\": jsii.String(\"https://your.extra-index.url/simple/\"),\n\t\t},\n\t},\n})",
452
- "version": "1"
453
- },
454
- "$": {
455
- "source": "const 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});",
456
- "version": "0"
457
- }
458
- },
459
- "location": {
460
- "api": {
461
- "api": "type",
462
- "fqn": "@aws-cdk/aws-lambda-python-alpha.BundlingOptions"
463
- },
464
- "field": {
465
- "field": "example"
466
- }
467
- },
468
- "didCompile": true,
469
- "fqnsReferenced": [
470
- "@aws-cdk/aws-lambda-python-alpha.BundlingOptions",
471
- "@aws-cdk/aws-lambda-python-alpha.PythonFunction",
472
- "@aws-cdk/aws-lambda-python-alpha.PythonFunctionProps",
473
- "aws-cdk-lib.DockerImage",
474
- "aws-cdk-lib.DockerImage#fromBuild",
475
- "aws-cdk-lib.aws_lambda.Runtime",
476
- "aws-cdk-lib.aws_lambda.Runtime#PYTHON_3_8",
477
- "constructs.Construct"
478
- ],
479
- "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { DockerImage, Stack } from 'aws-cdk-lib';\nimport { Runtime } from 'aws-cdk-lib/aws-lambda';\nimport * as lambda from '@aws-cdk/aws-lambda-python-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\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/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
480
- "syntaxKindCounter": {
481
- "10": 4,
482
- "75": 15,
483
- "104": 1,
484
- "193": 3,
485
- "194": 3,
486
- "196": 1,
487
- "197": 1,
488
- "225": 2,
489
- "226": 1,
490
- "242": 2,
491
- "243": 2,
492
- "281": 5,
493
- "282": 1
494
- },
495
- "fqnsFingerprint": "bca55fa9fc4cd1f10ab5156b6fbe5324e1daf23cae7d36a180cea9e83cd1e531"
496
- },
497
- "1fe68738b650f042a6ca8c4370a73d0a12f94c263535d18a6fcf558138da45b9": {
498
- "translations": {
499
- "python": {
500
- "source": "entry = \"/path/to/function\"\nimage = DockerImage.from_build(entry)\n\nlambda_.PythonFunction(self, \"function\",\n entry=entry,\n runtime=Runtime.PYTHON_3_8,\n bundling=lambda.BundlingOptions(\n build_args={\"PIP_INDEX_URL\": \"https://your.index.url/simple/\", \"PIP_EXTRA_INDEX_URL\": \"https://your.extra-index.url/simple/\"}\n )\n)",
501
- "version": "2"
502
- },
503
- "csharp": {
504
- "source": "string entry = \"/path/to/function\";\nDockerImage image = DockerImage.FromBuild(entry);\n\nnew PythonFunction(this, \"function\", new PythonFunctionProps {\n Entry = entry,\n Runtime = Runtime.PYTHON_3_8,\n Bundling = new BundlingOptions {\n BuildArgs = new Dictionary<string, string> { { \"PIP_INDEX_URL\", \"https://your.index.url/simple/\" }, { \"PIP_EXTRA_INDEX_URL\", \"https://your.extra-index.url/simple/\" } }\n }\n});",
505
- "version": "1"
506
- },
507
- "java": {
508
- "source": "String entry = \"/path/to/function\";\nDockerImage image = DockerImage.fromBuild(entry);\n\nPythonFunction.Builder.create(this, \"function\")\n .entry(entry)\n .runtime(Runtime.PYTHON_3_8)\n .bundling(BundlingOptions.builder()\n .buildArgs(Map.of(\"PIP_INDEX_URL\", \"https://your.index.url/simple/\", \"PIP_EXTRA_INDEX_URL\", \"https://your.extra-index.url/simple/\"))\n .build())\n .build();",
509
- "version": "1"
510
- },
511
- "go": {
512
- "source": "entry := \"/path/to/function\"\nimage := awscdk.DockerImage.fromBuild(entry)\n\nlambda.NewPythonFunction(this, jsii.String(\"function\"), &pythonFunctionProps{\n\tentry: jsii.String(entry),\n\truntime: awscdk.Runtime_PYTHON_3_8(),\n\tbundling: &bundlingOptions{\n\t\tbuildArgs: map[string]*string{\n\t\t\t\"PIP_INDEX_URL\": jsii.String(\"https://your.index.url/simple/\"),\n\t\t\t\"PIP_EXTRA_INDEX_URL\": jsii.String(\"https://your.extra-index.url/simple/\"),\n\t\t},\n\t},\n})",
513
- "version": "1"
514
- },
515
- "$": {
516
- "source": "const 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});",
517
- "version": "0"
518
- }
519
- },
520
- "location": {
521
- "api": {
522
- "api": "type",
523
- "fqn": "@aws-cdk/aws-lambda-python-alpha.PythonFunction"
524
- },
525
- "field": {
526
- "field": "example"
527
- }
528
- },
529
- "didCompile": true,
530
- "fqnsReferenced": [
531
- "@aws-cdk/aws-lambda-python-alpha.BundlingOptions",
532
- "@aws-cdk/aws-lambda-python-alpha.PythonFunction",
533
- "@aws-cdk/aws-lambda-python-alpha.PythonFunctionProps",
534
- "aws-cdk-lib.DockerImage",
535
- "aws-cdk-lib.DockerImage#fromBuild",
536
- "aws-cdk-lib.aws_lambda.Runtime",
537
- "aws-cdk-lib.aws_lambda.Runtime#PYTHON_3_8",
538
- "constructs.Construct"
539
- ],
540
- "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { DockerImage, Stack } from 'aws-cdk-lib';\nimport { Runtime } from 'aws-cdk-lib/aws-lambda';\nimport * as lambda from '@aws-cdk/aws-lambda-python-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\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/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
541
- "syntaxKindCounter": {
542
- "10": 4,
543
- "75": 15,
544
- "104": 1,
545
- "193": 3,
546
- "194": 3,
547
- "196": 1,
548
- "197": 1,
549
- "225": 2,
550
- "226": 1,
551
- "242": 2,
552
- "243": 2,
553
- "281": 5,
554
- "282": 1
555
- },
556
- "fqnsFingerprint": "bca55fa9fc4cd1f10ab5156b6fbe5324e1daf23cae7d36a180cea9e83cd1e531"
557
- },
558
- "1487ff584727a1589c5476ca3c4df23801dbe200acd7d18d1bda015d3ea3244c": {
559
- "translations": {
560
- "python": {
561
- "source": "entry = \"/path/to/function\"\nimage = DockerImage.from_build(entry)\n\nlambda_.PythonFunction(self, \"function\",\n entry=entry,\n runtime=Runtime.PYTHON_3_8,\n bundling=lambda.BundlingOptions(\n build_args={\"PIP_INDEX_URL\": \"https://your.index.url/simple/\", \"PIP_EXTRA_INDEX_URL\": \"https://your.extra-index.url/simple/\"}\n )\n)",
562
- "version": "2"
563
- },
564
- "csharp": {
565
- "source": "string entry = \"/path/to/function\";\nDockerImage image = DockerImage.FromBuild(entry);\n\nnew PythonFunction(this, \"function\", new PythonFunctionProps {\n Entry = entry,\n Runtime = Runtime.PYTHON_3_8,\n Bundling = new BundlingOptions {\n BuildArgs = new Dictionary<string, string> { { \"PIP_INDEX_URL\", \"https://your.index.url/simple/\" }, { \"PIP_EXTRA_INDEX_URL\", \"https://your.extra-index.url/simple/\" } }\n }\n});",
566
- "version": "1"
567
- },
568
- "java": {
569
- "source": "String entry = \"/path/to/function\";\nDockerImage image = DockerImage.fromBuild(entry);\n\nPythonFunction.Builder.create(this, \"function\")\n .entry(entry)\n .runtime(Runtime.PYTHON_3_8)\n .bundling(BundlingOptions.builder()\n .buildArgs(Map.of(\"PIP_INDEX_URL\", \"https://your.index.url/simple/\", \"PIP_EXTRA_INDEX_URL\", \"https://your.extra-index.url/simple/\"))\n .build())\n .build();",
570
- "version": "1"
571
- },
572
- "go": {
573
- "source": "entry := \"/path/to/function\"\nimage := awscdk.DockerImage.fromBuild(entry)\n\nlambda.NewPythonFunction(this, jsii.String(\"function\"), &pythonFunctionProps{\n\tentry: jsii.String(entry),\n\truntime: awscdk.Runtime_PYTHON_3_8(),\n\tbundling: &bundlingOptions{\n\t\tbuildArgs: map[string]*string{\n\t\t\t\"PIP_INDEX_URL\": jsii.String(\"https://your.index.url/simple/\"),\n\t\t\t\"PIP_EXTRA_INDEX_URL\": jsii.String(\"https://your.extra-index.url/simple/\"),\n\t\t},\n\t},\n})",
574
- "version": "1"
575
- },
576
- "$": {
577
- "source": "const 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});",
578
- "version": "0"
579
- }
580
- },
581
- "location": {
582
- "api": {
583
- "api": "type",
584
- "fqn": "@aws-cdk/aws-lambda-python-alpha.PythonFunctionProps"
585
- },
586
- "field": {
587
- "field": "example"
588
- }
589
- },
590
- "didCompile": true,
591
- "fqnsReferenced": [
592
- "@aws-cdk/aws-lambda-python-alpha.BundlingOptions",
593
- "@aws-cdk/aws-lambda-python-alpha.PythonFunction",
594
- "@aws-cdk/aws-lambda-python-alpha.PythonFunctionProps",
595
- "aws-cdk-lib.DockerImage",
596
- "aws-cdk-lib.DockerImage#fromBuild",
597
- "aws-cdk-lib.aws_lambda.Runtime",
598
- "aws-cdk-lib.aws_lambda.Runtime#PYTHON_3_8",
599
- "constructs.Construct"
600
- ],
601
- "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { DockerImage, Stack } from 'aws-cdk-lib';\nimport { Runtime } from 'aws-cdk-lib/aws-lambda';\nimport * as lambda from '@aws-cdk/aws-lambda-python-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\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/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
602
- "syntaxKindCounter": {
603
- "10": 4,
604
- "75": 15,
605
- "104": 1,
606
- "193": 3,
607
- "194": 3,
608
- "196": 1,
609
- "197": 1,
610
- "225": 2,
611
- "226": 1,
612
- "242": 2,
613
- "243": 2,
614
- "281": 5,
615
- "282": 1
616
- },
617
- "fqnsFingerprint": "bca55fa9fc4cd1f10ab5156b6fbe5324e1daf23cae7d36a180cea9e83cd1e531"
618
- },
619
- "2577bd631c6ca99528df5a0dcc24cc3934fd1629688eaf608a382ff7bc1b6a0f": {
620
- "translations": {
621
- "python": {
622
- "source": "lambda_.PythonLayerVersion(self, \"MyLayer\",\n entry=\"/path/to/my/layer\"\n)",
623
- "version": "2"
624
- },
625
- "csharp": {
626
- "source": "new PythonLayerVersion(this, \"MyLayer\", new PythonLayerVersionProps {\n Entry = \"/path/to/my/layer\"\n});",
627
- "version": "1"
628
- },
629
- "java": {
630
- "source": "PythonLayerVersion.Builder.create(this, \"MyLayer\")\n .entry(\"/path/to/my/layer\")\n .build();",
631
- "version": "1"
632
- },
633
- "go": {
634
- "source": "lambda.NewPythonLayerVersion(this, jsii.String(\"MyLayer\"), &pythonLayerVersionProps{\n\tentry: jsii.String(\"/path/to/my/layer\"),\n})",
635
- "version": "1"
636
- },
637
- "$": {
638
- "source": "new lambda.PythonLayerVersion(this, 'MyLayer', {\n entry: '/path/to/my/layer', // point this to your library's directory\n})",
639
- "version": "0"
640
- }
641
- },
642
- "location": {
643
- "api": {
644
- "api": "type",
645
- "fqn": "@aws-cdk/aws-lambda-python-alpha.PythonLayerVersion"
646
- },
647
- "field": {
648
- "field": "example"
649
- }
650
- },
651
- "didCompile": true,
652
- "fqnsReferenced": [
653
- "@aws-cdk/aws-lambda-python-alpha.PythonLayerVersion",
654
- "@aws-cdk/aws-lambda-python-alpha.PythonLayerVersionProps",
655
- "constructs.Construct"
656
- ],
657
- "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { DockerImage, Stack } from 'aws-cdk-lib';\nimport { Runtime } from 'aws-cdk-lib/aws-lambda';\nimport * as lambda from '@aws-cdk/aws-lambda-python-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nnew lambda.PythonLayerVersion(this, 'MyLayer', {\n entry: '/path/to/my/layer', // point this to your library's directory\n})\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
658
- "syntaxKindCounter": {
659
- "10": 2,
660
- "75": 3,
661
- "104": 1,
662
- "193": 1,
663
- "194": 1,
664
- "197": 1,
665
- "226": 1,
666
- "281": 1
667
- },
668
- "fqnsFingerprint": "e15490338693f09f8460c6c29934aefce7581a7c09bcda00fcb352b12622a97e"
669
- },
670
- "e3289a04dc8d758a99b631eb6f19978e241b633977bdc01f803ce3b8bf56da73": {
671
- "translations": {
672
- "python": {
673
- "source": "lambda_.PythonLayerVersion(self, \"MyLayer\",\n entry=\"/path/to/my/layer\"\n)",
674
- "version": "2"
675
- },
676
- "csharp": {
677
- "source": "new PythonLayerVersion(this, \"MyLayer\", new PythonLayerVersionProps {\n Entry = \"/path/to/my/layer\"\n});",
678
- "version": "1"
679
- },
680
- "java": {
681
- "source": "PythonLayerVersion.Builder.create(this, \"MyLayer\")\n .entry(\"/path/to/my/layer\")\n .build();",
682
- "version": "1"
683
- },
684
- "go": {
685
- "source": "lambda.NewPythonLayerVersion(this, jsii.String(\"MyLayer\"), &pythonLayerVersionProps{\n\tentry: jsii.String(\"/path/to/my/layer\"),\n})",
686
- "version": "1"
687
- },
688
- "$": {
689
- "source": "new lambda.PythonLayerVersion(this, 'MyLayer', {\n entry: '/path/to/my/layer', // point this to your library's directory\n})",
690
- "version": "0"
691
- }
692
- },
693
- "location": {
694
- "api": {
695
- "api": "type",
696
- "fqn": "@aws-cdk/aws-lambda-python-alpha.PythonLayerVersionProps"
697
- },
698
- "field": {
699
- "field": "example"
700
- }
701
- },
702
- "didCompile": true,
703
- "fqnsReferenced": [
704
- "@aws-cdk/aws-lambda-python-alpha.PythonLayerVersion",
705
- "@aws-cdk/aws-lambda-python-alpha.PythonLayerVersionProps",
706
- "constructs.Construct"
707
- ],
708
- "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { DockerImage, Stack } from 'aws-cdk-lib';\nimport { Runtime } from 'aws-cdk-lib/aws-lambda';\nimport * as lambda from '@aws-cdk/aws-lambda-python-alpha';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nnew lambda.PythonLayerVersion(this, 'MyLayer', {\n entry: '/path/to/my/layer', // point this to your library's directory\n})\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
709
- "syntaxKindCounter": {
710
- "10": 2,
711
- "75": 3,
712
- "104": 1,
713
- "193": 1,
714
- "194": 1,
715
- "197": 1,
716
- "226": 1,
717
- "281": 1
718
- },
719
- "fqnsFingerprint": "e15490338693f09f8460c6c29934aefce7581a7c09bcda00fcb352b12622a97e"
720
- }
721
- }
722
- }