Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Returns a list of tasks that can be filtered by state.

Example

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

import { SnowDeviceManagementClient, ListTasksCommand } from "@aws-sdk/client-snow-device-management"; // ES Modules import
// const { SnowDeviceManagementClient, ListTasksCommand } = require("@aws-sdk/client-snow-device-management"); // CommonJS import
const client = new SnowDeviceManagementClient(config);
const input = { // ListTasksInput
state: "STRING_VALUE",
maxResults: Number("int"),
nextToken: "STRING_VALUE",
};
const command = new ListTasksCommand(input);
const response = await client.send(command);
// { // ListTasksOutput
// tasks: [ // TaskSummaryList
// { // TaskSummary
// taskId: "STRING_VALUE", // required
// taskArn: "STRING_VALUE",
// state: "STRING_VALUE",
// tags: { // TagMap
// "<keys>": "STRING_VALUE",
// },
// },
// ],
// nextToken: "STRING_VALUE",
// };

Param

ListTasksCommandInput

Returns

ListTasksCommandOutput

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

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