Class: AWSCDK::Kendra::CfnFaq::S3PathProperty

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



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

#bucketString (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

#keyString (readonly)

The name of the file.



636
637
638
# File 'kendra/cfn_faq.rb', line 636

def key
  @key
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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