Sha256: c0fb2ed4e6ff6c7ed3958cf50fd842b776988faca35c3614155a679cd391860f

Contents?: true

Size: 561 Bytes

Versions: 8

Compression:

Stored size: 561 Bytes

Contents

class Ufo::Stack::Builder
  class Conditions < Base
    def build
      {
        CreateElbIsTrue: {
          "Fn::Equals": [{Ref: "CreateElb"}, true]
        },
        ElbTargetGroupIsBlank: {
          "Fn::Equals": [{Ref: "ElbTargetGroup"}, ""]
        },
        CreateTargetGroupIsTrue: {
          "Fn::And": [
            {Condition: "CreateElbIsTrue"},
            {Condition: "ElbTargetGroupIsBlank"},
          ]
        },
        EcsDesiredCountIsBlank: {
          "Fn::Equals": [{Ref: "EcsDesiredCount"}, ""]
        }
      }
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ufo-5.0.7 lib/ufo/stack/builder/conditions.rb
ufo-5.0.6 lib/ufo/stack/builder/conditions.rb
ufo-5.0.5 lib/ufo/stack/builder/conditions.rb
ufo-5.0.4 lib/ufo/stack/builder/conditions.rb
ufo-5.0.3 lib/ufo/stack/builder/conditions.rb
ufo-5.0.2 lib/ufo/stack/builder/conditions.rb
ufo-5.0.1 lib/ufo/stack/builder/conditions.rb
ufo-5.0.0 lib/ufo/stack/builder/conditions.rb