:doc:`QuickSight <../../quicksight>` / Client / update_public_sharing_settings

******************************
update_public_sharing_settings
******************************



.. py:method:: QuickSight.Client.update_public_sharing_settings(**kwargs)

  

  .. warning::

    

    This API controls public sharing settings for your entire Quick Sight account, affecting data security and access. When you enable public sharing:

     

    
    * Dashboards can be shared publicly
     
    * This setting affects your entire Amazon Web Services account and all Quick Sight users
    

     

    **Before proceeding:** Ensure you understand the security implications and have proper IAM permissions configured.

     

   

  Use the ``UpdatePublicSharingSettings`` operation to turn on or turn off the public sharing settings of an Amazon Quick Sight dashboard.

   

  To use this operation, turn on session capacity pricing for your Amazon Quick Sight account.

   

  Before you can turn on public sharing on your account, make sure to give public sharing permissions to an administrative user in the Identity and Access Management (IAM) console. For more information on using IAM with Amazon Quick Sight, see `Using Quick Suite with IAM <https://docs.aws.amazon.com/quicksight/latest/user/security_iam_service-with-iam.html>`__ in the *Amazon Quick Sight User Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdatePublicSharingSettings>`_  


  **Request Syntax**
  ::

    response = client.update_public_sharing_settings(
        AwsAccountId='string',
        PublicSharingEnabled=True|False
    )
    
  :type AwsAccountId: string
  :param AwsAccountId: **[REQUIRED]** 

    The Amazon Web Services account ID associated with your Amazon Quick Sight subscription.

    

  
  :type PublicSharingEnabled: boolean
  :param PublicSharingEnabled: 

    A Boolean value that indicates whether public sharing is turned on for an Quick Suite account.

    

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

    
    ::

      {
          'RequestId': 'string',
          'Status': 123
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **RequestId** *(string) --* 

        The Amazon Web Services request ID for this operation.

        
      

      - **Status** *(integer) --* 

        The HTTP status of the request.

        
  
  **Exceptions**
  
  *   :py:class:`QuickSight.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`QuickSight.Client.exceptions.InvalidParameterValueException`

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

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

  
  *   :py:class:`QuickSight.Client.exceptions.UnsupportedPricingPlanException`

  
  *   :py:class:`QuickSight.Client.exceptions.InternalFailureException`

  