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

*********************************
update_organization_configuration
*********************************



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

  

  Updates the configurations for your Amazon Inspector organization.

  

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


  **Request Syntax**
  ::

    response = client.update_organization_configuration(
        autoEnable={
            'ec2': True|False,
            'ecr': True|False,
            'lambda': True|False,
            'lambdaCode': True|False,
            'codeRepository': True|False
        }
    )
    
  :type autoEnable: dict
  :param autoEnable: **[REQUIRED]** 

    Defines which scan types are enabled automatically for new members of your Amazon Inspector organization.

    

  
    - **ec2** *(boolean) --* **[REQUIRED]** 

      Represents whether Amazon EC2 scans are automatically enabled for new members of your Amazon Inspector organization.

      

    
    - **ecr** *(boolean) --* **[REQUIRED]** 

      Represents whether Amazon ECR scans are automatically enabled for new members of your Amazon Inspector organization.

      

    
    - **lambda** *(boolean) --* 

      Represents whether Amazon Web Services Lambda standard scans are automatically enabled for new members of your Amazon Inspector organization.

      

    
    - **lambdaCode** *(boolean) --* 

      Represents whether Lambda code scans are automatically enabled for new members of your Amazon Inspector organization.

      

    
    - **codeRepository** *(boolean) --* 

      Represents whether code repository scans are automatically enabled for new members of your Amazon Inspector organization.

      

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

    
    ::

      {
          'autoEnable': {
              'ec2': True|False,
              'ecr': True|False,
              'lambda': True|False,
              'lambdaCode': True|False,
              'codeRepository': True|False
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **autoEnable** *(dict) --* 

        The updated status of scan types automatically enabled for new members of your Amazon Inspector organization.

        
        

        - **ec2** *(boolean) --* 

          Represents whether Amazon EC2 scans are automatically enabled for new members of your Amazon Inspector organization.

          
        

        - **ecr** *(boolean) --* 

          Represents whether Amazon ECR scans are automatically enabled for new members of your Amazon Inspector organization.

          
        

        - **lambda** *(boolean) --* 

          Represents whether Amazon Web Services Lambda standard scans are automatically enabled for new members of your Amazon Inspector organization.

          
        

        - **lambdaCode** *(boolean) --* 

          Represents whether Lambda code scans are automatically enabled for new members of your Amazon Inspector organization.

          
        

        - **codeRepository** *(boolean) --* 

          Represents whether code repository scans are automatically enabled for new members of your Amazon Inspector organization.

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

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

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

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

  