#NEWLINE# def describe_alias( FunctionName , Name , region = None , key = None , keyid = None , profile = None ) : #NEWLINE# #INDENT# '\n    Given a function name and alias name describe the properties of the alias.\n\n    Returns a dictionary of interesting properties.\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt myminion boto_lambda.describe_alias myalias\n\n    ' #NEWLINE# try : #NEWLINE# #INDENT# alias = _find_alias ( FunctionName , Name , region = region , key = key , keyid = keyid , profile = profile ) #NEWLINE# if alias : #NEWLINE# #INDENT# keys = ( 'AliasArn' , 'Name' , 'FunctionVersion' , 'Description' ) #NEWLINE# return { #NEWLINE# #INDENT# 'alias' : dict ( [ ( k , alias . get ( k ) ) for k in keys ] ) , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return { #NEWLINE# #INDENT# 'alias' : None , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# #UNINDENT# except ClientError as e : #NEWLINE# #INDENT# return { #NEWLINE# #INDENT# 'error' : salt . utils . boto3 . get_error ( e ) , #NEWLINE# #UNINDENT# }