:doc:`Shield <../../shield>` / Client / update_subscription

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



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

  

  Updates the details of an existing subscription. Only enter values for parameters you want to change. Empty parameters are not updated.

   

  .. note::

    

    For accounts that are members of an Organizations organization, Shield Advanced subscriptions are billed against the organization's payer account, regardless of whether the payer account itself is subscribed.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/UpdateSubscription>`_  


  **Request Syntax**
  ::

    response = client.update_subscription(
        AutoRenew='ENABLED'|'DISABLED'
    )
    
  :type AutoRenew: string
  :param AutoRenew: 

    When you initally create a subscription, ``AutoRenew`` is set to ``ENABLED``. If ``ENABLED``, the subscription will be automatically renewed at the end of the existing subscription period. You can change this by submitting an ``UpdateSubscription`` request. If the ``UpdateSubscription`` request does not included a value for ``AutoRenew``, the existing value for ``AutoRenew`` remains unchanged.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Shield.Client.exceptions.InternalErrorException`

  
  *   :py:class:`Shield.Client.exceptions.LockedSubscriptionException`

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

  
  *   :py:class:`Shield.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`Shield.Client.exceptions.OptimisticLockException`

  