@layertwo/cdk-constructs 0.0.12 → 0.0.14
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 +246 -33
- package/API.md +611 -0
- package/README.md +30 -9
- package/lib/acm.js +1 -1
- package/lib/dynamodb.js +1 -1
- package/lib/iam.js +1 -1
- package/lib/lambda.d.ts +22 -1
- package/lib/lambda.js +66 -16
- package/lib/s3.js +1 -1
- package/lib/uv-bundling.d.ts +4 -1
- package/lib/uv-bundling.js +35 -13
- package/package.json +1 -1
- package/renovate.json5 +1 -1
package/.jsii
CHANGED
|
@@ -9870,7 +9870,7 @@
|
|
|
9870
9870
|
},
|
|
9871
9871
|
"name": "@layertwo/cdk-constructs",
|
|
9872
9872
|
"readme": {
|
|
9873
|
-
"markdown": "# @layertwo/cdk-constructs\n\nReusable [AWS CDK](https://aws.amazon.com/cdk/) constructs with secure defaults baked in, for TypeScript projects.\n\nPublished to [npm](https://www.npmjs.com/package/@layertwo/cdk-constructs) as a JSII library. Only the TypeScript/JS package is published.\n\n## Installation\n\n```bash\nnpm install @layertwo/cdk-constructs\n```\n\n## Constructs\n\n| Construct
|
|
9873
|
+
"markdown": "# @layertwo/cdk-constructs\n\nReusable [AWS CDK](https://aws.amazon.com/cdk/) constructs with secure defaults baked in, for TypeScript projects.\n\nPublished to [npm](https://www.npmjs.com/package/@layertwo/cdk-constructs) as a JSII library. Only the TypeScript/JS package is published.\n\n## Installation\n\n```bash\nnpm install @layertwo/cdk-constructs\n```\n\n## Constructs\n\n| Construct | Extends | Enforced behaviour |\n| ------------------------- | -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |\n| `SecureBucket` | `s3.Bucket` | Blocks all public access, S3-managed encryption, SSL enforced. Versioning on by default (`versioned: false` to opt out). |\n| `SecureTable` | `dynamodb.Table` | On-demand billing (`PAY_PER_REQUEST`), point-in-time recovery always enabled. |\n| `GitHubOidcRole` | `iam.Role` | Role assumable by GitHub Actions via OIDC, scoped to a repo and optionally a branch or environment. |\n| `DnsValidatedCertificate` | `certificatemanager.Certificate` | Always DNS-validated against the supplied Route53 hosted zone. |\n| `PythonFunction` | `lambda.Function` | Bundles a `uv` project in Docker, hashes the source tree (no re-upload when nothing changed), ARM64 + Python 3.15 by default. |\n| `UvLayer` | `lambda.LayerVersion` | Packages a `uv` project's dependencies under `/opt/python`, ARM64 + Python 3.15 by default. |\n\nEverything marked _enforced_ is hardcoded after your props are spread in — passing your own value for it is silently ignored. All other props pass straight through to the parent construct.\n\n## Usage\n\n```typescript\nimport * as path from \"node:path\";\nimport {\n DnsValidatedCertificate,\n GitHubOidcRole,\n PythonFunction,\n SecureBucket,\n SecureTable,\n UvLayer,\n} from \"@layertwo/cdk-constructs\";\nimport { HostedZone } from \"aws-cdk-lib/aws-route53\";\n\n// S3: public access blocked, encrypted, SSL-only, versioned\nconst bucket = new SecureBucket(this, \"Assets\");\n\n// DynamoDB: on-demand + PITR\nconst table = new SecureTable(this, \"Sessions\", {\n partitionKey: { name: \"id\", type: dynamodb.AttributeType.STRING },\n});\n\n// IAM role for a GitHub Actions workflow on main\nconst deployRole = new GitHubOidcRole(this, \"DeployRole\", {\n owner: \"layertwo\",\n repo: \"my-app\",\n branch: \"main\",\n});\n\n// ACM certificate validated via Route53\nnew DnsValidatedCertificate(this, \"Cert\", {\n domainName: \"example.com\",\n hostedZone: HostedZone.fromLookup(this, \"Zone\", {\n domainName: \"example.com\",\n }),\n});\n\n// Python Lambda from a uv project (built in Docker at synth time)\nnew PythonFunction(this, \"Fetcher\", {\n rootDir: path.join(__dirname, \"../services/fetcher\"),\n index: \"src/entrypoint/__init__.py\",\n handler: \"handle_event\",\n environment: { TABLE_NAME: table.tableName },\n});\n```\n\n### Python bundling and caching\n\n`PythonFunction` builds inside AWS's SAM build image for the Python version, so it needs Docker at synth time. The image ships `uv` and a C toolchain, and its glibc matches Lambda. The asset is fingerprinted from the project source — `uv.lock` changes rebuild it, caches and `.venv` do not.\n\nTwo things make that fast in CI:\n\n```yaml\n# Skip bundling entirely when the source hash matches a previous run.\n- uses: actions/cache@v4\n with:\n path: cdk.out\n key: cdk-assets-${{ github.sha }}\n restore-keys: cdk-assets-\n\n# Cache the image layers; type=gha needs BuildKit, and fails on a plain local daemon.\n- uses: docker/setup-buildx-action@v3\n```\n\n```typescript\nconst cacheScope = \"lambda-bundling\";\nnew PythonFunction(this, \"Fetcher\", {\n rootDir,\n bundling: process.env.CI\n ? {\n cacheFrom: [{ type: \"gha\", params: { scope: cacheScope } }],\n cacheTo: { type: \"gha\", params: { mode: \"max\", scope: cacheScope } },\n }\n : {},\n});\n```\n\nThe default image is AWS's SAM build image for the selected Python version, so dependencies that need a C toolchain build normally. Pass `bundling.image` to use your own build image.\n\n### Python layers\n\n`UvLayer` packages a project's third-party dependencies into a layer at `/opt/python`. It uses the same bundling engine and defaults as `PythonFunction`; pass it through the function's `layers` prop. A layer is built for one runtime and architecture, so keep them aligned with the functions that use it.\n\n`PythonFunction` still installs its own project's dependencies into the function package, so the layer only saves space when the function's project holds app code and no runtime dependencies. Put the dependencies in the layer's project, or share one layer across functions.\n\n```typescript\nconst deps = new UvLayer(this, \"Deps\", {\n rootDir: path.join(__dirname, \"../layers/deps\"),\n});\n\nnew PythonFunction(this, \"Fetcher\", {\n rootDir: path.join(__dirname, \"../services/fetcher\"),\n layers: [deps],\n});\n```\n\n## Development\n\nThis project uses [Projen](https://projen.io/) for configuration and build management. Configuration lives in `.projenrc.ts`.\n\n### Setup\n\n```bash\nyarn install\nnpx projen # regenerate project files from .projenrc.ts\n```\n\nNode.js 22 or 24 (the versions jsii supports). Dependency upgrades arrive as Renovate PRs — there is no local upgrade task.\n\n### Common commands\n\n```bash\nnpm run build # full build: compile (jsii) + test + package\nnpm run compile # compile TypeScript only\nnpm test # tests with coverage\nnpm run test:watch # tests in watch mode\nnpm run eslint # linter\nnpm run package # generate distributable packages\nnpx projen # re-synthesize generated files\n```\n\n### Making changes\n\n1. Add the construct in `src/` and export it from `src/index.ts`.\n2. Add a matching `test/<name>.test.ts` using CDK assertions.\n3. Run `npm run build`.\n4. For build/config changes, edit `.projenrc.ts` and run `npx projen`.\n\nDo not edit files marked `~~ Generated by projen` — change `.projenrc.ts` and regenerate instead.\n\n## Technology Stack\n\n- **Language**: TypeScript 5.9\n- **Framework**: AWS CDK 2.275.0\n- **Testing**: Jest 30 with ts-jest and CDK assertions\n- **Linting**: ESLint 9 + Prettier\n- **Publishing**: JSII\n\n## Contributing\n\nEnsure `npm run build` passes before opening a PR. Commits on `mainline` follow conventional commits; the release workflow bumps the version and publishes.\n\n## License\n\nApache-2.0\n\n## Author\n\nLucas Messenger (1335960+layertwo@users.noreply.github.com)\n\n## Repository\n\nhttps://github.com/layertwo/cdk-constructs\n"
|
|
9874
9874
|
},
|
|
9875
9875
|
"repository": {
|
|
9876
9876
|
"type": "git",
|
|
@@ -10165,6 +10165,7 @@
|
|
|
10165
10165
|
{
|
|
10166
10166
|
"abstract": true,
|
|
10167
10167
|
"docs": {
|
|
10168
|
+
"remarks": "With a `targetDir` bundle, `outputDir` is that subdirectory.",
|
|
10168
10169
|
"stability": "stable",
|
|
10169
10170
|
"summary": "Runs after dependencies are installed."
|
|
10170
10171
|
},
|
|
@@ -10252,7 +10253,7 @@
|
|
|
10252
10253
|
},
|
|
10253
10254
|
"locationInModule": {
|
|
10254
10255
|
"filename": "src/lambda.ts",
|
|
10255
|
-
"line":
|
|
10256
|
+
"line": 103
|
|
10256
10257
|
},
|
|
10257
10258
|
"parameters": [
|
|
10258
10259
|
{
|
|
@@ -10278,7 +10279,7 @@
|
|
|
10278
10279
|
"kind": "class",
|
|
10279
10280
|
"locationInModule": {
|
|
10280
10281
|
"filename": "src/lambda.ts",
|
|
10281
|
-
"line":
|
|
10282
|
+
"line": 102
|
|
10282
10283
|
},
|
|
10283
10284
|
"name": "PythonFunction",
|
|
10284
10285
|
"symbolId": "src/lambda:PythonFunction"
|
|
@@ -10297,7 +10298,7 @@
|
|
|
10297
10298
|
"kind": "interface",
|
|
10298
10299
|
"locationInModule": {
|
|
10299
10300
|
"filename": "src/lambda.ts",
|
|
10300
|
-
"line":
|
|
10301
|
+
"line": 86
|
|
10301
10302
|
},
|
|
10302
10303
|
"name": "PythonFunctionProps",
|
|
10303
10304
|
"properties": [
|
|
@@ -10311,7 +10312,7 @@
|
|
|
10311
10312
|
"immutable": true,
|
|
10312
10313
|
"locationInModule": {
|
|
10313
10314
|
"filename": "src/lambda.ts",
|
|
10314
|
-
"line":
|
|
10315
|
+
"line": 88
|
|
10315
10316
|
},
|
|
10316
10317
|
"name": "rootDir",
|
|
10317
10318
|
"type": {
|
|
@@ -10328,7 +10329,7 @@
|
|
|
10328
10329
|
"immutable": true,
|
|
10329
10330
|
"locationInModule": {
|
|
10330
10331
|
"filename": "src/lambda.ts",
|
|
10331
|
-
"line":
|
|
10332
|
+
"line": 98
|
|
10332
10333
|
},
|
|
10333
10334
|
"name": "bundling",
|
|
10334
10335
|
"optional": true,
|
|
@@ -10346,7 +10347,7 @@
|
|
|
10346
10347
|
"immutable": true,
|
|
10347
10348
|
"locationInModule": {
|
|
10348
10349
|
"filename": "src/lambda.ts",
|
|
10349
|
-
"line":
|
|
10350
|
+
"line": 94
|
|
10350
10351
|
},
|
|
10351
10352
|
"name": "handler",
|
|
10352
10353
|
"optional": true,
|
|
@@ -10364,7 +10365,7 @@
|
|
|
10364
10365
|
"immutable": true,
|
|
10365
10366
|
"locationInModule": {
|
|
10366
10367
|
"filename": "src/lambda.ts",
|
|
10367
|
-
"line":
|
|
10368
|
+
"line": 96
|
|
10368
10369
|
},
|
|
10369
10370
|
"name": "hashExcludes",
|
|
10370
10371
|
"optional": true,
|
|
@@ -10387,7 +10388,7 @@
|
|
|
10387
10388
|
"immutable": true,
|
|
10388
10389
|
"locationInModule": {
|
|
10389
10390
|
"filename": "src/lambda.ts",
|
|
10390
|
-
"line":
|
|
10391
|
+
"line": 92
|
|
10391
10392
|
},
|
|
10392
10393
|
"name": "index",
|
|
10393
10394
|
"optional": true,
|
|
@@ -10406,7 +10407,7 @@
|
|
|
10406
10407
|
"immutable": true,
|
|
10407
10408
|
"locationInModule": {
|
|
10408
10409
|
"filename": "src/lambda.ts",
|
|
10409
|
-
"line":
|
|
10410
|
+
"line": 90
|
|
10410
10411
|
},
|
|
10411
10412
|
"name": "runtime",
|
|
10412
10413
|
"optional": true,
|
|
@@ -10561,7 +10562,7 @@
|
|
|
10561
10562
|
},
|
|
10562
10563
|
"locationInModule": {
|
|
10563
10564
|
"filename": "src/uv-bundling.ts",
|
|
10564
|
-
"line":
|
|
10565
|
+
"line": 106
|
|
10565
10566
|
},
|
|
10566
10567
|
"parameters": [
|
|
10567
10568
|
{
|
|
@@ -10575,7 +10576,7 @@
|
|
|
10575
10576
|
"kind": "class",
|
|
10576
10577
|
"locationInModule": {
|
|
10577
10578
|
"filename": "src/uv-bundling.ts",
|
|
10578
|
-
"line":
|
|
10579
|
+
"line": 68
|
|
10579
10580
|
},
|
|
10580
10581
|
"name": "UvBundling",
|
|
10581
10582
|
"properties": [
|
|
@@ -10587,7 +10588,7 @@
|
|
|
10587
10588
|
"immutable": true,
|
|
10588
10589
|
"locationInModule": {
|
|
10589
10590
|
"filename": "src/uv-bundling.ts",
|
|
10590
|
-
"line":
|
|
10591
|
+
"line": 77
|
|
10591
10592
|
},
|
|
10592
10593
|
"name": "command",
|
|
10593
10594
|
"type": {
|
|
@@ -10607,7 +10608,7 @@
|
|
|
10607
10608
|
"immutable": true,
|
|
10608
10609
|
"locationInModule": {
|
|
10609
10610
|
"filename": "src/uv-bundling.ts",
|
|
10610
|
-
"line":
|
|
10611
|
+
"line": 104
|
|
10611
10612
|
},
|
|
10612
10613
|
"name": "image",
|
|
10613
10614
|
"type": {
|
|
@@ -10622,7 +10623,7 @@
|
|
|
10622
10623
|
"immutable": true,
|
|
10623
10624
|
"locationInModule": {
|
|
10624
10625
|
"filename": "src/uv-bundling.ts",
|
|
10625
|
-
"line":
|
|
10626
|
+
"line": 74
|
|
10626
10627
|
},
|
|
10627
10628
|
"name": "platform",
|
|
10628
10629
|
"type": {
|
|
@@ -10637,7 +10638,7 @@
|
|
|
10637
10638
|
"immutable": true,
|
|
10638
10639
|
"locationInModule": {
|
|
10639
10640
|
"filename": "src/uv-bundling.ts",
|
|
10640
|
-
"line":
|
|
10641
|
+
"line": 72
|
|
10641
10642
|
},
|
|
10642
10643
|
"name": "pythonVersion",
|
|
10643
10644
|
"type": {
|
|
@@ -10652,7 +10653,7 @@
|
|
|
10652
10653
|
"immutable": true,
|
|
10653
10654
|
"locationInModule": {
|
|
10654
10655
|
"filename": "src/uv-bundling.ts",
|
|
10655
|
-
"line":
|
|
10656
|
+
"line": 70
|
|
10656
10657
|
},
|
|
10657
10658
|
"name": "runtime",
|
|
10658
10659
|
"type": {
|
|
@@ -10667,7 +10668,7 @@
|
|
|
10667
10668
|
"immutable": true,
|
|
10668
10669
|
"locationInModule": {
|
|
10669
10670
|
"filename": "src/uv-bundling.ts",
|
|
10670
|
-
"line":
|
|
10671
|
+
"line": 95
|
|
10671
10672
|
},
|
|
10672
10673
|
"name": "bundlingFileAccess",
|
|
10673
10674
|
"optional": true,
|
|
@@ -10683,7 +10684,7 @@
|
|
|
10683
10684
|
"immutable": true,
|
|
10684
10685
|
"locationInModule": {
|
|
10685
10686
|
"filename": "src/uv-bundling.ts",
|
|
10686
|
-
"line":
|
|
10687
|
+
"line": 79
|
|
10687
10688
|
},
|
|
10688
10689
|
"name": "entrypoint",
|
|
10689
10690
|
"optional": true,
|
|
@@ -10704,7 +10705,7 @@
|
|
|
10704
10705
|
"immutable": true,
|
|
10705
10706
|
"locationInModule": {
|
|
10706
10707
|
"filename": "src/uv-bundling.ts",
|
|
10707
|
-
"line":
|
|
10708
|
+
"line": 81
|
|
10708
10709
|
},
|
|
10709
10710
|
"name": "environment",
|
|
10710
10711
|
"optional": true,
|
|
@@ -10725,7 +10726,7 @@
|
|
|
10725
10726
|
"immutable": true,
|
|
10726
10727
|
"locationInModule": {
|
|
10727
10728
|
"filename": "src/uv-bundling.ts",
|
|
10728
|
-
"line":
|
|
10729
|
+
"line": 93
|
|
10729
10730
|
},
|
|
10730
10731
|
"name": "network",
|
|
10731
10732
|
"optional": true,
|
|
@@ -10741,7 +10742,7 @@
|
|
|
10741
10742
|
"immutable": true,
|
|
10742
10743
|
"locationInModule": {
|
|
10743
10744
|
"filename": "src/uv-bundling.ts",
|
|
10744
|
-
"line":
|
|
10745
|
+
"line": 91
|
|
10745
10746
|
},
|
|
10746
10747
|
"name": "securityOpt",
|
|
10747
10748
|
"optional": true,
|
|
@@ -10757,7 +10758,7 @@
|
|
|
10757
10758
|
"immutable": true,
|
|
10758
10759
|
"locationInModule": {
|
|
10759
10760
|
"filename": "src/uv-bundling.ts",
|
|
10760
|
-
"line":
|
|
10761
|
+
"line": 89
|
|
10761
10762
|
},
|
|
10762
10763
|
"name": "user",
|
|
10763
10764
|
"optional": true,
|
|
@@ -10773,7 +10774,7 @@
|
|
|
10773
10774
|
"immutable": true,
|
|
10774
10775
|
"locationInModule": {
|
|
10775
10776
|
"filename": "src/uv-bundling.ts",
|
|
10776
|
-
"line":
|
|
10777
|
+
"line": 83
|
|
10777
10778
|
},
|
|
10778
10779
|
"name": "volumes",
|
|
10779
10780
|
"optional": true,
|
|
@@ -10794,7 +10795,7 @@
|
|
|
10794
10795
|
"immutable": true,
|
|
10795
10796
|
"locationInModule": {
|
|
10796
10797
|
"filename": "src/uv-bundling.ts",
|
|
10797
|
-
"line":
|
|
10798
|
+
"line": 85
|
|
10798
10799
|
},
|
|
10799
10800
|
"name": "volumesFrom",
|
|
10800
10801
|
"optional": true,
|
|
@@ -10815,7 +10816,7 @@
|
|
|
10815
10816
|
"immutable": true,
|
|
10816
10817
|
"locationInModule": {
|
|
10817
10818
|
"filename": "src/uv-bundling.ts",
|
|
10818
|
-
"line":
|
|
10819
|
+
"line": 87
|
|
10819
10820
|
},
|
|
10820
10821
|
"name": "workingDirectory",
|
|
10821
10822
|
"optional": true,
|
|
@@ -10916,7 +10917,7 @@
|
|
|
10916
10917
|
"immutable": true,
|
|
10917
10918
|
"locationInModule": {
|
|
10918
10919
|
"filename": "src/uv-bundling.ts",
|
|
10919
|
-
"line":
|
|
10920
|
+
"line": 64
|
|
10920
10921
|
},
|
|
10921
10922
|
"name": "bundlingFileAccess",
|
|
10922
10923
|
"optional": true,
|
|
@@ -10972,7 +10973,7 @@
|
|
|
10972
10973
|
"immutable": true,
|
|
10973
10974
|
"locationInModule": {
|
|
10974
10975
|
"filename": "src/uv-bundling.ts",
|
|
10975
|
-
"line":
|
|
10976
|
+
"line": 62
|
|
10976
10977
|
},
|
|
10977
10978
|
"name": "commandHooks",
|
|
10978
10979
|
"optional": true,
|
|
@@ -11015,6 +11016,25 @@
|
|
|
11015
11016
|
"type": {
|
|
11016
11017
|
"fqn": "aws-cdk-lib.aws_lambda.Runtime"
|
|
11017
11018
|
}
|
|
11019
|
+
},
|
|
11020
|
+
{
|
|
11021
|
+
"abstract": true,
|
|
11022
|
+
"docs": {
|
|
11023
|
+
"default": "\".\"",
|
|
11024
|
+
"remarks": "`python` gives a Lambda layer layout.",
|
|
11025
|
+
"stability": "stable",
|
|
11026
|
+
"summary": "Install dependencies into this subdirectory and ship only it;"
|
|
11027
|
+
},
|
|
11028
|
+
"immutable": true,
|
|
11029
|
+
"locationInModule": {
|
|
11030
|
+
"filename": "src/uv-bundling.ts",
|
|
11031
|
+
"line": 60
|
|
11032
|
+
},
|
|
11033
|
+
"name": "targetDir",
|
|
11034
|
+
"optional": true,
|
|
11035
|
+
"type": {
|
|
11036
|
+
"primitive": "string"
|
|
11037
|
+
}
|
|
11018
11038
|
}
|
|
11019
11039
|
],
|
|
11020
11040
|
"symbolId": "src/uv-bundling:UvBundlingProps"
|
|
@@ -11033,7 +11053,7 @@
|
|
|
11033
11053
|
"kind": "interface",
|
|
11034
11054
|
"locationInModule": {
|
|
11035
11055
|
"filename": "src/lambda.ts",
|
|
11036
|
-
"line":
|
|
11056
|
+
"line": 23
|
|
11037
11057
|
},
|
|
11038
11058
|
"name": "UvCodeProps",
|
|
11039
11059
|
"properties": [
|
|
@@ -11046,7 +11066,7 @@
|
|
|
11046
11066
|
"immutable": true,
|
|
11047
11067
|
"locationInModule": {
|
|
11048
11068
|
"filename": "src/lambda.ts",
|
|
11049
|
-
"line":
|
|
11069
|
+
"line": 25
|
|
11050
11070
|
},
|
|
11051
11071
|
"name": "rootDir",
|
|
11052
11072
|
"type": {
|
|
@@ -11063,7 +11083,7 @@
|
|
|
11063
11083
|
"immutable": true,
|
|
11064
11084
|
"locationInModule": {
|
|
11065
11085
|
"filename": "src/lambda.ts",
|
|
11066
|
-
"line":
|
|
11086
|
+
"line": 27
|
|
11067
11087
|
},
|
|
11068
11088
|
"name": "hashExcludes",
|
|
11069
11089
|
"optional": true,
|
|
@@ -11078,8 +11098,201 @@
|
|
|
11078
11098
|
}
|
|
11079
11099
|
],
|
|
11080
11100
|
"symbolId": "src/lambda:UvCodeProps"
|
|
11101
|
+
},
|
|
11102
|
+
"@layertwo/cdk-constructs.UvLayer": {
|
|
11103
|
+
"assembly": "@layertwo/cdk-constructs",
|
|
11104
|
+
"base": "aws-cdk-lib.aws_lambda.LayerVersion",
|
|
11105
|
+
"docs": {
|
|
11106
|
+
"stability": "stable",
|
|
11107
|
+
"summary": "A Lambda layer that packages a uv project's dependencies under `/opt/python`."
|
|
11108
|
+
},
|
|
11109
|
+
"fqn": "@layertwo/cdk-constructs.UvLayer",
|
|
11110
|
+
"initializer": {
|
|
11111
|
+
"docs": {
|
|
11112
|
+
"stability": "stable"
|
|
11113
|
+
},
|
|
11114
|
+
"locationInModule": {
|
|
11115
|
+
"filename": "src/lambda.ts",
|
|
11116
|
+
"line": 157
|
|
11117
|
+
},
|
|
11118
|
+
"parameters": [
|
|
11119
|
+
{
|
|
11120
|
+
"name": "scope",
|
|
11121
|
+
"type": {
|
|
11122
|
+
"fqn": "constructs.Construct"
|
|
11123
|
+
}
|
|
11124
|
+
},
|
|
11125
|
+
{
|
|
11126
|
+
"name": "id",
|
|
11127
|
+
"type": {
|
|
11128
|
+
"primitive": "string"
|
|
11129
|
+
}
|
|
11130
|
+
},
|
|
11131
|
+
{
|
|
11132
|
+
"name": "props",
|
|
11133
|
+
"type": {
|
|
11134
|
+
"fqn": "@layertwo/cdk-constructs.UvLayerProps"
|
|
11135
|
+
}
|
|
11136
|
+
}
|
|
11137
|
+
]
|
|
11138
|
+
},
|
|
11139
|
+
"kind": "class",
|
|
11140
|
+
"locationInModule": {
|
|
11141
|
+
"filename": "src/lambda.ts",
|
|
11142
|
+
"line": 151
|
|
11143
|
+
},
|
|
11144
|
+
"name": "UvLayer",
|
|
11145
|
+
"properties": [
|
|
11146
|
+
{
|
|
11147
|
+
"docs": {
|
|
11148
|
+
"stability": "stable",
|
|
11149
|
+
"summary": "Architecture the layer was built for."
|
|
11150
|
+
},
|
|
11151
|
+
"immutable": true,
|
|
11152
|
+
"locationInModule": {
|
|
11153
|
+
"filename": "src/lambda.ts",
|
|
11154
|
+
"line": 155
|
|
11155
|
+
},
|
|
11156
|
+
"name": "architecture",
|
|
11157
|
+
"type": {
|
|
11158
|
+
"fqn": "aws-cdk-lib.aws_lambda.Architecture"
|
|
11159
|
+
}
|
|
11160
|
+
},
|
|
11161
|
+
{
|
|
11162
|
+
"docs": {
|
|
11163
|
+
"stability": "stable",
|
|
11164
|
+
"summary": "Python runtime the layer was built for."
|
|
11165
|
+
},
|
|
11166
|
+
"immutable": true,
|
|
11167
|
+
"locationInModule": {
|
|
11168
|
+
"filename": "src/lambda.ts",
|
|
11169
|
+
"line": 153
|
|
11170
|
+
},
|
|
11171
|
+
"name": "runtime",
|
|
11172
|
+
"type": {
|
|
11173
|
+
"fqn": "aws-cdk-lib.aws_lambda.Runtime"
|
|
11174
|
+
}
|
|
11175
|
+
}
|
|
11176
|
+
],
|
|
11177
|
+
"symbolId": "src/lambda:UvLayer"
|
|
11178
|
+
},
|
|
11179
|
+
"@layertwo/cdk-constructs.UvLayerProps": {
|
|
11180
|
+
"assembly": "@layertwo/cdk-constructs",
|
|
11181
|
+
"datatype": true,
|
|
11182
|
+
"docs": {
|
|
11183
|
+
"stability": "stable",
|
|
11184
|
+
"summary": "Options for `UvLayer`."
|
|
11185
|
+
},
|
|
11186
|
+
"fqn": "@layertwo/cdk-constructs.UvLayerProps",
|
|
11187
|
+
"interfaces": [
|
|
11188
|
+
"aws-cdk-lib.aws_lambda.LayerVersionOptions"
|
|
11189
|
+
],
|
|
11190
|
+
"kind": "interface",
|
|
11191
|
+
"locationInModule": {
|
|
11192
|
+
"filename": "src/lambda.ts",
|
|
11193
|
+
"line": 137
|
|
11194
|
+
},
|
|
11195
|
+
"name": "UvLayerProps",
|
|
11196
|
+
"properties": [
|
|
11197
|
+
{
|
|
11198
|
+
"abstract": true,
|
|
11199
|
+
"docs": {
|
|
11200
|
+
"remarks": "it needs a `uv.lock`.",
|
|
11201
|
+
"stability": "stable",
|
|
11202
|
+
"summary": "Directory containing the uv project;"
|
|
11203
|
+
},
|
|
11204
|
+
"immutable": true,
|
|
11205
|
+
"locationInModule": {
|
|
11206
|
+
"filename": "src/lambda.ts",
|
|
11207
|
+
"line": 139
|
|
11208
|
+
},
|
|
11209
|
+
"name": "rootDir",
|
|
11210
|
+
"type": {
|
|
11211
|
+
"primitive": "string"
|
|
11212
|
+
}
|
|
11213
|
+
},
|
|
11214
|
+
{
|
|
11215
|
+
"abstract": true,
|
|
11216
|
+
"docs": {
|
|
11217
|
+
"default": "Architecture.ARM_64",
|
|
11218
|
+
"stability": "stable",
|
|
11219
|
+
"summary": "Target architecture."
|
|
11220
|
+
},
|
|
11221
|
+
"immutable": true,
|
|
11222
|
+
"locationInModule": {
|
|
11223
|
+
"filename": "src/lambda.ts",
|
|
11224
|
+
"line": 143
|
|
11225
|
+
},
|
|
11226
|
+
"name": "architecture",
|
|
11227
|
+
"optional": true,
|
|
11228
|
+
"type": {
|
|
11229
|
+
"fqn": "aws-cdk-lib.aws_lambda.Architecture"
|
|
11230
|
+
}
|
|
11231
|
+
},
|
|
11232
|
+
{
|
|
11233
|
+
"abstract": true,
|
|
11234
|
+
"docs": {
|
|
11235
|
+
"remarks": "the runtime and architecture come from the layer.",
|
|
11236
|
+
"stability": "stable",
|
|
11237
|
+
"summary": "Bundling options;"
|
|
11238
|
+
},
|
|
11239
|
+
"immutable": true,
|
|
11240
|
+
"locationInModule": {
|
|
11241
|
+
"filename": "src/lambda.ts",
|
|
11242
|
+
"line": 147
|
|
11243
|
+
},
|
|
11244
|
+
"name": "bundling",
|
|
11245
|
+
"optional": true,
|
|
11246
|
+
"type": {
|
|
11247
|
+
"fqn": "@layertwo/cdk-constructs.UvBundlingProps"
|
|
11248
|
+
}
|
|
11249
|
+
},
|
|
11250
|
+
{
|
|
11251
|
+
"abstract": true,
|
|
11252
|
+
"docs": {
|
|
11253
|
+
"remarks": "added to `DEFAULT_HASH_EXCLUDES`.",
|
|
11254
|
+
"stability": "stable",
|
|
11255
|
+
"summary": "Extra glob patterns to leave out of the asset hash;"
|
|
11256
|
+
},
|
|
11257
|
+
"immutable": true,
|
|
11258
|
+
"locationInModule": {
|
|
11259
|
+
"filename": "src/lambda.ts",
|
|
11260
|
+
"line": 145
|
|
11261
|
+
},
|
|
11262
|
+
"name": "hashExcludes",
|
|
11263
|
+
"optional": true,
|
|
11264
|
+
"type": {
|
|
11265
|
+
"collection": {
|
|
11266
|
+
"elementtype": {
|
|
11267
|
+
"primitive": "string"
|
|
11268
|
+
},
|
|
11269
|
+
"kind": "array"
|
|
11270
|
+
}
|
|
11271
|
+
}
|
|
11272
|
+
},
|
|
11273
|
+
{
|
|
11274
|
+
"abstract": true,
|
|
11275
|
+
"docs": {
|
|
11276
|
+
"default": "Runtime.PYTHON_3_15",
|
|
11277
|
+
"remarks": "must belong to the Python family.",
|
|
11278
|
+
"stability": "stable",
|
|
11279
|
+
"summary": "Python runtime;"
|
|
11280
|
+
},
|
|
11281
|
+
"immutable": true,
|
|
11282
|
+
"locationInModule": {
|
|
11283
|
+
"filename": "src/lambda.ts",
|
|
11284
|
+
"line": 141
|
|
11285
|
+
},
|
|
11286
|
+
"name": "runtime",
|
|
11287
|
+
"optional": true,
|
|
11288
|
+
"type": {
|
|
11289
|
+
"fqn": "aws-cdk-lib.aws_lambda.Runtime"
|
|
11290
|
+
}
|
|
11291
|
+
}
|
|
11292
|
+
],
|
|
11293
|
+
"symbolId": "src/lambda:UvLayerProps"
|
|
11081
11294
|
}
|
|
11082
11295
|
},
|
|
11083
|
-
"version": "0.0.
|
|
11084
|
-
"fingerprint": "
|
|
11296
|
+
"version": "0.0.14",
|
|
11297
|
+
"fingerprint": "LL2lr1vwcqOhTyLuogtrkCVnsbNWDGlrsjmjX6gsxW8="
|
|
11085
11298
|
}
|