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

Version Path
jets-5.0.13 lib/jets/stack/main/dsl/cloudwatch.rb
jets-5.0.12 lib/jets/stack/main/dsl/cloudwatch.rb
jets-5.0.11 lib/jets/stack/main/dsl/cloudwatch.rb
jets-5.0.10 lib/jets/stack/main/dsl/cloudwatch.rb
jets-5.0.9 lib/jets/stack/main/dsl/cloudwatch.rb
jets-5.0.8 lib/jets/stack/main/dsl/cloudwatch.rb
jets-5.0.7 lib/jets/stack/main/dsl/cloudwatch.rb
jets-5.0.6 lib/jets/stack/main/dsl/cloudwatch.rb
jets-5.0.5 lib/jets/stack/main/dsl/cloudwatch.rb
jets-5.0.4 lib/jets/stack/main/dsl/cloudwatch.rb
jets-5.0.3 lib/jets/stack/main/dsl/cloudwatch.rb
jets-5.0.2 lib/jets/stack/main/dsl/cloudwatch.rb
jets-5.0.1 lib/jets/stack/main/dsl/cloudwatch.rb
jets-5.0.0 lib/jets/stack/main/dsl/cloudwatch.rb
jets-5.0.0.beta1 lib/jets/stack/main/dsl/cloudwatch.rb