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

*******************
update_self_upgrade
*******************



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

  

  Updates a self-upgrade request for a Quick Suite user by approving, denying, or verifying the request.

  

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


  **Request Syntax**
  ::

    response = client.update_self_upgrade(
        AwsAccountId='string',
        Namespace='string',
        UpgradeRequestId='string',
        Action='APPROVE'|'DENY'|'VERIFY'
    )
    
  :type AwsAccountId: string
  :param AwsAccountId: **[REQUIRED]** 

    The ID of the Amazon Web Services account that contains the self-upgrade request.

    

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

    The Quick Suite namespace for the self-upgrade request.

    

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

    The ID of the self-upgrade request to update.

    

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

    The action to perform on the self-upgrade request. Valid values are ``APPROVE``, ``DENY``, or ``VERIFY``.

    

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

    
    ::

      {
          'SelfUpgradeRequestDetail': {
              'UpgradeRequestId': 'string',
              'UserName': 'string',
              'OriginalRole': 'ADMIN'|'AUTHOR'|'READER'|'RESTRICTED_AUTHOR'|'RESTRICTED_READER'|'ADMIN_PRO'|'AUTHOR_PRO'|'READER_PRO',
              'RequestedRole': 'ADMIN'|'AUTHOR'|'READER'|'RESTRICTED_AUTHOR'|'RESTRICTED_READER'|'ADMIN_PRO'|'AUTHOR_PRO'|'READER_PRO',
              'RequestNote': 'string',
              'CreationTime': 123,
              'RequestStatus': 'PENDING'|'APPROVED'|'DENIED'|'UPDATE_FAILED'|'VERIFY_FAILED',
              'lastUpdateAttemptTime': 123,
              'lastUpdateFailureReason': 'string'
          },
          'RequestId': 'string',
          'Status': 123
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **SelfUpgradeRequestDetail** *(dict) --* 

        Details of the updated self-upgrade request.

        
        

        - **UpgradeRequestId** *(string) --* 

          The ID of the self-upgrade request.

          
        

        - **UserName** *(string) --* 

          The username of the user who initiated the self-upgrade request.

          
        

        - **OriginalRole** *(string) --* 

          The original role of the user before the upgrade.

          
        

        - **RequestedRole** *(string) --* 

          The role that the user is requesting to upgrade to.

          
        

        - **RequestNote** *(string) --* 

          An optional note explaining the reason for the self-upgrade request.

          
        

        - **CreationTime** *(integer) --* 

          The time when the self-upgrade request was created.

          
        

        - **RequestStatus** *(string) --* 

          The status of the self-upgrade request.

          
        

        - **lastUpdateAttemptTime** *(integer) --* 

          The time of the last update attempt for the self-upgrade request.

          
        

        - **lastUpdateFailureReason** *(string) --* 

          The reason for the last update failure, if applicable.

          
    
      

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

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

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

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

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

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

  