@staticmethod<EOL><INDENT>def _extract_functions(resources):<DEDENT>
result = {}<EOL>for name, resource in resources.items():<EOL><INDENT>resource_type = resource.get("<STR_LIT>")<EOL>resource_properties = resource.get("<STR_LIT>", {})<EOL>if resource_type == SamFunctionProvider._SERVERLESS_FUNCTION:<EOL><INDENT>layers = SamFunctionProvider._parse_layer_info(resource_properties.get("<STR_LIT>", []), resources)<EOL>result[name] = SamFunctionProvider._convert_sam_function_resource(name, resource_properties, layers)<EOL><DEDENT>elif resource_type == SamFunctionProvider._LAMBDA_FUNCTION:<EOL><INDENT>layers = SamFunctionProvider._parse_layer_info(resource_properties.get("<STR_LIT>", []), resources)<EOL>result[name] = SamFunctionProvider._convert_lambda_function_resource(name, resource_properties, layers)<EOL><DEDENT><DEDENT>return result<EOL>
Extracts and returns function information from the given dictionary of SAM/CloudFormation resources. This
method supports functions defined with AWS::Serverless::Function and AWS::Lambda::Function

:param dict resources: Dictionary of SAM/CloudFormation resources
:return dict(string : samcli.commands.local.lib.provider.Function): Dictionary of function LogicalId to the
    Function configuration object