Skip to main content

wireless_devices

Creates, updates, deletes or gets a wireless_device resource or lists wireless_devices in a region

Overview

Namewireless_devices
TypeResource
DescriptionCreate and manage wireless gateways, including LoRa gateways.
Idaws.iotwireless.wireless_devices

Fields

NameDatatypeDescription
typestringWireless device type, currently only Sidewalk and LoRa
namestringWireless device name
descriptionstringWireless device description
destination_namestringWireless device destination name
lo_ra_wanobjectThe combination of Package, Station and Model which represents the version of the LoRaWAN Wireless Device.
tagsarrayA list of key-value pairs that contain metadata for the device. Currently not supported, will not create if tags are passed.
arnstringWireless device arn. Returned after successful create.
idstringWireless device Id. Returned after successful create.
thing_arnstringThing arn. Passed into update to associate Thing with Wireless device.
thing_namestringThing Arn. If there is a Thing created, this can be returned with a Get call.
last_uplink_received_atstringThe date and time when the most recent uplink was received.
positioningstringFPort values for the GNSS, stream, and ClockSync functions of the positioning information.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTType, DestinationName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all wireless_devices in a region.

SELECT
region,
type,
name,
description,
destination_name,
lo_ra_wan,
tags,
arn,
id,
thing_arn,
thing_name,
last_uplink_received_at,
positioning
FROM aws.iotwireless.wireless_devices
WHERE region = 'us-east-1';

Gets all properties from an individual wireless_device.

SELECT
region,
type,
name,
description,
destination_name,
lo_ra_wan,
tags,
arn,
id,
thing_arn,
thing_name,
last_uplink_received_at,
positioning
FROM aws.iotwireless.wireless_devices
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 resource, using stack-deploy.

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

DELETE example

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

Permissions

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

Create

iotwireless:CreateWirelessDevice,
iotwireless:TagResource,
iotwireless:ListTagsForResource

Read

iotwireless:GetWirelessDevice,
iotwireless:ListTagsForResource

Update

iotwireless:UpdateWirelessDevice,
iotwireless:UntagResource,
iotwireless:ListTagsForResource,
iotwireless:AssociateWirelessDeviceWithThing

Delete

iotwireless:DeleteWirelessDevice,
iotwireless:DisassociateWirelessDeviceFromThing

List

iotwireless:ListWirelessDevices,
iotwireless:ListTagsForResource