@aws-cdk/aws-lambda-python-alpha 2.40.0-alpha.0 → 2.42.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.42.0",
12
12
  "constructs": "^10.0.0"
13
13
  },
14
14
  "dependencyClosure": {
@@ -730,6 +730,19 @@
730
730
  }
731
731
  }
732
732
  },
733
+ "aws-cdk-lib.aws_controltower": {
734
+ "targets": {
735
+ "dotnet": {
736
+ "namespace": "Amazon.CDK.AWS.ControlTower"
737
+ },
738
+ "java": {
739
+ "package": "software.amazon.awscdk.services.controltower"
740
+ },
741
+ "python": {
742
+ "module": "aws_cdk.aws_controltower"
743
+ }
744
+ }
745
+ },
733
746
  "aws-cdk-lib.aws_cur": {
734
747
  "targets": {
735
748
  "dotnet": {
@@ -1848,6 +1861,19 @@
1848
1861
  }
1849
1862
  }
1850
1863
  },
1864
+ "aws-cdk-lib.aws_m2": {
1865
+ "targets": {
1866
+ "dotnet": {
1867
+ "namespace": "Amazon.CDK.AWS.M2"
1868
+ },
1869
+ "java": {
1870
+ "package": "software.amazon.awscdk.services.m2"
1871
+ },
1872
+ "python": {
1873
+ "module": "aws_cdk.aws_m2"
1874
+ }
1875
+ }
1876
+ },
1851
1877
  "aws-cdk-lib.aws_macie": {
1852
1878
  "targets": {
1853
1879
  "dotnet": {
@@ -2706,6 +2732,19 @@
2706
2732
  }
2707
2733
  }
2708
2734
  },
2735
+ "aws-cdk-lib.aws_supportapp": {
2736
+ "targets": {
2737
+ "dotnet": {
2738
+ "namespace": "Amazon.CDK.AWS.SupportApp"
2739
+ },
2740
+ "java": {
2741
+ "package": "software.amazon.awscdk.services.supportapp"
2742
+ },
2743
+ "python": {
2744
+ "module": "aws_cdk.aws_supportapp"
2745
+ }
2746
+ }
2747
+ },
2709
2748
  "aws-cdk-lib.aws_synthetics": {
2710
2749
  "targets": {
2711
2750
  "dotnet": {
@@ -3024,7 +3063,7 @@
3024
3063
  "stability": "experimental"
3025
3064
  },
3026
3065
  "homepage": "https://github.com/aws/aws-cdk",
3027
- "jsiiVersion": "1.66.0 (build 3c9512b)",
3066
+ "jsiiVersion": "1.67.0 (build 2c027f5)",
3028
3067
  "keywords": [
3029
3068
  "aws",
3030
3069
  "cdk",
@@ -3045,7 +3084,7 @@
3045
3084
  },
3046
3085
  "name": "@aws-cdk/aws-lambda-python-alpha",
3047
3086
  "readme": {
3048
- "markdown": "# Amazon Lambda Python Library\n\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n![cdk-constructs: Experimental](https://img.shields.io/badge/cdk--constructs-experimental-important.svg?style=for-the-badge)\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"
3087
+ "markdown": "# Amazon Lambda Python Library\n\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n![cdk-constructs: Experimental](https://img.shields.io/badge/cdk--constructs-experimental-important.svg?style=for-the-badge)\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 python.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 python.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 python.PythonFunction(this, 'MyFunction', {\n entry: '/path/to/my/function',\n runtime: Runtime.PYTHON_3_8,\n layers: [\n new python.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 python.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 python.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 python.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 python.PythonFunction(this, 'function', {\n entry,\n runtime: Runtime.PYTHON_3_8,\n bundling: {\n buildArgs: { PIP_INDEX_URL: indexUrl },\n },\n});\n```\n"
3049
3088
  },
3050
3089
  "repository": {
3051
3090
  "directory": "packages/individual-packages/aws-lambda-python",
@@ -3089,7 +3128,7 @@
3089
3128
  "docs": {
3090
3129
  "stability": "experimental",
3091
3130
  "summary": "Options for bundling.",
3092
- "example": "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});",
3131
+ "example": "const entry = '/path/to/function';\nconst image = DockerImage.fromBuild(entry);\n\nnew python.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});",
3093
3132
  "custom": {
3094
3133
  "exampleMetadata": "infused"
3095
3134
  }
@@ -3233,7 +3272,7 @@
3233
3272
  "docs": {
3234
3273
  "stability": "experimental",
3235
3274
  "summary": "A Python Lambda function.",
3236
- "example": "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});",
3275
+ "example": "const entry = '/path/to/function';\nconst image = DockerImage.fromBuild(entry);\n\nnew python.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});",
3237
3276
  "custom": {
3238
3277
  "exampleMetadata": "infused"
3239
3278
  }
@@ -3282,7 +3321,7 @@
3282
3321
  "docs": {
3283
3322
  "stability": "experimental",
3284
3323
  "summary": "Properties for a PythonFunction.",
3285
- "example": "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});",
3324
+ "example": "const entry = '/path/to/function';\nconst image = DockerImage.fromBuild(entry);\n\nnew python.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});",
3286
3325
  "custom": {
3287
3326
  "exampleMetadata": "infused"
3288
3327
  }
@@ -3396,7 +3435,7 @@
3396
3435
  "docs": {
3397
3436
  "stability": "experimental",
3398
3437
  "summary": "A lambda layer version.",
3399
- "example": "new lambda.PythonLayerVersion(this, 'MyLayer', {\n entry: '/path/to/my/layer', // point this to your library's directory\n})",
3438
+ "example": "new python.PythonLayerVersion(this, 'MyLayer', {\n entry: '/path/to/my/layer', // point this to your library's directory\n})",
3400
3439
  "custom": {
3401
3440
  "exampleMetadata": "infused"
3402
3441
  }
@@ -3445,7 +3484,7 @@
3445
3484
  "docs": {
3446
3485
  "stability": "experimental",
3447
3486
  "summary": "Properties for PythonLayerVersion.",
3448
- "example": "new lambda.PythonLayerVersion(this, 'MyLayer', {\n entry: '/path/to/my/layer', // point this to your library's directory\n})",
3487
+ "example": "new python.PythonLayerVersion(this, 'MyLayer', {\n entry: '/path/to/my/layer', // point this to your library's directory\n})",
3449
3488
  "custom": {
3450
3489
  "exampleMetadata": "infused"
3451
3490
  }
@@ -3546,6 +3585,6 @@
3546
3585
  "symbolId": "lib/layer:PythonLayerVersionProps"
3547
3586
  }
3548
3587
  },
3549
- "version": "2.40.0-alpha.0",
3588
+ "version": "2.42.0-alpha.0",
3550
3589
  "fingerprint": "**********"
3551
3590
  }
Binary file
package/README.md CHANGED
@@ -25,7 +25,7 @@ To use this module, you will need to have Docker installed.
25
25
  Define a `PythonFunction`:
26
26
 
27
27
  ```ts
28
- new lambda.PythonFunction(this, 'MyFunction', {
28
+ new python.PythonFunction(this, 'MyFunction', {
29
29
  entry: '/path/to/my/function', // required
30
30
  runtime: Runtime.PYTHON_3_8, // required
31
31
  index: 'my_index.py', // optional, defaults to 'index.py'
@@ -44,7 +44,7 @@ layer.
44
44
  Define a `PythonLayerVersion`:
45
45
 
46
46
  ```ts
47
- new lambda.PythonLayerVersion(this, 'MyLayer', {
47
+ new python.PythonLayerVersion(this, 'MyLayer', {
48
48
  entry: '/path/to/my/layer', // point this to your library's directory
49
49
  })
50
50
  ```
@@ -52,11 +52,11 @@ new lambda.PythonLayerVersion(this, 'MyLayer', {
52
52
  A layer can also be used as a part of a `PythonFunction`:
53
53
 
54
54
  ```ts
55
- new lambda.PythonFunction(this, 'MyFunction', {
55
+ new python.PythonFunction(this, 'MyFunction', {
56
56
  entry: '/path/to/my/function',
57
57
  runtime: Runtime.PYTHON_3_8,
58
58
  layers: [
59
- new lambda.PythonLayerVersion(this, 'MyLayer', {
59
+ new python.PythonLayerVersion(this, 'MyLayer', {
60
60
  entry: '/path/to/my/layer', // point this to your library's directory
61
61
  }),
62
62
  ],
@@ -123,7 +123,7 @@ Additional build args for bundling that refer to PyPI indexes can be specified a
123
123
  const entry = '/path/to/function';
124
124
  const image = DockerImage.fromBuild(entry);
125
125
 
126
- new lambda.PythonFunction(this, 'function', {
126
+ new python.PythonFunction(this, 'function', {
127
127
  entry,
128
128
  runtime: Runtime.PYTHON_3_8,
129
129
  bundling: {
@@ -138,7 +138,7 @@ If using a custom Docker image for bundling, the dependencies are installed with
138
138
  const entry = '/path/to/function';
139
139
  const image = DockerImage.fromBuild(entry);
140
140
 
141
- new lambda.PythonFunction(this, 'function', {
141
+ new python.PythonFunction(this, 'function', {
142
142
  entry,
143
143
  runtime: Runtime.PYTHON_3_8,
144
144
  bundling: { image },
@@ -163,7 +163,7 @@ const codeArtifactAuthToken = execSync(`aws codeartifact get-authorization-token
163
163
 
164
164
  const indexUrl = `https://aws:${codeArtifactAuthToken}@${domain}-${domainOwner}.d.codeartifact.${region}.amazonaws.com/pypi/${repoName}/simple/`;
165
165
 
166
- new lambda.PythonFunction(this, 'function', {
166
+ new python.PythonFunction(this, 'function', {
167
167
  entry,
168
168
  runtime: Runtime.PYTHON_3_8,
169
169
  bundling: {
@@ -190,7 +190,7 @@ const codeArtifactAuthToken = execSync(`aws codeartifact get-authorization-token
190
190
 
191
191
  const indexUrl = `https://aws:${codeArtifactAuthToken}@${domain}-${domainOwner}.d.codeartifact.${region}.amazonaws.com/pypi/${repoName}/simple/`;
192
192
 
193
- new lambda.PythonFunction(this, 'function', {
193
+ new python.PythonFunction(this, 'function', {
194
194
  entry,
195
195
  runtime: Runtime.PYTHON_3_8,
196
196
  bundling: {
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/bundling.js CHANGED
@@ -46,11 +46,12 @@ class Bundling {
46
46
  createBundlingCommand(options) {
47
47
  const packaging = packaging_1.Packaging.fromEntry(options.entry);
48
48
  let bundlingCommands = [];
49
+ bundlingCommands.push(`cp -rTL ${options.inputDir}/ ${options.outputDir}`);
50
+ bundlingCommands.push(`cd ${options.outputDir}`);
49
51
  bundlingCommands.push(packaging.exportCommand ?? '');
50
52
  if (packaging.dependenciesFile) {
51
53
  bundlingCommands.push(`python -m pip install -r ${packaging_1.DependenciesFile.PIP} -t ${options.outputDir}`);
52
54
  }
53
- bundlingCommands.push(`cp -rT ${options.inputDir}/ ${options.outputDir}`);
54
55
  return bundlingCommands;
55
56
  }
56
57
  }
@@ -61,4 +62,4 @@ exports.Bundling = Bundling;
61
62
  function chain(commands) {
62
63
  return commands.filter(c => !!c).join(' && ');
63
64
  }
64
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVuZGxpbmcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJidW5kbGluZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSw2QkFBNkI7QUFDN0IsdURBQWdGO0FBQ2hGLDZDQUErRjtBQUMvRiwyQ0FBMEQ7QUFHMUQ7O0dBRUc7QUFDVSxRQUFBLG1CQUFtQixHQUFHLENBQUMsT0FBTyxDQUFDLENBQUM7QUFFN0M7O0dBRUc7QUFDVSxRQUFBLDBCQUEwQixHQUFHLG1CQUFtQixDQUFDO0FBK0I5RDs7R0FFRztBQUNILE1BQWEsUUFBUTtJQWNuQixZQUFZLEtBQW9CO1FBQzlCLE1BQU0sRUFDSixLQUFLLEVBQ0wsT0FBTyxFQUNQLFlBQVksR0FBRyx5QkFBWSxDQUFDLE1BQU0sRUFDbEMsZ0JBQWdCLEdBQUcsRUFBRSxFQUNyQixLQUFLLEdBQ04sR0FBRyxLQUFLLENBQUM7UUFFVixNQUFNLFVBQVUsR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQywwQkFBWSxDQUFDLG1CQUFtQixFQUFFLGdCQUFnQixDQUFDLENBQUM7UUFFdkYsTUFBTSxnQkFBZ0IsR0FBRyxJQUFJLENBQUMscUJBQXFCLENBQUM7WUFDbEQsS0FBSztZQ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XG4gIHJlYWRvbmx5IGlucHV0RGlyOiBzdHJpbmc7XG4gIHJlYWRvbmx5IG91dHB1dERpcjogc3RyaW5nO1xufVxuXG4vKipcbiAqIENoYWluIGNvbW1hbmRzXG4gKi9cbmZ1bmN0aW9uIGNoYWluKGNvbW1hbmRzOiBzdHJpbmdbXSk6IHN0cmluZyB7XG4gIHJldHVybiBjb21tYW5kcy5maWx0ZXIoYyA9PiAhIWMpLmpvaW4oJyAmJiAnKTtcbn1cbiJdfQ==
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.42.0-alpha.0" };
56
56
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnVuY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJmdW5jdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSx5QkFBeUI7QUFDekIsNkJBQTZCO0FBQzdCLHVEQUEyRjtBQUMzRiw2Q0FBb0M7QUFFcEMseUNBQXNDO0FBNEN0Qzs7R0FFRztBQUNILE1BQWEsY0FBZSxTQUFRLHFCQUFRO0lBQzFDLFlBQVksS0FBZ0IsRUFBRSxFQUFVLEVBQUUsS0FBMEI7Ozs7OzsrQ0FEekQsY0FBYzs7OztRQUV2QixNQUFNLEVBQUUsS0FBSyxHQUFHLFVBQVUsRUFBRSxPQUFPLEdBQUcsU0FBUyxFQUFFLE9BQU8sRUFBRSxHQUFHLEtBQUssQ0FBQztRQUNuRSxJQUFJLEtBQUssQ0FBQyxLQUFLLElBQUksQ0FBQyxPQ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HNraXA6ICFTdGFjay5vZihzY29wZSkuYnVuZGxpbmdSZXF1aXJlZCxcbiAgICAgICAgLi4ucHJvcHMuYnVuZGxpbmcsXG4gICAgICB9KSxcbiAgICAgIGhhbmRsZXI6IHJlc29sdmVkSGFuZGxlcixcbiAgICB9KTtcbiAgfVxufVxuIl19
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.42.0-alpha.0" };
56
56
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF5ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJsYXllci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSw2QkFBNkI7QUFDN0IsaURBQWlEO0FBQ2pELDZDQUFvQztBQUVwQyx5Q0FBc0M7QUFpQ3RDOzs7R0FHRztBQUNILE1BQWEsa0JBQW1CLFNBQVEsTUFBTSxDQUFDLFlBQVk7SUFDekQsWUFBWSxLQUFnQixFQUFFLEVBQVUsRUFBRSxLQUE4Qjs7Ozs7OytDQUQ3RCxrQkFBa0I7Ozs7UUFFM0IsTUFBTSxrQkFBa0IsR0FBRyxLQUFLLENBQUMsa0JBQWtCLElBQUksQ0FBQyxNQUFNLENBQUMsT0FBTyxDQUFDLFVBQVUsQ0FBQyxDQUFDO1FBQ25GLE1BQU0sdUJBQXVCLEdBQUcsS0FBSyxDQUFDLHVCQUF1QixJQUFJLENBQUMsTUFBTSxDQUFDLFlBQVksQ0FBQyxNQUFNLENBQUMsQ0FBQztRQUU5RixpREFB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1bnRpbWVzIGFyZSBzdXBwb3J0ZWQuJyk7XG4gICAgICB9XG4gICAgfVxuXG4gICAgLy8gRW50cnkgYW5kIGRlZmF1bHRzXG4gICAgY29uc3QgZW50cnkgPSBwYXRoLnJlc29sdmUocHJvcHMuZW50cnkpO1xuICAgIC8vIFBpY2sgdGhlIGZpcnN0IGNvbXBhdGlibGVSdW50aW1lIGFuZCBjb21wYXRpYmxlQXJjaGl0ZWN0dXJlcyB0byB1c2UgZm9yIGJ1bmRsaW5nXG4gICAgY29uc3QgcnVudGltZSA9IGNvbXBhdGlibGVSdW50aW1lc1swXTtcbiAgICBjb25zdCBhcmNoaXRlY3R1cmUgPSBjb21wYXRpYmxlQXJjaGl0ZWN0dXJlc1swXTtcblxuICAgIHN1cGVyKHNjb3BlLCBpZCwge1xuICAgICAgLi4ucHJvcHMsXG4gICAgICBjb21wYXRpYmxlUnVudGltZXMsXG4gICAgICBjb2RlOiBCdW5kbGluZy5idW5kbGUoe1xuICAgICAgICBlbnRyeSxcbiAgICAgICAgcnVudGltZSxcbiAgICAgICAgYXJjaGl0ZWN0dXJlLFxuICAgICAgICBvdXRwdXRQYXRoU3VmZml4OiAncHl0aG9uJyxcbiAgICAgICAgc2tpcDogIVN0YWNrLm9mKHNjb3BlKS5idW5kbGluZ1JlcXVpcmVkLFxuICAgICAgICAuLi5wcm9wcy5idW5kbGluZyxcbiAgICAgIH0pLFxuICAgIH0pO1xuICB9XG59XG4iXX0=
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.42.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.42.0",
80
+ "@aws-cdk/integ-runner": "2.42.0",
81
+ "@aws-cdk/pkglint": "2.42.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.42.0",
84
+ "constructs": "^10.0.0",
85
+ "@aws-cdk/integ-tests-alpha": "2.42.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.42.0",
90
91
  "constructs": "^10.0.0"
91
92
  },
92
93
  "engines": {
@@ -2,7 +2,7 @@
2
2
  import { Construct } from 'constructs';
3
3
  import { DockerImage, Stack } from 'aws-cdk-lib';
4
4
  import { Runtime } from 'aws-cdk-lib/aws-lambda';
5
- import * as lambda from '@aws-cdk/aws-lambda-python-alpha';
5
+ import * as python from '@aws-cdk/aws-lambda-python-alpha';
6
6
 
7
7
  class Fixture extends Stack {
8
8
  constructor(scope: Construct, id: string) {
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
- }