@staticmethod<EOL><INDENT>def _extract_apis_from_events(function_logical_id, serverless_function_events, collector):<DEDENT>
count = <NUM_LIT:0><EOL>for _, event in serverless_function_events.items():<EOL><INDENT>if SamApiProvider._FUNCTION_EVENT_TYPE_API == event.get(SamApiProvider._TYPE):<EOL><INDENT>api_resource_id, api = SamApiProvider._convert_event_api(function_logical_id, event.get("<STR_LIT>"))<EOL>collector.add_apis(api_resource_id, [api])<EOL>count += <NUM_LIT:1><EOL><DEDENT><DEDENT>LOG.debug("<STR_LIT>", count, function_logical_id)<EOL>
Given an AWS::Serverless::Function Event Dictionary, extract out all 'Api' events and store  within the
collector

Parameters
----------
function_logical_id : str
    LogicalId of the AWS::Serverless::Function

serverless_function_events : dict
    Event Dictionary of a AWS::Serverless::Function

collector : ApiCollector
    Instance of the API collector that where we will save the API information