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

**********
list_views
**********



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

  

  Returns views in the given instance.

   

  Results are sorted primarily by type, and secondarily by name.

  

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


  **Request Syntax**
  ::

    response = client.list_views(
        InstanceId='string',
        Type='CUSTOMER_MANAGED'|'AWS_MANAGED',
        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 Type: string
  :param Type: 

    The type of the view.

    

  
  :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**

    
    ::

      {
          'ViewsSummaryList': [
              {
                  'Id': 'string',
                  'Arn': 'string',
                  'Name': 'string',
                  'Type': 'CUSTOMER_MANAGED'|'AWS_MANAGED',
                  'Status': 'PUBLISHED'|'SAVED',
                  'Description': 'string'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ViewsSummaryList** *(list) --* 

        A list of view summaries.

        
        

        - *(dict) --* 

          A summary of a view's metadata.

          
          

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

            The identifier of the view.

            
          

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

            The Amazon Resource Name (ARN) of the view.

            
          

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

            The name of the view.

            
          

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

            The type of the view.

            
          

          - **Status** *(string) --* 

            Indicates the view status as either ``SAVED`` or ``PUBLISHED``. The ``PUBLISHED`` status will initiate validation on the content.

            
          

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

            The description of the view.

            
      
    
      

      - **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`

  