Sha256: cb718cdd138c2c46d54bbab121550cdd8d8502b701b342a1b75393dc1183c986
Contents?: true
Size: 502 Bytes
Versions: 217
Compression:
Stored size: 502 Bytes
Contents
module Jets::Stack::Main::Dsl module Cloudwatch def cloudwatch_alarm(id, hash={}) if hash.key?(:depends_on) attributes = hash # leave structure alone and add type only attributes[:type] = "AWS::CloudWatch::Alarm" else # the attributes are properties properties = hash attributes = { type: "AWS::CloudWatch::Alarm", properties: properties, } end resource(id, attributes) output(id) end end end
Version data entries
217 entries across 217 versions & 4 rubygems