def remove_permission(FunctionName, StatementId, Qualifier=None, region=None, key=None, keyid=None, profile=None):
 try:
  conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  kwargs = {}
  if (Qualifier is not None):
   kwargs['Qualifier'] = Qualifier
  conn.remove_permission(FunctionName=FunctionName, StatementId=StatementId, **kwargs)
  return {'updated': True}
 except ClientError as e:
  return {'updated': False, 'error': salt.utils.boto3.get_error(e)}

def remove_permission ( FunctionName , StatementId , Qualifier = None , region = None , key = None , keyid = None , profile = None ) : try : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) kwargs = { } if ( Qualifier is not None ) : kwargs [ 'Qualifier' ] = Qualifier conn . remove_permission ( FunctionName = FunctionName , StatementId = StatementId , ** kwargs ) return { 'updated' : True } except ClientError as e : return { 'updated' : False , 'error' : salt . utils . boto3 . get_error ( e ) }
remove a permission from a lambda function .