def match()

in cfn-lint-custom-rules/rules/AMSAllowedRootKeys.py [0:0]


    def match(self, cfn):
        """AMS Supported Root Keys Matching"""
        matches = []

        top_level = [section for section in cfn.template]

        for section in top_level:
            if section not in self.required_keys:
                message = "AMS - Top level item {0} not supported by AMS"
                matches.append(RuleMatch([section], message.format(section)))

        return matches