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

************************
get_function_concurrency
************************



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

  

  Returns details about the reserved concurrency configuration for a function. To set a concurrency limit for a function, use  PutFunctionConcurrency.

  

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


  **Request Syntax**
  ::

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

    The name or ARN of the Lambda function.

     

    **Name formats**

     

    
    * **Function name** – ``my-function``.
     
    * **Function ARN** – ``arn:aws:lambda:us-west-2:123456789012:function:my-function``.
     
    * **Partial ARN** – ``123456789012:function:my-function``.
    

     

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

    

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

    
    ::

      {
          'ReservedConcurrentExecutions': 123
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ReservedConcurrentExecutions** *(integer) --* 

        The number of simultaneous executions that are reserved for the function.

        
  
  **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`

  

  **Examples**

  The following example returns the reserved concurrency setting for a function named my-function.
  ::

    response = client.get_function_concurrency(
        FunctionName='my-function',
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'ReservedConcurrentExecutions': 250,
        'ResponseMetadata': {
            '...': '...',
        },
    }

  