HiveJsonInputFormatProps

class aws_cdk.aws_kinesisfirehose.HiveJsonInputFormatProps(*, timestamp_parsers=None)

Bases: object

Props for Hive JSON input format for data record format conversion.

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, include TimestampParser.DEFAULT in the list of parsers along with the custom parser. Default: the default timestamp parser is used

ExampleMetadata:

infused

Example:

input_format = firehose.HiveJsonInputFormat(
    timestamp_parsers=[
        firehose.TimestampParser.from_format_string("yyyy-MM-dd"), firehose.TimestampParser.EPOCH_MILLIS
    ]
)

Attributes

timestamp_parsers

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, include TimestampParser.DEFAULT in the list of parsers along with the custom parser.

Default:

the default timestamp parser is used