Sha256: edff2482cfac675fa5ea57e0cc698baad268057cef9290cfcab1d6592edcaebd

Contents?: true

Size: 636 Bytes

Versions: 52

Compression:

Stored size: 636 Bytes

Contents

require 'cfndsl/JSONable'

module CfnDsl  
  
  class ParameterDefinition < JSONable
    ##
    # Handles input parameter objects
    dsl_attr_setter :Type, :Default, :NoEcho, :AllowedValues, :AllowedPattern, :MaxLength, :MinLength, :MaxValue, :MinValue, :Description, :ConstraintDescription
    def initialize
      @Type = :String
    end
    
    def String
      @Type = :String
    end
    
    def Number
      @Type = :Number
    end
    
    def CommaDelimitedList
      @Type = :CommaDelimitedList
    end
   
    def to_hash()
      h = {}
      h[:Type] = @Type;
      h[:Default] = @Default if @Default
    end
  end
  
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
cfndsl-0.4.4 lib/cfndsl/Parameters.rb
cfndsl-0.4.3 lib/cfndsl/Parameters.rb
cfndsl-0.4.2 lib/cfndsl/Parameters.rb
cfndsl-0.4.1 lib/cfndsl/Parameters.rb
cfndsl-0.4.0 lib/cfndsl/Parameters.rb
cfndsl-0.3.6 lib/cfndsl/Parameters.rb
cfndsl-0.3.5 lib/cfndsl/Parameters.rb
cfndsl-0.3.4 lib/cfndsl/Parameters.rb
cfndsl-0.3.3 lib/cfndsl/Parameters.rb
cfndsl-0.3.2 lib/cfndsl/Parameters.rb
cfndsl-0.3.1 lib/cfndsl/Parameters.rb
cfndsl-0.2.9 lib/cfndsl/Parameters.rb
cfndsl-0.2.8 lib/cfndsl/Parameters.rb
cfndsl-0.3.0 lib/cfndsl/Parameters.rb
cfndsl-0.2.7 lib/cfndsl/Parameters.rb
cfndsl-0.2.4 lib/cfndsl/Parameters.rb
cfndsl-0.2.3 lib/cfndsl/Parameters.rb
cfndsl-0.2.2 lib/cfndsl/Parameters.rb
cfndsl-0.2.1 lib/cfndsl/Parameters.rb
cfndsl-0.2.0 lib/cfndsl/Parameters.rb