Skip to main content

service_profiles

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

Overview

Nameservice_profiles
TypeResource
Idaws.iotwireless.service_profiles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name of the resource.
idstringThe ID of the service profile.
lo_ra_wanobjectInformation about the service profile.
namestringThe name of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_service_profileselectid, regionGets information about a service profile.
list_service_profilesselectregionnextToken, maxResultsLists the service profiles registered to your AWS account.
create_service_profileinsertregionCreates a new service profile.
delete_service_profiledeleteid, regionDeletes a service 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)
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 service profile.

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

INSERT examples

Creates a new service profile.

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

DELETE examples

Deletes a service profile.

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