def stop_logging(Name, region=None, key=None, keyid=None, profile=None):
 try:
  conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  conn.stop_logging(Name=Name)
  return {'stopped': True}
 except ClientError as e:
  return {'stopped': False, 'error': salt.utils.boto3.get_error(e)}

def stop_logging ( Name , region = None , key = None , keyid = None , profile = None ) : try : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) conn . stop_logging ( Name = Name ) return { 'stopped' : True } except ClientError as e : return { 'stopped' : False , 'error' : salt . utils . boto3 . get_error ( e ) }
stop logging for a trail returns {stopped: true} if the trail was stopped and returns {stopped: false} if the trail was not stopped .