@staticmethod<EOL><INDENT>def _convert_event_api(lambda_logical_id, event_properties):<DEDENT>
path = event_properties.get(SamApiProvider._EVENT_PATH)<EOL>method = event_properties.get(SamApiProvider._EVENT_METHOD)<EOL>api_resource_id = event_properties.get("<STR_LIT>", SamApiProvider._IMPLICIT_API_RESOURCE_ID)<EOL>if isinstance(api_resource_id, dict) and "<STR_LIT>" in api_resource_id:<EOL><INDENT>api_resource_id = api_resource_id["<STR_LIT>"]<EOL><DEDENT>if isinstance(api_resource_id, dict):<EOL><INDENT>LOG.debug("<STR_LIT>", event_properties)<EOL>raise InvalidSamDocumentException("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>.format(lambda_logical_id))<EOL><DEDENT>return api_resource_id, Api(path=path, method=method, function_name=lambda_logical_id)<EOL>
Converts a AWS::Serverless::Function's Event Property to an Api configuration usable by the provider.

:param str lambda_logical_id: Logical Id of the AWS::Serverless::Function
:param dict event_properties: Dictionary of the Event's Property
:return tuple: tuple of API resource name and Api namedTuple