Skip to main content

ota_task_configurations

Creates, updates, deletes, gets or lists an ota_task_configurations resource.

Overview

Nameota_task_configurations
TypeResource
Idaws.iot_managed_integrations.ota_task_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)The timestamp value of when the over-the-air (OTA) task configuration was created at.
descriptionstringA description of the over-the-air (OTA) task configuration. (pattern: <code>[0-9A-Za-z_- ]+</code>)
namestringThe name of the over-the-air (OTA) task configuration. (pattern: <code>[A-Za-z0-9-_ ]+</code>)
push_configobjectStructure representing a push config.
task_configuration_idstringThe over-the-air (OTA) task configuration id. (pattern: <code>[a-zA-Z0-9]*</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_ota_task_configurationselectidentifier, regionGet a configuraiton for the over-the-air (OTA) task.
list_ota_task_configurationsselectregionNextToken, MaxResultsList all of the over-the-air (OTA) task configurations.
create_ota_task_configurationinsertregionCreate a configuraiton for the over-the-air (OTA) task.
delete_ota_task_configurationdeleteidentifier, regionDelete the over-the-air (OTA) task configuration.

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
identifierstringThe identifier of the over-the-air (OTA) task configuration.
regionstringAWS region (default: us-east-1)
MaxResultsintegerThe maximum number of results to return at one time.
NextTokenstringA token that can be used to retrieve the next set of results.

SELECT examples

Get a configuraiton for the over-the-air (OTA) task.

SELECT
created_at,
description,
name,
push_config,
task_configuration_id
FROM aws.iot_managed_integrations.ota_task_configurations
WHERE identifier = '{{ identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a configuraiton for the over-the-air (OTA) task.

INSERT INTO aws.iot_managed_integrations.ota_task_configurations (
Description,
Name,
PushConfig,
ClientToken,
region
)
SELECT
'{{ Description }}',
'{{ Name }}',
'{{ PushConfig }}',
'{{ ClientToken }}',
'{{ region }}'
RETURNING
task_configuration_id
;

DELETE examples

Delete the over-the-air (OTA) task configuration.

DELETE FROM aws.iot_managed_integrations.ota_task_configurations
WHERE identifier = '{{ identifier }}' --required
AND region = '{{ region }}' --required
;