delete_ota_update
async
¶
delete_ota_update(
ota_update_id: OTAUpdateId,
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
delete_stream: Optional[DeleteStream_] = None,
force_delete_aws_job: Optional[ForceDeleteAWSJob] = None,
) -> DeleteOTAUpdateResponse
Delete an OTA update.
Requires permission to access the DeleteOTAUpdate action.
Parameters:
-
ota_update_id(OTAUpdateId) –The ID of the OTA update to delete.
-
delete_stream(Optional[DeleteStream_], default:None) –When true, the stream created by the OTAUpdate process is deleted when the OTA update is deleted. Ignored if the stream specified in the OTAUpdate is supplied by the user.
-
force_delete_aws_job(Optional[ForceDeleteAWSJob], default:None) –When true, deletes the IoT job created by the OTAUpdate process even if it is "IN_PROGRESS". Otherwise, if the job is not in a terminal state ("COMPLETED" or "CANCELED") an exception will occur. The default is false.
Raises:
-
InternalFailureException–An unexpected error has occurred.
-
InvalidRequestException–The request is not valid.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
ThrottlingException–The rate exceeds the limit.
-
UnauthorizedException–You are not authorized to perform this operation.
-
VersionConflictException–An exception thrown when the version of an entity specified with the
expectedVersionparameter does not match the latest version in the system. -
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/async_io_t.py
5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 | |