Class: AWSCDK::KinesisAnalytics::CfnApplicationReferenceDataSourceV2::S3ReferenceDataSourceProperty

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



855
856
857
858
859
860
# File 'kinesis_analytics/cfn_application_reference_data_source_v2.rb', line 855

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.



866
867
868
# File 'kinesis_analytics/cfn_application_reference_data_source_v2.rb', line 866

def bucket_arn
  @bucket_arn
end

#file_keyString (readonly)

The object key name containing the reference data.



871
872
873
# File 'kinesis_analytics/cfn_application_reference_data_source_v2.rb', line 871

def file_key
  @file_key
end

Class Method Details

.jsii_propertiesObject



873
874
875
876
877
878
# File 'kinesis_analytics/cfn_application_reference_data_source_v2.rb', line 873

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

Instance Method Details

#to_jsiiObject



880
881
882
883
884
885
886
887
# File 'kinesis_analytics/cfn_application_reference_data_source_v2.rb', line 880

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