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

****************************
update_iam_policy_assignment
****************************



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

  

  Updates an existing IAM policy assignment. This operation updates only the optional parameter or parameters that are specified in the request. This overwrites all of the users included in ``Identities``.

  

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


  **Request Syntax**
  ::

    response = client.update_iam_policy_assignment(
        AwsAccountId='string',
        AssignmentName='string',
        Namespace='string',
        AssignmentStatus='ENABLED'|'DRAFT'|'DISABLED',
        PolicyArn='string',
        Identities={
            'string': [
                'string',
            ]
        }
    )
    
  :type AwsAccountId: string
  :param AwsAccountId: **[REQUIRED]** 

    The ID of the Amazon Web Services account that contains the IAM policy assignment.

    

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

    The name of the assignment, also called a rule. The name must be unique within the Amazon Web Services account.

    

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

    The namespace of the assignment.

    

  
  :type AssignmentStatus: string
  :param AssignmentStatus: 

    The status of the assignment. Possible values are as follows:

     

    
    * ``ENABLED`` - Anything specified in this assignment is used when creating the data source.
     
    * ``DISABLED`` - This assignment isn't used when creating the data source.
     
    * ``DRAFT`` - This assignment is an unfinished draft and isn't used when creating the data source.
    

    

  
  :type PolicyArn: string
  :param PolicyArn: 

    The ARN for the IAM policy to apply to the Amazon Quick Sight users and groups specified in this assignment.

    

  
  :type Identities: dict
  :param Identities: 

    The Amazon Quick Sight users, groups, or both that you want to assign the policy to.

    

  
    - *(string) --* 

    
      - *(list) --* 

      
        - *(string) --* 

        
    


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

    
    ::

      {
          'AssignmentName': 'string',
          'AssignmentId': 'string',
          'PolicyArn': 'string',
          'Identities': {
              'string': [
                  'string',
              ]
          },
          'AssignmentStatus': 'ENABLED'|'DRAFT'|'DISABLED',
          'RequestId': 'string',
          'Status': 123
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **AssignmentName** *(string) --* 

        The name of the assignment or rule.

        
      

      - **AssignmentId** *(string) --* 

        The ID of the assignment.

        
      

      - **PolicyArn** *(string) --* 

        The ARN for the IAM policy applied to the Amazon Quick Sight users and groups specified in this assignment.

        
      

      - **Identities** *(dict) --* 

        The Amazon Quick Sight users, groups, or both that the IAM policy is assigned to.

        
        

        - *(string) --* 
          

          - *(list) --* 
            

            - *(string) --* 
        
    
  
      

      - **AssignmentStatus** *(string) --* 

        The status of the assignment. Possible values are as follows:

         

        
        * ``ENABLED`` - Anything specified in this assignment is used when creating the data source.
         
        * ``DISABLED`` - This assignment isn't used when creating the data source.
         
        * ``DRAFT`` - This assignment is an unfinished draft and isn't used when creating the data source.
        

        
      

      - **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.ResourceExistsException`

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

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

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

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

  