Class: Humidifier::Fn
- Inherits:
-
Object
- Object
- Humidifier::Fn
- Defined in:
- lib/humidifier/fn.rb
Overview
Builds CFN function calls
Constant Summary collapse
- FUNCTIONS =
The list of all internal functions provided by AWS from docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference.html
Utils.underscored(%w[And Base64 Equals FindInMap GetAtt GetAZs If ImportValue Join Not Or Select Sub])
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value) ⇒ Fn
constructor
A new instance of Fn.
-
#to_cf ⇒ Object
CFN stack syntax.
Constructor Details
#initialize(name, value) ⇒ Fn
Returns a new instance of Fn.
11 12 13 14 |
# File 'lib/humidifier/fn.rb', line 11 def initialize(name, value) self.name = "Fn::#{name}" self.value = value end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/humidifier/fn.rb', line 9 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
9 10 11 |
# File 'lib/humidifier/fn.rb', line 9 def value @value end |
Instance Method Details
#to_cf ⇒ Object
CFN stack syntax
17 18 19 |
# File 'lib/humidifier/fn.rb', line 17 def to_cf { name => value } end |