Sha256: b667898428bb1232106f9e966da307006d6eed396c6b29033d71940c2bec095b

Contents?: true

Size: 406 Bytes

Versions: 9

Compression:

Stored size: 406 Bytes

Contents

require 'cfndsl/jsonable'

module CfnDsl
  # Handles creation policy objects for Resources
  #
  # Usage
  #   Resource("aaa") {
  #     CreationPolicy('ResourceSignal', { 'Count' => 1,  'Timeout' => 'PT10M' })
  #   }
  class CreationPolicyDefinition < JSONable
    attr_reader :value

    def initialize(value)
      @value = value
    end

    def to_json(*a)
      @value.to_json(*a)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cfndsl-0.7.0 lib/cfndsl/creation_policy.rb
cfndsl-0.6.2 lib/cfndsl/creation_policy.rb
cfndsl-0.6.1 lib/cfndsl/creation_policy.rb
cfndsl-0.6.0 lib/cfndsl/creation_policy.rb
cfndsl-0.5.2 lib/cfndsl/creation_policy.rb
cfndsl-0.5.1 lib/cfndsl/creation_policy.rb
cfndsl-0.5.0 lib/cfndsl/creation_policy.rb
cfndsl-0.5.1.pre lib/cfndsl/creation_policy.rb
cfndsl-0.5.0.pre lib/cfndsl/creation_policy.rb