A JSON permissions document whose statements use Effect and either Action or NotAction, with optional Condition element…