def _get_invoke_config(self, function):
env_vars = self._make_env_vars(function)<EOL>code_abs_path = resolve_code_path(self.cwd, function.codeuri)<EOL>LOG.debug("<STR_LIT>", code_abs_path)<EOL>function_timeout = function.timeout<EOL>if self.is_debugging():<EOL><INDENT>function_timeout = self.MAX_DEBUG_TIMEOUT<EOL><DEDENT>return FunctionConfig(name=function.name,<EOL>runtime=function.runtime,<EOL>handler=function.handler,<EOL>code_abs_path=code_abs_path,<EOL>layers=function.layers,<EOL>memory=function.memory,<EOL>timeout=function_timeout,<EOL>env_vars=env_vars)<EOL>
Returns invoke configuration to pass to Lambda Runtime to invoke the given function

:param samcli.commands.local.lib.provider.Function function: Lambda function to generate the configuration for
:return samcli.local.lambdafn.config.FunctionConfig: Function configuration to pass to Lambda runtime