Class: CfnDsl::ParameterDefinition
- Defined in:
- lib/cfndsl/parameters.rb
Overview
Handles input parameter objects
Constant Summary
Constants included from Functions
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
#as_json, #declare, #external_parameters, external_parameters, #ref_children, #to_json
Methods included from Functions
#FnAnd, #FnBase64, #FnCidr, #FnEquals, #FnFindInMap, #FnGetAZs, #FnGetAtt, #FnIf, #FnImportValue, #FnJoin, #FnNot, #FnOr, #FnSelect, #FnSplit, #FnSub, #Ref
Methods included from RefCheck
#build_references, #ref_children
Constructor Details
#initialize ⇒ ParameterDefinition
Returns a new instance of ParameterDefinition.
11 12 13 |
# File 'lib/cfndsl/parameters.rb', line 11 def initialize @Type = :String end |
Instance Method Details
#CommaDelimitedList ⇒ Object
23 24 25 |
# File 'lib/cfndsl/parameters.rb', line 23 def CommaDelimitedList @Type = :CommaDelimitedList end |
#Number ⇒ Object
19 20 21 |
# File 'lib/cfndsl/parameters.rb', line 19 def Number @Type = :Number end |
#String ⇒ Object
15 16 17 |
# File 'lib/cfndsl/parameters.rb', line 15 def String @Type = :String end |
#to_hash ⇒ Object
27 28 29 30 31 |
# File 'lib/cfndsl/parameters.rb', line 27 def to_hash h = {} h[:Type] = @Type h[:Default] = @Default if @Default end |