Class: CfnDsl::ParameterDefinition

Inherits:
JSONable
  • Object
show all
Defined in:
lib/cfndsl.rb

Instance Method Summary collapse

Methods inherited from JSONable

#declare, #ref_children, #to_json

Methods included from Functions

#FnBase64, #FnFindInMap, #FnFormat, #FnGetAZs, #FnGetAtt, #FnJoin, #Ref

Methods included from RefCheck

#ref_children, #references

Constructor Details

#initializeParameterDefinition

Returns a new instance of ParameterDefinition.



348
349
350
# File 'lib/cfndsl.rb', line 348

def initialize
  @Type = :String
end

Instance Method Details

#CommaDelimitedListObject



360
361
362
# File 'lib/cfndsl.rb', line 360

def CommaDelimitedList
  @Type = :CommaDelimitedList
end

#NumberObject



356
357
358
# File 'lib/cfndsl.rb', line 356

def Number
  @Type = :Number
end

#StringObject



352
353
354
# File 'lib/cfndsl.rb', line 352

def String
  @Type = :String
end

#to_hashObject



364
365
366
367
368
# File 'lib/cfndsl.rb', line 364

def to_hash()
  h = {}
  h[:Type] = @Type;
  h[:Default] = @Default if @Default
end