Skip to main content

device_fleets

Creates, updates, deletes or gets a device_fleet resource or lists device_fleets in a region

Overview

Namedevice_fleets
TypeResource
DescriptionResource schema for AWS::SageMaker::DeviceFleet
Idaws.sagemaker.device_fleets

Fields

NameDatatypeDescription
descriptionstringDescription for the edge device fleet
device_fleet_namestringThe name of the edge device fleet
output_configobjectS3 bucket and an ecryption key id (if available) to store outputs for the fleet
role_arnstringRole associated with the device fleet
tagsarrayAssociate tags with the resource
regionstringAWS region.

Methods

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

SELECT examples

Gets all properties from an individual device_fleet.

SELECT
region,
description,
device_fleet_name,
output_config,
role_arn,
tags
FROM aws.sagemaker.device_fleets
WHERE region = 'us-east-1' AND data__Identifier = '<DeviceFleetName>';

INSERT example

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

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

DELETE example

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

Permissions

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

Create

sagemaker:CreateDeviceFleet,
iam:PassRole

Read

sagemaker:DescribeDeviceFleet

Update

sagemaker:UpdateDeviceFleet,
iam:PassRole

Delete

sagemaker:DeleteDeviceFleet