Skip to main content

thing_registration_tasks

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

Overview

Namething_registration_tasks
TypeResource
Idaws.iot.thing_registration_tasks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_datestring (date-time)The task creation date.
failure_countintegerThe number of things that failed to be provisioned.
input_file_bucketstringThe S3 bucket that contains the input file. (pattern: <code>[a-zA-Z0-9._-]+</code>)
input_file_keystringThe input file key. (pattern: <code>[a-zA-Z0-9!_.*'()-/]+</code>)
last_modified_datestring (date-time)The date when the task was last modified.
messagestringThe message.
percentage_progressintegerThe progress of the bulk provisioning task expressed as a percentage.
role_arnstringThe role ARN that grants access to the input file bucket.
statusstringThe status of the bulk thing provisioning task. (InProgress, Completed, Failed, Cancelled, Cancelling)
success_countintegerThe number of things successfully provisioned.
task_idstringThe task ID.
template_bodystringThe task's template. (pattern: <code>[\s\S]*</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_thing_registration_taskselecttask_id, regionDescribes a bulk thing provisioning task. Requires permission to access the DescribeThingRegistrationTask action.
list_thing_registration_tasksselectregionnextToken, maxResults, statusList bulk thing provisioning tasks. Requires permission to access the ListThingRegistrationTasks action.

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
regionstringAWS region (default: us-east-1)
task_idstringThe task ID.
maxResultsintegerThe maximum number of results to return at one time.
nextTokenstringTo retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.
statusstringThe status of the bulk thing provisioning task.

SELECT examples

Describes a bulk thing provisioning task. Requires permission to access the DescribeThingRegistrationTask action.

SELECT
creation_date,
failure_count,
input_file_bucket,
input_file_key,
last_modified_date,
message,
percentage_progress,
role_arn,
status,
success_count,
task_id,
template_body
FROM aws.iot.thing_registration_tasks
WHERE task_id = '{{ task_id }}' -- required
AND region = '{{ region }}' -- required
;