Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CancelTaskExecutionCommand

Stops an DataSync task execution that's in progress. The transfer of some files are abruptly interrupted. File contents that're transferred to the destination might be incomplete or inconsistent with the source files.

However, if you start a new task execution using the same task and allow it to finish, file content on the destination will be complete and consistent. This applies to other unexpected failures that interrupt a task execution. In all of these cases, DataSync successfully completes the transfer when you start the next task execution.

example

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

import { DataSyncClient, CancelTaskExecutionCommand } from "@aws-sdk/client-datasync"; // ES Modules import
// const { DataSyncClient, CancelTaskExecutionCommand } = require("@aws-sdk/client-datasync"); // CommonJS import
const client = new DataSyncClient(config);
const command = new CancelTaskExecutionCommand(input);
const response = await client.send(command);
see

CancelTaskExecutionCommandInput for command's input shape.

see

CancelTaskExecutionCommandOutput for command's response shape.

see

config for DataSyncClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: CancelTaskExecutionCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions