CmdID / aws / aws iotwireless
aws iotwireless create-wireless-gateway-task-definition
Creates a gateway task definition. AWS CLI reference
1 example 5 options Its page in the AWS CLI reference
Examples
To create a wireless gateway task definition
The following create-wireless-gateway-task-definition example automatically creates tasks using this task definition for all gateways with the specified current version.
aws iotwireless create-wireless-gateway-task-definition --cli-input-json file://input.jsonIdentifyContents of input.json:
{
"AutoCreateTasks": true,
"Name": "TestAutoUpdate",
"Update":{
"UpdateDataSource" : "s3://amzn-s3-demo-bucket/station",
"UpdateDataRole" : "arn:aws:iam::123456789012:role/SDK_Test_Role",
"LoRaWAN" :{
"CurrentVersion" :{
"PackageVersion" : "1.0.0",
"Station" : "2.0.5",
"Model" : "linux"
},
"UpdateVersion" :{
"PackageVersion" : "1.0.1",
"Station" : "2.0.5",
"Model" : "minihub"
}
}
}
}
Its output
{
"Id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
}For more information, see Connecting devices and gateways to AWS IoT Core for LoRaWAN in the AWS IoT Developers Guide.
Options
--auto-create-tasksWhether to automatically create tasks using this task definition for all gateways with the specified current version.--client-request-tokenEach resource must have a unique client request token.--nameThe name of the new resource.--tagsThe tags to attach to the specified resource.--updateInformation about the gateways to update.