:doc:`Lambda <../../lambda>` / Client / get_function_recursion_config

*****************************
get_function_recursion_config
*****************************



.. py:method:: Lambda.Client.get_function_recursion_config(**kwargs)

  

  Returns your function's `recursive loop detection <https://docs.aws.amazon.com/lambda/latest/dg/invocation-recursion.html>`__ configuration.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionRecursionConfig>`_  


  **Request Syntax**
  ::

    response = client.get_function_recursion_config(
        FunctionName='string'
    )
    
  :type FunctionName: string
  :param FunctionName: **[REQUIRED]** 

    The name of the function.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'RecursiveLoop': 'Allow'|'Terminate'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **RecursiveLoop** *(string) --* 

        If your function's recursive loop detection configuration is ``Allow``, Lambda doesn't take any action when it detects your function being invoked as part of a recursive loop.

         

        If your function's recursive loop detection configuration is ``Terminate``, Lambda stops your function being invoked and notifies you when it detects your function being invoked as part of a recursive loop.

         

        By default, Lambda sets your function's configuration to ``Terminate``. You can update this configuration using the  PutFunctionRecursionConfig action.

        
  
  **Exceptions**
  
  *   :py:class:`Lambda.Client.exceptions.InvalidParameterValueException`

  
  *   :py:class:`Lambda.Client.exceptions.ServiceException`

  
  *   :py:class:`Lambda.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`Lambda.Client.exceptions.ResourceNotFoundException`

  