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

*****************************
update_publishing_destination
*****************************



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

  

  Updates information about the publishing destination specified by the ``destinationId``.

  

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


  **Request Syntax**
  ::

    response = client.update_publishing_destination(
        DetectorId='string',
        DestinationId='string',
        DestinationProperties={
            'DestinationArn': 'string',
            'KmsKeyArn': 'string'
        }
    )
    
  :type DetectorId: string
  :param DetectorId: **[REQUIRED]** 

    The ID of the detector associated with the publishing destinations 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 DestinationId: string
  :param DestinationId: **[REQUIRED]** 

    The ID of the publishing destination to update.

    

  
  :type DestinationProperties: dict
  :param DestinationProperties: 

    A ``DestinationProperties`` object that includes the ``DestinationArn`` and ``KmsKeyArn`` of the publishing destination.

    

  
    - **DestinationArn** *(string) --* 

      The ARN of the resource to publish to.

       

      To specify an S3 bucket folder use the following format: ``arn:aws:s3:::DOC-EXAMPLE-BUCKET/myFolder/``

      

    
    - **KmsKeyArn** *(string) --* 

      The ARN of the KMS key to use for encryption.

      

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

  