是否需要将 ...IfExists 运算符添加到 'AWS Global Condition Context Keys' 上的条件运算符?

Would there ever be a need to add ...IfExists operator to Condition Operators on 'AWS Global Condition Context Keys'?

是否需要将 ...IfExists 运算符添加到 'AWS Global Condition Context Keys' 上的条件运算符?

AWS 全局条件上下文键在每个请求上下文中都可用。 AWS 文档指出:

If you use condition keys that are available only in some circumstances, you can use the IfExists versions of the condition operators.

但是,AWS 文档 here 中提供的示例似乎与 ..IfExists 运算符的预期用途相矛盾,因为他们已将 ...IfExists 运算符添加到 'AWS Global Condition Context Keys' 上的条件运算符。我已经从 AWS 文档中截取了示例的屏幕截图 - 见下文。

我认为AWS Global Condition Context Keys中的"global"表示这些条件键的作用域是全局的。这并不意味着这些条件键将在每个请求中同时出现。这就是每个全局条件键都有可用性信息的原因。