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

*****************
get_service_index
*****************



.. py:method:: ResourceExplorer.Client.get_service_index()

  

  Retrieves information about the Resource Explorer index in the current Amazon Web Services Region. This operation returns the ARN and type of the index if one exists.

  

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


  **Request Syntax**

  ::

    response = client.get_service_index()
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Arn': 'string',
          'Type': 'LOCAL'|'AGGREGATOR'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        The Amazon Resource Name (ARN) of the Resource Explorer index in the current Region.

        
      

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

        The type of the index. Valid values are ``LOCAL`` (contains resources from the current Region only) or ``AGGREGATOR`` (contains replicated resource information from all Regions).

        
  
  **Exceptions**
  
  *   :py:class:`ResourceExplorer.Client.exceptions.ResourceNotFoundException`

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

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

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

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

  