Skip to main content

device_fleets

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

Overview

Namedevice_fleets
TypeResource
Idaws.sagemaker.device_fleets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestring (date-time)Timestamp of when the device fleet was created.
descriptionstringA description of the fleet. (pattern: <code>[-a-zA-Z0-9_.,;:! ]*</code>)
device_fleet_arnstringThe The Amazon Resource Name (ARN) of the fleet. (pattern: <code>arn:aws[a-z-]*:iam::\d{12}:device-fleet/?[a-zA-Z_0-9+=,.@-_/]+</code>)
device_fleet_namestringThe name of the fleet. (pattern: <code>[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}</code>)
iot_role_aliasstringThe Amazon Resource Name (ARN) alias created in Amazon Web Services Internet of Things (IoT). (pattern: <code>arn:aws[a-z-]*:iam::\d{12}:rolealias/?[a-zA-Z_0-9+=,.@-_/]+</code>)
last_modified_timestring (date-time)Timestamp of when the device fleet was last updated.
output_configobjectThe output configuration for storing sampled data.
role_arnstringThe Amazon Resource Name (ARN) that has access to Amazon Web Services Internet of Things (IoT). (pattern: <code>arn:aws[a-z-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@-_/]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_device_fleetselectregionA description of the fleet the device belongs to.
list_device_fleetsselectregionReturns a list of devices in the fleet.
create_device_fleetinsertregion, DeviceFleetName, OutputConfigCreates a device fleet.
update_device_fleetupdateregion, DeviceFleetName, OutputConfigUpdates a fleet of devices.
delete_device_fleetdeleteregionDeletes a fleet.

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)

SELECT examples

A description of the fleet the device belongs to.

SELECT
creation_time,
description,
device_fleet_arn,
device_fleet_name,
iot_role_alias,
last_modified_time,
output_config,
role_arn
FROM aws.sagemaker.device_fleets
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a device fleet.

INSERT INTO aws.sagemaker.device_fleets (
DeviceFleetName,
RoleArn,
Description,
OutputConfig,
Tags,
EnableIotRoleAlias,
region
)
SELECT
'{{ DeviceFleetName }}' /* required */,
'{{ RoleArn }}',
'{{ Description }}',
'{{ OutputConfig }}' /* required */,
'{{ Tags }}',
{{ EnableIotRoleAlias }},
'{{ region }}'
;

UPDATE examples

Updates a fleet of devices.

UPDATE aws.sagemaker.device_fleets
SET
DeviceFleetName = '{{ DeviceFleetName }}',
RoleArn = '{{ RoleArn }}',
Description = '{{ Description }}',
OutputConfig = '{{ OutputConfig }}',
EnableIotRoleAlias = {{ EnableIotRoleAlias }}
WHERE
region = '{{ region }}' --required
AND DeviceFleetName = '{{ DeviceFleetName }}' --required
AND OutputConfig = '{{ OutputConfig }}' --required;

DELETE examples

Deletes a fleet.

DELETE FROM aws.sagemaker.device_fleets
WHERE region = '{{ region }}' --required
;