UNPKG

@erikmuir/lambda-authorizer

Version:

AWS API Gateway Custom Lambda Authorizer for NodeJS

10 lines (8 loc) 248 B
const invokeApiAction = 'execute-api:Invoke'; module.exports = class PolicyStatement { constructor({ effect, arn } = {}) { this.Effect = effect; this.Resource = arn ? [ arn.toString() ] : []; this.Action = [ invokeApiAction ]; } }