Class: AWSCDK::AspectApplication
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::AspectApplication
- Defined in:
- aspect_application.rb
Overview
Object respresenting an Aspect application.
Stores the Aspect, the pointer to the construct it was applied to, and the priority value of that Aspect.
Class Method Summary collapse
Instance Method Summary collapse
-
#aspect ⇒ AWSCDK::IAspect
The Aspect that was applied.
-
#construct ⇒ Constructs::IConstruct
The construct that the Aspect was applied to.
-
#initialize(construct, aspect, priority) ⇒ AspectApplication
constructor
Initializes AspectApplication object.
-
#priority ⇒ Numeric
Gets the priority value.
- #priority=(value) ⇒ Object
Constructor Details
#initialize(construct, aspect, priority) ⇒ AspectApplication
Initializes AspectApplication object.
16 17 18 19 20 21 |
# File 'aspect_application.rb', line 16 def initialize(construct, aspect, priority) Jsii::Type.check_type(construct, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLklDb25zdHJ1Y3QifQ==")), "construct") Jsii::Type.check_type(aspect, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5JQXNwZWN0In0=")), "aspect") Jsii::Type.check_type(priority, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "priority") Jsii::Object.instance_method(:initialize).bind(self).call(construct, aspect, priority) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
23 24 25 26 27 28 29 |
# File 'aspect_application.rb', line 23 def self.jsii_overridable_methods { :aspect => { kind: :property, name: "aspect", is_optional: false }, :construct => { kind: :property, name: "construct", is_optional: false }, :priority => { kind: :property, name: "priority", is_optional: false }, } end |
Instance Method Details
#aspect ⇒ AWSCDK::IAspect
The Aspect that was applied.
34 35 36 |
# File 'aspect_application.rb', line 34 def aspect() jsii_get_property("aspect") end |
#construct ⇒ Constructs::IConstruct
The construct that the Aspect was applied to.
41 42 43 |
# File 'aspect_application.rb', line 41 def construct() jsii_get_property("construct") end |
#priority ⇒ Numeric
Gets the priority value.
Sets the priority value.
50 51 52 |
# File 'aspect_application.rb', line 50 def priority() jsii_get_property("priority") end |
#priority=(value) ⇒ Object
54 55 56 57 |
# File 'aspect_application.rb', line 54 def priority=(value) Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "priority") jsii_set_property("priority", value) end |