Class: AWSCDK::Interfaces::AWSIotsitewise::ComputationModelReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSIotsitewise::ComputationModelReference
- Defined in:
- interfaces/aws_iotsitewise/computation_model_reference.rb
Overview
A reference to a ComputationModel resource.
Instance Attribute Summary collapse
-
#computation_model_arn ⇒ String
readonly
The ARN of the ComputationModel resource.
-
#computation_model_id ⇒ String
readonly
The ComputationModelId of the ComputationModel resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(computation_model_arn:, computation_model_id:) ⇒ ComputationModelReference
constructor
A new instance of ComputationModelReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(computation_model_arn:, computation_model_id:) ⇒ ComputationModelReference
Returns a new instance of ComputationModelReference.
9 10 11 12 13 14 |
# File 'interfaces/aws_iotsitewise/computation_model_reference.rb', line 9 def initialize(computation_model_arn:, computation_model_id:) @computation_model_arn = computation_model_arn Jsii::Type.check_type(@computation_model_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "computationModelArn") @computation_model_id = computation_model_id Jsii::Type.check_type(@computation_model_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "computationModelId") end |
Instance Attribute Details
#computation_model_arn ⇒ String (readonly)
The ARN of the ComputationModel resource.
19 20 21 |
# File 'interfaces/aws_iotsitewise/computation_model_reference.rb', line 19 def computation_model_arn @computation_model_arn end |
#computation_model_id ⇒ String (readonly)
The ComputationModelId of the ComputationModel resource.
23 24 25 |
# File 'interfaces/aws_iotsitewise/computation_model_reference.rb', line 23 def computation_model_id @computation_model_id end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'interfaces/aws_iotsitewise/computation_model_reference.rb', line 25 def self.jsii_properties { :computation_model_arn => "computationModelArn", :computation_model_id => "computationModelId", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'interfaces/aws_iotsitewise/computation_model_reference.rb', line 32 def to_jsii result = {} result.merge!({ "computationModelArn" => @computation_model_arn, "computationModelId" => @computation_model_id, }) result.compact end |