@aws-cdk/aws-lambda-go-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-go-alpha",
3047
3086
  "readme": {
3048
- "markdown": "# Amazon Lambda Golang Library\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 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"
3087
+ "markdown": "# Amazon Lambda Golang Library\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 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 go.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 go.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 go.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 go.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 go.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 go.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"
3049
3088
  },
3050
3089
  "repository": {
3051
3090
  "directory": "packages/individual-packages/aws-lambda-go",
@@ -3091,7 +3130,7 @@
3091
3130
  "docs": {
3092
3131
  "stability": "experimental",
3093
3132
  "summary": "Bundling options.",
3094
- "example": "new lambda.GoFunction(this, 'handler', {\n entry: 'app/cmd/api',\n bundling: {\n environment: {\n HELLO: 'WORLD',\n },\n },\n});",
3133
+ "example": "new go.GoFunction(this, 'handler', {\n entry: 'app/cmd/api',\n bundling: {\n environment: {\n HELLO: 'WORLD',\n },\n },\n});",
3095
3134
  "custom": {
3096
3135
  "exampleMetadata": "infused"
3097
3136
  }
@@ -3297,7 +3336,7 @@
3297
3336
  "docs": {
3298
3337
  "stability": "experimental",
3299
3338
  "summary": "A Golang Lambda function.",
3300
- "example": "new lambda.GoFunction(this, 'handler', {\n entry: 'app/cmd/api',\n bundling: {\n goBuildFlags: ['-ldflags \"-s -w\"'],\n },\n});",
3339
+ "example": "new go.GoFunction(this, 'handler', {\n entry: 'app/cmd/api',\n bundling: {\n goBuildFlags: ['-ldflags \"-s -w\"'],\n },\n});",
3301
3340
  "custom": {
3302
3341
  "exampleMetadata": "infused"
3303
3342
  }
@@ -3346,7 +3385,7 @@
3346
3385
  "docs": {
3347
3386
  "stability": "experimental",
3348
3387
  "summary": "Properties for a GolangFunction.",
3349
- "example": "new lambda.GoFunction(this, 'handler', {\n entry: 'app/cmd/api',\n bundling: {\n goBuildFlags: ['-ldflags \"-s -w\"'],\n },\n});",
3388
+ "example": "new go.GoFunction(this, 'handler', {\n entry: 'app/cmd/api',\n bundling: {\n goBuildFlags: ['-ldflags \"-s -w\"'],\n },\n});",
3350
3389
  "custom": {
3351
3390
  "exampleMetadata": "infused"
3352
3391
  }
@@ -3531,6 +3570,6 @@
3531
3570
  "symbolId": "lib/types:ICommandHooks"
3532
3571
  }
3533
3572
  },
3534
- "version": "2.40.0-alpha.0",
3573
+ "version": "2.42.0-alpha.0",
3535
3574
  "fingerprint": "**********"
3536
3575
  }
Binary file
package/README.md CHANGED
@@ -28,7 +28,7 @@ using a Go version >= 1.11 and is using [Go modules](https://golang.org/ref/mod)
28
28
  Define a `GoFunction`:
29
29
 
30
30
  ```ts
31
- new lambda.GoFunction(this, 'handler', {
31
+ new go.GoFunction(this, 'handler', {
32
32
  entry: 'app/cmd/api',
33
33
  });
34
34
  ```
@@ -112,7 +112,7 @@ By default the following environment variables are set for you:
112
112
  Use the `environment` prop to define additional environment variables when go runs:
113
113
 
114
114
  ```ts
115
- new lambda.GoFunction(this, 'handler', {
115
+ new go.GoFunction(this, 'handler', {
116
116
  entry: 'app/cmd/api',
117
117
  bundling: {
118
118
  environment: {
@@ -138,7 +138,7 @@ To force bundling in a docker container even if `Go` is available in your enviro
138
138
  Use the `buildArgs` prop to pass build arguments when building the bundling image:
139
139
 
140
140
  ```ts
141
- new lambda.GoFunction(this, 'handler', {
141
+ new go.GoFunction(this, 'handler', {
142
142
  entry: 'app/cmd/api',
143
143
  bundling: {
144
144
  buildArgs: {
@@ -151,7 +151,7 @@ new lambda.GoFunction(this, 'handler', {
151
151
  Use the `bundling.dockerImage` prop to use a custom bundling image:
152
152
 
153
153
  ```ts
154
- new lambda.GoFunction(this, 'handler', {
154
+ new go.GoFunction(this, 'handler', {
155
155
  entry: 'app/cmd/api',
156
156
  bundling: {
157
157
  dockerImage: DockerImage.fromBuild('/path/to/Dockerfile'),
@@ -162,7 +162,7 @@ new lambda.GoFunction(this, 'handler', {
162
162
  Use the `bundling.goBuildFlags` prop to pass additional build flags to `go build`:
163
163
 
164
164
  ```ts
165
- new lambda.GoFunction(this, 'handler', {
165
+ new go.GoFunction(this, 'handler', {
166
166
  entry: 'app/cmd/api',
167
167
  bundling: {
168
168
  goBuildFlags: ['-ldflags "-s -w"'],
@@ -177,7 +177,7 @@ It is possible to run additional commands by specifying the `commandHooks` prop
177
177
  ```text
178
178
  // This example only available in TypeScript
179
179
  // Run additional commands on a GoFunction via `commandHooks` property
180
- new lambda.GoFunction(this, 'handler', {
180
+ new go.GoFunction(this, 'handler', {
181
181
  bundling: {
182
182
  commandHooks: {
183
183
  // run tests
package/lib/function.js CHANGED
@@ -69,5 +69,5 @@ class GoFunction extends lambda.Function {
69
69
  }
70
70
  exports.GoFunction = GoFunction;
71
71
  _a = JSII_RTTI_SYMBOL_1;
72
- GoFunction[_a] = { fqn: "@aws-cdk/aws-lambda-go-alpha.GoFunction", version: "2.40.0-alpha.0" };
72
+ GoFunction[_a] = { fqn: "@aws-cdk/aws-lambda-go-alpha.GoFunction", version: "2.42.0-alpha.0" };
73
73
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnVuY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJmdW5jdGlvbi50cyJdLCJuYW1lcyI6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wJywgLy8gc2V0dGluZyBuYW1lIHRvIGJvb3RzdHJhcCBzbyB0aGF0IHRoZSAncHJvdmlkZWQnIHJ1bnRpbWUgY2FuIGFsc28gYmUgdXNlZFxuICAgIH0pO1xuICB9XG59XG5cbiJdfQ==
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-cdk/aws-lambda-go-alpha",
3
- "version": "2.40.0-alpha.0",
3
+ "version": "2.42.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",
@@ -77,17 +77,17 @@
77
77
  },
78
78
  "license": "Apache-2.0",
79
79
  "devDependencies": {
80
- "@aws-cdk/cdk-build-tools": "2.40.0",
81
- "@aws-cdk/integ-runner": "2.40.0",
82
- "@aws-cdk/pkglint": "2.40.0",
80
+ "@aws-cdk/cdk-build-tools": "2.42.0",
81
+ "@aws-cdk/integ-runner": "2.42.0",
82
+ "@aws-cdk/pkglint": "2.42.0",
83
83
  "@types/jest": "^27.5.2",
84
- "aws-cdk-lib": "2.40.0",
84
+ "aws-cdk-lib": "2.42.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.40.0",
90
+ "aws-cdk-lib": "^2.42.0",
91
91
  "constructs": "^10.0.0"
92
92
  },
93
93
  "engines": {
@@ -1,7 +1,7 @@
1
1
  // Fixture with packages imported, but nothing else
2
2
  import { Construct } from 'constructs';
3
3
  import { DockerImage, Stack } from 'aws-cdk-lib';
4
- import * as lambda from '@aws-cdk/aws-lambda-go-alpha';
4
+ import * as go from '@aws-cdk/aws-lambda-go-alpha';
5
5
 
6
6
  class Fixture extends Stack {
7
7
  constructor(scope: Construct, id: string) {
package/.jsii.tabl.json DELETED
@@ -1,432 +0,0 @@
1
- {
2
- "version": "2",
3
- "toolVersion": "1.66.0",
4
- "snippets": {
5
- "0ddaec7539c22b7485ab478a9886f2a382fd5174139080649aa818fece8c4e92": {
6
- "translations": {
7
- "python": {
8
- "source": "lambda_.GoFunction(self, \"handler\",\n entry=\"app/cmd/api\"\n)",
9
- "version": "2"
10
- },
11
- "csharp": {
12
- "source": "new GoFunction(this, \"handler\", new GoFunctionProps {\n Entry = \"app/cmd/api\"\n});",
13
- "version": "1"
14
- },
15
- "java": {
16
- "source": "GoFunction.Builder.create(this, \"handler\")\n .entry(\"app/cmd/api\")\n .build();",
17
- "version": "1"
18
- },
19
- "go": {
20
- "source": "lambda.NewGoFunction(this, jsii.String(\"handler\"), &goFunctionProps{\n\tentry: jsii.String(\"app/cmd/api\"),\n})",
21
- "version": "1"
22
- },
23
- "$": {
24
- "source": "new lambda.GoFunction(this, 'handler', {\n entry: 'app/cmd/api',\n});",
25
- "version": "0"
26
- }
27
- },
28
- "location": {
29
- "api": {
30
- "api": "moduleReadme",
31
- "moduleFqn": "@aws-cdk/aws-lambda-go-alpha"
32
- },
33
- "field": {
34
- "field": "markdown",
35
- "line": 30
36
- }
37
- },
38
- "didCompile": true,
39
- "fqnsReferenced": [
40
- "@aws-cdk/aws-lambda-go-alpha.GoFunction",
41
- "@aws-cdk/aws-lambda-go-alpha.GoFunctionProps",
42
- "constructs.Construct"
43
- ],
44
- "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { DockerImage, Stack } from 'aws-cdk-lib';\nimport * as lambda from '@aws-cdk/aws-lambda-go-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.GoFunction(this, 'handler', {\n entry: 'app/cmd/api',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
45
- "syntaxKindCounter": {
46
- "10": 2,
47
- "75": 3,
48
- "104": 1,
49
- "193": 1,
50
- "194": 1,
51
- "197": 1,
52
- "226": 1,
53
- "281": 1
54
- },
55
- "fqnsFingerprint": "eb4f97abe209e74d2024d290cf7fbbc9b915b1e883748ae65900a6889e752c35"
56
- },
57
- "e70c2439ea96dd819afe0cc5b516581c4f9ddbc891b3763d8ce3479f77c9c6b3": {
58
- "translations": {
59
- "python": {
60
- "source": "lambda_.GoFunction(self, \"handler\",\n entry=\"app/cmd/api\",\n bundling=lambda.BundlingOptions(\n environment={\n \"HELLO\": \"WORLD\"\n }\n )\n)",
61
- "version": "2"
62
- },
63
- "csharp": {
64
- "source": "new GoFunction(this, \"handler\", new GoFunctionProps {\n Entry = \"app/cmd/api\",\n Bundling = new BundlingOptions {\n Environment = new Dictionary<string, string> {\n { \"HELLO\", \"WORLD\" }\n }\n }\n});",
65
- "version": "1"
66
- },
67
- "java": {
68
- "source": "GoFunction.Builder.create(this, \"handler\")\n .entry(\"app/cmd/api\")\n .bundling(BundlingOptions.builder()\n .environment(Map.of(\n \"HELLO\", \"WORLD\"))\n .build())\n .build();",
69
- "version": "1"
70
- },
71
- "go": {
72
- "source": "lambda.NewGoFunction(this, jsii.String(\"handler\"), &goFunctionProps{\n\tentry: jsii.String(\"app/cmd/api\"),\n\tbundling: &bundlingOptions{\n\t\tenvironment: map[string]*string{\n\t\t\t\"HELLO\": jsii.String(\"WORLD\"),\n\t\t},\n\t},\n})",
73
- "version": "1"
74
- },
75
- "$": {
76
- "source": "new lambda.GoFunction(this, 'handler', {\n entry: 'app/cmd/api',\n bundling: {\n environment: {\n HELLO: 'WORLD',\n },\n },\n});",
77
- "version": "0"
78
- }
79
- },
80
- "location": {
81
- "api": {
82
- "api": "moduleReadme",
83
- "moduleFqn": "@aws-cdk/aws-lambda-go-alpha"
84
- },
85
- "field": {
86
- "field": "markdown",
87
- "line": 114
88
- }
89
- },
90
- "didCompile": true,
91
- "fqnsReferenced": [
92
- "@aws-cdk/aws-lambda-go-alpha.BundlingOptions",
93
- "@aws-cdk/aws-lambda-go-alpha.GoFunction",
94
- "@aws-cdk/aws-lambda-go-alpha.GoFunctionProps",
95
- "constructs.Construct"
96
- ],
97
- "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { DockerImage, Stack } from 'aws-cdk-lib';\nimport * as lambda from '@aws-cdk/aws-lambda-go-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.GoFunction(this, 'handler', {\n entry: 'app/cmd/api',\n bundling: {\n environment: {\n HELLO: 'WORLD',\n },\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
98
- "syntaxKindCounter": {
99
- "10": 3,
100
- "75": 6,
101
- "104": 1,
102
- "193": 3,
103
- "194": 1,
104
- "197": 1,
105
- "226": 1,
106
- "281": 4
107
- },
108
- "fqnsFingerprint": "f249d079d1234ca80f9b7ea940f3bc837bc1731a79f0bb5d275d0a850b1898ed"
109
- },
110
- "48b66a21ffc53208985227b09545759dda324e90fa803d6d69397d67eb1eae37": {
111
- "translations": {
112
- "python": {
113
- "source": "lambda_.GoFunction(self, \"handler\",\n entry=\"app/cmd/api\",\n bundling=lambda.BundlingOptions(\n build_args={\n \"HTTPS_PROXY\": \"https://127.0.0.1:3001\"\n }\n )\n)",
114
- "version": "2"
115
- },
116
- "csharp": {
117
- "source": "new GoFunction(this, \"handler\", new GoFunctionProps {\n Entry = \"app/cmd/api\",\n Bundling = new BundlingOptions {\n BuildArgs = new Dictionary<string, string> {\n { \"HTTPS_PROXY\", \"https://127.0.0.1:3001\" }\n }\n }\n});",
118
- "version": "1"
119
- },
120
- "java": {
121
- "source": "GoFunction.Builder.create(this, \"handler\")\n .entry(\"app/cmd/api\")\n .bundling(BundlingOptions.builder()\n .buildArgs(Map.of(\n \"HTTPS_PROXY\", \"https://127.0.0.1:3001\"))\n .build())\n .build();",
122
- "version": "1"
123
- },
124
- "go": {
125
- "source": "lambda.NewGoFunction(this, jsii.String(\"handler\"), &goFunctionProps{\n\tentry: jsii.String(\"app/cmd/api\"),\n\tbundling: &bundlingOptions{\n\t\tbuildArgs: map[string]*string{\n\t\t\t\"HTTPS_PROXY\": jsii.String(\"https://127.0.0.1:3001\"),\n\t\t},\n\t},\n})",
126
- "version": "1"
127
- },
128
- "$": {
129
- "source": "new 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});",
130
- "version": "0"
131
- }
132
- },
133
- "location": {
134
- "api": {
135
- "api": "moduleReadme",
136
- "moduleFqn": "@aws-cdk/aws-lambda-go-alpha"
137
- },
138
- "field": {
139
- "field": "markdown",
140
- "line": 140
141
- }
142
- },
143
- "didCompile": true,
144
- "fqnsReferenced": [
145
- "@aws-cdk/aws-lambda-go-alpha.BundlingOptions",
146
- "@aws-cdk/aws-lambda-go-alpha.GoFunction",
147
- "@aws-cdk/aws-lambda-go-alpha.GoFunctionProps",
148
- "constructs.Construct"
149
- ],
150
- "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { DockerImage, Stack } from 'aws-cdk-lib';\nimport * as lambda from '@aws-cdk/aws-lambda-go-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.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/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
151
- "syntaxKindCounter": {
152
- "10": 3,
153
- "75": 6,
154
- "104": 1,
155
- "193": 3,
156
- "194": 1,
157
- "197": 1,
158
- "226": 1,
159
- "281": 4
160
- },
161
- "fqnsFingerprint": "f249d079d1234ca80f9b7ea940f3bc837bc1731a79f0bb5d275d0a850b1898ed"
162
- },
163
- "aad0bb971e874ac487894fadf4ada34afa6368a0fe470a3c5eff8d28c49046e3": {
164
- "translations": {
165
- "python": {
166
- "source": "lambda_.GoFunction(self, \"handler\",\n entry=\"app/cmd/api\",\n bundling=lambda.BundlingOptions(\n docker_image=DockerImage.from_build(\"/path/to/Dockerfile\")\n )\n)",
167
- "version": "2"
168
- },
169
- "csharp": {
170
- "source": "new GoFunction(this, \"handler\", new GoFunctionProps {\n Entry = \"app/cmd/api\",\n Bundling = new BundlingOptions {\n DockerImage = DockerImage.FromBuild(\"/path/to/Dockerfile\")\n }\n});",
171
- "version": "1"
172
- },
173
- "java": {
174
- "source": "GoFunction.Builder.create(this, \"handler\")\n .entry(\"app/cmd/api\")\n .bundling(BundlingOptions.builder()\n .dockerImage(DockerImage.fromBuild(\"/path/to/Dockerfile\"))\n .build())\n .build();",
175
- "version": "1"
176
- },
177
- "go": {
178
- "source": "lambda.NewGoFunction(this, jsii.String(\"handler\"), &goFunctionProps{\n\tentry: jsii.String(\"app/cmd/api\"),\n\tbundling: &bundlingOptions{\n\t\tdockerImage: awscdk.DockerImage.fromBuild(jsii.String(\"/path/to/Dockerfile\")),\n\t},\n})",
179
- "version": "1"
180
- },
181
- "$": {
182
- "source": "new lambda.GoFunction(this, 'handler', {\n entry: 'app/cmd/api',\n bundling: {\n dockerImage: DockerImage.fromBuild('/path/to/Dockerfile'),\n },\n});",
183
- "version": "0"
184
- }
185
- },
186
- "location": {
187
- "api": {
188
- "api": "moduleReadme",
189
- "moduleFqn": "@aws-cdk/aws-lambda-go-alpha"
190
- },
191
- "field": {
192
- "field": "markdown",
193
- "line": 153
194
- }
195
- },
196
- "didCompile": true,
197
- "fqnsReferenced": [
198
- "@aws-cdk/aws-lambda-go-alpha.BundlingOptions",
199
- "@aws-cdk/aws-lambda-go-alpha.GoFunction",
200
- "@aws-cdk/aws-lambda-go-alpha.GoFunctionProps",
201
- "aws-cdk-lib.DockerImage",
202
- "aws-cdk-lib.DockerImage#fromBuild",
203
- "constructs.Construct"
204
- ],
205
- "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { DockerImage, Stack } from 'aws-cdk-lib';\nimport * as lambda from '@aws-cdk/aws-lambda-go-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.GoFunction(this, 'handler', {\n entry: 'app/cmd/api',\n bundling: {\n dockerImage: DockerImage.fromBuild('/path/to/Dockerfile'),\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
206
- "syntaxKindCounter": {
207
- "10": 3,
208
- "75": 7,
209
- "104": 1,
210
- "193": 2,
211
- "194": 2,
212
- "196": 1,
213
- "197": 1,
214
- "226": 1,
215
- "281": 3
216
- },
217
- "fqnsFingerprint": "81cbf946e5a246007582519602a55dff901e50275903f857487e4f25e5bc1708"
218
- },
219
- "4813fa1d4ff1554906c147e38be7de9d3a15fb9734ab53a8f64796488501611b": {
220
- "translations": {
221
- "python": {
222
- "source": "lambda_.GoFunction(self, \"handler\",\n entry=\"app/cmd/api\",\n bundling=lambda.BundlingOptions(\n go_build_flags=[\"-ldflags \\\"-s -w\\\"\"]\n )\n)",
223
- "version": "2"
224
- },
225
- "csharp": {
226
- "source": "new GoFunction(this, \"handler\", new GoFunctionProps {\n Entry = \"app/cmd/api\",\n Bundling = new BundlingOptions {\n GoBuildFlags = new [] { \"-ldflags \\\"-s -w\\\"\" }\n }\n});",
227
- "version": "1"
228
- },
229
- "java": {
230
- "source": "GoFunction.Builder.create(this, \"handler\")\n .entry(\"app/cmd/api\")\n .bundling(BundlingOptions.builder()\n .goBuildFlags(List.of(\"-ldflags \\\"-s -w\\\"\"))\n .build())\n .build();",
231
- "version": "1"
232
- },
233
- "go": {
234
- "source": "lambda.NewGoFunction(this, jsii.String(\"handler\"), &goFunctionProps{\n\tentry: jsii.String(\"app/cmd/api\"),\n\tbundling: &bundlingOptions{\n\t\tgoBuildFlags: []*string{\n\t\t\tjsii.String(\"-ldflags \\\"-s -w\\\"\"),\n\t\t},\n\t},\n})",
235
- "version": "1"
236
- },
237
- "$": {
238
- "source": "new lambda.GoFunction(this, 'handler', {\n entry: 'app/cmd/api',\n bundling: {\n goBuildFlags: ['-ldflags \"-s -w\"'],\n },\n});",
239
- "version": "0"
240
- }
241
- },
242
- "location": {
243
- "api": {
244
- "api": "moduleReadme",
245
- "moduleFqn": "@aws-cdk/aws-lambda-go-alpha"
246
- },
247
- "field": {
248
- "field": "markdown",
249
- "line": 164
250
- }
251
- },
252
- "didCompile": true,
253
- "fqnsReferenced": [
254
- "@aws-cdk/aws-lambda-go-alpha.BundlingOptions",
255
- "@aws-cdk/aws-lambda-go-alpha.GoFunction",
256
- "@aws-cdk/aws-lambda-go-alpha.GoFunctionProps",
257
- "constructs.Construct"
258
- ],
259
- "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { DockerImage, Stack } from 'aws-cdk-lib';\nimport * as lambda from '@aws-cdk/aws-lambda-go-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.GoFunction(this, 'handler', {\n entry: 'app/cmd/api',\n bundling: {\n goBuildFlags: ['-ldflags \"-s -w\"'],\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
260
- "syntaxKindCounter": {
261
- "10": 3,
262
- "75": 5,
263
- "104": 1,
264
- "192": 1,
265
- "193": 2,
266
- "194": 1,
267
- "197": 1,
268
- "226": 1,
269
- "281": 3
270
- },
271
- "fqnsFingerprint": "f249d079d1234ca80f9b7ea940f3bc837bc1731a79f0bb5d275d0a850b1898ed"
272
- },
273
- "b9b468ace2862d2583a80f264d8f99f76fbe474065a42112d85344ed00555af7": {
274
- "translations": {
275
- "python": {
276
- "source": "lambda_.GoFunction(self, \"handler\",\n entry=\"app/cmd/api\",\n bundling=lambda.BundlingOptions(\n environment={\n \"HELLO\": \"WORLD\"\n }\n )\n)",
277
- "version": "2"
278
- },
279
- "csharp": {
280
- "source": "new GoFunction(this, \"handler\", new GoFunctionProps {\n Entry = \"app/cmd/api\",\n Bundling = new BundlingOptions {\n Environment = new Dictionary<string, string> {\n { \"HELLO\", \"WORLD\" }\n }\n }\n});",
281
- "version": "1"
282
- },
283
- "java": {
284
- "source": "GoFunction.Builder.create(this, \"handler\")\n .entry(\"app/cmd/api\")\n .bundling(BundlingOptions.builder()\n .environment(Map.of(\n \"HELLO\", \"WORLD\"))\n .build())\n .build();",
285
- "version": "1"
286
- },
287
- "go": {
288
- "source": "lambda.NewGoFunction(this, jsii.String(\"handler\"), &goFunctionProps{\n\tentry: jsii.String(\"app/cmd/api\"),\n\tbundling: &bundlingOptions{\n\t\tenvironment: map[string]*string{\n\t\t\t\"HELLO\": jsii.String(\"WORLD\"),\n\t\t},\n\t},\n})",
289
- "version": "1"
290
- },
291
- "$": {
292
- "source": "new lambda.GoFunction(this, 'handler', {\n entry: 'app/cmd/api',\n bundling: {\n environment: {\n HELLO: 'WORLD',\n },\n },\n});",
293
- "version": "0"
294
- }
295
- },
296
- "location": {
297
- "api": {
298
- "api": "type",
299
- "fqn": "@aws-cdk/aws-lambda-go-alpha.BundlingOptions"
300
- },
301
- "field": {
302
- "field": "example"
303
- }
304
- },
305
- "didCompile": true,
306
- "fqnsReferenced": [
307
- "@aws-cdk/aws-lambda-go-alpha.BundlingOptions",
308
- "@aws-cdk/aws-lambda-go-alpha.GoFunction",
309
- "@aws-cdk/aws-lambda-go-alpha.GoFunctionProps",
310
- "constructs.Construct"
311
- ],
312
- "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { DockerImage, Stack } from 'aws-cdk-lib';\nimport * as lambda from '@aws-cdk/aws-lambda-go-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.GoFunction(this, 'handler', {\n entry: 'app/cmd/api',\n bundling: {\n environment: {\n HELLO: 'WORLD',\n },\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
313
- "syntaxKindCounter": {
314
- "10": 3,
315
- "75": 6,
316
- "104": 1,
317
- "193": 3,
318
- "194": 1,
319
- "197": 1,
320
- "226": 1,
321
- "281": 4
322
- },
323
- "fqnsFingerprint": "f249d079d1234ca80f9b7ea940f3bc837bc1731a79f0bb5d275d0a850b1898ed"
324
- },
325
- "da5b66c1f2894d6b595fb1ff5d7d5ae6088902bb6692b5de102ef7ed3c791748": {
326
- "translations": {
327
- "python": {
328
- "source": "lambda_.GoFunction(self, \"handler\",\n entry=\"app/cmd/api\",\n bundling=lambda.BundlingOptions(\n go_build_flags=[\"-ldflags \\\"-s -w\\\"\"]\n )\n)",
329
- "version": "2"
330
- },
331
- "csharp": {
332
- "source": "new GoFunction(this, \"handler\", new GoFunctionProps {\n Entry = \"app/cmd/api\",\n Bundling = new BundlingOptions {\n GoBuildFlags = new [] { \"-ldflags \\\"-s -w\\\"\" }\n }\n});",
333
- "version": "1"
334
- },
335
- "java": {
336
- "source": "GoFunction.Builder.create(this, \"handler\")\n .entry(\"app/cmd/api\")\n .bundling(BundlingOptions.builder()\n .goBuildFlags(List.of(\"-ldflags \\\"-s -w\\\"\"))\n .build())\n .build();",
337
- "version": "1"
338
- },
339
- "go": {
340
- "source": "lambda.NewGoFunction(this, jsii.String(\"handler\"), &goFunctionProps{\n\tentry: jsii.String(\"app/cmd/api\"),\n\tbundling: &bundlingOptions{\n\t\tgoBuildFlags: []*string{\n\t\t\tjsii.String(\"-ldflags \\\"-s -w\\\"\"),\n\t\t},\n\t},\n})",
341
- "version": "1"
342
- },
343
- "$": {
344
- "source": "new lambda.GoFunction(this, 'handler', {\n entry: 'app/cmd/api',\n bundling: {\n goBuildFlags: ['-ldflags \"-s -w\"'],\n },\n});",
345
- "version": "0"
346
- }
347
- },
348
- "location": {
349
- "api": {
350
- "api": "type",
351
- "fqn": "@aws-cdk/aws-lambda-go-alpha.GoFunction"
352
- },
353
- "field": {
354
- "field": "example"
355
- }
356
- },
357
- "didCompile": true,
358
- "fqnsReferenced": [
359
- "@aws-cdk/aws-lambda-go-alpha.BundlingOptions",
360
- "@aws-cdk/aws-lambda-go-alpha.GoFunction",
361
- "@aws-cdk/aws-lambda-go-alpha.GoFunctionProps",
362
- "constructs.Construct"
363
- ],
364
- "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { DockerImage, Stack } from 'aws-cdk-lib';\nimport * as lambda from '@aws-cdk/aws-lambda-go-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.GoFunction(this, 'handler', {\n entry: 'app/cmd/api',\n bundling: {\n goBuildFlags: ['-ldflags \"-s -w\"'],\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
365
- "syntaxKindCounter": {
366
- "10": 3,
367
- "75": 5,
368
- "104": 1,
369
- "192": 1,
370
- "193": 2,
371
- "194": 1,
372
- "197": 1,
373
- "226": 1,
374
- "281": 3
375
- },
376
- "fqnsFingerprint": "f249d079d1234ca80f9b7ea940f3bc837bc1731a79f0bb5d275d0a850b1898ed"
377
- },
378
- "e08f92e358389a1d1634ee1353821349d445e7db841259c4c020eae416c870ef": {
379
- "translations": {
380
- "python": {
381
- "source": "lambda_.GoFunction(self, \"handler\",\n entry=\"app/cmd/api\",\n bundling=lambda.BundlingOptions(\n go_build_flags=[\"-ldflags \\\"-s -w\\\"\"]\n )\n)",
382
- "version": "2"
383
- },
384
- "csharp": {
385
- "source": "new GoFunction(this, \"handler\", new GoFunctionProps {\n Entry = \"app/cmd/api\",\n Bundling = new BundlingOptions {\n GoBuildFlags = new [] { \"-ldflags \\\"-s -w\\\"\" }\n }\n});",
386
- "version": "1"
387
- },
388
- "java": {
389
- "source": "GoFunction.Builder.create(this, \"handler\")\n .entry(\"app/cmd/api\")\n .bundling(BundlingOptions.builder()\n .goBuildFlags(List.of(\"-ldflags \\\"-s -w\\\"\"))\n .build())\n .build();",
390
- "version": "1"
391
- },
392
- "go": {
393
- "source": "lambda.NewGoFunction(this, jsii.String(\"handler\"), &goFunctionProps{\n\tentry: jsii.String(\"app/cmd/api\"),\n\tbundling: &bundlingOptions{\n\t\tgoBuildFlags: []*string{\n\t\t\tjsii.String(\"-ldflags \\\"-s -w\\\"\"),\n\t\t},\n\t},\n})",
394
- "version": "1"
395
- },
396
- "$": {
397
- "source": "new lambda.GoFunction(this, 'handler', {\n entry: 'app/cmd/api',\n bundling: {\n goBuildFlags: ['-ldflags \"-s -w\"'],\n },\n});",
398
- "version": "0"
399
- }
400
- },
401
- "location": {
402
- "api": {
403
- "api": "type",
404
- "fqn": "@aws-cdk/aws-lambda-go-alpha.GoFunctionProps"
405
- },
406
- "field": {
407
- "field": "example"
408
- }
409
- },
410
- "didCompile": true,
411
- "fqnsReferenced": [
412
- "@aws-cdk/aws-lambda-go-alpha.BundlingOptions",
413
- "@aws-cdk/aws-lambda-go-alpha.GoFunction",
414
- "@aws-cdk/aws-lambda-go-alpha.GoFunctionProps",
415
- "constructs.Construct"
416
- ],
417
- "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { DockerImage, Stack } from 'aws-cdk-lib';\nimport * as lambda from '@aws-cdk/aws-lambda-go-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.GoFunction(this, 'handler', {\n entry: 'app/cmd/api',\n bundling: {\n goBuildFlags: ['-ldflags \"-s -w\"'],\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
418
- "syntaxKindCounter": {
419
- "10": 3,
420
- "75": 5,
421
- "104": 1,
422
- "192": 1,
423
- "193": 2,
424
- "194": 1,
425
- "197": 1,
426
- "226": 1,
427
- "281": 3
428
- },
429
- "fqnsFingerprint": "f249d079d1234ca80f9b7ea940f3bc837bc1731a79f0bb5d275d0a850b1898ed"
430
- }
431
- }
432
- }