Class: CfnDsl::ParameterDefinition

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

Instance Method Summary collapse

Methods inherited from JSONable

#declare, #method_missing, #ref_children, #to_json

Methods included from Functions

#FnAnd, #FnBase64, #FnEquals, #FnFindInMap, #FnFormat, #FnGetAZs, #FnGetAtt, #FnIf, #FnJoin, #FnNot, #FnOr, #FnSelect, #Ref

Methods included from RefCheck

#ref_children, #references

Constructor Details

#initializeParameterDefinition

Returns a new instance of ParameterDefinition.



9
10
11
# File 'lib/cfndsl/Parameters.rb', line 9

def initialize
  @Type = :String
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class CfnDsl::JSONable

Instance Method Details

#CommaDelimitedListObject



21
22
23
# File 'lib/cfndsl/Parameters.rb', line 21

def CommaDelimitedList
  @Type = :CommaDelimitedList
end

#NumberObject



17
18
19
# File 'lib/cfndsl/Parameters.rb', line 17

def Number
  @Type = :Number
end

#StringObject



13
14
15
# File 'lib/cfndsl/Parameters.rb', line 13

def String
  @Type = :String
end

#to_hashObject



25
26
27
28
29
# File 'lib/cfndsl/Parameters.rb', line 25

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