create_ota_task
¶
create_ota_task(
s3_url: S3Url,
ota_type: OtaType,
*,
config_overrides: Optional[IoTManagedIntegrationsClientConfig] = None,
description: Optional[OtaDescription] = None,
protocol: Optional[OtaProtocol] = None,
target: Optional[Target] = None,
task_configuration_id: Optional[OtaTaskConfigurationId] = None,
ota_mechanism: Optional[OtaMechanism] = None,
ota_target_query_string: Optional[OtaTargetQueryString] = None,
client_token: Optional[ClientToken] = None,
ota_scheduling_config: Optional[OtaTaskSchedulingConfig] = None,
ota_task_execution_retry_config: Optional[OtaTaskExecutionRetryConfig] = None,
tags: Optional[TagsMap] = None,
) -> CreateOtaTaskResponse
Create an over-the-air (OTA) task to target a device.
Parameters:
-
description(Optional[OtaDescription], default:None) –The description of the over-the-air (OTA) task.
-
s3_url(S3Url) –The URL to the Amazon S3 bucket where the over-the-air (OTA) task is stored.
-
protocol(Optional[OtaProtocol], default:None) –The connection protocol the over-the-air (OTA) task uses to update the device.
-
target(Optional[Target], default:None) –The device targeted for the over-the-air (OTA) task.
-
task_configuration_id(Optional[OtaTaskConfigurationId], default:None) –The identifier for the over-the-air (OTA) task configuration.
-
ota_mechanism(Optional[OtaMechanism], default:None) –The deployment mechanism for the over-the-air (OTA) task.
-
ota_type(OtaType) –The frequency type for the over-the-air (OTA) task.
-
ota_target_query_string(Optional[OtaTargetQueryString], default:None) –The query string to add things to the thing group.
-
client_token(Optional[ClientToken], default:None) –An idempotency token. If you retry a request that completed successfully initially using the same client token and parameters, then the retry attempt will succeed without performing any further actions.
-
tags(Optional[TagsMap], default:None) –A set of key/value pairs that are used to manage the over-the-air (OTA) task.
Raises:
-
AccessDeniedException–User is not authorized.
-
ConflictException–There is a conflict with the request.
-
InternalServerException–Internal error from the service that indicates an unexpected error or that the service is unavailable.
-
ResourceNotFoundException–The specified resource does not exist.
-
ThrottlingException–The rate exceeds the limit.
-
UnauthorizedException–You are not authorized to perform this operation.
-
ValidationException–A validation error occurred when performing the API request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot_managed_integrations/_services/io_t_managed_integrations.py
5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 | |