Class: AWSCDK::AspectOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AspectOptions
- Defined in:
- aspect_options.rb
Overview
Options when Applying an Aspect.
Instance Attribute Summary collapse
-
#priority ⇒ Numeric?
readonly
The priority value to apply on an Aspect.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(priority: nil) ⇒ AspectOptions
constructor
A new instance of AspectOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(priority: nil) ⇒ AspectOptions
Returns a new instance of AspectOptions.
8 9 10 11 |
# File 'aspect_options.rb', line 8 def initialize(priority: nil) @priority = priority Jsii::Type.check_type(@priority, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "priority") unless @priority.nil? end |
Instance Attribute Details
#priority ⇒ Numeric? (readonly)
Note:
Default: AspectPriority.DEFAULT
The priority value to apply on an Aspect. Priority must be a non-negative integer.
Aspects that have same priority value are not guaranteed to be executed in a consistent order.
20 21 22 |
# File 'aspect_options.rb', line 20 def priority @priority end |
Class Method Details
.jsii_properties ⇒ Object
22 23 24 25 26 |
# File 'aspect_options.rb', line 22 def self.jsii_properties { :priority => "priority", } end |
Instance Method Details
#to_jsii ⇒ Object
28 29 30 31 32 33 34 |
# File 'aspect_options.rb', line 28 def to_jsii result = {} result.merge!({ "priority" => @priority, }) result.compact end |