def update_alias(FunctionName, Name, FunctionVersion=None, Description=None, region=None, key=None, keyid=None, profile=None):
 try:
  conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  args = {}
  if FunctionVersion:
   args['FunctionVersion'] = FunctionVersion
  if Description:
   args['Description'] = Description
  r = conn.update_alias(FunctionName=FunctionName, Name=Name, **args)
  if r:
   keys = ('Name', 'FunctionVersion', 'Description')
   return {'updated': True, 'alias': dict([(k, r.get(k)) for k in keys])}
  else:
   log.warning('Alias was not updated')
   return {'updated': False}
 except ClientError as e:
  return {'created': False, 'error': salt.utils.boto3.get_error(e)}

def update_alias ( FunctionName , Name , FunctionVersion = None , Description = None , region = None , key = None , keyid = None , profile = None ) : try : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) args = { } if FunctionVersion : args [ 'FunctionVersion' ] = FunctionVersion if Description : args [ 'Description' ] = Description r = conn . update_alias ( FunctionName = FunctionName , Name = Name , ** args ) if r : keys = ( 'Name' , 'FunctionVersion' , 'Description' ) return { 'updated' : True , 'alias' : dict ( [ ( k , r . get ( k ) ) for k in keys ] ) } else : log . warning ( 'Alias was not updated' ) return { 'updated' : False } except ClientError as e : return { 'created' : False , 'error' : salt . utils . boto3 . get_error ( e ) }
update the named alias to the configuration .