MCPcopy Create free account
hub / github.com/aws-cloudformation/rain / InitNodes

Method InitNodes

cft/pkg/module.go:325–345  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

323}
324
325func (module *Module) InitNodes() {
326 // Locate the Resources: section in the module
327 _, moduleResources, _ := s11n.GetMapValue(module.Node, string(cft.Resources))
328 module.ResourcesNode = moduleResources
329
330 // Locate the Parameters: section in the module (might be nil)
331 _, moduleParams, _ := s11n.GetMapValue(module.Node, string(cft.Parameters))
332 module.ParametersNode = moduleParams
333
334 // Locate the Outputs: section in the module (might be nil)
335 _, moduleOutputs, _ := s11n.GetMapValue(module.Node, string(cft.Outputs))
336 module.OutputsNode = moduleOutputs
337
338 // Locate the Conditions: section in the module (might be nil)
339 _, moduleConditions, _ := s11n.GetMapValue(module.Node, string(cft.Conditions))
340 module.ConditionsNode = moduleConditions
341
342 // Locate the Modules: section in the module (might be nil)
343 _, moduleModules, _ := s11n.GetMapValue(module.Node, string(cft.Modules))
344 module.ModulesNode = moduleModules
345}
346
347// ProcessResources injects the module's resources into the output node
348func (module *Module) ProcessResources(outputNode *yaml.Node) error {

Callers 4

FnInvokeMethod · 0.95
TestProcessConditionsFunction · 0.95
processModuleFunction · 0.95
ProcessResourcesMethod · 0.95

Calls 1

GetMapValueFunction · 0.92

Tested by 1

TestProcessConditionsFunction · 0.76