We are excited to announce our new API Documentation.
Protected
Cancels the specified export task.
The task must be in the PENDING or RUNNING state.
PENDING
RUNNING
Use a bare-bones client and the command you need to make an API call.
import { CloudWatchLogsClient, CancelExportTaskCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import// const { CloudWatchLogsClient, CancelExportTaskCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS importconst client = new CloudWatchLogsClient(config);const input = { // CancelExportTaskRequest taskId: "STRING_VALUE", // required};const command = new CancelExportTaskCommand(input);const response = await client.send(command);// {};
CancelExportTaskCommandInput
CancelExportTaskCommandOutput
input
response
config
InvalidOperationException (client fault)
The operation is not valid on the specified resource.
InvalidParameterException (client fault)
A parameter is specified incorrectly.
ResourceNotFoundException (client fault)
The specified resource does not exist.
ServiceUnavailableException (server fault)
The service cannot complete the request.
CloudWatchLogsServiceException
Base exception class for all service exceptions from CloudWatchLogs service.
Readonly
Static
Cancels the specified export task.
The task must be in the
PENDING
orRUNNING
state.Example
Use a bare-bones client and the command you need to make an API call.
Param
CancelExportTaskCommandInput
Returns
CancelExportTaskCommandOutput
See
input
shape.response
shape.config
shape.Throws
InvalidOperationException (client fault)
The operation is not valid on the specified resource.
Throws
InvalidParameterException (client fault)
A parameter is specified incorrectly.
Throws
ResourceNotFoundException (client fault)
The specified resource does not exist.
Throws
ServiceUnavailableException (server fault)
The service cannot complete the request.
Throws
CloudWatchLogsServiceException
Base exception class for all service exceptions from CloudWatchLogs service.