fn::toYAML
The fn::toYAML built-in function encodes a value as its YAML representation. This can be used to encode values for use in positions that only accept strings. If any input to fn::toYAML is a secret, the encoded value is also a secret.
Declaration
fn::toYAML: value-to-encode
Parameters
| Property | Type | Description |
|---|---|---|
value-to-encode | any | The value to encode as YAML. |
Returns
The encoded value.