Class: CfnDsl::ParameterDefinition

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

Overview

Handles input parameter objects

Constant Summary

Constants included from Functions

Functions::FN_SUB_SCANNER

Instance Method Summary collapse

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

#initializeParameterDefinition

Returns a new instance of ParameterDefinition.



11
12
13
# File 'lib/cfndsl/parameters.rb', line 11

def initialize
  @Type = :String
end

Instance Method Details

#CommaDelimitedListObject



23
24
25
# File 'lib/cfndsl/parameters.rb', line 23

def CommaDelimitedList
  @Type = :CommaDelimitedList
end

#NumberObject



19
20
21
# File 'lib/cfndsl/parameters.rb', line 19

def Number
  @Type = :Number
end

#StringObject



15
16
17
# File 'lib/cfndsl/parameters.rb', line 15

def String
  @Type = :String
end

#to_hashObject



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