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

For more information, see AWS::IoTWireless::WirelessDevice.

Methods

NameResourceAccessible byRequired Params
create_resourcewireless_devicesINSERTType, DestinationName, region
delete_resourcewireless_devicesDELETEIdentifier, region
update_resourcewireless_devicesUPDATEIdentifier, PatchDocument, region
list_resourceswireless_devices_list_onlySELECTregion
get_resourcewireless_devicesSELECTIdentifier, region

SELECT examples

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 awscc.iotwireless.wireless_devices
WHERE
region = '{{ region }}' AND
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 awscc.iotwireless.wireless_devices (
Type,
DestinationName,
region
)
SELECT
'{{ type }}',
'{{ destination_name }}',
'{{ 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 wireless_device resource, using stack-deploy.

/*+ update */
UPDATE awscc.iotwireless.wireless_devices
SET PatchDocument = string('{{ {
"Type": type,
"Name": name,
"Description": description,
"DestinationName": destination_name,
"LoRaWAN": lo_ra_wan,
"Tags": tags,
"ThingArn": thing_arn,
"LastUplinkReceivedAt": last_uplink_received_at,
"Positioning": positioning
} | 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.wireless_devices
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 wireless_devices resource, the following permissions are required:

iotwireless:CreateWirelessDevice,
iotwireless:TagResource