Class: AWSCDK::KinesisAnalytics::CfnApplicationReferenceDataSource::ReferenceSchemaProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(record_columns:, record_format:, record_encoding: nil) ⇒ ReferenceSchemaProperty

Returns a new instance of ReferenceSchemaProperty.

Parameters:



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_encodingString? (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

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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