All Products
Search
Document Center

Resource Orchestration Service:Fn::Min

Last Updated:Mar 15, 2024

The built-in function Fn::Min returns the smallest number from a list of numbers.

Declaration

  • JSON

    {
     "Fn::Min": [Number1, Number2, Number3, ..]
    }
  • YAML

    • Syntax for the full function name:

      Fn::Min: 
       - Number1
       - Number2
       - Number3
       - ...
    • Syntax for the short form:

      !Min [Number1, Number2, Number3, ...]

Return value

The smallest number in the list.

Examples

!Min [1.1, 2, 3]

In this example, the following result is returned:

1.1