ListToMap

class ListToMap

This processor takes a list of objects that contain key fields, and converts them into a map of target keys.

For more information about this processor including examples, see listToMap in the CloudWatch Logs User Guide.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

A Boolean value to indicate whether the list will be flattened into single items. Specify true to flatten the list. The default is false

Link copied to clipboard

If you set flatten to true, use flattenedElement to specify which element, first or last, to keep.

Link copied to clipboard
val key: String

The key of the field to be extracted as keys in the generated map

Link copied to clipboard

The key in the log event that has a list of objects that will be converted to a map.

Link copied to clipboard

The key of the field that will hold the generated map

Link copied to clipboard

If this is specified, the values that you specify in this parameter will be extracted from the source objects and put into the values of the generated map. Otherwise, original objects in the source list will be put into the values of the generated map.

Functions

Link copied to clipboard
inline fun copy(block: ListToMap.Builder.() -> Unit = {}): ListToMap
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String