service_profiles
Creates, updates, deletes or gets a service_profile
resource or lists service_profiles
in a region
Overview
Name | service_profiles |
Type | Resource |
Description | An example resource schema demonstrating some basic constructs and validation rules. |
Id | aws.iotwireless.service_profiles |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Name of service profile |
lo_ra_wan | object | LoRaWAN supports all LoRa specific attributes for service profile for CreateServiceProfile operation |
tags | array | A list of key-value pairs that contain metadata for the service profile. |
arn | string | Service profile Arn. Returned after successful create. |
id | string | Service profile Id. Returned after successful create. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | , region |
delete_resource | DELETE | data__Identifier, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all service_profiles
in a region.
SELECT
region,
name,
lo_ra_wan,
tags,
arn,
id
FROM aws.iotwireless.service_profiles
WHERE region = 'us-east-1';
Gets all properties from an individual service_profile
.
SELECT
region,
name,
lo_ra_wan,
tags,
arn,
id
FROM aws.iotwireless.service_profiles
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';
INSERT
example
Use the following StackQL query and manifest file to create a new service_profile
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.iotwireless.service_profiles (
,
region
)
SELECT
'{{ }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.iotwireless.service_profiles (
Name,
LoRaWAN,
Tags,
region
)
SELECT
'{{ Name }}',
'{{ LoRaWAN }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: service_profile
props:
- name: Name
value: '{{ Name }}'
- name: LoRaWAN
value:
UlRate: '{{ UlRate }}'
UlBucketSize: '{{ UlBucketSize }}'
UlRatePolicy: '{{ UlRatePolicy }}'
DlRate: '{{ DlRate }}'
DlBucketSize: '{{ DlBucketSize }}'
DlRatePolicy: '{{ DlRatePolicy }}'
AddGwMetadata: '{{ AddGwMetadata }}'
DevStatusReqFreq: '{{ DevStatusReqFreq }}'
ReportDevStatusBattery: '{{ ReportDevStatusBattery }}'
ReportDevStatusMargin: '{{ ReportDevStatusMargin }}'
DrMin: '{{ DrMin }}'
DrMax: '{{ DrMax }}'
ChannelMask: '{{ ChannelMask }}'
PrAllowed: '{{ PrAllowed }}'
HrAllowed: '{{ HrAllowed }}'
RaAllowed: '{{ RaAllowed }}'
NwkGeoLoc: '{{ NwkGeoLoc }}'
TargetPer: '{{ TargetPer }}'
MinGwDiversity: '{{ MinGwDiversity }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
DELETE
example
/*+ delete */
DELETE FROM aws.iotwireless.service_profiles
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';
Permissions
To operate on the service_profiles
resource, the following permissions are required:
Create
iotwireless:CreateServiceProfile,
iotwireless:TagResource,
iotwireless:ListTagsForResource
Read
iotwireless:GetServiceProfile,
iotwireless:ListTagsForResource
Delete
iotwireless:DeleteServiceProfile
List
iotwireless:ListServiceProfiles,
iotwireless:ListTagsForResource