Class: CfnDsl::ParameterDefinition
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
Returns a new instance of ParameterDefinition.
348
349
350
|
# File 'lib/cfndsl.rb', line 348
def initialize
@Type = :String
end
|
Instance Method Details
#CommaDelimitedList ⇒ Object
360
361
362
|
# File 'lib/cfndsl.rb', line 360
def CommaDelimitedList
@Type = :CommaDelimitedList
end
|
#Number ⇒ Object
356
357
358
|
# File 'lib/cfndsl.rb', line 356
def Number
@Type = :Number
end
|
#String ⇒ Object
352
353
354
|
# File 'lib/cfndsl.rb', line 352
def String
@Type = :String
end
|
#to_hash ⇒ Object
364
365
366
367
368
|
# File 'lib/cfndsl.rb', line 364
def to_hash()
h = {}
h[:Type] = @Type;
h[:Default] = @Default if @Default
end
|