HiveJsonInputFormat
- class aws_cdk.aws_kinesisfirehose.HiveJsonInputFormat(*, timestamp_parsers=None)
Bases:
objectThis class specifies properties for Hive 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.HiveJsonInputFormat( timestamp_parsers=[ firehose.TimestampParser.from_format_string("yyyy-MM-dd"), firehose.TimestampParser.EPOCH_MILLIS ] )
- Parameters:
timestamp_parsers (
Optional[Sequence[TimestampParser]]) – List of TimestampParsers. These are used to parse custom timestamp strings from input JSON into dates. Note: Specifying a parser will override the default timestamp parser. If the default timestamp parser is required, includeTimestampParser.DEFAULTin the list of parsers along with the custom parser. Default: the default timestamp parser is used
Methods
- create_input_format_config()
Renders the cloudformation properties for the input format.
- Return type:
Attributes
- props
Properties for Hive JSON input format.