Class: AWSCDK::Interfaces::AWSQbusiness::DataSourceReference

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

Overview

A reference to a DataSource resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(application_id:, data_source_arn:, data_source_id:, index_id:) ⇒ DataSourceReference

Returns a new instance of DataSourceReference.

Parameters:

  • application_id (String)

    The ApplicationId of the DataSource resource.

  • data_source_arn (String)

    The ARN of the DataSource resource.

  • data_source_id (String)

    The DataSourceId of the DataSource resource.

  • index_id (String)

    The IndexId of the DataSource resource.



11
12
13
14
15
16
17
18
19
20
# File 'interfaces/aws_qbusiness/data_source_reference.rb', line 11

def initialize(application_id:, data_source_arn:, data_source_id:, index_id:)
  @application_id = application_id
  Jsii::Type.check_type(@application_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "applicationId")
  @data_source_arn = data_source_arn
  Jsii::Type.check_type(@data_source_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dataSourceArn")
  @data_source_id = data_source_id
  Jsii::Type.check_type(@data_source_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dataSourceId")
  @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 DataSource resource.

Returns:

  • (String)


25
26
27
# File 'interfaces/aws_qbusiness/data_source_reference.rb', line 25

def application_id
  @application_id
end

#data_source_arnString (readonly)

The ARN of the DataSource resource.

Returns:

  • (String)


29
30
31
# File 'interfaces/aws_qbusiness/data_source_reference.rb', line 29

def data_source_arn
  @data_source_arn
end

#data_source_idString (readonly)

The DataSourceId of the DataSource resource.

Returns:

  • (String)


33
34
35
# File 'interfaces/aws_qbusiness/data_source_reference.rb', line 33

def data_source_id
  @data_source_id
end

#index_idString (readonly)

The IndexId of the DataSource resource.

Returns:

  • (String)


37
38
39
# File 'interfaces/aws_qbusiness/data_source_reference.rb', line 37

def index_id
  @index_id
end

Class Method Details

.jsii_propertiesObject



39
40
41
42
43
44
45
46
# File 'interfaces/aws_qbusiness/data_source_reference.rb', line 39

def self.jsii_properties
  {
    :application_id => "applicationId",
    :data_source_arn => "dataSourceArn",
    :data_source_id => "dataSourceId",
    :index_id => "indexId",
  }
end

Instance Method Details

#to_jsiiObject



48
49
50
51
52
53
54
55
56
57
# File 'interfaces/aws_qbusiness/data_source_reference.rb', line 48

def to_jsii
  result = {}
  result.merge!({
    "applicationId" => @application_id,
    "dataSourceArn" => @data_source_arn,
    "dataSourceId" => @data_source_id,
    "indexId" => @index_id,
  })
  result.compact
end