Class: AWSCDK::KinesisAnalytics::CfnApplicationReferenceDataSourceProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::KinesisAnalytics::CfnApplicationReferenceDataSourceProps
- Defined in:
- kinesis_analytics/cfn_application_reference_data_source_props.rb
Overview
Properties for defining a CfnApplicationReferenceDataSource.
Instance Attribute Summary collapse
-
#application_name ⇒ String
readonly
Name of an existing application.
-
#reference_data_source ⇒ AWSCDK::IResolvable, AWSCDK::KinesisAnalytics::CfnApplicationReferenceDataSource::ReferenceDataSourceProperty
readonly
The reference data source can be an object in your Amazon S3 bucket.
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_analytics/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::KinesisAnalytics::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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19raW5lc2lzYW5hbHl0aWNzLkNmbkFwcGxpY2F0aW9uUmVmZXJlbmNlRGF0YVNvdXJjZS5SZWZlcmVuY2VEYXRhU291cmNlUHJvcGVydHkifV19fQ==")), "referenceDataSource") end |
Instance Attribute Details
#application_name ⇒ String (readonly)
Name of an existing application.
22 23 24 |
# File 'kinesis_analytics/cfn_application_reference_data_source_props.rb', line 22 def application_name @application_name end |
#reference_data_source ⇒ AWSCDK::IResolvable, AWSCDK::KinesisAnalytics::CfnApplicationReferenceDataSource::ReferenceDataSourceProperty (readonly)
The reference data source can be an object in your Amazon S3 bucket.
Amazon Kinesis Analytics reads the object and copies the data into the in-application table that is created. You provide an S3 bucket, object key name, and the resulting in-application table that is created. You must also provide an IAM role with the necessary permissions that Amazon Kinesis Analytics can assume to read the object from your S3 bucket on your behalf.
29 30 31 |
# File 'kinesis_analytics/cfn_application_reference_data_source_props.rb', line 29 def reference_data_source @reference_data_source end |
Class Method Details
.jsii_properties ⇒ Object
31 32 33 34 35 36 |
# File 'kinesis_analytics/cfn_application_reference_data_source_props.rb', line 31 def self.jsii_properties { :application_name => "applicationName", :reference_data_source => "referenceDataSource", } end |
Instance Method Details
#to_jsii ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'kinesis_analytics/cfn_application_reference_data_source_props.rb', line 38 def to_jsii result = {} result.merge!({ "applicationName" => @application_name, "referenceDataSource" => @reference_data_source, }) result.compact end |