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-4.0.12 lib/jets/stack/main/dsl/cloudwatch.rb
jets-4.0.11 lib/jets/stack/main/dsl/cloudwatch.rb
jets-4.0.10 lib/jets/stack/main/dsl/cloudwatch.rb
jets-4.0.9 lib/jets/stack/main/dsl/cloudwatch.rb
jets-4.0.8 lib/jets/stack/main/dsl/cloudwatch.rb
jets-4.0.7 lib/jets/stack/main/dsl/cloudwatch.rb
jets-4.0.6 lib/jets/stack/main/dsl/cloudwatch.rb
jets-4.0.5 lib/jets/stack/main/dsl/cloudwatch.rb
jets-4.0.4 lib/jets/stack/main/dsl/cloudwatch.rb
jets-4.0.3 lib/jets/stack/main/dsl/cloudwatch.rb
jets-4.0.2 lib/jets/stack/main/dsl/cloudwatch.rb
jets-4.0.1 lib/jets/stack/main/dsl/cloudwatch.rb
jets-4.0.0 lib/jets/stack/main/dsl/cloudwatch.rb
jets-3.2.2 lib/jets/stack/main/dsl/cloudwatch.rb
jets-3.2.1 lib/jets/stack/main/dsl/cloudwatch.rb
jets.benforeva-3.0.17.pre.mount.pre.fix lib/jets/stack/main/dsl/cloudwatch.rb
jets-3.2.0 lib/jets/stack/main/dsl/cloudwatch.rb
jets-3.1.5 lib/jets/stack/main/dsl/cloudwatch.rb
jets-3.1.4 lib/jets/stack/main/dsl/cloudwatch.rb
jets-3.1.3 lib/jets/stack/main/dsl/cloudwatch.rb