Class: AWSCDK::KinesisFirehose::HiveJsonInputFormatProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kinesis_firehose/hive_json_input_format_props.rb

Overview

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(timestamp_parsers: nil) ⇒ HiveJsonInputFormatProps

Returns a new instance of HiveJsonInputFormatProps.

Parameters:



8
9
10
11
# File 'kinesis_firehose/hive_json_input_format_props.rb', line 8

def initialize(timestamp_parsers: nil)
  @timestamp_parsers = timestamp_parsers
  Jsii::Type.check_type(@timestamp_parsers, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19raW5lc2lzZmlyZWhvc2UuVGltZXN0YW1wUGFyc2VyIn0sImtpbmQiOiJhcnJheSJ9fQ==")), "timestampParsers") unless @timestamp_parsers.nil?
end

Instance Attribute Details

#timestamp_parsersArray<AWSCDK::KinesisFirehose::TimestampParser>? (readonly)

Note:

Default: the default timestamp parser is used

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.



22
23
24
# File 'kinesis_firehose/hive_json_input_format_props.rb', line 22

def timestamp_parsers
  @timestamp_parsers
end

Class Method Details

.jsii_propertiesObject



24
25
26
27
28
# File 'kinesis_firehose/hive_json_input_format_props.rb', line 24

def self.jsii_properties
  {
    :timestamp_parsers => "timestampParsers",
  }
end

Instance Method Details

#to_jsiiObject



30
31
32
33
34
35
36
# File 'kinesis_firehose/hive_json_input_format_props.rb', line 30

def to_jsii
  result = {}
  result.merge!({
    "timestampParsers" => @timestamp_parsers,
  })
  result.compact
end