From b1140201ad99eea2a5e3c183190171d6d4f34536 Mon Sep 17 00:00:00 2001 From: esbenvb Date: Wed, 25 Jul 2018 21:31:29 +0200 Subject: [PATCH] Add description of the built in method --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 0481b30..008cd4e 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,21 @@ Serverless plugin supporting AWS_IAM authorizer on API Gateway method Adds the ability to configure AWS_IAM for your API Gateway endpoints, and "Invoke with caller credentials" +# Note + +Since serverless version 1.14.0 it's been possible to add `authorizer: aws_iam` as a part of the http event configuration. Example: + +```yml + companies: + handler: src/companies.main + events: + - http: + path: companies + method: get + authorizer: aws_iam + +``` + ## Usage register plugin: ```YAML