Skip to main content

wireless_device_import_tasks

Creates, updates, deletes or gets a wireless_device_import_task resource or lists wireless_device_import_tasks in a region

Overview

Namewireless_device_import_tasks
TypeResource
DescriptionWireless Device Import Tasks
Idawscc.iotwireless.wireless_device_import_tasks

Fields

NameDatatypeDescription
idstringId for Wireless Device Import Task, Returned upon successful start.
arnstringArn for Wireless Device Import Task, Returned upon successful start.
destination_namestringDestination Name for import task
creation_datestringCreationDate for import task
sidewalkobjectsidewalk contain file for created device and role
statusstringStatus for import task
status_reasonstringStatusReason for import task
initialized_imported_devices_countintegerInitialized Imported Devices Count
pending_imported_devices_countintegerPending Imported Devices Count
onboarded_imported_devices_countintegerOnboarded Imported Devices Count
failed_imported_devices_countintegerFailed Imported Devices Count
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

For more information, see AWS::IoTWireless::WirelessDeviceImportTask.

Methods

NameResourceAccessible byRequired Params
create_resourcewireless_device_import_tasksINSERTDestinationName, Sidewalk, region
delete_resourcewireless_device_import_tasksDELETEIdentifier, region
update_resourcewireless_device_import_tasksUPDATEIdentifier, PatchDocument, region
list_resourceswireless_device_import_tasks_list_onlySELECTregion
get_resourcewireless_device_import_tasksSELECTIdentifier, region

SELECT examples

Gets all properties from an individual wireless_device_import_task.

SELECT
region,
id,
arn,
destination_name,
creation_date,
sidewalk,
status,
status_reason,
initialized_imported_devices_count,
pending_imported_devices_count,
onboarded_imported_devices_count,
failed_imported_devices_count,
tags
FROM awscc.iotwireless.wireless_device_import_tasks
WHERE
region = '{{ region }}' AND
Identifier = '{{ id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.iotwireless.wireless_device_import_tasks (
DestinationName,
Sidewalk,
region
)
SELECT
'{{ destination_name }}',
'{{ sidewalk }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

Use the following StackQL query and manifest file to update a wireless_device_import_task resource, using stack-deploy.

/*+ update */
UPDATE awscc.iotwireless.wireless_device_import_tasks
SET PatchDocument = string('{{ {
"DestinationName": destination_name,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ id }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.iotwireless.wireless_device_import_tasks
WHERE
Identifier = '{{ id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

iotwireless:StartWirelessDeviceImportTask,
iotwireless:StartSingleWirelessDeviceImportTask,
iotwireless:TagResource,
iam:PassRole