Endpoint
POST
/check-accessOverview
This endpoint evaluates authorization requests using AWS Verified Permissions (AVP). It checks whether a user can perform a specific action on a resource based on Cedar policies configured in your AVP policy store. The Lambda handler constructs entity information including user attributes, role memberships, and resource properties, then calls the AVPIsAuthorized API to make the authorization decision.
Request
Request Body
User ID to check permissions for. Must be one of:
alice, bob, or carol.Action to perform. Must be one of:
Read, Edit, or Delete.Resource ID to access. Must be one of:
Q4-Report-2024, HR-Payroll-2024, or Sales-Dashboard.Example Request
Response
Success Response (200)
The authorization decision from AVP. Either
ALLOW or DENY.Boolean convenience field.
true if decision is ALLOW, false otherwise.User information object.
The action that was evaluated (echoed from request).
The resource that was evaluated (echoed from request).
Resource metadata.
List of policy IDs that determined the authorization decision.
Any errors encountered during policy evaluation.
Human-readable message describing the authorization result.
Example Success Response
Error Responses
400 - Invalid Request Body
400 - Invalid User
400 - Invalid Resource
500 - AVP Service Error
Entity Structure
The Lambda function constructs Cedar entities for AVP evaluation:Principal Entity
Resource Entity
Source Code Reference
Implemented in/lambda/app.py:101-232
The
POLICY_STORE_ID environment variable must be configured with your AVP policy store ID for this endpoint to work.