:doc:`GuardDuty <../../guardduty>` / Client / stop_monitoring_members

***********************
stop_monitoring_members
***********************



.. py:method:: GuardDuty.Client.stop_monitoring_members(**kwargs)

  

  Stops GuardDuty monitoring for the specified member accounts. Use the ``StartMonitoringMembers`` operation to restart monitoring for those accounts.

   

  With ``autoEnableOrganizationMembers`` configuration for your organization set to ``ALL``, you'll receive an error if you attempt to stop monitoring the member accounts in your organization.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/StopMonitoringMembers>`_  


  **Request Syntax**
  ::

    response = client.stop_monitoring_members(
        DetectorId='string',
        AccountIds=[
            'string',
        ]
    )
    
  :type DetectorId: string
  :param DetectorId: **[REQUIRED]** 

    The unique ID of the detector associated with the GuardDuty administrator account that is monitoring member accounts.

     

    To find the ``detectorId`` in the current Region, see the Settings page in the GuardDuty console, or run the `ListDetectors <https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html>`__ API.

    

  
  :type AccountIds: list
  :param AccountIds: **[REQUIRED]** 

    A list of account IDs for the member accounts to stop monitoring.

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'UnprocessedAccounts': [
              {
                  'AccountId': 'string',
                  'Result': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **UnprocessedAccounts** *(list) --* 

        A list of objects that contain an accountId for each account that could not be processed, and a result string that indicates why the account was not processed.

        
        

        - *(dict) --* 

          Contains information about the accounts that weren't processed.

          
          

          - **AccountId** *(string) --* 

            The Amazon Web Services account ID.

            
          

          - **Result** *(string) --* 

            A reason why the account hasn't been processed.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`GuardDuty.Client.exceptions.BadRequestException`

  
  *   :py:class:`GuardDuty.Client.exceptions.InternalServerErrorException`

  