Class: Aws::CloudWatchLogs::Types::ListToMap
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudWatchLogs::Types::ListToMap
- Defined in:
- gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb
Overview
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.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#flatten ⇒ Boolean
A Boolean value to indicate whether the list will be flattened into single items.
-
#flattened_element ⇒ String
If you set
flattentotrue, useflattenedElementto specify which element,firstorlast, to keep. -
#key ⇒ String
The key of the field to be extracted as keys in the generated map.
-
#source ⇒ String
The key in the log event that has a list of objects that will be converted to a map.
-
#target ⇒ String
The key of the field that will hold the generated map.
-
#value_key ⇒ String
If this is specified, the values that you specify in this parameter will be extracted from the
sourceobjects and put into the values of the generated map.
Instance Attribute Details
#flatten ⇒ Boolean
A Boolean value to indicate whether the list will be flattened into
single items. Specify true to flatten the list. The default is
false
4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 |
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 4905 class ListToMap < Struct.new( :source, :key, :value_key, :target, :flatten, :flattened_element) SENSITIVE = [] include Aws::Structure end |
#flattened_element ⇒ String
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
4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 |
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 4905 class ListToMap < Struct.new( :source, :key, :value_key, :target, :flatten, :flattened_element) SENSITIVE = [] include Aws::Structure end |
#key ⇒ String
The key of the field to be extracted as keys in the generated map
4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 |
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 4905 class ListToMap < Struct.new( :source, :key, :value_key, :target, :flatten, :flattened_element) SENSITIVE = [] include Aws::Structure end |
#source ⇒ String
The key in the log event that has a list of objects that will be converted to a map.
4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 |
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 4905 class ListToMap < Struct.new( :source, :key, :value_key, :target, :flatten, :flattened_element) SENSITIVE = [] include Aws::Structure end |
#target ⇒ String
The key of the field that will hold the generated map
4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 |
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 4905 class ListToMap < Struct.new( :source, :key, :value_key, :target, :flatten, :flattened_element) SENSITIVE = [] include Aws::Structure end |
#value_key ⇒ String
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.
4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 |
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 4905 class ListToMap < Struct.new( :source, :key, :value_key, :target, :flatten, :flattened_element) SENSITIVE = [] include Aws::Structure end |