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

Version Path
jets-3.0.6 lib/jets/stack/main/dsl/cloudwatch.rb
jets-3.0.5 lib/jets/stack/main/dsl/cloudwatch.rb
jets-3.0.4 lib/jets/stack/main/dsl/cloudwatch.rb
jets-3.0.3 lib/jets/stack/main/dsl/cloudwatch.rb
jets-2.3.19 lib/jets/stack/main/dsl/cloudwatch.rb
jets-3.0.2 lib/jets/stack/main/dsl/cloudwatch.rb
jets-3.0.1 lib/jets/stack/main/dsl/cloudwatch.rb
jets-3.0.0 lib/jets/stack/main/dsl/cloudwatch.rb
jets-2.3.18 lib/jets/stack/main/dsl/cloudwatch.rb
jets-2.3.17 lib/jets/stack/main/dsl/cloudwatch.rb
jets-2.3.16 lib/jets/stack/main/dsl/cloudwatch.rb
jets-2.3.15 lib/jets/stack/main/dsl/cloudwatch.rb
jets-2.3.14 lib/jets/stack/main/dsl/cloudwatch.rb
jets-2.3.13 lib/jets/stack/main/dsl/cloudwatch.rb
jets-2.3.12 lib/jets/stack/main/dsl/cloudwatch.rb
jets-2.3.11 lib/jets/stack/main/dsl/cloudwatch.rb
jets-2.3.10 lib/jets/stack/main/dsl/cloudwatch.rb
jets-2.3.9 lib/jets/stack/main/dsl/cloudwatch.rb
jets-2.3.8 lib/jets/stack/main/dsl/cloudwatch.rb
jets-2.3.7 lib/jets/stack/main/dsl/cloudwatch.rb