Class: AWSCDK::KinesisAnalyticsv2::CfnApplicationReferenceDataSourceProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::KinesisAnalyticsv2::CfnApplicationReferenceDataSourceProps
- Defined in:
- kinesis_analyticsv2/cfn_application_reference_data_source_props.rb
Overview
Properties for defining a CfnApplicationReferenceDataSource.
Instance Attribute Summary collapse
-
#application_name ⇒ String
readonly
The name of the application.
-
#reference_data_source ⇒ AWSCDK::IResolvable, AWSCDK::KinesisAnalyticsv2::CfnApplicationReferenceDataSource::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.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(application_name:, reference_data_source:) ⇒ CfnApplicationReferenceDataSourceProps
constructor
A new instance of CfnApplicationReferenceDataSourceProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(application_name:, reference_data_source:) ⇒ CfnApplicationReferenceDataSourceProps
Returns a new instance of CfnApplicationReferenceDataSourceProps.
11 12 13 14 15 16 |
# File 'kinesis_analyticsv2/cfn_application_reference_data_source_props.rb', line 11 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::KinesisAnalyticsv2::CfnApplicationReferenceDataSource::ReferenceDataSourceProperty.new(**reference_data_source.transform_keys(&:to_sym)) : reference_data_source Jsii::Type.check_type(@reference_data_source, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19raW5lc2lzYW5hbHl0aWNzdjIuQ2ZuQXBwbGljYXRpb25SZWZlcmVuY2VEYXRhU291cmNlLlJlZmVyZW5jZURhdGFTb3VyY2VQcm9wZXJ0eSJ9XX19")), "referenceDataSource") end |
Instance Attribute Details
#application_name ⇒ String (readonly)
The name of the application.
22 23 24 |
# File 'kinesis_analyticsv2/cfn_application_reference_data_source_props.rb', line 22 def application_name @application_name end |
#reference_data_source ⇒ AWSCDK::IResolvable, AWSCDK::KinesisAnalyticsv2::CfnApplicationReferenceDataSource::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.
27 28 29 |
# File 'kinesis_analyticsv2/cfn_application_reference_data_source_props.rb', line 27 def reference_data_source @reference_data_source end |
Class Method Details
.jsii_properties ⇒ Object
29 30 31 32 33 34 |
# File 'kinesis_analyticsv2/cfn_application_reference_data_source_props.rb', line 29 def self.jsii_properties { :application_name => "applicationName", :reference_data_source => "referenceDataSource", } end |
Instance Method Details
#to_jsii ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'kinesis_analyticsv2/cfn_application_reference_data_source_props.rb', line 36 def to_jsii result = {} result.merge!({ "applicationName" => @application_name, "referenceDataSource" => @reference_data_source, }) result.compact end |