Class: AWSCDK::Kendra::CfnDataSource::S3PathProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Kendra::CfnDataSource::S3PathProperty
- Defined in:
- kendra/cfn_data_source.rb
Overview
Information required to find a specific file in an Amazon S3 bucket.
Instance Attribute Summary collapse
-
#bucket ⇒ String
readonly
The name of the S3 bucket that contains the file.
-
#key ⇒ String
readonly
The name of the file.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bucket:, key:) ⇒ S3PathProperty
constructor
A new instance of S3PathProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bucket:, key:) ⇒ S3PathProperty
Returns a new instance of S3PathProperty.
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
#bucket ⇒ String (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 |
#key ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |