How often is NotResource used in iam policies
however often you need it.
like to use it with a Deny when you only want certain resources to be allowed via other policy. keeps policy short (for example in scp)
Plus you can only conditionally allow subsets of resources in SCPs using deny statements (allow statements in SCPs can only allow all/“*”).
It definitely can work. Though if I’m using NotResource, I’m probably using it for a bunch of different kinds of resources, in which case I’d try to use some tagging or naming scheme instead around permissions.
We use it a ton at scale across the enterprise. When we have infra deployed by the core cloud platform team we protect that using statements like these.
Useful in deny statements.