Skip to main content

wireless_devices

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

Overview

Namewireless_devices
TypeResource
Idaws.iotwireless.wireless_devices

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name of the resource.
descriptionstringThe description of the new resource.
destination_namestringThe name of the destination to which the device is assigned. (pattern: <code>[a-zA-Z0-9-_]+</code>)
idstringThe ID of the wireless device.
lo_ra_wanobjectLoRaWAN object for create functions.
namestringThe name of the resource.
positioningstringThe integration status of the Device Location feature for LoRaWAN and Sidewalk devices. (Enabled, Disabled)
sidewalkobjectSidewalk device object.
thing_arnstringThe ARN of the thing associated with the wireless device.
thing_namestringThe name of the thing associated with the wireless device. The value is empty if a thing isn't associated with the device.
typestringThe wireless device type. (Sidewalk, LoRaWAN)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_wireless_deviceselectidentifier, identifierType, regionGets information about a wireless device.
list_wireless_devicesselectregionmaxResults, nextToken, destinationName, deviceProfileId, serviceProfileId, wirelessDeviceType, fuotaTaskId, multicastGroupIdLists the wireless devices registered to your AWS account.
create_wireless_deviceinsertregion, DestinationNameProvisions a wireless device.
associate_wireless_device_with_thingupdateid, region, ThingArnAssociates a wireless device with a thing.
update_wireless_deviceupdateid, regionUpdates properties of a wireless device.
delete_wireless_devicedeleteid, regionDeletes a wireless device.
deregister_wireless_devicedeleteidentifier, regionWirelessDeviceTypeDeregister a wireless device from AWS IoT Wireless.
disassociate_wireless_device_from_thingexecid, regionDisassociates a wireless device from its currently associated thing.
start_wireless_device_import_taskexecregion, DestinationNameStart import task for provisioning Sidewalk devices in bulk using an S3 CSV file.

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
idstringThe ID of the resource to update.
identifierstringThe identifier of the wireless device to deregister from AWS IoT Wireless.
identifierTypestringThe type of identifier used in identifier.
regionstringAWS region (default: us-east-1)
WirelessDeviceTypestringThe type of wireless device to deregister from AWS IoT Wireless, which can be LoRaWAN or Sidewalk.
destinationNamestringA filter to list only the wireless devices that use as uplink destination.
deviceProfileIdstringA filter to list only the wireless devices that use this device profile.
fuotaTaskIdstring
maxResultsintegerThe maximum number of results to return in this operation.
multicastGroupIdstring
nextTokenstringTo retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.
serviceProfileIdstringA filter to list only the wireless devices that use this service profile.
wirelessDeviceTypestringA filter to list only the wireless devices that use this wireless device type.

SELECT examples

Gets information about a wireless device.

SELECT
arn,
description,
destination_name,
id,
lo_ra_wan,
name,
positioning,
sidewalk,
thing_arn,
thing_name,
type
FROM aws.iotwireless.wireless_devices
WHERE identifier = '{{ identifier }}' -- required
AND identifierType = '{{ identifierType }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Provisions a wireless device.

INSERT INTO aws.iotwireless.wireless_devices (
Type,
Name,
Description,
DestinationName,
ClientRequestToken,
LoRaWAN,
Tags,
Positioning,
Sidewalk,
region
)
SELECT
'{{ Type }}',
'{{ Name }}',
'{{ Description }}',
'{{ DestinationName }}' /* required */,
'{{ ClientRequestToken }}',
'{{ LoRaWAN }}',
'{{ Tags }}',
'{{ Positioning }}',
'{{ Sidewalk }}',
'{{ region }}'
RETURNING
arn,
id
;

UPDATE examples

Associates a wireless device with a thing.

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

DELETE examples

Deletes a wireless device.

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

Lifecycle Methods

Disassociates a wireless device from its currently associated thing.

EXEC aws.iotwireless.wireless_devices.disassociate_wireless_device_from_thing
@id='{{ id }}' --required,
@region='{{ region }}' --required
;