All Products
Search
Document Center

Resource Orchestration Service:Fn::Any

Last Updated:Jun 17, 2026

Fn::Any returns true if any value in the specified array evaluates to true. Otherwise, it returns false.

Declaration

  • JSON

    {
     "Fn::Any": [value_1, value_2, ...]
    }
  • YAML

    • Syntax for the full function name:

      Fn::Any: value_1, value_2, ... 
    • Syntax for the short form:

      !Any [value_1, value_2, ... ]

Parameters

value: Required. A value in the array. All data types are supported, such as true, false, 1, and 0. The values 1 and 0 are treated as logical values.

Return value

true or false.

Examples

  • Example 1

    Fn::Any: true, true

    In this example, true is returned.

  • Example 2

    Fn::Any: true, false

    In this example, true is returned.

  • Example 3

    Fn::Any: false, false

    In this example, false is returned.

  • Example 4

    Fn::Any: 1, 1

    In this example, true is returned.

  • Example 5

    Fn::Any: 0, 0

    In this example, false is returned.