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

*************************
update_folder_permissions
*************************



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

  

  Updates permissions of a folder.

  

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


  **Request Syntax**
  ::

    response = client.update_folder_permissions(
        AwsAccountId='string',
        FolderId='string',
        GrantPermissions=[
            {
                'Principal': 'string',
                'Actions': [
                    'string',
                ]
            },
        ],
        RevokePermissions=[
            {
                'Principal': 'string',
                'Actions': [
                    'string',
                ]
            },
        ]
    )
    
  :type AwsAccountId: string
  :param AwsAccountId: **[REQUIRED]** 

    The ID for the Amazon Web Services account that contains the folder to update.

    

  
  :type FolderId: string
  :param FolderId: **[REQUIRED]** 

    The ID of the folder.

    

  
  :type GrantPermissions: list
  :param GrantPermissions: 

    The permissions that you want to grant on a resource. Namespace ARNs are not supported ``Principal`` values for folder permissions.

    

  
    - *(dict) --* 

      Permission for the resource.

      

    
      - **Principal** *(string) --* **[REQUIRED]** 

        The Amazon Resource Name (ARN) of the principal. This can be one of the following:

         

        
        * The ARN of an Quick Sight user or group associated with a data source or dataset. (This is common.)
         
        * The ARN of an Quick Sight user, group, or namespace associated with an analysis, dashboard, template, or theme. Namespace sharing is not supported for action connectors. (This is common.)
         
        * The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a Quick Sight ARN. Use this option only to share resources (templates) across Amazon Web Services accounts. Account root sharing is not supported for action connectors. (This is less common.)
        

        

      
      - **Actions** *(list) --* **[REQUIRED]** 

        The IAM action to grant or revoke permissions on.

        

      
        - *(string) --* 

        
    
    

  :type RevokePermissions: list
  :param RevokePermissions: 

    The permissions that you want to revoke from a resource. Namespace ARNs are not supported ``Principal`` values for folder permissions.

    

  
    - *(dict) --* 

      Permission for the resource.

      

    
      - **Principal** *(string) --* **[REQUIRED]** 

        The Amazon Resource Name (ARN) of the principal. This can be one of the following:

         

        
        * The ARN of an Quick Sight user or group associated with a data source or dataset. (This is common.)
         
        * The ARN of an Quick Sight user, group, or namespace associated with an analysis, dashboard, template, or theme. Namespace sharing is not supported for action connectors. (This is common.)
         
        * The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a Quick Sight ARN. Use this option only to share resources (templates) across Amazon Web Services accounts. Account root sharing is not supported for action connectors. (This is less common.)
        

        

      
      - **Actions** *(list) --* **[REQUIRED]** 

        The IAM action to grant or revoke permissions on.

        

      
        - *(string) --* 

        
    
    

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

    
    ::

      {
          'Status': 123,
          'Arn': 'string',
          'FolderId': 'string',
          'Permissions': [
              {
                  'Principal': 'string',
                  'Actions': [
                      'string',
                  ]
              },
          ],
          'RequestId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        The HTTP status of the request.

        
      

      - **Arn** *(string) --* 

        The Amazon Resource Name (ARN) of the folder.

        
      

      - **FolderId** *(string) --* 

        The ID of the folder.

        
      

      - **Permissions** *(list) --* 

        Information about the permissions for the folder.

        
        

        - *(dict) --* 

          Permission for the resource.

          
          

          - **Principal** *(string) --* 

            The Amazon Resource Name (ARN) of the principal. This can be one of the following:

             

            
            * The ARN of an Quick Sight user or group associated with a data source or dataset. (This is common.)
             
            * The ARN of an Quick Sight user, group, or namespace associated with an analysis, dashboard, template, or theme. Namespace sharing is not supported for action connectors. (This is common.)
             
            * The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a Quick Sight ARN. Use this option only to share resources (templates) across Amazon Web Services accounts. Account root sharing is not supported for action connectors. (This is less common.)
            

            
          

          - **Actions** *(list) --* 

            The IAM action to grant or revoke permissions on.

            
            

            - *(string) --* 
        
      
    
      

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

        The Amazon Web Services request ID for this operation.

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

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

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

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

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

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

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

  