update_account_settings
¶
update_account_settings(
*,
config_overrides: Optional[TimestreamQueryClientConfig] = None,
max_query_tcu: Optional[MaxQueryCapacity] = None,
query_pricing_model: Optional[QueryPricingModel] = None,
query_compute: Optional[QueryComputeRequest] = None,
) -> UpdateAccountSettingsResponse
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 MaxQueryTCU to a desired configuration, the new value can take up to 24 hours to be effective.
After you've transitioned your account to use TCUs for query pricing, you can't transition to using bytes scanned for query pricing.
Parameters:
-
max_query_tcu(Optional[MaxQueryCapacity], default:None) –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. This configuration is applicable only for on-demand usage of Timestream Compute Units (TCUs).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 formaxQueryTCU, see Default quotas. -
query_pricing_model(Optional[QueryPricingModel], default:None) –The pricing model for queries in an account.
The
QueryPricingModelparameter is used by several Timestream operations; however, theUpdateAccountSettingsAPI operation doesn't recognize any values other thanCOMPUTE_UNITS. -
query_compute(Optional[QueryComputeRequest], default:None) –Modifies the query compute settings configured in your account, including the query pricing model and provisioned Timestream Compute Units (TCUs) in your account.
This API is idempotent, meaning that making the same request multiple times will have the same effect as making the request once.
Raises:
-
AccessDeniedException–You do not have the necessary permissions to access the account settings.
-
InternalServerException–An internal server error occurred while processing the request.
-
InvalidEndpointException–The requested endpoint is invalid.
-
ThrottlingException–The request was throttled due to excessive requests.
-
ValidationException–Invalid or malformed request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_timestream_query/_services/timestream_query.py
1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 | |