Skip to content

Commit

Permalink
chore(aws-lambda): update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
marciocadev committed Dec 4, 2022
1 parent 19c646f commit ba865cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/@aws-cdk/aws-lambda/README.md
Expand Up @@ -85,9 +85,9 @@ To deploy a `DockerImageFunction` on Lambda `arm64` architecture, specify `Archi
This will bundle docker image assets for `arm64` architecture with `--platform linux/arm64` even if build within an `x86_64` host.

```ts
new DockerImageFunction(this, 'AssetFunction', {
code: DockerImageCode.fromImageAsset(path.join(__dirname, 'docker-arm64-handler')),
architecture: Architecture.ARM_64,
new lambda.DockerImageFunction(this, 'AssetFunction', {
code: lambda.DockerImageCode.fromImageAsset(path.join(__dirname, 'docker-arm64-handler')),
architecture: lambda.Architecture.ARM_64,
});
```

Expand Down Expand Up @@ -286,7 +286,7 @@ const version = new lambda.Version(this, 'MyVersion', {
Or setting the `currentVersionOptions` when creating a new lambda

```ts
new lambda.Function(stack, 'MyVersionedLambda', {
new lambda.Function(this, 'MyVersionedLambda', {
runtime: lambda.Runtime.NODEJS_18_X,
handler: 'index.handler',
code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')),
Expand Down

0 comments on commit ba865cb

Please sign in to comment.