Skip to main content

wireless_device_import_tasks

Creates, updates, deletes or gets a wireless_device_import_task resource or lists wireless_device_import_tasks in a region

Overview

Namewireless_device_import_tasks
TypeResource
DescriptionWireless Device Import Tasks
Idaws.iotwireless.wireless_device_import_tasks

Fields

NameDatatypeDescription
idstringId for Wireless Device Import Task, Returned upon successful start.
arnstringArn for Wireless Device Import Task, Returned upon successful start.
destination_namestringDestination Name for import task
creation_datestringCreationDate for import task
sidewalkobjectsidewalk contain file for created device and role
statusstringStatus for import task
status_reasonstringStatusReason for import task
initialized_imported_devices_countintegerInitialized Imported Devices Count
pending_imported_devices_countintegerPending Imported Devices Count
onboarded_imported_devices_countintegerOnboarded Imported Devices Count
failed_imported_devices_countintegerFailed Imported Devices Count
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTDestinationName, Sidewalk, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all wireless_device_import_tasks in a region.

SELECT
region,
id,
arn,
destination_name,
creation_date,
sidewalk,
status,
status_reason,
initialized_imported_devices_count,
pending_imported_devices_count,
onboarded_imported_devices_count,
failed_imported_devices_count,
tags
FROM aws.iotwireless.wireless_device_import_tasks
WHERE region = 'us-east-1';

Gets all properties from an individual wireless_device_import_task.

SELECT
region,
id,
arn,
destination_name,
creation_date,
sidewalk,
status,
status_reason,
initialized_imported_devices_count,
pending_imported_devices_count,
onboarded_imported_devices_count,
failed_imported_devices_count,
tags
FROM aws.iotwireless.wireless_device_import_tasks
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';

INSERT example

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

/*+ create */
INSERT INTO aws.iotwireless.wireless_device_import_tasks (
DestinationName,
Sidewalk,
region
)
SELECT
'{{ DestinationName }}',
'{{ Sidewalk }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

iotwireless:StartWirelessDeviceImportTask,
iotwireless:StartSingleWirelessDeviceImportTask,
iotwireless:TagResource,
iotwireless:ListTagsForResource,
iam:PassRole

Read

iotwireless:GetWirelessDeviceImportTask,
iotwireless:ListTagsForResource

Update

iotwireless:UpdateWirelessDeviceImportTask,
iotwireless:UntagResource,
iotwireless:ListTagsForResource,
iam:PassRole

Delete

iotwireless:DeleteWirelessDeviceImportTask

List

iotwireless:ListWirelessDeviceImportTasks,
iotwireless:ListTagsForResource