[{"data":1,"prerenderedAt":65},["ShallowReactive",2],{"pattern-lambda-verified-permissions-typescript-cdk":3,"pattern-group-lambda-verified-permissions-typescript-cdk":6},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":24,"language":29,"level":30,"meta":31,"patternArch":32,"patternGroup":6,"patternGroupLabel":6,"resources":52,"stem":60,"testing":61,"videoId":6,"__hash__":64},"patterns\u002Fpatterns\u002Flambda-verified-permissions-typescript-cdk.json","Amazon Verified Permissions with AWS Lambda",null,{"text":8},[9],"cdk destroy",[11],"content\u002Fcontributors\u002Fnithin-chandran-r.json",{"text":13},[14,15,16],"cd src && npm install && cd ..","npm install","cdk deploy","Deploy an AWS Lambda function URL that authorizes requests with Amazon Verified Permissions Cedar policies, using the caller's IAM identity.","json","AWS CDK",{"template":21},{"patternPath":22,"templateFile":23},"lambda-verified-permissions\u002Ftypescript\u002Fcdk","lib\u002Flambda-verified-permissions-stack.ts",{"headline":25,"text":26},"How it works",[27,28],"A client sends a SigV4-signed request to an AWS Lambda function URL with `AWS_IAM` authentication. The function reads the caller's IAM principal from the request context, maps it to a role on the server, and calls the Amazon Verified Permissions `IsAuthorized` API.","Four Cedar policies (admin, reader, document owner, and a confidential-document deny) make the fine-grained decision. The request body supplies only the action and the resource, never the principal, role, owner or classification.","TypeScript","300",{},{"icon1":33,"icon2":38,"icon3":41,"line1":45,"line2":49},{"x":34,"y":35,"service":36,"label":37},15,50,"icon-internet","Client\nSigV4 signed",{"x":35,"y":35,"service":39,"label":40},"lambda-event-functions","AWS Lambda\nFunction URL",{"x":42,"y":35,"service":43,"label":44},83,"verified-permissions","Amazon Verified Permissions\nCedar policies",{"from":46,"to":47,"label":48},"icon1","icon2","Request",{"from":47,"to":50,"label":51},"icon3","IsAuthorized",{"bullets":53},[54,57],{"text":55,"link":56},"Amazon Verified Permissions","https:\u002F\u002Fdocs.aws.amazon.com\u002Fverifiedpermissions\u002Flatest\u002Fuserguide\u002Fwhat-is-avp.html",{"text":58,"link":59},"Invoking Lambda function URLs","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Furls-invocation.html","patterns\u002Flambda-verified-permissions-typescript-cdk",{"text":62},[63],"See the README for signed curl requests that show ALLOW and DENY decisions.","TUTwFJ2eFBUBzferwMCVt2sIO5cTbzW8Y7KBpMjGLwc",1795084467574]