Combines a set of strings into a single string, separated by a specified delimiter.
Declaration
-
JSON
{ "Fn::Join": [ "delimiter", [ "toJoinString1", "toJoinString2", ... ] ] } -
YAML
-
Syntax for the full function name:
Fn::Join: - delimiter - - toJoinstring1 - toJoinstring2 - ... -
Syntax for the short form:
!Join [delimiter, [toJoinstring1, toJoinstring2, ...]]
-
Parameters
-
delimiter: the delimiter used to separate the combined values. If empty, values are combined without a delimiter. -
toJoinString1, toJoinString2, ...: the list of strings to combine.
Return value
The combined string.
Examples
!Join [',', [a,b,c]]{
"Fn::Join": [
",",
["a", "b", "c"]
]
}Return value: a,b,c.