Class: AWSCDK::KinesisAnalyticsv2::CfnApplicationReferenceDataSource::S3ReferenceDataSourceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kinesis_analyticsv2/cfn_application_reference_data_source.rb

Overview

For an SQL-based Amazon Kinesis Data Analytics application, identifies the Amazon S3 bucket and object that contains the reference data.

A Kinesis Data Analytics application loads reference data only once. If the data changes, you call the UpdateApplication operation to trigger reloading of data into your application.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket_arn:, file_key:) ⇒ S3ReferenceDataSourceProperty

Returns a new instance of S3ReferenceDataSourceProperty.

Parameters:

  • bucket_arn (String)

    The Amazon Resource Name (ARN) of the S3 bucket.

  • file_key (String)

    The object key name containing the reference data.



854
855
856
857
858
859
# File 'kinesis_analyticsv2/cfn_application_reference_data_source.rb', line 854

def initialize(bucket_arn:, file_key:)
  @bucket_arn = bucket_arn
  Jsii::Type.check_type(@bucket_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketArn")
  @file_key = file_key
  Jsii::Type.check_type(@file_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fileKey")
end

Instance Attribute Details

#bucket_arnString (readonly)

The Amazon Resource Name (ARN) of the S3 bucket.



865
866
867
# File 'kinesis_analyticsv2/cfn_application_reference_data_source.rb', line 865

def bucket_arn
  @bucket_arn
end

#file_keyString (readonly)

The object key name containing the reference data.



870
871
872
# File 'kinesis_analyticsv2/cfn_application_reference_data_source.rb', line 870

def file_key
  @file_key
end

Class Method Details

.jsii_propertiesObject



872
873
874
875
876
877
# File 'kinesis_analyticsv2/cfn_application_reference_data_source.rb', line 872

def self.jsii_properties
  {
    :bucket_arn => "bucketArn",
    :file_key => "fileKey",
  }
end

Instance Method Details

#to_jsiiObject



879
880
881
882
883
884
885
886
# File 'kinesis_analyticsv2/cfn_application_reference_data_source.rb', line 879

def to_jsii
  result = {}
  result.merge!({
    "bucketArn" => @bucket_arn,
    "fileKey" => @file_key,
  })
  result.compact
end