Class: AWSCDK::Interfaces::AWSQbusiness::IndexReference

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

Overview

A reference to a Index resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(application_id:, index_arn:, index_id:) ⇒ IndexReference

Returns a new instance of IndexReference.

Parameters:

  • application_id (String)

    The ApplicationId of the Index resource.

  • index_arn (String)

    The ARN of the Index resource.

  • index_id (String)

    The IndexId of the Index resource.



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

def initialize(application_id:, index_arn:, index_id:)
  @application_id = application_id
  Jsii::Type.check_type(@application_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "applicationId")
  @index_arn = index_arn
  Jsii::Type.check_type(@index_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "indexArn")
  @index_id = index_id
  Jsii::Type.check_type(@index_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "indexId")
end

Instance Attribute Details

#application_idString (readonly)

The ApplicationId of the Index resource.

Returns:

  • (String)


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

def application_id
  @application_id
end

#index_arnString (readonly)

The ARN of the Index resource.

Returns:

  • (String)


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

def index_arn
  @index_arn
end

#index_idString (readonly)

The IndexId of the Index resource.

Returns:

  • (String)


30
31
32
# File 'interfaces/aws_qbusiness/index_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_qbusiness/index_reference.rb', line 32

def self.jsii_properties
  {
    :application_id => "applicationId",
    :index_arn => "indexArn",
    :index_id => "indexId",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "applicationId" => @application_id,
    "indexArn" => @index_arn,
    "indexId" => @index_id,
  })
  result.compact
end