Skip to main content

wireless_gateways

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

Overview

Namewireless_gateways
TypeResource
Idaws.iotwireless.wireless_gateways

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name of the resource.
descriptionstringThe description of the new resource.
idstringThe ID of the wireless gateway.
lo_ra_wanobjectLoRaWANGateway object.
namestringThe name of the resource.
thing_arnstringThe ARN of the thing associated with the wireless gateway.
thing_namestringThe name of the thing associated with the wireless gateway. The value is empty if a thing isn't associated with the gateway.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_wireless_gatewayselectidentifier, identifierType, regionGets information about a wireless gateway.
list_wireless_gatewaysselectregionnextToken, maxResultsLists the wireless gateways registered to your AWS account.
create_wireless_gatewayinsertregion, LoRaWANProvisions a wireless gateway. When provisioning a wireless gateway, you might run into duplication errors for the following reasons. If you specify a GatewayEui value that already exists. If you used a ClientRequestToken with the same parameters within the last 10 minutes. To avoid this error, make sure that you use unique identifiers and parameters for each request within the specified time period.
associate_wireless_gateway_with_certificateupdateid, region, IotCertificateIdAssociates a wireless gateway with a certificate.
associate_wireless_gateway_with_thingupdateid, region, ThingArnAssociates a wireless gateway with a thing.
update_wireless_gatewayupdateid, regionUpdates properties of a wireless gateway.
delete_wireless_gatewaydeleteid, regionDeletes a wireless gateway. When deleting a wireless gateway, you might run into duplication errors for the following reasons. If you specify a GatewayEui value that already exists. If you used a ClientRequestToken with the same parameters within the last 10 minutes. To avoid this error, make sure that you use unique identifiers and parameters for each request within the specified time period.
disassociate_wireless_gateway_from_certificateexecid, regionDisassociates a wireless gateway from its currently associated certificate.
disassociate_wireless_gateway_from_thingexecid, regionDisassociates a wireless gateway from its currently associated thing.

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 gateway to get.
identifierTypestringThe type of identifier used in identifier.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return in this operation.
nextTokenstringTo retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

SELECT examples

Gets information about a wireless gateway.

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

INSERT examples

Provisions a wireless gateway. When provisioning a wireless gateway, you might run into duplication errors for the following reasons. If you specify a GatewayEui value that already exists. If you used a ClientRequestToken with the same parameters within the last 10 minutes. To avoid this error, make sure that you use unique identifiers and parameters for each request within the specified time period.

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

UPDATE examples

Associates a wireless gateway with a certificate.

UPDATE aws.iotwireless.wireless_gateways
SET
IotCertificateId = '{{ IotCertificateId }}'
WHERE
id = '{{ id }}' --required
AND region = '{{ region }}' --required
AND IotCertificateId = '{{ IotCertificateId }}' --required
RETURNING
iot_certificate_id;

DELETE examples

Deletes a wireless gateway. When deleting a wireless gateway, you might run into duplication errors for the following reasons. If you specify a GatewayEui value that already exists. If you used a ClientRequestToken with the same parameters within the last 10 minutes. To avoid this error, make sure that you use unique identifiers and parameters for each request within the specified time period.

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

Lifecycle Methods

Disassociates a wireless gateway from its currently associated certificate.

EXEC aws.iotwireless.wireless_gateways.disassociate_wireless_gateway_from_certificate
@id='{{ id }}' --required,
@region='{{ region }}' --required
;