Class: AWSCDK::Budgets::CfnBudgetsAction::ActionThresholdProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
budgets/cfn_budgets_action.rb

Overview

The trigger threshold of the action.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, value:) ⇒ ActionThresholdProperty

Returns a new instance of ActionThresholdProperty.

Parameters:

  • type (String)

    The type of threshold for a notification.

  • value (Numeric)

    The threshold of a notification.



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

#typeString (readonly)

The type of threshold for a notification.



630
631
632
# File 'budgets/cfn_budgets_action.rb', line 630

def type
  @type
end

#valueNumeric (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_propertiesObject



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_jsiiObject



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