def enforce_required_arguments(module):
 missing_args = []
 for arg in ('min_size', 'max_size', 'launch_config_name'):
  if (module.params[arg] is None):
   missing_args.append(arg)
 if missing_args:
  module.fail_json(msg=('Missing required arguments for autoscaling group create/update: %s' % ','.join(missing_args)))

def enforce_required_arguments ( module ) : missing_args = [ ] for arg in ( 'min_size' , 'max_size' , 'launch_config_name' ) : if ( module . params [ arg ] is None ) : missing_args . append ( arg ) if missing_args : module . fail_json ( msg = ( 'Missing required arguments for autoscaling group create/update: %s' % ',' . join ( missing_args ) ) )
as many arguments are not required for autoscale group deletion they cannot be mandatory arguments for the module .