Class: CfnDsl::OutputDefinition

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

Overview

Handles Output 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

#initialize(value = nil) ⇒ OutputDefinition

Returns a new instance of OutputDefinition.



14
15
16
# File 'lib/cfndsl/outputs.rb', line 14

def initialize(value = nil)
  @Value = value if value
end

Instance Method Details

#condition_refsObject



18
19
20
# File 'lib/cfndsl/outputs.rb', line 18

def condition_refs
  [@Condition].flatten.compact.map(&:to_s)
end

#Export(value) ⇒ Object



10
11
12
# File 'lib/cfndsl/outputs.rb', line 10

def Export(value)
  @Export = { 'Name' => value } if value
end