Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessYAML ¶
func ProcessYAML(input []byte, options *ProcessorOptions) ([]byte, error)
ProcessYAML recursively searches through a byte array of JSON data for all AWS CloudFormation intrinsic functions, resolves them, and then returns the resulting interface{} object.
Types ¶
type IntrinsicHandler ¶
type IntrinsicHandler func(string, interface{}, interface{}) interface{}
IntrinsicHandler is a function that applies an intrinsic function and returns the response that should be placed in it's place. An intrinsic handler function is passed the name of the intrinsic function (e.g. Fn::Join), and the object to apply it to (as an interface{}), and should return the resolved object (as an interface{}).
type ProcessorOptions ¶
type ProcessorOptions struct { IntrinsicHandlerOverrides map[string]IntrinsicHandler ParameterOverrides map[string]interface{} NoProcess bool ProcessOnlyGlobals bool EvaluateConditions bool }
ProcessorOptions allows customisation of the intrinsic function processor behaviour. This allows disabling the processing of intrinsics, overriding of the handlers for each intrinsic function type, and overriding template parameters.