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.
Idaws.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.

Methods

NameAccessible byRequired Params
create_resourceINSERTLoRaWAN, FirmwareUpdateImage, FirmwareUpdateRole, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all fuota_tasks in a region.

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 aws.iotwireless.fuota_tasks
WHERE region = 'us-east-1';

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 aws.iotwireless.fuota_tasks
WHERE region = 'us-east-1' AND data__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 aws.iotwireless.fuota_tasks (
LoRaWAN,
FirmwareUpdateImage,
FirmwareUpdateRole,
region
)
SELECT
'{{ LoRaWAN }}',
'{{ FirmwareUpdateImage }}',
'{{ FirmwareUpdateRole }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.iotwireless.fuota_tasks
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';

Permissions

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

Create

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

Read

iotwireless:GetFuotaTask,
iotwireless:ListTagsForResource

Update

iam:PassRole,
iotwireless:UpdateFuotaTask,
iotwireless:UntagResource,
iotwireless:ListTagsForResource,
iotwireless:AssociateMulticastGroupWithFuotaTask,
iotwireless:DisassociateMulticastGroupFromFuotaTask,
iotwireless:AssociateWirelessDeviceWithFuotaTask,
iotwireless:DisassociateWirelessDeviceFromFuotaTask

Delete

iotwireless:DeleteFuotaTask

List

iotwireless:ListFuotaTasks,
iotwireless:ListTagsForResource