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

*******************************************
list_function_versions_by_capacity_provider
*******************************************



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

  

  Returns a list of function versions that are configured to use a specific capacity provider.

  

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


  **Request Syntax**
  ::

    response = client.list_function_versions_by_capacity_provider(
        CapacityProviderName='string',
        Marker='string',
        MaxItems=123
    )
    
  :type CapacityProviderName: string
  :param CapacityProviderName: **[REQUIRED]** 

    The name of the capacity provider to list function versions for.

    

  
  :type Marker: string
  :param Marker: 

    Specify the pagination token that's returned by a previous request to retrieve the next page of results.

    

  
  :type MaxItems: integer
  :param MaxItems: 

    The maximum number of function versions to return in the response.

    

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

    
    ::

      {
          'CapacityProviderArn': 'string',
          'FunctionVersions': [
              {
                  'FunctionArn': 'string',
                  'State': 'Pending'|'Active'|'Inactive'|'Failed'|'Deactivating'|'Deactivated'|'ActiveNonInvocable'|'Deleting'
              },
          ],
          'NextMarker': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **CapacityProviderArn** *(string) --* 

        The Amazon Resource Name (ARN) of the capacity provider.

        
      

      - **FunctionVersions** *(list) --* 

        A list of function versions that use the specified capacity provider.

        
        

        - *(dict) --* 

          Information about a function version that uses a specific capacity provider, including its ARN and current state.

          
          

          - **FunctionArn** *(string) --* 

            The Amazon Resource Name (ARN) of the function version.

            
          

          - **State** *(string) --* 

            The current state of the function version.

            
      
    
      

      - **NextMarker** *(string) --* 

        The pagination token that's included if more results are available.

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

  