Class: AWSCDK::Kendra::CfnDataSource::S3PathProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kendra/cfn_data_source.rb

Overview

Information required to find a specific file in an Amazon S3 bucket.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket:, key:) ⇒ S3PathProperty

Returns a new instance of S3PathProperty.

Parameters:

  • bucket (String)

    The name of the S3 bucket that contains the file.

  • key (String)

    The name of the file.



2648
2649
2650
2651
2652
2653
# File 'kendra/cfn_data_source.rb', line 2648

def initialize(bucket:, key:)
  @bucket = bucket
  Jsii::Type.check_type(@bucket, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucket")
  @key = key
  Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key")
end

Instance Attribute Details

#bucketString (readonly)

The name of the S3 bucket that contains the file.



2659
2660
2661
# File 'kendra/cfn_data_source.rb', line 2659

def bucket
  @bucket
end

#keyString (readonly)

The name of the file.



2664
2665
2666
# File 'kendra/cfn_data_source.rb', line 2664

def key
  @key
end

Class Method Details

.jsii_propertiesObject



2666
2667
2668
2669
2670
2671
# File 'kendra/cfn_data_source.rb', line 2666

def self.jsii_properties
  {
    :bucket => "bucket",
    :key => "key",
  }
end

Instance Method Details

#to_jsiiObject



2673
2674
2675
2676
2677
2678
2679
2680
# File 'kendra/cfn_data_source.rb', line 2673

def to_jsii
  result = {}
  result.merge!({
    "bucket" => @bucket,
    "key" => @key,
  })
  result.compact
end