Skip to main content

fuota_tasks

Creates, updates, deletes or gets a fuota_task resource or lists fuota_tasks in a region

Overview

Namefuota_tasks
TypeResource
DescriptionCreate and manage FUOTA tasks.
Idawscc.iotwireless.fuota_tasks

Fields

NameDatatypeDescription
namestringName of FUOTA task
descriptionstringFUOTA task description
lo_ra_wanobjectFUOTA task LoRaWAN
firmware_update_imagestringFUOTA task firmware update image binary S3 link
firmware_update_rolestringFUOTA task firmware IAM role for reading S3
arnstringFUOTA task arn. Returned after successful create.
idstringFUOTA task id. Returned after successful create.
tagsarrayA list of key-value pairs that contain metadata for the FUOTA task.
fuota_task_statusstringFUOTA task status. Returned after successful read.
associate_wireless_devicestringWireless device to associate. Only for update request.
disassociate_wireless_devicestringWireless device to disassociate. Only for update request.
associate_multicast_groupstringMulticast group to associate. Only for update request.
disassociate_multicast_groupstringMulticast group to disassociate. Only for update request.
regionstringAWS region.

For more information, see AWS::IoTWireless::FuotaTask.

Methods

NameResourceAccessible byRequired Params
create_resourcefuota_tasksINSERTLoRaWAN, FirmwareUpdateImage, FirmwareUpdateRole, region
delete_resourcefuota_tasksDELETEIdentifier, region
update_resourcefuota_tasksUPDATEIdentifier, PatchDocument, region
list_resourcesfuota_tasks_list_onlySELECTregion
get_resourcefuota_tasksSELECTIdentifier, region

SELECT examples

Gets all properties from an individual fuota_task.

SELECT
region,
name,
description,
lo_ra_wan,
firmware_update_image,
firmware_update_role,
arn,
id,
tags,
fuota_task_status,
associate_wireless_device,
disassociate_wireless_device,
associate_multicast_group,
disassociate_multicast_group
FROM awscc.iotwireless.fuota_tasks
WHERE
region = 'us-east-1' AND
Identifier = '{{ id }}';

INSERT example

Use the following StackQL query and manifest file to create a new fuota_task resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.iotwireless.fuota_tasks (
LoRaWAN,
FirmwareUpdateImage,
FirmwareUpdateRole,
region
)
SELECT
'{{ lo_ra_wan }}',
'{{ firmware_update_image }}',
'{{ firmware_update_role }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a fuota_task resource, using stack-deploy.

/*+ update */
UPDATE awscc.iotwireless.fuota_tasks
SET PatchDocument = string('{{ {
"Name": name,
"Description": description,
"FirmwareUpdateImage": firmware_update_image,
"FirmwareUpdateRole": firmware_update_role,
"Tags": tags,
"AssociateWirelessDevice": associate_wireless_device,
"DisassociateWirelessDevice": disassociate_wireless_device,
"AssociateMulticastGroup": associate_multicast_group,
"DisassociateMulticastGroup": disassociate_multicast_group
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.iotwireless.fuota_tasks
WHERE
Identifier = '{{ id }}' AND
region = 'us-east-1';

Permissions

To operate on the fuota_tasks resource, the following permissions are required:

iotwireless:CreateFuotaTask,
iotwireless:TagResource,
iam:GetRole,
iam:PassRole