:doc:`Snowball <../../snowball>` / Client / list_service_versions

*********************
list_service_versions
*********************



.. py:method:: Snowball.Client.list_service_versions(**kwargs)

  

  Lists all supported versions for Snow on-device services. Returns an array of ``ServiceVersion`` object containing the supported versions for a particular service.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/ListServiceVersions>`_  


  **Request Syntax**
  ::

    response = client.list_service_versions(
        ServiceName='KUBERNETES'|'EKS_ANYWHERE',
        DependentServices=[
            {
                'ServiceName': 'KUBERNETES'|'EKS_ANYWHERE',
                'ServiceVersion': {
                    'Version': 'string'
                }
            },
        ],
        MaxResults=123,
        NextToken='string'
    )
    
  :type ServiceName: string
  :param ServiceName: **[REQUIRED]** 

    The name of the service for which you're requesting supported versions.

    

  
  :type DependentServices: list
  :param DependentServices: 

    A list of names and versions of dependant services of the requested service.

    

  
    - *(dict) --* 

      The name and version of the service dependant on the requested service.

      

    
      - **ServiceName** *(string) --* 

        The name of the dependent service.

        

      
      - **ServiceVersion** *(dict) --* 

        The version of the dependent service.

        

      
        - **Version** *(string) --* 

          The version number of the requested service.

          

        
      
    

  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of ``ListServiceVersions`` objects to return.

    

  
  :type NextToken: string
  :param NextToken: 

    Because HTTP requests are stateless, this is the starting point for the next list of returned ``ListServiceVersionsRequest`` versions.

    

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

    
    ::

      {
          'ServiceVersions': [
              {
                  'Version': 'string'
              },
          ],
          'ServiceName': 'KUBERNETES'|'EKS_ANYWHERE',
          'DependentServices': [
              {
                  'ServiceName': 'KUBERNETES'|'EKS_ANYWHERE',
                  'ServiceVersion': {
                      'Version': 'string'
                  }
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ServiceVersions** *(list) --* 

        A list of supported versions.

        
        

        - *(dict) --* 

          The version of the requested service.

          
          

          - **Version** *(string) --* 

            The version number of the requested service.

            
      
    
      

      - **ServiceName** *(string) --* 

        The name of the service for which the system provided supported versions.

        
      

      - **DependentServices** *(list) --* 

        A list of names and versions of dependant services of the service for which the system provided supported versions.

        
        

        - *(dict) --* 

          The name and version of the service dependant on the requested service.

          
          

          - **ServiceName** *(string) --* 

            The name of the dependent service.

            
          

          - **ServiceVersion** *(dict) --* 

            The version of the dependent service.

            
            

            - **Version** *(string) --* 

              The version number of the requested service.

              
        
      
    
      

      - **NextToken** *(string) --* 

        Because HTTP requests are stateless, this is the starting point of the next list of returned ``ListServiceVersionsResult`` results.

        
  
  **Exceptions**
  
  *   :py:class:`Snowball.Client.exceptions.InvalidNextTokenException`

  
  *   :py:class:`Snowball.Client.exceptions.InvalidResourceException`

  