:doc:`Inspector <../../inspector>` / Client / list_exclusions

***************
list_exclusions
***************



.. py:method:: Inspector.Client.list_exclusions(**kwargs)

  

  List exclusions that are generated by the assessment run.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListExclusions>`_  


  **Request Syntax**
  ::

    response = client.list_exclusions(
        assessmentRunArn='string',
        nextToken='string',
        maxResults=123
    )
    
  :type assessmentRunArn: string
  :param assessmentRunArn: **[REQUIRED]** 

    The ARN of the assessment run that generated the exclusions that you want to list.

    

  
  :type nextToken: string
  :param nextToken: 

    You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListExclusionsRequest action. Subsequent calls to the action fill nextToken in the request with the value of nextToken from the previous response to continue listing data.

    

  
  :type maxResults: integer
  :param maxResults: 

    You can use this parameter to indicate the maximum number of items you want in the response. The default value is 100. The maximum value is 500.

    

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

    
    ::

      {
          'exclusionArns': [
              'string',
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **exclusionArns** *(list) --* 

        A list of exclusions' ARNs returned by the action.

        
        

        - *(string) --* 
    
      

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

        When a response is generated, if there is more data to be listed, this parameters is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.

        
  
  **Exceptions**
  
  *   :py:class:`Inspector.Client.exceptions.InternalException`

  
  *   :py:class:`Inspector.Client.exceptions.InvalidInputException`

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

  
  *   :py:class:`Inspector.Client.exceptions.NoSuchEntityException`

  