Class: CfnDsl::ParameterDefinition
- Defined in:
- lib/cfndsl/Parameters.rb
Instance Method Summary collapse
- #CommaDelimitedList ⇒ Object
-
#initialize ⇒ ParameterDefinition
constructor
A new instance of ParameterDefinition.
- #Number ⇒ Object
- #String ⇒ Object
- #to_hash ⇒ Object
Methods inherited from JSONable
#declare, #incorrect_capitalization?, #method_missing, #ref_children, #titleize, #to_json
Methods included from Functions
#FnAnd, #FnBase64, #FnEquals, #FnFindInMap, #FnFormat, #FnGetAZs, #FnGetAtt, #FnIf, #FnJoin, #FnNot, #FnOr, #FnSelect, #Ref
Methods included from RefCheck
Constructor Details
#initialize ⇒ ParameterDefinition
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
#CommaDelimitedList ⇒ Object
21 22 23 |
# File 'lib/cfndsl/Parameters.rb', line 21 def CommaDelimitedList @Type = :CommaDelimitedList end |
#Number ⇒ Object
17 18 19 |
# File 'lib/cfndsl/Parameters.rb', line 17 def Number @Type = :Number end |
#String ⇒ Object
13 14 15 |
# File 'lib/cfndsl/Parameters.rb', line 13 def String @Type = :String end |
#to_hash ⇒ Object
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 |