Class: CfnDsl::PropertyDefinition

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

Overview

Handles property objects for Resources

Usage

Resource("aaa") {
  Property("propName", "propValue" )
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from JSONable

#declare, #incorrect_capitalization?, #method_missing, #ref_children, #titleize

Methods included from Functions

#FnAnd, #FnBase64, #FnEquals, #FnFindInMap, #FnFormat, #FnGetAZs, #FnGetAtt, #FnIf, #FnJoin, #FnNot, #FnOr, #FnSelect, #Ref

Methods included from RefCheck

#build_references, #ref_children

Constructor Details

#initialize(value) ⇒ PropertyDefinition

Returns a new instance of PropertyDefinition.



13
14
15
# File 'lib/cfndsl/properties.rb', line 13

def initialize(value)
  @value = value
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class CfnDsl::JSONable

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



12
13
14
# File 'lib/cfndsl/properties.rb', line 12

def value
  @value
end

Instance Method Details

#to_json(*a) ⇒ Object



17
18
19
# File 'lib/cfndsl/properties.rb', line 17

def to_json(*a)
  @value.to_json(*a)
end