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-2.1.1 lib/jets/stack/main/dsl/cloudwatch.rb
jets-2.1.0 lib/jets/stack/main/dsl/cloudwatch.rb
jets-2.0.6 lib/jets/stack/main/dsl/cloudwatch.rb
jets-2.0.5 lib/jets/stack/main/dsl/cloudwatch.rb
jets-2.0.4 lib/jets/stack/main/dsl/cloudwatch.rb
jets-2.0.3 lib/jets/stack/main/dsl/cloudwatch.rb
jets-2.0.1 lib/jets/stack/main/dsl/cloudwatch.rb
jets-2.0.0 lib/jets/stack/main/dsl/cloudwatch.rb
jets-1.9.32 lib/jets/stack/main/dsl/cloudwatch.rb
jets-1.9.31 lib/jets/stack/main/dsl/cloudwatch.rb
jets-1.9.30 lib/jets/stack/main/dsl/cloudwatch.rb
jets-1.9.29 lib/jets/stack/main/dsl/cloudwatch.rb
jets-1.9.28 lib/jets/stack/main/dsl/cloudwatch.rb
jets-1.9.27 lib/jets/stack/main/dsl/cloudwatch.rb
jets-1.9.26 lib/jets/stack/main/dsl/cloudwatch.rb
jets-1.9.25 lib/jets/stack/main/dsl/cloudwatch.rb
jets-1.9.24 lib/jets/stack/main/dsl/cloudwatch.rb
jets-1.9.23 lib/jets/stack/main/dsl/cloudwatch.rb
jets-1.9.22 lib/jets/stack/main/dsl/cloudwatch.rb
jets-1.9.21 lib/jets/stack/main/dsl/cloudwatch.rb