:doc:`Inspector2 <../../inspector2>` / Client / update_ec2_deep_inspection_configuration

****************************************
update_ec2_deep_inspection_configuration
****************************************



.. py:method:: Inspector2.Client.update_ec2_deep_inspection_configuration(**kwargs)

  

  Activates, deactivates Amazon Inspector deep inspection, or updates custom paths for your account.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/UpdateEc2DeepInspectionConfiguration>`_  


  **Request Syntax**
  ::

    response = client.update_ec2_deep_inspection_configuration(
        activateDeepInspection=True|False,
        packagePaths=[
            'string',
        ]
    )
    
  :type activateDeepInspection: boolean
  :param activateDeepInspection: 

    Specify ``TRUE`` to activate Amazon Inspector deep inspection in your account, or ``FALSE`` to deactivate. Member accounts in an organization cannot deactivate deep inspection, instead the delegated administrator for the organization can deactivate a member account using `BatchUpdateMemberEc2DeepInspectionStatus <https://docs.aws.amazon.com/inspector/v2/APIReference/API_BatchUpdateMemberEc2DeepInspectionStatus.html>`__.

    

  
  :type packagePaths: list
  :param packagePaths: 

    The Amazon Inspector deep inspection custom paths you are adding for your account.

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'packagePaths': [
              'string',
          ],
          'orgPackagePaths': [
              'string',
          ],
          'status': 'ACTIVATED'|'DEACTIVATED'|'PENDING'|'FAILED',
          'errorMessage': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **packagePaths** *(list) --* 

        The current Amazon Inspector deep inspection custom paths for your account.

        
        

        - *(string) --* 
    
      

      - **orgPackagePaths** *(list) --* 

        The current Amazon Inspector deep inspection custom paths for the organization.

        
        

        - *(string) --* 
    
      

      - **status** *(string) --* 

        The status of Amazon Inspector deep inspection in your account.

        
      

      - **errorMessage** *(string) --* 

        An error message explaining why new Amazon Inspector deep inspection custom paths could not be added.

        
  
  **Exceptions**
  
  *   :py:class:`Inspector2.Client.exceptions.ValidationException`

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

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

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

  