#NEWLINE# def remove_permission( FunctionName , StatementId , Qualifier = None , region = None , key = None , keyid = None , profile = None ) : #NEWLINE# #INDENT# '\n    Remove a permission from a lambda function.\n\n    Returns {removed: true} if the permission was removed and returns\n    {removed: False} if the permission was not removed.\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt myminion boto_lamba.remove_permission my_function my_id\n\n    ' #NEWLINE# try : #NEWLINE# #INDENT# conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) #NEWLINE# kwargs = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if ( Qualifier is not None ) : #NEWLINE# #INDENT# kwargs [ 'Qualifier' ] = Qualifier #NEWLINE# #UNINDENT# conn . remove_permission ( FunctionName = FunctionName , StatementId = StatementId , ** kwargs ) #NEWLINE# return { #NEWLINE# #INDENT# 'updated' : True , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# except ClientError as e : #NEWLINE# #INDENT# return { #NEWLINE# #INDENT# 'updated' : False , #NEWLINE# 'error' : salt . utils . boto3 . get_error ( e ) , #NEWLINE# #UNINDENT# }