@staticmethod<EOL><INDENT>def _convert_lambda_function_resource(name, resource_properties, layers):  <DEDENT>
<EOL>codeuri = SamFunctionProvider._extract_lambda_function_code(resource_properties, "<STR_LIT>")<EOL>LOG.debug("<STR_LIT>", name, codeuri)<EOL>return Function(<EOL>name=name,<EOL>runtime=resource_properties.get("<STR_LIT>"),<EOL>memory=resource_properties.get("<STR_LIT>"),<EOL>timeout=resource_properties.get("<STR_LIT>"),<EOL>handler=resource_properties.get("<STR_LIT>"),<EOL>codeuri=codeuri,<EOL>environment=resource_properties.get("<STR_LIT>"),<EOL>rolearn=resource_properties.get("<STR_LIT>"),<EOL>layers=layers<EOL>)<EOL>
Converts a AWS::Serverless::Function resource to a Function configuration usable by the provider.

:param string name: LogicalID of the resource NOTE: This is *not* the function name because not all functions
    declare a name
:param dict resource_properties: Properties of this resource
:return samcli.commands.local.lib.provider.Function: Function configuration