def all_details(client, module):
 if (module.params.get('max_items') or module.params.get('next_marker')):
  module.fail_json(msg='Cannot specify max_items nor next_marker for query=all.')
 lambda_facts = dict()
 function_name = module.params.get('function_name')
 if function_name:
  lambda_facts[function_name] = {}
  lambda_facts[function_name].update(config_details(client, module)[function_name])
  lambda_facts[function_name].update(alias_details(client, module)[function_name])
  lambda_facts[function_name].update(policy_details(client, module)[function_name])
  lambda_facts[function_name].update(version_details(client, module)[function_name])
  lambda_facts[function_name].update(mapping_details(client, module)[function_name])
 else:
  lambda_facts.update(config_details(client, module))
 return lambda_facts

def all_details ( client , module ) : if ( module . params . get ( 'max_items' ) or module . params . get ( 'next_marker' ) ) : module . fail_json ( msg = 'Cannot specify max_items nor next_marker for query=all.' ) lambda_facts = dict ( ) function_name = module . params . get ( 'function_name' ) if function_name : lambda_facts [ function_name ] = { } lambda_facts [ function_name ] . update ( config_details ( client , module ) [ function_name ] ) lambda_facts [ function_name ] . update ( alias_details ( client , module ) [ function_name ] ) lambda_facts [ function_name ] . update ( policy_details ( client , module ) [ function_name ] ) lambda_facts [ function_name ] . update ( version_details ( client , module ) [ function_name ] ) lambda_facts [ function_name ] . update ( mapping_details ( client , module ) [ function_name ] ) else : lambda_facts . update ( config_details ( client , module ) ) return lambda_facts
returns all lambda related facts .