:doc:`Macie2 <../../macie2>` / Client / put_findings_publication_configuration

**************************************
put_findings_publication_configuration
**************************************



.. py:method:: Macie2.Client.put_findings_publication_configuration(**kwargs)

  

  Updates the configuration settings for publishing findings to Security Hub.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/PutFindingsPublicationConfiguration>`_  


  **Request Syntax**
  ::

    response = client.put_findings_publication_configuration(
        clientToken='string',
        securityHubConfiguration={
            'publishClassificationFindings': True|False,
            'publishPolicyFindings': True|False
        }
    )
    
  :type clientToken: string
  :param clientToken: 

    A unique, case-sensitive token that you provide to ensure the idempotency of the request.

    This field is autopopulated if not provided.

  
  :type securityHubConfiguration: dict
  :param securityHubConfiguration: 

    The configuration settings that determine which findings to publish to Security Hub.

    

  
    - **publishClassificationFindings** *(boolean) --* **[REQUIRED]** 

      Specifies whether to publish sensitive data findings to Security Hub. If you set this value to true, Amazon Macie automatically publishes all sensitive data findings that weren't suppressed by a findings filter. The default value is false.

      

    
    - **publishPolicyFindings** *(boolean) --* **[REQUIRED]** 

      Specifies whether to publish policy findings to Security Hub. If you set this value to true, Amazon Macie automatically publishes all new and updated policy findings that weren't suppressed by a findings filter. The default value is true.

      

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 

      The request succeeded and there isn't any content to include in the body of the response (No Content).

      
  
  **Exceptions**
  
  *   :py:class:`Macie2.Client.exceptions.ValidationException`

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

  
  *   :py:class:`Macie2.Client.exceptions.ServiceQuotaExceededException`

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

  
  *   :py:class:`Macie2.Client.exceptions.ResourceNotFoundException`

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

  
  *   :py:class:`Macie2.Client.exceptions.ConflictException`

  