:doc:`DeviceFarm <../../devicefarm>` / Client / list_instance_profiles

**********************
list_instance_profiles
**********************



.. py:method:: DeviceFarm.Client.list_instance_profiles(**kwargs)

  

  Returns information about all the instance profiles in an AWS account.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListInstanceProfiles>`_  


  **Request Syntax**
  ::

    response = client.list_instance_profiles(
        maxResults=123,
        nextToken='string'
    )
    
  :type maxResults: integer
  :param maxResults: 

    An integer that specifies the maximum number of items you want to return in the API response.

    

  
  :type nextToken: string
  :param nextToken: 

    An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

    

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

    
    ::

      {
          'instanceProfiles': [
              {
                  'arn': 'string',
                  'packageCleanup': True|False,
                  'excludeAppPackagesFromCleanup': [
                      'string',
                  ],
                  'rebootAfterUse': True|False,
                  'name': 'string',
                  'description': 'string'
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **instanceProfiles** *(list) --* 

        An object that contains information about your instance profiles.

        
        

        - *(dict) --* 

          Represents the instance profile.

          
          

          - **arn** *(string) --* 

            The Amazon Resource Name (ARN) of the instance profile.

            
          

          - **packageCleanup** *(boolean) --* 

            When set to ``true``, Device Farm removes app packages after a test run. The default value is ``false`` for private devices.

            
          

          - **excludeAppPackagesFromCleanup** *(list) --* 

            An array of strings containing the list of app packages that should not be cleaned up from the device after a test run completes.

             

            The list of packages is considered only if you set ``packageCleanup`` to ``true``.

            
            

            - *(string) --* 
        
          

          - **rebootAfterUse** *(boolean) --* 

            When set to ``true``, Device Farm reboots the instance after a test run. The default value is ``true``.

            
          

          - **name** *(string) --* 

            The name of the instance profile.

            
          

          - **description** *(string) --* 

            The description of the instance profile.

            
      
    
      

      - **nextToken** *(string) --* 

        An identifier that can be used in the next call to this operation to return the next set of items in the list.

        
  
  **Exceptions**
  
  *   :py:class:`DeviceFarm.Client.exceptions.ArgumentException`

  
  *   :py:class:`DeviceFarm.Client.exceptions.NotFoundException`

  
  *   :py:class:`DeviceFarm.Client.exceptions.LimitExceededException`

  
  *   :py:class:`DeviceFarm.Client.exceptions.ServiceAccountException`

  