WAF v2 was one of the namespaces the request-resources table left unread ("a later batch"), so every request of it
was checked on *: a grant scoped to a web ACL's ARN never matched, a deny scoped to one never held, and an
aws:ResourceTag condition read nothing. wafv2 joins the table now, so each request is checked on the resources the
Service Reference gives its action, read from the request.
A request giving an ARN member (ARN, ResourceARN, ResourceArn, WebACLArn) is checked on the resource it names, as
regional/<type>/<name>/<id> or global/..., the ARNs WAF v2 mints. UpdateWebACL and UpdateRuleGroup name their
resource by a lock token, which the table reads through LockToken: WafV2StoredResourceArns answers the caller's web
ACL, IP set, regex pattern set or rule group whose current token it is, of either scope the request's Region reaches,
the one the handler checks the token against (WafV2Service.lockHolder). WafV2Resource declares the getLockToken each
model already has. It answers the tags WAF v2 keeps on the resource an ARN names, read in the account, Region and
scope the ARN names without moving it and matched on the whole ARN (WafV2Service.storedTags), which an
aws:ResourceTag condition reads.
A request naming a resource by its Name, Scope and Id alone, and CreateIPSet and CreateRegexPatternSet, are checked
on <Scope>/<type>/*/*, the scope as the request spells it (REGIONAL or CLOUDFRONT) while WAF v2 mints regional/ and
global/, and CreateWebACL and CreateRuleGroup on *, as the generated table reads them.
IamRequestResourceEnforcementIntegrationTest checks that a grant on one web ACL's ARN lets an update giving its lock
token through and refuses the update of another, and that an aws:ResourceTag condition reads the tags of the web ACL
a tag call names. WafV2StoredResourcesTest checks the stored tags of a regional web ACL and a global IP set against
another account, Region, kind, service or no ARN, and the lock holder of either scope against another Region's
regional resource, another account's token and a replaced one.