Class: AWSCDK::MixinApplication
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MixinApplication
- Defined in:
- mixin_application.rb
Overview
Represents a successful mixin application.
Instance Attribute Summary collapse
-
#construct ⇒ Constructs::IConstruct
readonly
The construct the mixin was applied to.
-
#mixin ⇒ Constructs::IMixin
readonly
The mixin that was applied.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(construct:, mixin:) ⇒ MixinApplication
constructor
A new instance of MixinApplication.
- #to_jsii ⇒ Object
Constructor Details
#initialize(construct:, mixin:) ⇒ MixinApplication
Returns a new instance of MixinApplication.
9 10 11 12 13 14 |
# File 'mixin_application.rb', line 9 def initialize(construct:, mixin:) @construct = construct Jsii::Type.check_type(@construct, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLklDb25zdHJ1Y3QifQ==")), "construct") @mixin = mixin Jsii::Type.check_type(@mixin, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLklNaXhpbiJ9")), "mixin") end |
Instance Attribute Details
#construct ⇒ Constructs::IConstruct (readonly)
The construct the mixin was applied to.
19 20 21 |
# File 'mixin_application.rb', line 19 def construct @construct end |
#mixin ⇒ Constructs::IMixin (readonly)
The mixin that was applied.
23 24 25 |
# File 'mixin_application.rb', line 23 def mixin @mixin end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'mixin_application.rb', line 25 def self.jsii_properties { :construct => "construct", :mixin => "mixin", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'mixin_application.rb', line 32 def to_jsii result = {} result.merge!({ "construct" => @construct, "mixin" => @mixin, }) result.compact end |