Skip to main content

devices

Creates, updates, deletes or gets a device resource or lists devices in a region

Overview

Namedevices
TypeResource
DescriptionResource schema for AWS::SageMaker::Device
Idaws.sagemaker.devices

Fields

NameDatatypeDescription
device_fleet_namestringThe name of the edge device fleet
deviceobjectThe Edge Device you want to register against a device fleet
tagsarrayAssociate tags with the resource
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTDeviceFleetName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual device.

SELECT
region,
device_fleet_name,
device,
tags
FROM aws.sagemaker.devices
WHERE region = 'us-east-1' AND data__Identifier = '<Device/DeviceName>';

INSERT example

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

/*+ create */
INSERT INTO aws.sagemaker.devices (
DeviceFleetName,
region
)
SELECT
'{{ DeviceFleetName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.sagemaker.devices
WHERE data__Identifier = '<Device/DeviceName>'
AND region = 'us-east-1';

Permissions

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

Create

sagemaker:RegisterDevices

Read

sagemaker:DescribeDevice

Update

sagemaker:UpdateDevices

Delete

sagemaker:DeregisterDevices