UNPKG

409 BJavaScriptView Raw
1// Generated by CoffeeScript 1.10.0
2(function() {
3 module.exports.doesTemplateReferenceIAM = function(compiledTemplate) {
4 var key, ref, resource, template;
5 template = JSON.parse(compiledTemplate);
6 ref = template.Resources;
7 for (key in ref) {
8 resource = ref[key];
9 if (resource.Type.match('AWS::IAM::.*')) {
10 return true;
11 }
12 }
13 return false;
14 };
15
16}).call(this);