#NEWLINE# def describe_function( FunctionName , region = None , key = None , keyid = None , profile = None ) : #NEWLINE# #INDENT# '\n    Given a function name describe its properties.\n\n    Returns a dictionary of interesting properties.\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt myminion boto_lambda.describe_function myfunction\n\n    ' #NEWLINE# try : #NEWLINE# #INDENT# func = _find_function ( FunctionName , region = region , key = key , keyid = keyid , profile = profile ) #NEWLINE# if func : #NEWLINE# #INDENT# keys = ( 'FunctionName' , 'Runtime' , 'Role' , 'Handler' , 'CodeSha256' , 'CodeSize' , 'Description' , 'Timeout' , 'MemorySize' , 'FunctionArn' , 'LastModified' , 'VpcConfig' ) #NEWLINE# return { #NEWLINE# #INDENT# 'function' : dict ( [ ( k , func . get ( k ) ) for k in keys ] ) , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return { #NEWLINE# #INDENT# 'function' : None , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# #UNINDENT# except ClientError as e : #NEWLINE# #INDENT# return { #NEWLINE# #INDENT# 'error' : salt . utils . boto3 . get_error ( e ) , #NEWLINE# #UNINDENT# }