Skip to content

Commit

Permalink
Merge pull request #200 from heaven-born/master
Browse files Browse the repository at this point in the history
Minor doc sync for #197 changes.
  • Loading branch information
jrmsamson authored Apr 27, 2023
2 parents f76f4b9 + ae2fbac commit fbb75d0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ libraryDependencies += "dev.zio" %% "zio-lambda-response" % "1.0.3"

## Usage

Create your Lambda function by extending ZLambdaApp
Create your Lambda function by providing it to `ZLambdaRunner.serve(...)` method.

```scala
import zio.Console._
Expand All @@ -29,7 +29,7 @@ import zio.lambda._

object SimpleHandler extends ZIOAppDefault {

def app(request: CustomEvent, context: Context) = for {
def app(request: KinesisEvent, context: Context) = for {
_ <- printLine(event.message)
} yield "Handler ran successfully"

Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ libraryDependencies += "dev.zio" %% "zio-lambda-response" % "@VERSION@"

## Usage

Create your Lambda function by extending ZLambdaApp
Create your Lambda function by providing it to `ZLambdaRunner.serve(...)` method.

```scala
import zio.Console._
Expand All @@ -29,7 +29,7 @@ import zio.lambda._

object SimpleHandler extends ZIOAppDefault {

def app(request: CustomEvent, context: Context) = for {
def app(request: KinesisEvent, context: Context) = for {
_ <- printLine(event.message)
} yield "Handler ran successfully"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package zio.lambda.internal
import zio._

/**
* The main class to use ZLambda as a Layer
* The main class to use ZIOAppDefault as a Layer
*
* https://docs.aws.amazon.com/lambda/latest/dg/runtimes-custom.html
* https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
Expand Down

0 comments on commit fbb75d0

Please sign in to comment.