:doc:`ResourceExplorer <../../resource-explorer-2>` / Client / list_service_views

******************
list_service_views
******************



.. py:method:: ResourceExplorer.Client.list_service_views(**kwargs)

  

  Lists all Resource Explorer service views available in the current Amazon Web Services account. This operation returns the ARNs of available service views.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/resource-explorer-2-2022-07-28/ListServiceViews>`_  


  **Request Syntax**
  ::

    response = client.list_service_views(
        MaxResults=123,
        NextToken='string'
    )
    
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of service view results to return in a single response. Valid values are between ``1`` and ``50``.

    

  
  :type NextToken: string
  :param NextToken: 

    The pagination token from a previous ``ListServiceViews`` response. Use this token to retrieve the next set of results.

    

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

    
    ::

      {
          'NextToken': 'string',
          'ServiceViews': [
              'string',
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        The pagination token to use in a subsequent ``ListServiceViews`` request to retrieve the next set of results.

        
      

      - **ServiceViews** *(list) --* 

        A list of Amazon Resource Names (ARNs) for the service views available in the current Amazon Web Services account.

        
        

        - *(string) --* 
    
  
  **Exceptions**
  
  *   :py:class:`ResourceExplorer.Client.exceptions.InternalServerException`

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

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

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

  