Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class ListExecutionsCommandProtected

Returns the status of tasks for one or more target devices.

Example

Use a bare-bones client and the command you need to make an API call.

import { SnowDeviceManagementClient, ListExecutionsCommand } from "@aws-sdk/client-snow-device-management"; // ES Modules import
// const { SnowDeviceManagementClient, ListExecutionsCommand } = require("@aws-sdk/client-snow-device-management"); // CommonJS import
const client = new SnowDeviceManagementClient(config);
const input = { // ListExecutionsInput
taskId: "STRING_VALUE", // required
state: "STRING_VALUE",
maxResults: Number("int"),
nextToken: "STRING_VALUE",
};
const command = new ListExecutionsCommand(input);
const response = await client.send(command);
// { // ListExecutionsOutput
// executions: [ // ExecutionSummaryList
// { // ExecutionSummary
// taskId: "STRING_VALUE",
// executionId: "STRING_VALUE",
// managedDeviceId: "STRING_VALUE",
// state: "STRING_VALUE",
// },
// ],
// nextToken: "STRING_VALUE",
// };

Param

ListExecutionsCommandInput

Returns

ListExecutionsCommandOutput

See

Throws

AccessDeniedException (client fault)

You don't have sufficient access to perform this action.

Throws

InternalServerException (server fault)

An unexpected error occurred while processing the request.

Throws

ResourceNotFoundException (client fault)

The request references a resource that doesn't exist.

Throws

ThrottlingException (client fault)

The request was denied due to request throttling.

Throws

ValidationException (client fault)

The input fails to satisfy the constraints specified by an Amazon Web Services service.

Throws

SnowDeviceManagementServiceException

Base exception class for all service exceptions from SnowDeviceManagement service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods