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

*****************
get_configuration
*****************



.. py:method:: Inspector2.Client.get_configuration()

  

  Retrieves setting configurations for Inspector scans.

  

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


  **Request Syntax**
  ::

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

    
    ::

      {
          'ecrConfiguration': {
              'rescanDurationState': {
                  'rescanDuration': 'LIFETIME'|'DAYS_30'|'DAYS_180'|'DAYS_14'|'DAYS_60'|'DAYS_90',
                  'status': 'SUCCESS'|'PENDING'|'FAILED',
                  'updatedAt': datetime(2015, 1, 1),
                  'pullDateRescanDuration': 'DAYS_14'|'DAYS_30'|'DAYS_60'|'DAYS_90'|'DAYS_180',
                  'pullDateRescanMode': 'LAST_PULL_DATE'|'LAST_IN_USE_AT'
              }
          },
          'ec2Configuration': {
              'scanModeState': {
                  'scanMode': 'EC2_SSM_AGENT_BASED'|'EC2_HYBRID',
                  'scanModeStatus': 'SUCCESS'|'PENDING'
              }
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ecrConfiguration** *(dict) --* 

        Specifies how the ECR automated re-scan duration is currently configured for your environment.

        
        

        - **rescanDurationState** *(dict) --* 

          An object that contains details about the state of the ECR re-scan settings.

          
          

          - **rescanDuration** *(string) --* 

            The rescan duration configured for image push date.

            
          

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

            The status of changes to the ECR automated re-scan duration.

            
          

          - **updatedAt** *(datetime) --* 

            A timestamp representing when the last time the ECR scan duration setting was changed.

            
          

          - **pullDateRescanDuration** *(string) --* 

            The rescan duration configured for image pull date.

            
          

          - **pullDateRescanMode** *(string) --* 

            The pull date for the re-scan mode.

            
      
    
      

      - **ec2Configuration** *(dict) --* 

        Specifies how the Amazon EC2 automated scan mode is currently configured for your environment.

        
        

        - **scanModeState** *(dict) --* 

          An object that contains details about the state of the Amazon EC2 scan mode.

          
          

          - **scanMode** *(string) --* 

            The scan method that is applied to the instance.

            
          

          - **scanModeStatus** *(string) --* 

            The status of the Amazon EC2 scan mode setting.

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

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

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

  