OpenXJsonInputFormat
- class aws_cdk.aws_kinesisfirehose.OpenXJsonInputFormat(*, column_to_json_key_mappings=None, convert_dots_in_json_keys_to_underscores=None, lowercase_column_names=None)
Bases:
objectThis class specifies properties for OpenX JSON input format for record format conversion.
You should only need to specify an instance of this class if the default configuration does not suit your needs.
- ExampleMetadata:
infused
Example:
input_format = firehose.OpenXJsonInputFormat( lowercase_column_names=False, column_to_json_key_mappings={"ts": "timestamp"}, convert_dots_in_json_keys_to_underscores=True )
- Parameters:
column_to_json_key_mappings (
Optional[Mapping[str,str]]) – Maps column names to JSON keys that aren’t identical to the column names. This is useful when the JSON contains keys that are Hive keywords. For example,timestampis a Hive keyword. If you have a JSON key namedtimestamp, set this parameter to{"ts": "timestamp"}to map this key to a column namedtsDefault: JSON keys are not renamedconvert_dots_in_json_keys_to_underscores (
Optional[bool]) – When set totrue, specifies that the names of the keys include dots and that you want Firehose to replace them with underscores. This is useful because Apache Hive does not allow dots in column names. For example, if the JSON contains a key whose name is “a.b”, you can define the column name to be “a_b” when using this option. Default:falselowercase_column_names (
Optional[bool]) – Whether the JSON keys should be lowercased when written as column names. Default:true
Methods
- create_input_format_config()
Renders the cloudformation properties for the input format.
- Return type:
Attributes
- props
Properties for OpenX JSON input format.