We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.
Protected
Checks the metadata for a given task on a device.
Use a bare-bones client and the command you need to make an API call.
import { SnowDeviceManagementClient, DescribeTaskCommand } from "@aws-sdk/client-snow-device-management"; // ES Modules import// const { SnowDeviceManagementClient, DescribeTaskCommand } = require("@aws-sdk/client-snow-device-management"); // CommonJS importconst client = new SnowDeviceManagementClient(config);const input = { // DescribeTaskInput taskId: "STRING_VALUE", // required};const command = new DescribeTaskCommand(input);const response = await client.send(command);// { // DescribeTaskOutput// taskId: "STRING_VALUE",// taskArn: "STRING_VALUE",// targets: [ // TargetList// "STRING_VALUE",// ],// state: "STRING_VALUE",// createdAt: new Date("TIMESTAMP"),// lastUpdatedAt: new Date("TIMESTAMP"),// completedAt: new Date("TIMESTAMP"),// description: "STRING_VALUE",// tags: { // TagMap// "<keys>": "STRING_VALUE",// },// };
DescribeTaskCommandInput
DescribeTaskCommandOutput
input
response
config
AccessDeniedException (client fault)
You don't have sufficient access to perform this action.
InternalServerException (server fault)
An unexpected error occurred while processing the request.
ResourceNotFoundException (client fault)
The request references a resource that doesn't exist.
ThrottlingException (client fault)
The request was denied due to request throttling.
ValidationException (client fault)
The input fails to satisfy the constraints specified by an Amazon Web Services service.
SnowDeviceManagementServiceException
Base exception class for all service exceptions from SnowDeviceManagement service.
Readonly
Static
Checks the metadata for a given task on a device.
Example
Use a bare-bones client and the command you need to make an API call.
Param
DescribeTaskCommandInput
Returns
DescribeTaskCommandOutput
See
input
shape.response
shape.config
shape.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.