:doc:`FreeTier <../../freetier>` / Client / upgrade_account_plan

********************
upgrade_account_plan
********************



.. py:method:: FreeTier.Client.upgrade_account_plan(**kwargs)

  

  The account plan type for the Amazon Web Services account.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/freetier-2023-09-07/UpgradeAccountPlan>`_  


  **Request Syntax**
  ::

    response = client.upgrade_account_plan(
        accountPlanType='FREE'|'PAID'
    )
    
  :type accountPlanType: string
  :param accountPlanType: **[REQUIRED]** 

    The target account plan type. This makes it explicit about the change and latest value of the ``accountPlanType``.

    

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

    
    ::

      {
          'accountId': 'string',
          'accountPlanType': 'FREE'|'PAID',
          'accountPlanStatus': 'NOT_STARTED'|'ACTIVE'|'EXPIRED'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **accountId** *(string) --* 

        A unique identifier that identifies the account.

        
      

      - **accountPlanType** *(string) --* 

        The type of plan for the account.

        
      

      - **accountPlanStatus** *(string) --* 

        This indicates the latest state of the account plan within its lifecycle.

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

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

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

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

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

  