Module: AWSCDK::CloudWatch::IAlarmAction

Overview

Interface for objects that can be the targets of CloudWatch alarm actions.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.jsii_overridable_methodsObject



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.

Parameters:

  • scope (Constructs::Construct)

    root Construct that allows creating new Constructs.

  • alarm (AWSCDK::CloudWatch::IAlarm)

    CloudWatch alarm that the action will target [disable-awslint:prefer-ref-interface].

Returns:



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