Class: AWSCDK::KinesisAnalytics::CfnApplicationReferenceDataSource::ReferenceSchemaProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::KinesisAnalytics::CfnApplicationReferenceDataSource::ReferenceSchemaProperty
- Defined in:
- kinesis_analytics/cfn_application_reference_data_source.rb
Overview
The ReferenceSchema property type specifies the format of the data in the reference source for a SQL-based Amazon Kinesis Data Analytics application.
Instance Attribute Summary collapse
-
#record_columns ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::KinesisAnalytics::CfnApplicationReferenceDataSource::RecordColumnProperty>
readonly
A list of RecordColumn objects.
-
#record_encoding ⇒ String?
readonly
Specifies the encoding of the records in the reference source.
-
#record_format ⇒ AWSCDK::IResolvable, AWSCDK::KinesisAnalytics::CfnApplicationReferenceDataSource::RecordFormatProperty
readonly
Specifies the format of the records on the reference 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.
804 805 806 807 808 809 810 811 |
# File 'kinesis_analytics/cfn_application_reference_data_source.rb', line 804 def initialize(record_columns:, record_format:, record_encoding: nil) @record_columns = record_columns Jsii::Type.check_type(@record_columns, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfa2luZXNpc2FuYWx5dGljcy5DZm5BcHBsaWNhdGlvblJlZmVyZW5jZURhdGFTb3VyY2UuUmVjb3JkQ29sdW1uUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "recordColumns") @record_format = record_format.is_a?(Hash) ? ::AWSCDK::KinesisAnalytics::CfnApplicationReferenceDataSource::RecordFormatProperty.new(**record_format.transform_keys(&:to_sym)) : record_format Jsii::Type.check_type(@record_format, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19raW5lc2lzYW5hbHl0aWNzLkNmbkFwcGxpY2F0aW9uUmVmZXJlbmNlRGF0YVNvdXJjZS5SZWNvcmRGb3JtYXRQcm9wZXJ0eSJ9XX19")), "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::CfnApplicationReferenceDataSource::RecordColumnProperty> (readonly)
A list of RecordColumn objects.
817 818 819 |
# File 'kinesis_analytics/cfn_application_reference_data_source.rb', line 817 def record_columns @record_columns end |
#record_encoding ⇒ String? (readonly)
Specifies the encoding of the records in the reference source.
For example, UTF-8.
829 830 831 |
# File 'kinesis_analytics/cfn_application_reference_data_source.rb', line 829 def record_encoding @record_encoding end |
#record_format ⇒ AWSCDK::IResolvable, AWSCDK::KinesisAnalytics::CfnApplicationReferenceDataSource::RecordFormatProperty (readonly)
Specifies the format of the records on the reference source.
822 823 824 |
# File 'kinesis_analytics/cfn_application_reference_data_source.rb', line 822 def record_format @record_format end |
Class Method Details
.jsii_properties ⇒ Object
831 832 833 834 835 836 837 |
# File 'kinesis_analytics/cfn_application_reference_data_source.rb', line 831 def self.jsii_properties { :record_columns => "recordColumns", :record_format => "recordFormat", :record_encoding => "recordEncoding", } end |
Instance Method Details
#to_jsii ⇒ Object
839 840 841 842 843 844 845 846 847 |
# File 'kinesis_analytics/cfn_application_reference_data_source.rb', line 839 def to_jsii result = {} result.merge!({ "recordColumns" => @record_columns, "recordFormat" => @record_format, "recordEncoding" => @record_encoding, }) result.compact end |