Braket / Client / update_spending_limit

update_spending_limit

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

Request Syntax

response = client.update_spending_limit(
    spendingLimitArn='string',
    clientToken='string',
    spendingLimit='string',
    timePeriod={
        'startAt': datetime(2015, 1, 1),
        'endAt': datetime(2015, 1, 1)
    }
)
Parameters:
  • spendingLimitArn (string) –

    [REQUIRED]

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

  • clientToken (string) –

    [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.

  • spendingLimit (string) – The new maximum amount that can be spent on the specified device, in USD.

  • timePeriod (dict) –

    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.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • Braket.Client.exceptions.ResourceNotFoundException

  • Braket.Client.exceptions.AccessDeniedException

  • Braket.Client.exceptions.ThrottlingException

  • Braket.Client.exceptions.InternalServiceException

  • Braket.Client.exceptions.ValidationException