Sha256: a6cbf44ea1cca8406479bd08d2f8fb1749d80fd4f657b51a8bfbf5ebec800cc3
Contents?: true
Size: 501 Bytes
Versions: 15
Compression:
Stored size: 501 Bytes
Contents
module Jets::Stack::Main::Dsl module Cloudwatch def cloudwatch_alarm(id, hash={}) if hash.key?(:DependsOn) 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
15 entries across 15 versions & 1 rubygems