:doc:`IoTTwinMaker <../../iottwinmaker>` / Client / list_component_types

********************
list_component_types
********************



.. py:method:: IoTTwinMaker.Client.list_component_types(**kwargs)

  

  Lists all component types in a workspace.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iottwinmaker-2021-11-29/ListComponentTypes>`_  


  **Request Syntax**
  ::

    response = client.list_component_types(
        workspaceId='string',
        filters=[
            {
                'extendsFrom': 'string',
                'namespace': 'string',
                'isAbstract': True|False
            },
        ],
        nextToken='string',
        maxResults=123
    )
    
  :type workspaceId: string
  :param workspaceId: **[REQUIRED]** 

    The ID of the workspace.

    

  
  :type filters: list
  :param filters: 

    A list of objects that filter the request.

    

  
    - *(dict) --* 

      An object that filters items in a list of component types.

       

      .. note::

        

        Only one object is accepted as a valid input.

        

      .. note::    This is a Tagged Union structure. Only one of the     following top level keys can be set: ``extendsFrom``, ``namespace``, ``isAbstract``. 

    
      - **extendsFrom** *(string) --* 

        The component type that the component types in the list extend.

        

      
      - **namespace** *(string) --* 

        The namespace to which the component types in the list belong.

        

      
      - **isAbstract** *(boolean) --* 

        A Boolean value that specifies whether the component types in the list are abstract.

        

      
    

  :type nextToken: string
  :param nextToken: 

    The string that specifies the next page of results.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to return at one time. The default is 25.

     

    Valid Range: Minimum value of 1. Maximum value of 250.

    

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

    
    ::

      {
          'workspaceId': 'string',
          'componentTypeSummaries': [
              {
                  'arn': 'string',
                  'componentTypeId': 'string',
                  'creationDateTime': datetime(2015, 1, 1),
                  'updateDateTime': datetime(2015, 1, 1),
                  'description': 'string',
                  'status': {
                      'state': 'CREATING'|'UPDATING'|'DELETING'|'ACTIVE'|'ERROR',
                      'error': {
                          'code': 'VALIDATION_ERROR'|'INTERNAL_FAILURE'|'SYNC_INITIALIZING_ERROR'|'SYNC_CREATING_ERROR'|'SYNC_PROCESSING_ERROR'|'SYNC_DELETING_ERROR'|'PROCESSING_ERROR'|'COMPOSITE_COMPONENT_FAILURE',
                          'message': 'string'
                      }
                  },
                  'componentTypeName': 'string'
              },
          ],
          'nextToken': 'string',
          'maxResults': 123
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **workspaceId** *(string) --* 

        The ID of the workspace.

        
      

      - **componentTypeSummaries** *(list) --* 

        A list of objects that contain information about the component types.

        
        

        - *(dict) --* 

          An object that contains information about a component type.

          
          

          - **arn** *(string) --* 

            The ARN of the component type.

            
          

          - **componentTypeId** *(string) --* 

            The ID of the component type.

            
          

          - **creationDateTime** *(datetime) --* 

            The date and time when the component type was created.

            
          

          - **updateDateTime** *(datetime) --* 

            The date and time when the component type was last updated.

            
          

          - **description** *(string) --* 

            The description of the component type.

            
          

          - **status** *(dict) --* 

            The current status of the component type.

            
            

            - **state** *(string) --* 

              The current state of the entity, component, component type, or workspace.

              
            

            - **error** *(dict) --* 

              The error message.

              
              

              - **code** *(string) --* 

                The error code.

                
              

              - **message** *(string) --* 

                The error message.

                
          
        
          

          - **componentTypeName** *(string) --* 

            The component type name.

            
      
    
      

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

        The string that specifies the next page of results.

        
      

      - **maxResults** *(integer) --* 

        Specifies the maximum number of results to display.

        
  
  **Exceptions**
  
  *   :py:class:`IoTTwinMaker.Client.exceptions.InternalServerException`

  
  *   :py:class:`IoTTwinMaker.Client.exceptions.AccessDeniedException`

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

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

  