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

************************
update_threat_entity_set
************************



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

  

  Updates the threat entity set associated with the specified ``threatEntitySetId``.

  

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


  **Request Syntax**
  ::

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

    The unique ID of the GuardDuty detector associated with the threat entity set that 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 ThreatEntitySetId: string
  :param ThreatEntitySetId: **[REQUIRED]** 

    The ID returned by GuardDuty after updating the threat entity set resource.

    

  
  :type Name: string
  :param Name: 

    A user-friendly name to identify the trusted entity set.

     

    The name of your list can include lowercase letters, uppercase letters, numbers, dash (-), and underscore (_).

    

  
  :type Location: string
  :param Location: 

    The URI of the file that contains the trusted entity set.

    

  
  :type ExpectedBucketOwner: string
  :param ExpectedBucketOwner: 

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

    

  
  :type Activate: boolean
  :param Activate: 

    A boolean value that indicates whether GuardDuty is to start using this updated threat entity set. After you update an entity set, you will need to activate it again. It might take up to 15 minutes for the updated entity set to be effective.

    

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

  