Skip to content

Commit 78b663c

Browse files
committed
fix readme
1 parent 2645f76 commit 78b663c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • packages/@aws-cdk/aws-pipes-targets-alpha

packages/@aws-cdk/aws-pipes-targets-alpha/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

223223
const restApi = new api.LambdaRestApi( this, 'MyRestAPI', { handler: fn } );
224224
const 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

243243
const 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

248248
const pipe = new pipes.Pipe(this, 'Pipe', {
249249
source: new SqsSource(sourceQueue),

0 commit comments

Comments
 (0)