Class: AWSCDK::Interfaces::AWSQbusiness::RetrieverReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_qbusiness/retriever_reference.rb

Overview

A reference to a Retriever resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(application_id:, retriever_arn:, retriever_id:) ⇒ RetrieverReference

Returns a new instance of RetrieverReference.

Parameters:

  • application_id (String)

    The ApplicationId of the Retriever resource.

  • retriever_arn (String)

    The ARN of the Retriever resource.

  • retriever_id (String)

    The RetrieverId of the Retriever resource.



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

def initialize(application_id:, retriever_arn:, retriever_id:)
  @application_id = application_id
  Jsii::Type.check_type(@application_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "applicationId")
  @retriever_arn = retriever_arn
  Jsii::Type.check_type(@retriever_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "retrieverArn")
  @retriever_id = retriever_id
  Jsii::Type.check_type(@retriever_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "retrieverId")
end

Instance Attribute Details

#application_idString (readonly)

The ApplicationId of the Retriever resource.

Returns:

  • (String)


22
23
24
# File 'interfaces/aws_qbusiness/retriever_reference.rb', line 22

def application_id
  @application_id
end

#retriever_arnString (readonly)

The ARN of the Retriever resource.

Returns:

  • (String)


26
27
28
# File 'interfaces/aws_qbusiness/retriever_reference.rb', line 26

def retriever_arn
  @retriever_arn
end

#retriever_idString (readonly)

The RetrieverId of the Retriever resource.

Returns:

  • (String)


30
31
32
# File 'interfaces/aws_qbusiness/retriever_reference.rb', line 30

def retriever_id
  @retriever_id
end

Class Method Details

.jsii_propertiesObject



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

def self.jsii_properties
  {
    :application_id => "applicationId",
    :retriever_arn => "retrieverArn",
    :retriever_id => "retrieverId",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "applicationId" => @application_id,
    "retrieverArn" => @retriever_arn,
    "retrieverId" => @retriever_id,
  })
  result.compact
end