Fn::Max returns the largest number from a list of numbers.
Declaration
-
JSON
{ "Fn::Max": [Number1, Number2, ...] } -
YAML
-
Syntax for the full function name:
Fn::Max: - Number1 - Number2 - Number3 - ... -
Syntax for the short form:
!Max [Number1, Number2, ...]
-
Return value
The largest number in the list.
Examples
!Max [1.1, 2, 3]
The following result is returned:
3