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