Documentation
¶
Index ¶
- func FnBase64(name string, input interface{}, template interface{}) interface{}
- func FnFindInMap(name string, input interface{}, template interface{}) interface{}
- func FnJoin(name string, input interface{}, template interface{}) interface{}
- func FnSelect(name string, input interface{}, template interface{}) interface{}
- func FnSplit(name string, input interface{}, template interface{}) interface{}
- func FnSub(name string, input interface{}, template interface{}) interface{}
- func Process(input []byte, options *ProcessorOptions) ([]byte, error)
- func Ref(name string, input interface{}, template interface{}) interface{}
- type IntrinsicHandler
- type ProcessorOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FnBase64 ¶
func FnBase64(name string, input interface{}, template interface{}) interface{}
FnBase64 resolves the 'Fn::Base64' AWS CloudFormation intrinsic function. See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-base64.htmlpackage intrinsics
func FnFindInMap ¶
func FnFindInMap(name string, input interface{}, template interface{}) interface{}
FnFindInMap resolves the 'Fn::FindInMap' AWS CloudFormation intrinsic function. See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-findinmap.html
func FnJoin ¶
func FnJoin(name string, input interface{}, template interface{}) interface{}
FnJoin resolves the 'Fn::Join' AWS CloudFormation intrinsic function. See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-join.html
func FnSelect ¶
func FnSelect(name string, input interface{}, template interface{}) interface{}
FnSelect resolves the 'Fn::Select' AWS CloudFormation intrinsic function. See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-select.html
func FnSplit ¶
func FnSplit(name string, input interface{}, template interface{}) interface{}
FnSplit resolves the 'Fn::Split' AWS CloudFormation intrinsic function. See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-split.html
func FnSub ¶
func FnSub(name string, input interface{}, template interface{}) interface{}
FnSub resolves the 'Fn::Sub' AWS CloudFormation intrinsic function. See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html
func Process ¶
func Process(input []byte, options *ProcessorOptions) ([]byte, error)
Process recursively searches through a byte array for all AWS CloudFormation intrinsic functions, resolves them, and then returns the resulting interface{} object.
func Ref ¶
func Ref(name string, input interface{}, template interface{}) interface{}
Ref resolves the 'Ref' AWS CloudFormation intrinsic function. Currently, this only resolves against CloudFormation Parameter default values See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html
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
}
ProcessorOptions allows customisation of the intrinsic function processor behaviour. Initially, this only allows overriding of the handlers for each intrinsic function type.