AWS SDK Version 3 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.

Cancels a query that has been issued. Cancellation is provided only if the query has not completed running before the cancellation request was issued. Because cancellation is an idempotent operation, subsequent cancellation requests will return a CancellationMessage, indicating that the query has already been canceled. See code sample for details.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to CancelQueryAsync.

Namespace: Amazon.TimestreamQuery
Assembly: AWSSDK.TimestreamQuery.dll
Version: 3.x.y.z

Syntax

C#
public virtual CancelQueryResponse CancelQuery(
         CancelQueryRequest request
)

Parameters

request
Type: Amazon.TimestreamQuery.Model.CancelQueryRequest

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

Return Value


The response from the CancelQuery service method, as returned by TimestreamQuery.

Exceptions

ExceptionCondition
AccessDeniedException You do not have the necessary permissions to access the account settings.
InternalServerException An internal server error occurred while processing the request.
InvalidEndpointException The requested endpoint is invalid.
ThrottlingException The request was throttled due to excessive requests.
ValidationException Invalid or malformed request.

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also