Skip to content

Commit

Permalink
docs(apigateway): correct TokenAuthorizer example (aws#5619)
Browse files Browse the repository at this point in the history
The README incorrectly used `lambda.TokenAuthorizer` in the Lambda-based
token authorizer example

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
jogold and mergify[bot] committed Jan 3, 2020
1 parent a67f0ef commit 7971a27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-apigateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ const authFn = new lambda.Function(this, 'booksAuthorizerLambda', {
// ...
});

const auth = new lambda.TokenAuthorizer(this, 'booksAuthorizer', {
const auth = new apigateway.TokenAuthorizer(this, 'booksAuthorizer', {
function: authFn
});

Expand Down

0 comments on commit 7971a27

Please sign in to comment.