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

*************
update_ip_set
*************



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

  

  Updates the IPSet specified by the IPSet ID.

  

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


  **Request Syntax**
  ::

    response = client.update_ip_set(
        DetectorId='string',
        IpSetId='string',
        Name='string',
        Location='string',
        Activate=True|False,
        ExpectedBucketOwner='string'
    )
    
  :type DetectorId: string
  :param DetectorId: **[REQUIRED]** 

    The detectorID that specifies the GuardDuty service whose IPSet you want to update.

     

    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 IpSetId: string
  :param IpSetId: **[REQUIRED]** 

    The unique ID that specifies the IPSet that you want to update.

    

  
  :type Name: string
  :param Name: 

    The unique ID that specifies the IPSet that you want to update.

    

  
  :type Location: string
  :param Location: 

    The updated URI of the file that contains the IPSet.

    

  
  :type Activate: boolean
  :param Activate: 

    The updated Boolean value that specifies whether the IPSet is active or not.

    

  
  :type ExpectedBucketOwner: string
  :param ExpectedBucketOwner: 

    The Amazon Web Services account ID that owns the Amazon S3 bucket specified in the **location** parameter.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`GuardDuty.Client.exceptions.BadRequestException`

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

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

  