@@ -218,7 +218,7 @@ const fn = new lambda.Function( this, 'MyFunc', {
218218 handler: ' index.handler' ,
219219 runtime: lambda .Runtime .NODEJS_LATEST ,
220220 code: lambda .Code .fromInline ( ' exports.handler = e => {}' ),
221- } );
221+ });
222222
223223const restApi = new api .LambdaRestApi ( this , ' MyRestAPI' , { handler: fn } );
224224const apiTarget = new targets .ApiGatewayTarget (restApi );
@@ -238,12 +238,12 @@ const fn = new lambda.Function( this, 'MyFunc', {
238238 handler: ' index.handler' ,
239239 runtime: lambda .Runtime .NODEJS_LATEST ,
240240 code: lambda .Code .fromInline ( ' exports.handler = e => {}' ),
241- } );
241+ });
242242
243243const restApi = new api .LambdaRestApi ( this , ' MyRestAPI' , { handler: fn } );
244- const apiTarget = new targets .ApiGatewayTarget (restApi ) , {
244+ const apiTarget = new targets .ApiGatewayTarget (restApi , {
245245 inputTransformation: pipes .InputTransformation .fromObject ({ body: " 👀" }),
246- };
246+ }) ;
247247
248248const pipe = new pipes .Pipe (this , ' Pipe' , {
249249 source: new SqsSource (sourceQueue ),
0 commit comments