Skip to main content

task_definitions

Creates, updates, deletes or gets a task_definition resource or lists task_definitions in a region

Overview

Nametask_definitions
TypeResource
DescriptionCreates a gateway task definition.
Idaws.iotwireless.task_definitions

Fields

NameDatatypeDescription
namestringThe name of the new resource.
auto_create_tasksbooleanWhether to automatically create tasks using this task definition for all gateways with the specified current version. If false, the task must me created by calling CreateWirelessGatewayTask.
updateobjectInformation about the gateways to update.
lo_ra_wan_update_gateway_task_entryobjectThe list of task definitions.
idstringThe ID of the new wireless gateway task definition
task_definition_typestringA filter to list only the wireless gateway task definitions that use this task definition type
arnstringTaskDefinition arn. Returned after successful create.
tagsarrayA list of key-value pairs that contain metadata for the destination.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTAutoCreateTasks, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all task_definitions in a region.

SELECT
region,
name,
auto_create_tasks,
update,
lo_ra_wan_update_gateway_task_entry,
id,
task_definition_type,
arn,
tags
FROM aws.iotwireless.task_definitions
WHERE region = 'us-east-1';

Gets all properties from an individual task_definition.

SELECT
region,
name,
auto_create_tasks,
update,
lo_ra_wan_update_gateway_task_entry,
id,
task_definition_type,
arn,
tags
FROM aws.iotwireless.task_definitions
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';

INSERT example

Use the following StackQL query and manifest file to create a new task_definition resource, using stack-deploy.

/*+ create */
INSERT INTO aws.iotwireless.task_definitions (
AutoCreateTasks,
region
)
SELECT
'{{ AutoCreateTasks }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.iotwireless.task_definitions
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';

Permissions

To operate on the task_definitions resource, the following permissions are required:

Create

iotwireless:CreateWirelessGatewayTaskDefinition,
iotwireless:TagResource,
iotwireless:ListTagsForResource,
iam:GetRole,
iam:PassRole

Read

iotwireless:GetWirelessGatewayTaskDefinition,
iotwireless:ListTagsForResource

Delete

iotwireless:DeleteWirelessGatewayTaskDefinition

List

iotwireless:ListWirelessGatewayTaskDefinitions,
iotwireless:ListTagsForResource