Class: AWSCDK::KinesisAnalytics::CfnApplicationReferenceDataSource::RecordColumnProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::KinesisAnalytics::CfnApplicationReferenceDataSource::RecordColumnProperty
- Defined in:
- kinesis_analytics/cfn_application_reference_data_source.rb
Overview
Describes the mapping of each data element in the streaming source to the corresponding column in the in-application stream.
Also used to describe the format of the reference data source.
Instance Attribute Summary collapse
-
#mapping ⇒ String?
readonly
Reference to the data element in the streaming input or the reference data source.
-
#name ⇒ String
readonly
Name of the column created in the in-application input stream or reference table.
-
#sql_type ⇒ String
readonly
Type of column created in the in-application input stream or reference table.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, sql_type:, mapping: nil) ⇒ RecordColumnProperty
constructor
A new instance of RecordColumnProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, sql_type:, mapping: nil) ⇒ RecordColumnProperty
Returns a new instance of RecordColumnProperty.
651 652 653 654 655 656 657 658 |
# File 'kinesis_analytics/cfn_application_reference_data_source.rb', line 651 def initialize(name:, sql_type:, mapping: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @sql_type = sql_type Jsii::Type.check_type(@sql_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sqlType") @mapping = mapping Jsii::Type.check_type(@mapping, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mapping") unless @mapping.nil? end |
Instance Attribute Details
#mapping ⇒ String? (readonly)
Reference to the data element in the streaming input or the reference data source.
This element is required if the RecordFormatType is JSON .
676 677 678 |
# File 'kinesis_analytics/cfn_application_reference_data_source.rb', line 676 def mapping @mapping end |
#name ⇒ String (readonly)
Name of the column created in the in-application input stream or reference table.
664 665 666 |
# File 'kinesis_analytics/cfn_application_reference_data_source.rb', line 664 def name @name end |
#sql_type ⇒ String (readonly)
Type of column created in the in-application input stream or reference table.
669 670 671 |
# File 'kinesis_analytics/cfn_application_reference_data_source.rb', line 669 def sql_type @sql_type end |
Class Method Details
.jsii_properties ⇒ Object
678 679 680 681 682 683 684 |
# File 'kinesis_analytics/cfn_application_reference_data_source.rb', line 678 def self.jsii_properties { :name => "name", :sql_type => "sqlType", :mapping => "mapping", } end |
Instance Method Details
#to_jsii ⇒ Object
686 687 688 689 690 691 692 693 694 |
# File 'kinesis_analytics/cfn_application_reference_data_source.rb', line 686 def to_jsii result = {} result.merge!({ "name" => @name, "sqlType" => @sql_type, "mapping" => @mapping, }) result.compact end |