Class: AWSCDK::KinesisAnalyticsv2::CfnApplicationReferenceDataSource::ReferenceSchemaProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::KinesisAnalyticsv2::CfnApplicationReferenceDataSource::ReferenceSchemaProperty
- Defined in:
- kinesis_analyticsv2/cfn_application_reference_data_source.rb
Overview
For a SQL-based Kinesis Data Analytics application, describes the format of the data in the streaming source, and how each data element maps to corresponding columns created in the in-application stream.
Instance Attribute Summary collapse
-
#record_columns ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::KinesisAnalyticsv2::CfnApplicationReferenceDataSource::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::KinesisAnalyticsv2::CfnApplicationReferenceDataSource::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) ⇒ ReferenceSchemaProperty
constructor
A new instance of ReferenceSchemaProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(record_columns:, record_format:, record_encoding: nil) ⇒ ReferenceSchemaProperty
Returns a new instance of ReferenceSchemaProperty.
798 799 800 801 802 803 804 805 |
# File 'kinesis_analyticsv2/cfn_application_reference_data_source.rb', line 798 def initialize(record_columns:, record_format:, record_encoding: nil) @record_columns = record_columns Jsii::Type.check_type(@record_columns, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfa2luZXNpc2FuYWx5dGljc3YyLkNmbkFwcGxpY2F0aW9uUmVmZXJlbmNlRGF0YVNvdXJjZS5SZWNvcmRDb2x1bW5Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "recordColumns") @record_format = record_format.is_a?(Hash) ? ::AWSCDK::KinesisAnalyticsv2::CfnApplicationReferenceDataSource::RecordFormatProperty.new(**record_format.transform_keys(&:to_sym)) : record_format Jsii::Type.check_type(@record_format, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19raW5lc2lzYW5hbHl0aWNzdjIuQ2ZuQXBwbGljYXRpb25SZWZlcmVuY2VEYXRhU291cmNlLlJlY29yZEZvcm1hdFByb3BlcnR5In1dfX0=")), "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::KinesisAnalyticsv2::CfnApplicationReferenceDataSource::RecordColumnProperty> (readonly)
A list of RecordColumn objects.
811 812 813 |
# File 'kinesis_analyticsv2/cfn_application_reference_data_source.rb', line 811 def record_columns @record_columns end |
#record_encoding ⇒ String? (readonly)
Specifies the encoding of the records in the streaming source.
For example, UTF-8.
823 824 825 |
# File 'kinesis_analyticsv2/cfn_application_reference_data_source.rb', line 823 def record_encoding @record_encoding end |
#record_format ⇒ AWSCDK::IResolvable, AWSCDK::KinesisAnalyticsv2::CfnApplicationReferenceDataSource::RecordFormatProperty (readonly)
Specifies the format of the records on the streaming source.
816 817 818 |
# File 'kinesis_analyticsv2/cfn_application_reference_data_source.rb', line 816 def record_format @record_format end |
Class Method Details
.jsii_properties ⇒ Object
825 826 827 828 829 830 831 |
# File 'kinesis_analyticsv2/cfn_application_reference_data_source.rb', line 825 def self.jsii_properties { :record_columns => "recordColumns", :record_format => "recordFormat", :record_encoding => "recordEncoding", } end |
Instance Method Details
#to_jsii ⇒ Object
833 834 835 836 837 838 839 840 841 |
# File 'kinesis_analyticsv2/cfn_application_reference_data_source.rb', line 833 def to_jsii result = {} result.merge!({ "recordColumns" => @record_columns, "recordFormat" => @record_format, "recordEncoding" => @record_encoding, }) result.compact end |