:doc:`Braket <../../braket>` / Client / update_spending_limit

*********************
update_spending_limit
*********************



.. py:method:: Braket.Client.update_spending_limit(**kwargs)

  

  Updates an existing spending limit. You can modify the spending amount or time period. Changes take effect immediately.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/UpdateSpendingLimit>`_  


  **Request Syntax**
  ::

    response = client.update_spending_limit(
        spendingLimitArn='string',
        clientToken='string',
        spendingLimit='string',
        timePeriod={
            'startAt': datetime(2015, 1, 1),
            'endAt': datetime(2015, 1, 1)
        }
    )
    
  :type spendingLimitArn: string
  :param spendingLimitArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the spending limit to update.

    

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

    A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Braket ignores the request, but does not return an error.

    This field is autopopulated if not provided.

  
  :type spendingLimit: string
  :param spendingLimit: 

    The new maximum amount that can be spent on the specified device, in USD.

    

  
  :type timePeriod: dict
  :param timePeriod: 

    The new time period during which the spending limit is active, including start and end dates.

    

  
    - **startAt** *(datetime) --* **[REQUIRED]** 

      The start date and time for the spending limit period, in epoch seconds.

      

    
    - **endAt** *(datetime) --* **[REQUIRED]** 

      The end date and time for the spending limit period, in epoch seconds.

      

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Braket.Client.exceptions.ResourceNotFoundException`

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

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

  
  *   :py:class:`Braket.Client.exceptions.InternalServiceException`

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

  