Class: AWSCDK::Budgets::CfnBudgetsAction::ActionThresholdProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Budgets::CfnBudgetsAction::ActionThresholdProperty
- Defined in:
- budgets/cfn_budgets_action.rb
Overview
The trigger threshold of the action.
Instance Attribute Summary collapse
-
#type ⇒ String
readonly
The type of threshold for a notification.
-
#value ⇒ Numeric
readonly
The threshold of a notification.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, value:) ⇒ ActionThresholdProperty
constructor
A new instance of ActionThresholdProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, value:) ⇒ ActionThresholdProperty
Returns a new instance of ActionThresholdProperty.
619 620 621 622 623 624 |
# File 'budgets/cfn_budgets_action.rb', line 619 def initialize(type:, value:) @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "value") end |
Instance Attribute Details
#type ⇒ String (readonly)
The type of threshold for a notification.
630 631 632 |
# File 'budgets/cfn_budgets_action.rb', line 630 def type @type end |
#value ⇒ Numeric (readonly)
The threshold of a notification.
635 636 637 |
# File 'budgets/cfn_budgets_action.rb', line 635 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
637 638 639 640 641 642 |
# File 'budgets/cfn_budgets_action.rb', line 637 def self.jsii_properties { :type => "type", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
644 645 646 647 648 649 650 651 |
# File 'budgets/cfn_budgets_action.rb', line 644 def to_jsii result = {} result.merge!({ "type" => @type, "value" => @value, }) result.compact end |