Only iterators and references to the erased elements are invalidated.
You can't selectively invalidate some versions and not others based on header values.
(If you configure Cloud Front to forward all headers to your origin, Cloud Front doesn't cache your objects.) For more information, see Configuring Cloud Front to Cache Objects Based on Request Headers.
If you want to invalidate multiple objects such as all of the objects in a directory or all of the objects whose names begin with the same characters, you can include the wildcard, see Invalidation paths.
If you want to invalidate selected objects but your users don't necessarily access every object on your origin, you can determine which objects viewers have requested from Cloud Front and invalidate only those objects.
verb abolish, abort, abrogate, annul, cannel, confute, deprive of legal effect, disannul, disprove, erase, inritum facere, labefactare, make void, nullify, override, overrule, overthrow, quash, refute, repeal, rescind, rescindere, retract, reverse, revoke, undo, vitiate, withdraw Associated concepts: invalidate a transfer, invalidate a will, invalidate an election See also: abandon, abate, abolish, abrogate, annul, avoid, cancel, defeat, denature, destroy, disable, disarm, disavow, discharge, discontinue, disown, disprove, disqualify, extinguish, frustrate, kill, negate, neutralize, nullify, obliterate, override, overrule, quash, recall, refute, renege, repeal, rescind, revoke, vacate, vitiate, void, withdraw In the Supreme Court of the United States: No.