Skip to main content

wireless_gateways

Creates, updates, deletes or gets a wireless_gateway resource or lists wireless_gateways in a region

Overview

Namewireless_gateways
TypeResource
DescriptionCreate and manage wireless gateways, including LoRa gateways.
Idaws.iotwireless.wireless_gateways

Fields

NameDatatypeDescription
namestringName of Wireless Gateway.
descriptionstringDescription of Wireless Gateway.
tagsarrayA list of key-value pairs that contain metadata for the gateway.
lo_ra_wanobjectThe combination of Package, Station and Model which represents the version of the LoRaWAN Wireless Gateway.
arnstringArn for Wireless Gateway. Returned upon successful create.
idstringId for Wireless Gateway. Returned upon successful create.
thing_arnstringThing Arn. Passed into Update to associate a Thing with the Wireless Gateway.
thing_namestringThing Name. 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.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTLoRaWAN, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all wireless_gateways in a region.

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

Gets all properties from an individual wireless_gateway.

SELECT
region,
name,
description,
tags,
lo_ra_wan,
arn,
id,
thing_arn,
thing_name,
last_uplink_received_at
FROM aws.iotwireless.wireless_gateways
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';

INSERT example

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

/*+ create */
INSERT INTO aws.iotwireless.wireless_gateways (
LoRaWAN,
region
)
SELECT
'{{ LoRaWAN }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

iotwireless:CreateWirelessGateway,
iotwireless:TagResource,
iotwireless:ListTagsForResource

Read

iotwireless:GetWirelessGateway,
iotwireless:ListTagsForResource

Update

iotwireless:UpdateWirelessGateway,
iotwireless:UntagResource,
iotwireless:ListTagsForResource,
iotwireless:AssociateWirelessGatewayWithThing

Delete

iotwireless:DeleteWirelessGateway,
iotwireless:DisassociateWirelessGatewayFromThing

List

iotwireless:ListWirelessGateways,
iotwireless:ListTagsForResource