@aws-cdk/aws-lambda-go-alpha 2.24.1-alpha.0 → 2.27.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +31 -5
- package/.jsii.tabl.json +8 -8
- package/README.md +1 -1
- package/lib/function.js +1 -1
- package/package.json +7 -7
package/.jsii
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"url": "https://aws.amazon.com"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"aws-cdk-lib": "^2.
|
|
11
|
+
"aws-cdk-lib": "^2.27.0",
|
|
12
12
|
"constructs": "^10.0.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencyClosure": {
|
|
@@ -1107,6 +1107,19 @@
|
|
|
1107
1107
|
}
|
|
1108
1108
|
}
|
|
1109
1109
|
},
|
|
1110
|
+
"aws-cdk-lib.aws_emrserverless": {
|
|
1111
|
+
"targets": {
|
|
1112
|
+
"dotnet": {
|
|
1113
|
+
"namespace": "Amazon.CDK.AWS.EMRServerless"
|
|
1114
|
+
},
|
|
1115
|
+
"java": {
|
|
1116
|
+
"package": "software.amazon.awscdk.services.emrserverless"
|
|
1117
|
+
},
|
|
1118
|
+
"python": {
|
|
1119
|
+
"module": "aws_cdk.aws_emrserverless"
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
1110
1123
|
"aws-cdk-lib.aws_events": {
|
|
1111
1124
|
"targets": {
|
|
1112
1125
|
"dotnet": {
|
|
@@ -2719,6 +2732,19 @@
|
|
|
2719
2732
|
}
|
|
2720
2733
|
}
|
|
2721
2734
|
},
|
|
2735
|
+
"aws-cdk-lib.aws_voiceid": {
|
|
2736
|
+
"targets": {
|
|
2737
|
+
"dotnet": {
|
|
2738
|
+
"namespace": "Amazon.CDK.AWS.VoiceID"
|
|
2739
|
+
},
|
|
2740
|
+
"java": {
|
|
2741
|
+
"package": "software.amazon.awscdk.services.voiceid"
|
|
2742
|
+
},
|
|
2743
|
+
"python": {
|
|
2744
|
+
"module": "aws_cdk.aws_voiceid"
|
|
2745
|
+
}
|
|
2746
|
+
}
|
|
2747
|
+
},
|
|
2722
2748
|
"aws-cdk-lib.aws_waf": {
|
|
2723
2749
|
"targets": {
|
|
2724
2750
|
"dotnet": {
|
|
@@ -2930,7 +2956,7 @@
|
|
|
2930
2956
|
},
|
|
2931
2957
|
"targets": {
|
|
2932
2958
|
"dotnet": {
|
|
2933
|
-
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/
|
|
2959
|
+
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/main/logo/default-256-dark.png",
|
|
2934
2960
|
"namespace": "Amazon.CDK",
|
|
2935
2961
|
"packageId": "Amazon.CDK.Lib"
|
|
2936
2962
|
},
|
|
@@ -3006,7 +3032,7 @@
|
|
|
3006
3032
|
},
|
|
3007
3033
|
"name": "@aws-cdk/aws-lambda-go-alpha",
|
|
3008
3034
|
"readme": {
|
|
3009
|
-
"markdown": "# Amazon Lambda Golang Library\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n\n\n> The APIs of higher level constructs in this module are experimental and under active development.\n> They are subject to non-backward compatible changes or removal in any future version. These are\n> not subject to the [Semantic Versioning](https://semver.org/) model and breaking changes will be\n> announced in the release notes. This means that while you may use them, you may need to update\n> your source code when upgrading to a newer version of this package.\n\n---\n\n<!--END STABILITY BANNER-->\n\nThis library provides constructs for Golang Lambda functions.\n\nTo use this module you will either need to have `Go` installed (`go1.11` or later) or `Docker` installed.\nSee [Local Bundling](#local-bundling)/[Docker Bundling](#docker-bundling) for more information.\n\nThis module also requires that your Golang application is\nusing a Go version >= 1.11 and is using [Go modules](https://golang.org/ref/mod).\n\n## Go Function\n\nDefine a `GoFunction`:\n\n```ts\nnew lambda.GoFunction(this, 'handler', {\n entry: 'app/cmd/api',\n});\n```\n\nBy default, if `entry` points to a directory, then the construct will assume there is a Go entry file (i.e. `main.go`).\nLet's look at an example Go project:\n\n```bash\nlamda-app\n├── cmd\n│ └── api\n│ └── main.go\n├── go.mod\n├── go.sum\n├── pkg\n│ ├── auth\n│ │ └── auth.go\n│ └── middleware\n│ └── middleware.go\n└── vendor\n ├── github.com\n │ └── aws\n │ └── aws-lambda-go\n └── modules.txt\n```\n\nWith the above layout I could either provide the `entry` as `lambda-app/cmd/api` or `lambda-app/cmd/api/main.go`, either will work.\nWhen the construct builds the golang binary this will be translated `go build ./cmd/api` & `go build ./cmd/api/main.go` respectively.\nThe construct will figure out where it needs to run the `go build` command from, in this example it would be from\nthe `lambda-app` directory. It does this by determining the [mod file path](#mod-file-path), which is explained in the\nnext section.\n\n### mod file path\n\nThe `GoFunction` tries to automatically determine your project root, that is\nthe root of your golang project. This is usually where the top level `go.mod` file or\n`vendor` folder of your project is located. When bundling in a Docker container, the\n`moduleDir` is used as the source (`/asset-input`) for the volume mounted in\nthe container.\n\nThe CDK will walk up parent folders starting from\nthe current working directory until it finds a folder containing a `go.mod` file.\n\nAlternatively, you can specify the `moduleDir` prop manually. In this case you\nneed to ensure that this path includes `entry` and any module/dependencies used\nby your function. Otherwise bundling will fail.\n\n## Runtime\n\nThe `GoFunction` can be used with either the `GO_1_X` runtime or the provided runtimes (`PROVIDED`/`PROVIDED_AL2`).\nBy default it will use the `PROVIDED_AL2` runtime. The `GO_1_X` runtime does not support things like\n[Lambda Extensions](https://docs.aws.amazon.com/lambda/latest/dg/using-extensions.html), whereas the provided runtimes do.\nThe [aws-lambda-go](https://github.com/aws/aws-lambda-go) library has built in support for the provided runtime as long as\nyou name the handler `bootstrap` (which we do by default).\n\n## Dependencies\n\nThe construct will attempt to figure out how to handle the dependencies for your function. It will\ndo this by determining whether or not you are vendoring your dependencies. It makes this determination\nby looking to see if there is a `vendor` folder at the [mod file path](#mod-file-path).\n\nWith this information the construct can determine what commands to run. You will\ngenerally fall into two scenarios:\n\n1. You are using vendoring (indicated by the presence of a `vendor` folder)\n In this case `go build` will be run with `-mod=vendor` set\n2. You are not using vendoring (indicated by the absence of a `vendor` folder)\n If you are not vendoring then `go build` will be run without `-mod=vendor`\n since the default behavior is to download dependencies\n\nAll other properties of `lambda.Function` are supported, see also the [AWS Lambda construct library](https://github.com/aws/aws-cdk/tree/
|
|
3035
|
+
"markdown": "# Amazon Lambda Golang Library\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n\n\n> The APIs of higher level constructs in this module are experimental and under active development.\n> They are subject to non-backward compatible changes or removal in any future version. These are\n> not subject to the [Semantic Versioning](https://semver.org/) model and breaking changes will be\n> announced in the release notes. This means that while you may use them, you may need to update\n> your source code when upgrading to a newer version of this package.\n\n---\n\n<!--END STABILITY BANNER-->\n\nThis library provides constructs for Golang Lambda functions.\n\nTo use this module you will either need to have `Go` installed (`go1.11` or later) or `Docker` installed.\nSee [Local Bundling](#local-bundling)/[Docker Bundling](#docker-bundling) for more information.\n\nThis module also requires that your Golang application is\nusing a Go version >= 1.11 and is using [Go modules](https://golang.org/ref/mod).\n\n## Go Function\n\nDefine a `GoFunction`:\n\n```ts\nnew lambda.GoFunction(this, 'handler', {\n entry: 'app/cmd/api',\n});\n```\n\nBy default, if `entry` points to a directory, then the construct will assume there is a Go entry file (i.e. `main.go`).\nLet's look at an example Go project:\n\n```bash\nlamda-app\n├── cmd\n│ └── api\n│ └── main.go\n├── go.mod\n├── go.sum\n├── pkg\n│ ├── auth\n│ │ └── auth.go\n│ └── middleware\n│ └── middleware.go\n└── vendor\n ├── github.com\n │ └── aws\n │ └── aws-lambda-go\n └── modules.txt\n```\n\nWith the above layout I could either provide the `entry` as `lambda-app/cmd/api` or `lambda-app/cmd/api/main.go`, either will work.\nWhen the construct builds the golang binary this will be translated `go build ./cmd/api` & `go build ./cmd/api/main.go` respectively.\nThe construct will figure out where it needs to run the `go build` command from, in this example it would be from\nthe `lambda-app` directory. It does this by determining the [mod file path](#mod-file-path), which is explained in the\nnext section.\n\n### mod file path\n\nThe `GoFunction` tries to automatically determine your project root, that is\nthe root of your golang project. This is usually where the top level `go.mod` file or\n`vendor` folder of your project is located. When bundling in a Docker container, the\n`moduleDir` is used as the source (`/asset-input`) for the volume mounted in\nthe container.\n\nThe CDK will walk up parent folders starting from\nthe current working directory until it finds a folder containing a `go.mod` file.\n\nAlternatively, you can specify the `moduleDir` prop manually. In this case you\nneed to ensure that this path includes `entry` and any module/dependencies used\nby your function. Otherwise bundling will fail.\n\n## Runtime\n\nThe `GoFunction` can be used with either the `GO_1_X` runtime or the provided runtimes (`PROVIDED`/`PROVIDED_AL2`).\nBy default it will use the `PROVIDED_AL2` runtime. The `GO_1_X` runtime does not support things like\n[Lambda Extensions](https://docs.aws.amazon.com/lambda/latest/dg/using-extensions.html), whereas the provided runtimes do.\nThe [aws-lambda-go](https://github.com/aws/aws-lambda-go) library has built in support for the provided runtime as long as\nyou name the handler `bootstrap` (which we do by default).\n\n## Dependencies\n\nThe construct will attempt to figure out how to handle the dependencies for your function. It will\ndo this by determining whether or not you are vendoring your dependencies. It makes this determination\nby looking to see if there is a `vendor` folder at the [mod file path](#mod-file-path).\n\nWith this information the construct can determine what commands to run. You will\ngenerally fall into two scenarios:\n\n1. You are using vendoring (indicated by the presence of a `vendor` folder)\n In this case `go build` will be run with `-mod=vendor` set\n2. You are not using vendoring (indicated by the absence of a `vendor` folder)\n If you are not vendoring then `go build` will be run without `-mod=vendor`\n since the default behavior is to download dependencies\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## Environment\n\nBy default the following environment variables are set for you:\n\n* `GOOS=linux`\n* `GOARCH`: based on the target architecture of the Lambda function\n* `GO111MODULE=on`\n\nUse the `environment` prop to define additional environment variables when go runs:\n\n```ts\nnew lambda.GoFunction(this, 'handler', {\n entry: 'app/cmd/api',\n bundling: {\n environment: {\n HELLO: 'WORLD',\n },\n },\n});\n```\n\n## Local Bundling\n\nIf `Go` is installed locally and the version is >= `go1.11` then it will be used to bundle your code in your environment. Otherwise, bundling will happen in a [Lambda compatible Docker container](https://gallery.ecr.aws/sam/build-go1.x) with the Docker platform based on the target architecture of the Lambda function.\n\nFor macOS the recommended approach is to install `Go` as Docker volume performance is really poor.\n\n`Go` can be installed by following the [installation docs](https://golang.org/doc/install).\n\n\n## Docker\n\nTo force bundling in a docker container even if `Go` is available in your environment, set the `forceDockerBundling` prop to `true`. This is useful if you want to make sure that your function is built in a consistent Lambda compatible environment.\n\nUse the `buildArgs` prop to pass build arguments when building the bundling image:\n\n```ts\nnew lambda.GoFunction(this, 'handler', {\n entry: 'app/cmd/api',\n bundling: {\n buildArgs: {\n HTTPS_PROXY: 'https://127.0.0.1:3001',\n },\n },\n});\n```\n\nUse the `bundling.dockerImage` prop to use a custom bundling image:\n\n```ts\nnew lambda.GoFunction(this, 'handler', {\n entry: 'app/cmd/api',\n bundling: {\n dockerImage: DockerImage.fromBuild('/path/to/Dockerfile'),\n },\n});\n```\n\nUse the `bundling.goBuildFlags` prop to pass additional build flags to `go build`:\n\n```ts\nnew lambda.GoFunction(this, 'handler', {\n entry: 'app/cmd/api',\n bundling: {\n goBuildFlags: ['-ldflags \"-s -w\"'],\n },\n});\n```\n\n## Command hooks\n\nIt is possible to run additional commands by specifying the `commandHooks` prop:\n\n```text\n// This example only available in TypeScript\n// Run additional commands on a GoFunction via `commandHooks` property\nnew lambda.GoFunction(this, 'handler', {\n bundling: {\n commandHooks: {\n // run tests\n beforeBundling(inputDir: string): string[] {\n return ['go test ./cmd/api -v'];\n },\n // ...\n },\n },\n});\n```\n\nThe following hooks are available:\n\n* `beforeBundling`: runs before all bundling commands\n* `afterBundling`: runs after all bundling commands\n\nThey all receive the directory containing the `go.mod` file (`inputDir`) and the\ndirectory where the bundled asset will be output (`outputDir`). They must return\nan array of commands to run. Commands are chained with `&&`.\n\nThe commands will run in the environment in which bundling occurs: inside the\ncontainer for Docker bundling or on the host OS for local bundling.\n\n## Additional considerations\n\nDepending on how you structure your Golang application, you may want to change the `assetHashType` parameter.\nBy default this parameter is set to `AssetHashType.OUTPUT` which means that the CDK will calculate the asset hash\n(and determine whether or not your code has changed) based on the Golang executable that is created.\n\nIf you specify `AssetHashType.SOURCE`, the CDK will calculate the asset hash by looking at the folder\nthat contains your `go.mod` file. If you are deploying a single Lambda function, or you want to redeploy\nall of your functions if anything changes, then `AssetHashType.SOURCE` will probaby work.\n\n\nFor example, if my app looked like this:\n\n```bash\nlamda-app\n├── cmd\n│ └── api\n│ └── main.go\n├── go.mod\n├── go.sum\n└── pkg\n └── auth\n └── auth.go\n```\n\nWith this structure I would provide the `entry` as `cmd/api` which means that the CDK\nwill determine that the protect root is `lambda-app` (it contains the `go.mod` file).\nSince I only have a single Lambda function, and any update to files within the `lambda-app` directory\nshould trigger a new deploy, I could specify `AssetHashType.SOURCE`.\n\nOn the other hand, if I had a project that deployed mmultiple Lambda functions, for example:\n\n```bash\nlamda-app\n├── cmd\n│ ├── api\n│ │ └── main.go\n│ └── anotherApi\n│ └── main.go\n├── go.mod\n├── go.sum\n└── pkg\n ├── auth\n │ └── auth.go\n └── middleware\n └── middleware.go\n```\n\nThen I would most likely want `AssetHashType.OUTPUT`. With `OUTPUT`\nthe CDK will only recognize changes if the Golang executable has changed,\nand Go only includes dependencies that are used in the executable. So in this case\nif `cmd/api` used the `auth` & `middleware` packages, but `cmd/anotherApi` did not, then\nan update to `auth` or `middleware` would only trigger an update to the `cmd/api` Lambda\nFunction.\n"
|
|
3010
3036
|
},
|
|
3011
3037
|
"repository": {
|
|
3012
3038
|
"directory": "packages/individual-packages/aws-lambda-go",
|
|
@@ -3017,7 +3043,7 @@
|
|
|
3017
3043
|
"targets": {
|
|
3018
3044
|
"dotnet": {
|
|
3019
3045
|
"assemblyOriginatorKeyFile": "../../key.snk",
|
|
3020
|
-
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/
|
|
3046
|
+
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/main/logo/default-256-dark.png",
|
|
3021
3047
|
"namespace": "Amazon.CDK.AWS.Lambda.Go.Alpha",
|
|
3022
3048
|
"packageId": "Amazon.CDK.AWS.Lambda.Go.Alpha",
|
|
3023
3049
|
"signAssembly": true
|
|
@@ -3492,6 +3518,6 @@
|
|
|
3492
3518
|
"symbolId": "lib/types:ICommandHooks"
|
|
3493
3519
|
}
|
|
3494
3520
|
},
|
|
3495
|
-
"version": "2.
|
|
3521
|
+
"version": "2.27.0-alpha.0",
|
|
3496
3522
|
"fingerprint": "**********"
|
|
3497
3523
|
}
|
package/.jsii.tabl.json
CHANGED
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"226": 1,
|
|
52
52
|
"281": 1
|
|
53
53
|
},
|
|
54
|
-
"fqnsFingerprint": "
|
|
54
|
+
"fqnsFingerprint": "196397327eb249dbd6c329271a524d8e4be38d2263ac5fdc48fc40fd85112752"
|
|
55
55
|
},
|
|
56
56
|
"e70c2439ea96dd819afe0cc5b516581c4f9ddbc891b3763d8ce3479f77c9c6b3": {
|
|
57
57
|
"translations": {
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"226": 1,
|
|
104
104
|
"281": 4
|
|
105
105
|
},
|
|
106
|
-
"fqnsFingerprint": "
|
|
106
|
+
"fqnsFingerprint": "1bbc33ade59128238c1d77fc9d749ffc0db343c4c46e76e6a2e0d7e75ac57ec2"
|
|
107
107
|
},
|
|
108
108
|
"48b66a21ffc53208985227b09545759dda324e90fa803d6d69397d67eb1eae37": {
|
|
109
109
|
"translations": {
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"226": 1,
|
|
156
156
|
"281": 4
|
|
157
157
|
},
|
|
158
|
-
"fqnsFingerprint": "
|
|
158
|
+
"fqnsFingerprint": "1bbc33ade59128238c1d77fc9d749ffc0db343c4c46e76e6a2e0d7e75ac57ec2"
|
|
159
159
|
},
|
|
160
160
|
"aad0bb971e874ac487894fadf4ada34afa6368a0fe470a3c5eff8d28c49046e3": {
|
|
161
161
|
"translations": {
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
"226": 1,
|
|
211
211
|
"281": 3
|
|
212
212
|
},
|
|
213
|
-
"fqnsFingerprint": "
|
|
213
|
+
"fqnsFingerprint": "d21aaa0b7c27fd074dbea0e298c768e6b5af9e11e11da9d9b29a950f576c2128"
|
|
214
214
|
},
|
|
215
215
|
"4813fa1d4ff1554906c147e38be7de9d3a15fb9734ab53a8f64796488501611b": {
|
|
216
216
|
"translations": {
|
|
@@ -263,7 +263,7 @@
|
|
|
263
263
|
"226": 1,
|
|
264
264
|
"281": 3
|
|
265
265
|
},
|
|
266
|
-
"fqnsFingerprint": "
|
|
266
|
+
"fqnsFingerprint": "1bbc33ade59128238c1d77fc9d749ffc0db343c4c46e76e6a2e0d7e75ac57ec2"
|
|
267
267
|
},
|
|
268
268
|
"b9b468ace2862d2583a80f264d8f99f76fbe474065a42112d85344ed00555af7": {
|
|
269
269
|
"translations": {
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
"226": 1,
|
|
315
315
|
"281": 4
|
|
316
316
|
},
|
|
317
|
-
"fqnsFingerprint": "
|
|
317
|
+
"fqnsFingerprint": "1bbc33ade59128238c1d77fc9d749ffc0db343c4c46e76e6a2e0d7e75ac57ec2"
|
|
318
318
|
},
|
|
319
319
|
"da5b66c1f2894d6b595fb1ff5d7d5ae6088902bb6692b5de102ef7ed3c791748": {
|
|
320
320
|
"translations": {
|
|
@@ -366,7 +366,7 @@
|
|
|
366
366
|
"226": 1,
|
|
367
367
|
"281": 3
|
|
368
368
|
},
|
|
369
|
-
"fqnsFingerprint": "
|
|
369
|
+
"fqnsFingerprint": "1bbc33ade59128238c1d77fc9d749ffc0db343c4c46e76e6a2e0d7e75ac57ec2"
|
|
370
370
|
},
|
|
371
371
|
"e08f92e358389a1d1634ee1353821349d445e7db841259c4c020eae416c870ef": {
|
|
372
372
|
"translations": {
|
|
@@ -418,7 +418,7 @@
|
|
|
418
418
|
"226": 1,
|
|
419
419
|
"281": 3
|
|
420
420
|
},
|
|
421
|
-
"fqnsFingerprint": "
|
|
421
|
+
"fqnsFingerprint": "1bbc33ade59128238c1d77fc9d749ffc0db343c4c46e76e6a2e0d7e75ac57ec2"
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
424
|
}
|
package/README.md
CHANGED
|
@@ -99,7 +99,7 @@ generally fall into two scenarios:
|
|
|
99
99
|
If you are not vendoring then `go build` will be run without `-mod=vendor`
|
|
100
100
|
since the default behavior is to download dependencies
|
|
101
101
|
|
|
102
|
-
All other properties of `lambda.Function` are supported, see also the [AWS Lambda construct library](https://github.com/aws/aws-cdk/tree/
|
|
102
|
+
All other properties of `lambda.Function` are supported, see also the [AWS Lambda construct library](https://github.com/aws/aws-cdk/tree/main/packages/%40aws-cdk/aws-lambda).
|
|
103
103
|
|
|
104
104
|
## Environment
|
|
105
105
|
|
package/lib/function.js
CHANGED
|
@@ -70,5 +70,5 @@ class GoFunction extends lambda.Function {
|
|
|
70
70
|
}
|
|
71
71
|
exports.GoFunction = GoFunction;
|
|
72
72
|
_a = JSII_RTTI_SYMBOL_1;
|
|
73
|
-
GoFunction[_a] = { fqn: "@aws-cdk/aws-lambda-go-alpha.GoFunction", version: "2.
|
|
73
|
+
GoFunction[_a] = { fqn: "@aws-cdk/aws-lambda-go-alpha.GoFunction", version: "2.27.0-alpha.0" };
|
|
74
74
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnVuY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJmdW5jdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSx5QkFBeUI7QUFDekIsNkJBQTZCO0FBQzdCLGlEQUFpRDtBQUVqRCx5Q0FBc0M7QUFFdEMsaUNBQWdDO0FBK0RoQzs7R0FFRztBQUNILE1BQWEsVUFBVyxTQUFRLE1BQU0sQ0FBQyxRQUFRO0lBQzdDLFlBQVksS0FBZ0IsRUFBRSxFQUFVLEVBQ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
|
|
2
2
|
"name": "@aws-cdk/aws-lambda-go-alpha",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.27.0-alpha.0",
|
|
4
4
|
"description": "The CDK Construct Library for AWS Lambda in Golang",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"packageId": "Amazon.CDK.AWS.Lambda.Go.Alpha",
|
|
20
20
|
"signAssembly": true,
|
|
21
21
|
"assemblyOriginatorKeyFile": "../../key.snk",
|
|
22
|
-
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/
|
|
22
|
+
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/main/logo/default-256-dark.png"
|
|
23
23
|
},
|
|
24
24
|
"python": {
|
|
25
25
|
"distName": "aws-cdk.aws-lambda-go-alpha",
|
|
@@ -77,17 +77,17 @@
|
|
|
77
77
|
},
|
|
78
78
|
"license": "Apache-2.0",
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@aws-cdk/cdk-build-tools": "2.
|
|
81
|
-
"@aws-cdk/integ-runner": "2.
|
|
82
|
-
"@aws-cdk/pkglint": "2.
|
|
80
|
+
"@aws-cdk/cdk-build-tools": "2.27.0",
|
|
81
|
+
"@aws-cdk/integ-runner": "2.27.0",
|
|
82
|
+
"@aws-cdk/pkglint": "2.27.0",
|
|
83
83
|
"@types/jest": "^27.5.0",
|
|
84
|
-
"aws-cdk-lib": "2.
|
|
84
|
+
"aws-cdk-lib": "2.27.0",
|
|
85
85
|
"constructs": "^10.0.0"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {},
|
|
88
88
|
"homepage": "https://github.com/aws/aws-cdk",
|
|
89
89
|
"peerDependencies": {
|
|
90
|
-
"aws-cdk-lib": "^2.
|
|
90
|
+
"aws-cdk-lib": "^2.27.0",
|
|
91
91
|
"constructs": "^10.0.0"
|
|
92
92
|
},
|
|
93
93
|
"engines": {
|