import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CancelJobRequest, CancelJobResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CancelJobCommand}. */ export interface CancelJobCommandInput extends CancelJobRequest { } /** * @public * * The output of {@link CancelJobCommand}. */ export interface CancelJobCommandOutput extends CancelJobResult, __MetadataBearer { } declare const CancelJobCommand_base: { new (input: CancelJobCommandInput): import("@smithy/core/client").CommandImpl; new (input: CancelJobCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Cancels the specified job. You can only cancel a job before its JobState * value changes to PreparingAppliance. Requesting the ListJobs or * DescribeJob action returns a job's JobState as part of the * response element data returned.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SnowballClient, CancelJobCommand } from "@aws-sdk/client-snowball"; // ES Modules import * // const { SnowballClient, CancelJobCommand } = require("@aws-sdk/client-snowball"); // CommonJS import * // import type { SnowballClientConfig } from "@aws-sdk/client-snowball"; * const config = {}; // type is SnowballClientConfig * const client = new SnowballClient(config); * const input = { // CancelJobRequest * JobId: "STRING_VALUE", // required * }; * const command = new CancelJobCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param CancelJobCommandInput - {@link CancelJobCommandInput} * @returns {@link CancelJobCommandOutput} * @see {@link CancelJobCommandInput} for command's `input` shape. * @see {@link CancelJobCommandOutput} for command's `response` shape. * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape. * * @throws {@link InvalidJobStateException} (client fault) *

The action can't be performed because the job's current state doesn't allow that action * to be performed.

* * @throws {@link InvalidResourceException} (client fault) *

The specified resource can't be found. Check the information you provided in your last * request, and try again.

* * @throws {@link KMSRequestFailedException} (client fault) *

The provided Key Management Service key lacks the permissions to perform the specified * CreateJob or UpdateJob action.

* * @throws {@link SnowballServiceException} *

Base exception class for all service exceptions from Snowball service.

* * * @example To cancel a job for a Snowball device * ```javascript * // This operation cancels a job. You can only cancel a job before its JobState value changes to PreparingAppliance. * const input = { * JobId: "JID123e4567-e89b-12d3-a456-426655440000" * }; * const command = new CancelJobCommand(input); * const response = await client.send(command); * /* response is * { /* metadata only *\/ } * *\/ * ``` * * @public */ export declare class CancelJobCommand extends CancelJobCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CancelJobRequest; output: {}; }; sdk: { input: CancelJobCommandInput; output: CancelJobCommandOutput; }; }; }