Class: AWSCDK::Kendra::CfnFaq::S3PathProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Kendra::CfnFaq::S3PathProperty
- Defined in:
- kendra/cfn_faq.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.
620 621 622 623 624 625 |
# File 'kendra/cfn_faq.rb', line 620 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.
631 632 633 |
# File 'kendra/cfn_faq.rb', line 631 def bucket @bucket end |
#key ⇒ String (readonly)
The name of the file.
636 637 638 |
# File 'kendra/cfn_faq.rb', line 636 def key @key end |
Class Method Details
.jsii_properties ⇒ Object
638 639 640 641 642 643 |
# File 'kendra/cfn_faq.rb', line 638 def self.jsii_properties { :bucket => "bucket", :key => "key", } end |
Instance Method Details
#to_jsii ⇒ Object
645 646 647 648 649 650 651 652 |
# File 'kendra/cfn_faq.rb', line 645 def to_jsii result = {} result.merge!({ "bucket" => @bucket, "key" => @key, }) result.compact end |