Class: AWSCDK::Interfaces::AWSKendra::FaqReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_kendra/faq_reference.rb

Overview

A reference to a Faq resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(faq_arn:, faq_id:, index_id:) ⇒ FaqReference

Returns a new instance of FaqReference.

Parameters:

  • faq_arn (String)

    The ARN of the Faq resource.

  • faq_id (String)

    The Id of the Faq resource.

  • index_id (String)

    The IndexId of the Faq resource.



10
11
12
13
14
15
16
17
# File 'interfaces/aws_kendra/faq_reference.rb', line 10

def initialize(faq_arn:, faq_id:, index_id:)
  @faq_arn = faq_arn
  Jsii::Type.check_type(@faq_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "faqArn")
  @faq_id = faq_id
  Jsii::Type.check_type(@faq_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "faqId")
  @index_id = index_id
  Jsii::Type.check_type(@index_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "indexId")
end

Instance Attribute Details

#faq_arnString (readonly)

The ARN of the Faq resource.

Returns:

  • (String)


22
23
24
# File 'interfaces/aws_kendra/faq_reference.rb', line 22

def faq_arn
  @faq_arn
end

#faq_idString (readonly)

The Id of the Faq resource.

Returns:

  • (String)


26
27
28
# File 'interfaces/aws_kendra/faq_reference.rb', line 26

def faq_id
  @faq_id
end

#index_idString (readonly)

The IndexId of the Faq resource.

Returns:

  • (String)


30
31
32
# File 'interfaces/aws_kendra/faq_reference.rb', line 30

def index_id
  @index_id
end

Class Method Details

.jsii_propertiesObject



32
33
34
35
36
37
38
# File 'interfaces/aws_kendra/faq_reference.rb', line 32

def self.jsii_properties
  {
    :faq_arn => "faqArn",
    :faq_id => "faqId",
    :index_id => "indexId",
  }
end

Instance Method Details

#to_jsiiObject



40
41
42
43
44
45
46
47
48
# File 'interfaces/aws_kendra/faq_reference.rb', line 40

def to_jsii
  result = {}
  result.merge!({
    "faqArn" => @faq_arn,
    "faqId" => @faq_id,
    "indexId" => @index_id,
  })
  result.compact
end