Module: Skywriter::Function
- Defined in:
- lib/skywriter/function.rb
Class Method Summary collapse
-
.and(*conditions) ⇒ Hash
Intrinsic conditional function Fn::And.
-
.base64(value) ⇒ Hash
Intrinsic function Fn::Base64.
-
.equals(left, right) ⇒ Hash
Intrinsic conditional function Fn::Equals.
-
.find_in_map(map, *keys) ⇒ Hash
Intrinsic function Fn::FindInMap.
-
.get_att(resource_name, attribute_name) ⇒ Hash
Intrinsic function Fn::GetAtt.
-
.get_azs(region = nil) ⇒ Hash
Intrinsic function Fn::GetAZs.
-
.if(condition, when_true, when_false) ⇒ Hash
Intrinsic conditional function Fn::If.
-
.join(sep, *values) ⇒ Hash
Intrinsic function Fn::Join.
-
.not(condition) ⇒ Hash
Intrinsic conditional function Fn::Not.
-
.or(*conditions) ⇒ Hash
Intrinsic conditional function Fn::Or.
-
.ref(logical_name) ⇒ Hash
Intrinstic function ‘Ref’.
-
.select(index, *values) ⇒ Hash
Intrinsic function Fn::Select.
Class Method Details
.and(*conditions) ⇒ Hash
Intrinsic conditional function Fn::And
86 87 88 |
# File 'lib/skywriter/function.rb', line 86 def self.and(*conditions) { "Fn::And" => conditions } end |
.base64(value) ⇒ Hash
Intrinsic function Fn::Base64
19 20 21 |
# File 'lib/skywriter/function.rb', line 19 def self.base64(value) { "Fn::Base64" => value } end |
.equals(left, right) ⇒ Hash
Intrinsic conditional function Fn::Equals
97 98 99 |
# File 'lib/skywriter/function.rb', line 97 def self.equals(left, right) { "Fn::Equals" => [left, right] } end |
.find_in_map(map, *keys) ⇒ Hash
Intrinsic function Fn::FindInMap
30 31 32 |
# File 'lib/skywriter/function.rb', line 30 def self.find_in_map(map, *keys) { "Fn::FindInMap" => Array(map) + keys } end |
.get_att(resource_name, attribute_name) ⇒ Hash
Intrinsic function Fn::GetAtt
41 42 43 |
# File 'lib/skywriter/function.rb', line 41 def self.get_att(resource_name, attribute_name) { "Fn::GetAtt" => [resource_name, attribute_name] } end |
.get_azs(region = nil) ⇒ Hash
Intrinsic function Fn::GetAZs
51 52 53 |
# File 'lib/skywriter/function.rb', line 51 def self.get_azs(region = nil) { "Fn::GetAZs" => region.to_s } end |
.if(condition, when_true, when_false) ⇒ Hash
Intrinsic conditional function Fn::If
109 110 111 |
# File 'lib/skywriter/function.rb', line 109 def self.if(condition, when_true, when_false) { "Fn::If" => [condition, when_true, when_false] } end |
.join(sep, *values) ⇒ Hash
Intrinsic function Fn::Join
62 63 64 |
# File 'lib/skywriter/function.rb', line 62 def self.join(sep, *values) { "Fn::Join" => [sep.to_s, values] } end |
.not(condition) ⇒ Hash
Intrinsic conditional function Fn::Not
119 120 121 |
# File 'lib/skywriter/function.rb', line 119 def self.not(condition) { "Fn::Not" => [condition] } end |
.or(*conditions) ⇒ Hash
Intrinsic conditional function Fn::Or
129 130 131 |
# File 'lib/skywriter/function.rb', line 129 def self.or(*conditions) { "Fn::Or" => conditions } end |
.ref(logical_name) ⇒ Hash
Intrinstic function ‘Ref’
9 10 11 |
# File 'lib/skywriter/function.rb', line 9 def self.ref(logical_name) { "Ref" => logical_name } end |
.select(index, *values) ⇒ Hash
Intrinsic function Fn::Select
73 74 75 |
# File 'lib/skywriter/function.rb', line 73 def self.select(index, *values) { "Fn::Select" => [index.to_s, values] } end |