Class: AWSCDK::KinesisAnalytics::CfnApplication::InputSchemaProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::KinesisAnalytics::CfnApplication::InputSchemaProperty
- Defined in:
- kinesis_analytics/cfn_application.rb
Overview
Describes the format of the data in the streaming source, and how each data element maps to corresponding columns in the in-application stream that is being created.
Also used to describe the format of the reference data source.
Instance Attribute Summary collapse
-
#record_columns ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::KinesisAnalytics::CfnApplication::RecordColumnProperty>
readonly
A list of
RecordColumnobjects. -
#record_encoding ⇒ String?
readonly
Specifies the encoding of the records in the streaming source.
-
#record_format ⇒ AWSCDK::IResolvable, AWSCDK::KinesisAnalytics::CfnApplication::RecordFormatProperty
readonly
Specifies the format of the records on the streaming source.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(record_columns:, record_format:, record_encoding: nil) ⇒ InputSchemaProperty
constructor
A new instance of InputSchemaProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(record_columns:, record_format:, record_encoding: nil) ⇒ InputSchemaProperty
Returns a new instance of InputSchemaProperty.
810 811 812 813 814 815 816 817 |
# File 'kinesis_analytics/cfn_application.rb', line 810 def initialize(record_columns:, record_format:, record_encoding: nil) @record_columns = record_columns Jsii::Type.check_type(@record_columns, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfa2luZXNpc2FuYWx5dGljcy5DZm5BcHBsaWNhdGlvbi5SZWNvcmRDb2x1bW5Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "recordColumns") @record_format = record_format.is_a?(Hash) ? ::AWSCDK::KinesisAnalytics::CfnApplication::RecordFormatProperty.new(**record_format.transform_keys(&:to_sym)) : record_format Jsii::Type.check_type(@record_format, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19raW5lc2lzYW5hbHl0aWNzLkNmbkFwcGxpY2F0aW9uLlJlY29yZEZvcm1hdFByb3BlcnR5In1dfX0=")), "recordFormat") @record_encoding = record_encoding Jsii::Type.check_type(@record_encoding, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "recordEncoding") unless @record_encoding.nil? end |
Instance Attribute Details
#record_columns ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::KinesisAnalytics::CfnApplication::RecordColumnProperty> (readonly)
A list of RecordColumn objects.
823 824 825 |
# File 'kinesis_analytics/cfn_application.rb', line 823 def record_columns @record_columns end |
#record_encoding ⇒ String? (readonly)
Specifies the encoding of the records in the streaming source.
For example, UTF-8.
835 836 837 |
# File 'kinesis_analytics/cfn_application.rb', line 835 def record_encoding @record_encoding end |
#record_format ⇒ AWSCDK::IResolvable, AWSCDK::KinesisAnalytics::CfnApplication::RecordFormatProperty (readonly)
Specifies the format of the records on the streaming source.
828 829 830 |
# File 'kinesis_analytics/cfn_application.rb', line 828 def record_format @record_format end |
Class Method Details
.jsii_properties ⇒ Object
837 838 839 840 841 842 843 |
# File 'kinesis_analytics/cfn_application.rb', line 837 def self.jsii_properties { :record_columns => "recordColumns", :record_format => "recordFormat", :record_encoding => "recordEncoding", } end |
Instance Method Details
#to_jsii ⇒ Object
845 846 847 848 849 850 851 852 853 |
# File 'kinesis_analytics/cfn_application.rb', line 845 def to_jsii result = {} result.merge!({ "recordColumns" => @record_columns, "recordFormat" => @record_format, "recordEncoding" => @record_encoding, }) result.compact end |