All Products
Search
Document Center

Resource Orchestration Service:Fn::EachMemberIn

Last Updated:Jun 17, 2026

Fn::EachMemberIn returns true if every member in the first list matches at least one value in the second list, and false otherwise.

Declaration

  • JSON

    {
      "Fn::EachMemberIn": [
        [
          value1_1,
          value1_2,
          ...
        ],
        [
          value2_1,
          value2_2,
          ...
        ]  
      ]
    }
  • YAML

    • Syntax for the full function name:

      Fn::EachMemberIn:
        - - value1_1
          - value1_2
          - ...
        - - value2_1
          - value2_2
          - ...
    • Syntax for the short form:

      !EachMemberIn [[value1_1, value1_2, ...],[value2_1, value2_2, ...],...]

Parameters

  • value1_1, value1_2,...: Required. The first list.

  • value2_1, value2_2,...: Required. The second list.

Return value

true or false.

Examples

  • Fn::EachMemberIn:
      - - 1
        - 2
        - 3
      - - 1
        - 2
        - 3
        - 3
        - 4

    Returns true because every member in the first list (1, 2, 3) exists in the second list.

  • Fn::EachMemberIn:
      - - 1
        - 2
        - 3
      - - 1
        - 2
        - 4

    Returns false because member 3 in the first list does not exist in the second list.