TimestreamQuery / Client / update_account_settings
update_account_settings#
- TimestreamQuery.Client.update_account_settings(**kwargs)#
- Transitions your account to use TCUs for query pricing and modifies the maximum query compute units that you’ve configured. If you reduce the value of - MaxQueryTCUto a desired configuration, the new value can take up to 24 hours to be effective.- Note- After you’ve transitioned your account to use TCUs for query pricing, you can’t transition to using bytes scanned for query pricing. - See also: AWS API Documentation - Request Syntax- response = client.update_account_settings( MaxQueryTCU=123, QueryPricingModel='BYTES_SCANNED'|'COMPUTE_UNITS' ) - Parameters:
- MaxQueryTCU (integer) – - The maximum number of compute units the service will use at any point in time to serve your queries. To run queries, you must set a minimum capacity of 4 TCU. You can set the maximum number of TCU in multiples of 4, for example, 4, 8, 16, 32, and so on. - The maximum value supported for - MaxQueryTCUis 1000. To request an increase to this soft limit, contact Amazon Web Services Support. For information about the default quota for maxQueryTCU, see Default quotas.
- QueryPricingModel (string) – - The pricing model for queries in an account. - Note- The - QueryPricingModelparameter is used by several Timestream operations; however, the- UpdateAccountSettingsAPI operation doesn’t recognize any values other than- COMPUTE_UNITS.
 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'MaxQueryTCU': 123, 'QueryPricingModel': 'BYTES_SCANNED'|'COMPUTE_UNITS' } - Response Structure- (dict) – - MaxQueryTCU (integer) – - The configured maximum number of compute units the service will use at any point in time to serve your queries. 
- QueryPricingModel (string) – - The pricing model for an account. 
 
 
 - Exceptions- TimestreamQuery.Client.exceptions.AccessDeniedException
- TimestreamQuery.Client.exceptions.InternalServerException
- TimestreamQuery.Client.exceptions.ThrottlingException
- TimestreamQuery.Client.exceptions.ValidationException
- TimestreamQuery.Client.exceptions.InvalidEndpointException