Jump to Content

Class CancelQuantumTaskCommandProtected

Cancels the specified task.

Example

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

import { BraketClient, CancelQuantumTaskCommand } from "@aws-sdk/client-braket"; // ES Modules import
// const { BraketClient, CancelQuantumTaskCommand } = require("@aws-sdk/client-braket"); // CommonJS import
const client = new BraketClient(config);
const input = { // CancelQuantumTaskRequest
quantumTaskArn: "STRING_VALUE", // required
clientToken: "STRING_VALUE", // required
};
const command = new CancelQuantumTaskCommand(input);
const response = await client.send(command);

Param

CancelQuantumTaskCommandInput

Returns

CancelQuantumTaskCommandOutput

See

Throws

AccessDeniedException (client fault)

You do not have sufficient access to perform this action.

Throws

ConflictException (client fault)

An error occurred due to a conflict.

Throws

InternalServiceException (server fault)

The request processing has failed because of an unknown error, exception, or failure.

Throws

ResourceNotFoundException (client fault)

The specified resource was not found.

Throws

ThrottlingException (client fault)

The throttling rate limit is met.

Throws

ValidationException (client fault)

The input fails to satisfy the constraints specified by an AWS service.

Hierarchy

Constructors

Properties

Methods