Class: AWSCDK::Interfaces::AWSQbusiness::DataSourceReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSQbusiness::DataSourceReference
- Defined in:
- interfaces/aws_qbusiness/data_source_reference.rb
Overview
A reference to a DataSource resource.
Instance Attribute Summary collapse
-
#application_id ⇒ String
readonly
The ApplicationId of the DataSource resource.
-
#data_source_arn ⇒ String
readonly
The ARN of the DataSource resource.
-
#data_source_id ⇒ String
readonly
The DataSourceId of the DataSource resource.
-
#index_id ⇒ String
readonly
The IndexId of the DataSource resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(application_id:, data_source_arn:, data_source_id:, index_id:) ⇒ DataSourceReference
constructor
A new instance of DataSourceReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(application_id:, data_source_arn:, data_source_id:, index_id:) ⇒ DataSourceReference
Returns a new instance of DataSourceReference.
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_id ⇒ String (readonly)
The ApplicationId of the DataSource resource.
25 26 27 |
# File 'interfaces/aws_qbusiness/data_source_reference.rb', line 25 def application_id @application_id end |
#data_source_arn ⇒ String (readonly)
The ARN of the DataSource resource.
29 30 31 |
# File 'interfaces/aws_qbusiness/data_source_reference.rb', line 29 def data_source_arn @data_source_arn end |
#data_source_id ⇒ String (readonly)
The DataSourceId of the DataSource resource.
33 34 35 |
# File 'interfaces/aws_qbusiness/data_source_reference.rb', line 33 def data_source_id @data_source_id end |
#index_id ⇒ String (readonly)
The IndexId of the DataSource resource.
37 38 39 |
# File 'interfaces/aws_qbusiness/data_source_reference.rb', line 37 def index_id @index_id end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |