From c195eb0d786135252e6b11025afac301382b9b27 Mon Sep 17 00:00:00 2001 From: "bogdan.vakulenko" Date: Thu, 27 Apr 2023 11:51:33 +0400 Subject: [PATCH] Minor doc sync for #197 changes. --- README.md | 4 ++-- docs/index.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 960a054..bb212a8 100644 --- a/README.md +++ b/README.md @@ -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._ @@ -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" diff --git a/docs/index.md b/docs/index.md index 5ffe1df..9ab1e54 100644 --- a/docs/index.md +++ b/docs/index.md @@ -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._ @@ -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"