:doc:`Connect <../../connect>` / Client / list_view_versions

******************
list_view_versions
******************



.. py:method:: Connect.Client.list_view_versions(**kwargs)

  

  Returns all the available versions for the specified Amazon Connect instance and view identifier.

   

  Results will be sorted from highest to lowest.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListViewVersions>`_  


  **Request Syntax**
  ::

    response = client.list_view_versions(
        InstanceId='string',
        ViewId='string',
        NextToken='string',
        MaxResults=123
    )
    
  :type InstanceId: string
  :param InstanceId: **[REQUIRED]** 

    The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

    

  
  :type ViewId: string
  :param ViewId: **[REQUIRED]** 

    The identifier of the view. Both ``ViewArn`` and ``ViewId`` can be used.

    

  
  :type NextToken: string
  :param NextToken: 

    The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to return per page. The default MaxResult size is 100.

    

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

    
    ::

      {
          'ViewVersionSummaryList': [
              {
                  'Id': 'string',
                  'Arn': 'string',
                  'Description': 'string',
                  'Name': 'string',
                  'Type': 'CUSTOMER_MANAGED'|'AWS_MANAGED',
                  'Version': 123,
                  'VersionDescription': 'string'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ViewVersionSummaryList** *(list) --* 

        A list of view version summaries.

        
        

        - *(dict) --* 

          A summary of a view version's metadata.

          
          

          - **Id** *(string) --* 

            The identifier of the view version.

            
          

          - **Arn** *(string) --* 

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

            
          

          - **Description** *(string) --* 

            The description of the view version.

            
          

          - **Name** *(string) --* 

            The name of the view version.

            
          

          - **Type** *(string) --* 

            The type of the view version.

            
          

          - **Version** *(integer) --* 

            The sequentially incremented version of the view version.

            
          

          - **VersionDescription** *(string) --* 

            The description of the view version.

            
      
    
      

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

        The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

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

  
  *   :py:class:`Connect.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`Connect.Client.exceptions.InvalidParameterException`

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

  
  *   :py:class:`Connect.Client.exceptions.InternalServiceException`

  
  *   :py:class:`Connect.Client.exceptions.TooManyRequestsException`

  