:doc:`QBusiness <../../qbusiness>` / Client / update_subscription

*******************
update_subscription
*******************



.. py:method:: QBusiness.Client.update_subscription(**kwargs)

  

  Updates the pricing tier for an Amazon Q Business subscription. Upgrades are instant. Downgrades apply at the start of the next month. Subscription tier determines feature access for the user. For more information on subscriptions and pricing tiers, see `Amazon Q Business pricing <https://aws.amazon.com/q/business/pricing/>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/qbusiness-2023-11-27/UpdateSubscription>`_  


  **Request Syntax**
  ::

    response = client.update_subscription(
        applicationId='string',
        subscriptionId='string',
        type='Q_LITE'|'Q_BUSINESS'
    )
    
  :type applicationId: string
  :param applicationId: **[REQUIRED]** 

    The identifier of the Amazon Q Business application where the subscription update should take effect.

    

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

    The identifier of the Amazon Q Business subscription to be updated.

    

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

    The type of the Amazon Q Business subscription to be updated.

    

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

    
    ::

      {
          'subscriptionArn': 'string',
          'currentSubscription': {
              'type': 'Q_LITE'|'Q_BUSINESS'
          },
          'nextSubscription': {
              'type': 'Q_LITE'|'Q_BUSINESS'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **subscriptionArn** *(string) --* 

        The Amazon Resource Name (ARN) of the Amazon Q Business subscription that was updated.

        
      

      - **currentSubscription** *(dict) --* 

        The type of your current Amazon Q Business subscription.

        
        

        - **type** *(string) --* 

          The type of an Amazon Q Business subscription.

          
    
      

      - **nextSubscription** *(dict) --* 

        The type of the Amazon Q Business subscription for the next month.

        
        

        - **type** *(string) --* 

          The type of an Amazon Q Business subscription.

          
    
  
  **Exceptions**
  
  *   :py:class:`QBusiness.Client.exceptions.InternalServerException`

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

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

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

  
  *   :py:class:`QBusiness.Client.exceptions.ValidationException`

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

  