code: def list_function_versions(FunctionName,
                             region=None, key=None, keyid=None, profile=None):
      '''
      List the versions available for the given function.
  
      Returns list of function versions
  
      CLI Example:
  
      .. code-block:: yaml
  
          versions:
            - {...}
            - {...}
  
      '''
      try:
          conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
          vers = []
          for ret in __utils__['boto3.paged_call'](conn.list_versions_by_function,
                                                   FunctionName=FunctionName):
              vers.extend(ret['Versions'])
          if not bool(vers):
              log.warning('No versions found')
          return {'Versions': vers}
      except ClientError as e:
          return {'error': __utils__['boto3.get_error'](e)f list_function_versions(FunctionName,
                             region=None, key=None, keyid=None, profile=None):
      '''
      List the versions available for the given function.
  
      Returns list of function versions
  
      CLI Example:
  
      .. code-block:: yaml
  
          versions:
            - {...}
            - {...}
  
      '''
      try:
          conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
          vers = []
          for ret in __utils__['boto3.paged_call'](conn.list_versions_by_function,
                                                   FunctionName=FunctionName):
              vers.extend(ret['Versions'])
          if not bool(vers):
              log.warning('No versions found')
          return {'Versions': vers}
      except ClientError as e:
          return {'error': __utils__['boto3.get_error'](e)}
docs: List the versions available for the given function.
  
      Returns list of function versions
  
      CLI Example:
  
      .. code-block:: yaml
  
          versions:
            - {...}
            - {...}