Skip to main content

device_profiles

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

Overview

Namedevice_profiles
TypeResource
Idaws.iotwireless.device_profiles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name of the resource.
idstringThe ID of the device profile.
lo_ra_wanobjectLoRaWANDeviceProfile object.
namestringThe name of the resource.
sidewalkobjectInformation about the Sidewalk parameters in the device profile.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_device_profileselectid, regionGets information about a device profile.
list_device_profilesselectregionnextToken, maxResults, deviceProfileTypeLists the device profiles registered to your AWS account.
create_device_profileinsertregionCreates a new device profile.
delete_device_profiledeleteid, regionDeletes a device profile.

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 delete.
regionstringAWS region (default: us-east-1)
deviceProfileTypestringA filter to list only device profiles that use this type, which can be LoRaWAN or Sidewalk.
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 device profile.

SELECT
arn,
id,
lo_ra_wan,
name,
sidewalk
FROM aws.iotwireless.device_profiles
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new device profile.

INSERT INTO aws.iotwireless.device_profiles (
Name,
LoRaWAN,
Tags,
ClientRequestToken,
Sidewalk,
region
)
SELECT
'{{ Name }}',
'{{ LoRaWAN }}',
'{{ Tags }}',
'{{ ClientRequestToken }}',
'{{ Sidewalk }}',
'{{ region }}'
RETURNING
arn,
id
;

DELETE examples

Deletes a device profile.

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