def _check_for_dictionary_key(self, logical_id, dictionary, keys):
for key in keys:<EOL><INDENT>if key not in dictionary:<EOL><INDENT>raise InvalidResourceException(logical_id, '<STR_LIT>'<EOL>'<STR_LIT>'.format(key))<EOL><DEDENT><DEDENT>
Checks a dictionary to make sure it has a specific key. If it does not, an
InvalidResourceException is thrown.

:param string logical_id: logical id of this resource
:param dict dictionary: the dictionary to check
:param list keys: list of keys that should exist in the dictionary