JsonArrayMapperArgs

data class JsonArrayMapperArgs(val destinationField: Output<JsonMapperDestinationFieldArgs>? = null, val keys: Output<List<String>>, val sourceField: Output<JsonMapperSourceFieldArgs>? = null) : ConvertibleToJava<JsonArrayMapperArgs>

A component that allows parsing a value from sourceField as a json array, match a key to each parsed value from keys, and output the key-value map to destinationField field.

Constructors

Link copied to clipboard
constructor(destinationField: Output<JsonMapperDestinationFieldArgs>? = null, keys: Output<List<String>>, sourceField: Output<JsonMapperSourceFieldArgs>? = null)

Properties

Link copied to clipboard

Define a destination field to which the parsed output will be written. The output is a map, it's keys is the given keys array and the matching values are the parsed json array elements.

Link copied to clipboard
val keys: Output<List<String>>

Define the names of the keys in the resulting map. The input json array elements are mapped in order, one for every key.

Link copied to clipboard

Define a source field from which a json array will be read and parsed to it's elements. The number of elements in the json array is expected to be the same as the length of keys.

Functions

Link copied to clipboard
open override fun toJava(): JsonArrayMapperArgs