:doc:`GreengrassV2 <../../greengrassv2>` / Client / list_component_versions

***********************
list_component_versions
***********************



.. py:method:: GreengrassV2.Client.list_component_versions(**kwargs)

  

  Retrieves a paginated list of all versions for a component. Greater versions are listed first.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/greengrassv2-2020-11-30/ListComponentVersions>`_  


  **Request Syntax**
  ::

    response = client.list_component_versions(
        arn='string',
        maxResults=123,
        nextToken='string'
    )
    
  :type arn: string
  :param arn: **[REQUIRED]** 

    The `ARN <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`__ of the component.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to be returned per paginated request.

    

  
  :type nextToken: string
  :param nextToken: 

    The token to be used for the next set of paginated results.

    

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

    
    ::

      {
          'componentVersions': [
              {
                  'componentName': 'string',
                  'componentVersion': 'string',
                  'arn': 'string'
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **componentVersions** *(list) --* 

        A list of versions that exist for the component.

        
        

        - *(dict) --* 

          Contains information about a component version in a list.

          
          

          - **componentName** *(string) --* 

            The name of the component.

            
          

          - **componentVersion** *(string) --* 

            The version of the component.

            
          

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

            The `ARN <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`__ of the component version.

            
      
    
      

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

        The token for the next set of results, or null if there are no additional results.

        
  
  **Exceptions**
  
  *   :py:class:`GreengrassV2.Client.exceptions.ValidationException`

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

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

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

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

  