Class: AWSCDK::KinesisAnalytics::CfnApplicationReferenceDataSourceV2Props Deprecated

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kinesis_analytics/cfn_application_reference_data_source_v2_props.rb

Overview

Deprecated.

use aws-kinesisanalyticsv2 instead

Properties for defining a CfnApplicationReferenceDataSource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(application_name:, reference_data_source:) ⇒ CfnApplicationReferenceDataSourceV2Props

Returns a new instance of CfnApplicationReferenceDataSourceV2Props.

Parameters:



12
13
14
15
16
17
# File 'kinesis_analytics/cfn_application_reference_data_source_v2_props.rb', line 12

def initialize(application_name:, reference_data_source:)
  @application_name = application_name
  Jsii::Type.check_type(@application_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "applicationName")
  @reference_data_source = reference_data_source.is_a?(Hash) ? ::AWSCDK::KinesisAnalytics::CfnApplicationReferenceDataSourceV2::ReferenceDataSourceProperty.new(**reference_data_source.transform_keys(&:to_sym)) : reference_data_source
  Jsii::Type.check_type(@reference_data_source, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19raW5lc2lzYW5hbHl0aWNzLkNmbkFwcGxpY2F0aW9uUmVmZXJlbmNlRGF0YVNvdXJjZVYyLlJlZmVyZW5jZURhdGFTb3VyY2VQcm9wZXJ0eSJ9XX19")), "referenceDataSource")
end

Instance Attribute Details

#application_nameString (readonly)

The name of the application.



23
24
25
# File 'kinesis_analytics/cfn_application_reference_data_source_v2_props.rb', line 23

def application_name
  @application_name
end

#reference_data_sourceAWSCDK::IResolvable, AWSCDK::KinesisAnalytics::CfnApplicationReferenceDataSourceV2::ReferenceDataSourceProperty (readonly)

For a SQL-based Kinesis Data Analytics application, describes the reference data source by providing the source information (Amazon S3 bucket name and object key name), the resulting in-application table name that is created, and the necessary schema to map the data elements in the Amazon S3 object to the in-application table.



28
29
30
# File 'kinesis_analytics/cfn_application_reference_data_source_v2_props.rb', line 28

def reference_data_source
  @reference_data_source
end

Class Method Details

.jsii_propertiesObject



30
31
32
33
34
35
# File 'kinesis_analytics/cfn_application_reference_data_source_v2_props.rb', line 30

def self.jsii_properties
  {
    :application_name => "applicationName",
    :reference_data_source => "referenceDataSource",
  }
end

Instance Method Details

#to_jsiiObject



37
38
39
40
41
42
43
44
# File 'kinesis_analytics/cfn_application_reference_data_source_v2_props.rb', line 37

def to_jsii
  result = {}
  result.merge!({
    "applicationName" => @application_name,
    "referenceDataSource" => @reference_data_source,
  })
  result.compact
end