Sha256: d3141409664d2d32a039197b19b432c2bdaaa07031ffb15ecec152902230577f
Contents?: true
Size: 543 Bytes
Versions: 13
Compression:
Stored size: 543 Bytes
Contents
module Awspec::Type class CloudwatchAlarm < Base def initialize(id) super @resource_via_client = find_cloudwatch_alarm(id) @id = @resource_via_client[:alarm_arn] if @resource_via_client end def has_ok_action?(name) @resource_via_client[:ok_actions].include?(name) end def has_alarm_action?(name) @resource_via_client[:alarm_actions].include?(name) end def has_insufficient_data_action?(name) @resource_via_client[:insufficient_data_actions].include?(name) end end end
Version data entries
13 entries across 13 versions & 1 rubygems