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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.iotwireless.fuota_tasks
WHERE
Identifier = '{{ id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

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