CloudFormation template parser
npm install @cfn2/parserCloudFormation template parser.
```
npm i @cfn2/parser
- options.anyResourceTypeParseroptions.resourceTypeParser
- A parser to parse a resource that is not defined in .(dataRef, context, callback)
- The parser must be a function that has arguments .options.resourceTypeParsers
- (dataRef, context, callback)
- An object that defines parsers to parse CloudFormation resources.
- A key of this object must be a string of a CloudFormation resource type.
- A value of this object must be a function that has arguments .options.schemaMap
-
This function returns the following function:
` javascript`
parser(template, context, callback)
- templatecontext
- An object of CloudFormation template.
- callback(err, context)`
-
- A function that is called when parsing template is completed, or an error occurs.
MIT