NotAction
Facts read 16 Nov 2026. Page reviewed 16 Nov 2026.
NotAction is a policy element that matches every action except the ones listed. With Effect Allow it grants everything else, including actions AWS adds later, and with Deny it denies everything else. A statement uses either Action or NotAction, never both. The workbench reports Allow with NotAction as a high-severity finding.
All terms ยท Open the workbench
An example, sourced
AWS describes NotAction as an advanced element that explicitly matches everything except the listed actions, and warns that NotAction with Allow could grant more permissions than intended. Its example NotAction of iam:* with Resource star matches 22,366 actions in the 16 Nov 2026 reference.
Why it matters here
The count behind a NotAction statement changes without any edit to the policy, so a reading should carry the date of the reference used.
Related pages
Sources
- https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_notaction.html, read 16 Nov 2026
Last reviewed 16 Nov 2026.