ListToMap
¶
Source code in docs_src/capo_cloudwatch_logs/types/list_to_map.py
flatten
instance-attribute
¶
flatten: Flatten
A Boolean value to indicate whether the list will be flattened into single items. Specify true to flatten the list. The default is false
flattened_element
instance-attribute
¶
flattened_element: NotRequired[FlattenedElement]
If you set flatten to true, use flattenedElement to specify which element, first or last, to keep.
You must specify this parameter if flatten is true
source
instance-attribute
¶
source: Source
The key in the log event that has a list of objects that will be converted to a map.
target
instance-attribute
¶
target: NotRequired[Target]
The key of the field that will hold the generated map
value_key
instance-attribute
¶
value_key: NotRequired[ValueKey]
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.