Module: AWSCDK::CloudWatch::IAlarmAction
- Included in:
- AWSCDK::CloudWatchActions::ApplicationScalingAction, AWSCDK::CloudWatchActions::AutoScalingAction, AWSCDK::CloudWatchActions::EC2Action, AWSCDK::CloudWatchActions::LambdaAction, AWSCDK::CloudWatchActions::SNSAction, AWSCDK::CloudWatchActions::SSMAction, AWSCDK::CloudWatchActions::SSMIncidentAction
- Defined in:
- cloud_watch/i_alarm_action.rb
Overview
Interface for objects that can be the targets of CloudWatch alarm actions.
Class Method Summary collapse
Instance Method Summary collapse
-
#bind(scope, alarm) ⇒ AWSCDK::CloudWatch::AlarmActionConfig
Return the properties required to send alarm actions to this CloudWatch alarm.
Class Method Details
.jsii_overridable_methods ⇒ Object
18 19 20 21 22 |
# File 'cloud_watch/i_alarm_action.rb', line 18 def self.jsii_overridable_methods { :bind => { kind: :method, name: "bind", is_optional: false }, } end |
Instance Method Details
#bind(scope, alarm) ⇒ AWSCDK::CloudWatch::AlarmActionConfig
Return the properties required to send alarm actions to this CloudWatch alarm.
12 13 14 15 16 |
# File 'cloud_watch/i_alarm_action.rb', line 12 def bind(scope, alarm) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(alarm, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5JQWxhcm0ifQ==")), "alarm") jsii_call_method("bind", [scope, alarm]) end |