Skip to main content

fuota_tasks

Creates, updates, deletes, gets or lists a fuota_tasks resource.

Overview

Namefuota_tasks
TypeResource
Idaws.iotwireless.fuota_tasks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe arn of a FUOTA task.
created_atstring (date-time)Created at timestamp for the resource.
descriptionstringThe description of the new resource.
descriptorstringThe descriptor is the metadata about the file that is transferred to the device using FUOTA, such as the software version. It is a binary field encoded in base64. (pattern: <code>^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$</code>)
firmware_update_imagestringThe S3 URI points to a firmware update image that is to be used with a FUOTA task.
firmware_update_rolestringThe firmware update role that is to be used with a FUOTA task.
fragment_interval_msintegerThe interval for sending fragments in milliseconds, rounded to the nearest second. This interval only determines the timing for when the Cloud sends down the fragments to yor device. There can be a delay for when your device will receive these fragments. This delay depends on the device's class and the communication delay with the cloud.
fragment_size_bytesintegerThe size of each fragment in bytes. This parameter is supported only for FUOTA tasks with multicast groups.
idstringThe ID of a FUOTA task.
lo_ra_wanobjectThe LoRaWAN information returned from getting a FUOTA task.
namestringThe name of a FUOTA task.
redundancy_percentintegerThe percentage of the added fragments that are redundant. For example, if the size of the firmware image file is 100 bytes and the fragment size is 10 bytes, with RedundancyPercent set to 50(%), the final number of encoded fragments is (100 / 10) + (100 / 10 * 50%) = 15.
statusstringThe status of a FUOTA task. (Pending, FuotaSession_Waiting, In_FuotaSession, FuotaDone, Delete_Waiting)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_fuota_taskselectid, regionGets information about a FUOTA task.
list_fuota_tasksselectregionnextToken, maxResultsLists the FUOTA tasks registered to your AWS account.
create_fuota_taskinsertregion, FirmwareUpdateImage, FirmwareUpdateRoleCreates a FUOTA task.
associate_multicast_group_with_fuota_taskupdateid, region, MulticastGroupIdAssociate a multicast group with a FUOTA task.
associate_wireless_device_with_fuota_taskupdateid, region, WirelessDeviceIdAssociate a wireless device with a FUOTA task.
disassociate_multicast_group_from_fuota_taskupdateid, multicast_group_id, regionDisassociates a multicast group from a FUOTA task.
disassociate_wireless_device_from_fuota_taskupdateid, wireless_device_id, regionDisassociates a wireless device from a FUOTA task.
update_fuota_taskupdateid, regionUpdates properties of a FUOTA task.
delete_fuota_taskdeleteid, regionDeletes a FUOTA task.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstring
multicast_group_idstring
regionstringAWS region (default: us-east-1)
wireless_device_idstring
maxResultsinteger
nextTokenstringTo retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

SELECT examples

Gets information about a FUOTA task.

SELECT
arn,
created_at,
description,
descriptor,
firmware_update_image,
firmware_update_role,
fragment_interval_ms,
fragment_size_bytes,
id,
lo_ra_wan,
name,
redundancy_percent,
status
FROM aws.iotwireless.fuota_tasks
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a FUOTA task.

INSERT INTO aws.iotwireless.fuota_tasks (
Name,
Description,
ClientRequestToken,
LoRaWAN,
FirmwareUpdateImage,
FirmwareUpdateRole,
Tags,
RedundancyPercent,
FragmentSizeBytes,
FragmentIntervalMS,
Descriptor,
region
)
SELECT
'{{ Name }}',
'{{ Description }}',
'{{ ClientRequestToken }}',
'{{ LoRaWAN }}',
'{{ FirmwareUpdateImage }}' /* required */,
'{{ FirmwareUpdateRole }}' /* required */,
'{{ Tags }}',
{{ RedundancyPercent }},
{{ FragmentSizeBytes }},
{{ FragmentIntervalMS }},
'{{ Descriptor }}',
'{{ region }}'
RETURNING
arn,
id
;

UPDATE examples

Associate a multicast group with a FUOTA task.

UPDATE aws.iotwireless.fuota_tasks
SET
MulticastGroupId = '{{ MulticastGroupId }}'
WHERE
id = '{{ id }}' --required
AND region = '{{ region }}' --required
AND MulticastGroupId = '{{ MulticastGroupId }}' --required;

DELETE examples

Deletes a FUOTA task.

DELETE FROM aws.iotwireless.fuota_tasks
WHERE id = '{{ id }}' --required
AND region = '{{ region }}' --required
;