:doc:`B2BI <../../b2bi>` / Client / list_capabilities

*****************
list_capabilities
*****************



.. py:method:: B2BI.Client.list_capabilities(**kwargs)

  

  Lists the capabilities associated with your Amazon Web Services account for your current or specified region. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/ListCapabilities>`_  


  **Request Syntax**
  ::

    response = client.list_capabilities(
        nextToken='string',
        maxResults=123
    )
    
  :type nextToken: string
  :param nextToken: 

    When additional results are obtained from the command, a ``NextToken`` parameter is returned in the output. You can then pass the ``NextToken`` parameter in a subsequent command to continue listing additional resources.

    

  
  :type maxResults: integer
  :param maxResults: 

    Specifies the maximum number of capabilities to return.

    

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

    
    ::

      {
          'capabilities': [
              {
                  'capabilityId': 'string',
                  'name': 'string',
                  'type': 'edi',
                  'createdAt': datetime(2015, 1, 1),
                  'modifiedAt': datetime(2015, 1, 1)
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **capabilities** *(list) --* 

        Returns one or more capabilities associated with this partnership.

        
        

        - *(dict) --* 

          Returns the capability summary details. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs.

          
          

          - **capabilityId** *(string) --* 

            Returns a system-assigned unique identifier for the capability.

            
          

          - **name** *(string) --* 

            The display name of the capability.

            
          

          - **type** *(string) --* 

            Returns the type of the capability. Currently, only ``edi`` is supported.

            
          

          - **createdAt** *(datetime) --* 

            Returns a timestamp for creation date and time of the capability.

            
          

          - **modifiedAt** *(datetime) --* 

            Returns a timestamp that identifies the most recent date and time that the capability was modified.

            
      
    
      

      - **nextToken** *(string) --* 

        When additional results are obtained from the command, a ``NextToken`` parameter is returned in the output. You can then pass the ``NextToken`` parameter in a subsequent command to continue listing additional resources.

        
  
  **Exceptions**
  
  *   :py:class:`B2BI.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`B2BI.Client.exceptions.ValidationException`

  
  *   :py:class:`B2BI.Client.exceptions.ThrottlingException`

  
  *   :py:class:`B2BI.Client.exceptions.InternalServerException`

  