def get_function_config(cfg):
function_name = cfg.get('<STR_LIT>')<EOL>profile_name = cfg.get('<STR_LIT>')<EOL>aws_access_key_id = cfg.get('<STR_LIT>')<EOL>aws_secret_access_key = cfg.get('<STR_LIT>')<EOL>client = get_client(<EOL>'<STR_LIT>', profile_name, aws_access_key_id, aws_secret_access_key,<EOL>cfg.get('<STR_LIT>'),<EOL>)<EOL>try:<EOL><INDENT>return client.get_function(FunctionName=function_name)<EOL><DEDENT>except client.exceptions.ResourceNotFoundException as e:<EOL><INDENT>if '<STR_LIT>' in str(e):<EOL><INDENT>return False<EOL><DEDENT><DEDENT>
Check whether a function exists or not and return its config