update_table
¶
update_table(
database_name: ResourceName,
table_name: ResourceName,
*,
config_overrides: Optional[TimestreamWriteClientConfig] = None,
retention_properties: Optional[RetentionProperties] = None,
magnetic_store_write_properties: Optional[MagneticStoreWriteProperties] = None,
schema: Optional[Schema] = None,
) -> UpdateTableResponse
Modifies the retention duration of the memory store and magnetic store for your Timestream table. Note that the change in retention duration takes effect immediately. For example, if the retention period of the memory store was initially set to 2 hours and then changed to 24 hours, the memory store will be capable of holding 24 hours of data, but will be populated with 24 hours of data 22 hours after this change was made. Timestream does not retrieve data from the magnetic store to populate the memory store.
See code sample for details.
Parameters:
-
database_name(ResourceName) –The name of the Timestream database.
-
table_name(ResourceName) –The name of the Timestream table.
-
retention_properties(Optional[RetentionProperties], default:None) –The retention duration of the memory store and the magnetic store.
-
magnetic_store_write_properties(Optional[MagneticStoreWriteProperties], default:None) –Contains properties to set on the table when enabling magnetic store writes.
-
schema(Optional[Schema], default:None) –The schema of the table.
Raises:
-
AccessDeniedException–You are not authorized to perform this action.
-
InternalServerException–Timestream was unable to fully process this request because of an internal server error.
-
InvalidEndpointException–The requested endpoint was not valid.
-
ResourceNotFoundException–The operation tried to access a nonexistent resource. The resource might not be specified correctly, or its status might not be ACTIVE.
-
ThrottlingException–Too many requests were made by a user and they exceeded the service quotas. The request was throttled.
-
ValidationException–An invalid or malformed request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_timestream_write/_services/timestream_write.py
1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 | |