concept

Policy evaluation and explicit deny

Explicit denial overrides grants. This formula is only a teaching model for identity policies without other applicable policy types; actual IAM has additional interactions.

Formal Syntax & Structure

aws syntaxaws
matching Deny → deny; else matching Allow → allow; else implicit deny

Working Example

Example Snippetaws
{  "Version": "2012-10-17",  "Statement": [    {      "Effect": "Deny",      "Action": "s3:GetObject",      "Resource": "arn:aws:s3:::amzn-s3-demo-bucket1/reports/private/*"    }  ]}
AWS Reference