Class: AWSCDK::KinesisAnalytics::CfnApplication::RecordColumnProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kinesis_analytics/cfn_application.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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, sql_type:, mapping: nil) ⇒ RecordColumnProperty

Returns a new instance of RecordColumnProperty.

Parameters:

  • name (String)

    Name of the column created in the in-application input stream or reference table.

  • sql_type (String)

    Type of column created in the in-application input stream or reference table.

  • mapping (String, nil) (defaults to: nil)

    Reference to the data element in the streaming input or the reference data source.



1037
1038
1039
1040
1041
1042
1043
1044
# File 'kinesis_analytics/cfn_application.rb', line 1037

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

#mappingString? (readonly)

Reference to the data element in the streaming input or the reference data source.

This element is required if the RecordFormatType is JSON .



1062
1063
1064
# File 'kinesis_analytics/cfn_application.rb', line 1062

def mapping
  @mapping
end

#nameString (readonly)

Name of the column created in the in-application input stream or reference table.



1050
1051
1052
# File 'kinesis_analytics/cfn_application.rb', line 1050

def name
  @name
end

#sql_typeString (readonly)

Type of column created in the in-application input stream or reference table.



1055
1056
1057
# File 'kinesis_analytics/cfn_application.rb', line 1055

def sql_type
  @sql_type
end

Class Method Details

.jsii_propertiesObject



1064
1065
1066
1067
1068
1069
1070
# File 'kinesis_analytics/cfn_application.rb', line 1064

def self.jsii_properties
  {
    :name => "name",
    :sql_type => "sqlType",
    :mapping => "mapping",
  }
end

Instance Method Details

#to_jsiiObject



1072
1073
1074
1075
1076
1077
1078
1079
1080
# File 'kinesis_analytics/cfn_application.rb', line 1072

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "sqlType" => @sql_type,
    "mapping" => @mapping,
  })
  result.compact
end