create_ota_task
async
¶
create_ota_task(
s3_url: S3Url,
ota_type: OtaType,
*,
config_overrides: Optional[AsyncIoTManagedIntegrationsClientConfig] = 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/async_io_t_managed_integrations.py
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 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 | |