AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 4.5
 
Cancels an export task if it is in PENDING or RUNNING state.

Namespace: Amazon.CloudWatchLogs
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public virtual CancelExportTaskResponse CancelExportTask(
         CancelExportTaskRequest request
)

Parameters

request
Type: Amazon.CloudWatchLogs.Model.CancelExportTaskRequest

Container for the necessary parameters to execute the CancelExportTask service method.

Return Value
Type: Amazon.CloudWatchLogs.Model.CancelExportTaskResponse
The response from the CancelExportTask service method, as returned by CloudWatchLogs.

Exceptions

ExceptionCondition
InvalidOperationException Returned if the operation is not valid on the specified resource
InvalidParameterException Returned if a parameter of the request is incorrectly specified.
ResourceNotFoundException Returned if the specified resource does not exist.
ServiceUnavailableException Returned if the service cannot complete the request.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5