@classmethod<EOL><INDENT>def _validate_logical_id(cls, logical_id):<DEDENT>
pattern = re.compile(r'<STR_LIT>')<EOL>if logical_id is not None and pattern.match(logical_id):<EOL><INDENT>return True<EOL><DEDENT>raise InvalidResourceException(logical_id, "<STR_LIT>")<EOL>
Validates that the provided logical id is an alphanumeric string.

        :param str logical_id: the logical id to validate
        :returns: True if the logical id is valid
        :rtype: bool
        :raises TypeError: if the logical id is invalid