- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
UpdateDevicesCommand
Updates one or more devices in a fleet.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { SageMakerClient, UpdateDevicesCommand } from "@aws-sdk/client-sagemaker"; // ES Modules import
// const { SageMakerClient, UpdateDevicesCommand } = require("@aws-sdk/client-sagemaker"); // CommonJS import
const client = new SageMakerClient(config);
const input = { // UpdateDevicesRequest
DeviceFleetName: "STRING_VALUE", // required
Devices: [ // Devices // required
{ // Device
DeviceName: "STRING_VALUE", // required
Description: "STRING_VALUE",
IotThingName: "STRING_VALUE",
},
],
};
const command = new UpdateDevicesCommand(input);
const response = await client.send(command);
// {};
UpdateDevicesCommand Input
See UpdateDevicesCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
DeviceFleetName Required | string | undefined | The name of the fleet the devices belong to. |
Devices Required | Device[] | undefined | List of devices to register with Edge Manager agent. |
UpdateDevicesCommand Output
See UpdateDevicesCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
SageMakerServiceException | Base exception class for all service exceptions from SageMaker service. |