import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CancelClusterRequest, CancelClusterResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CancelClusterCommand}. */ export interface CancelClusterCommandInput extends CancelClusterRequest { } /** * @public * * The output of {@link CancelClusterCommand}. */ export interface CancelClusterCommandOutput extends CancelClusterResult, __MetadataBearer { } declare const CancelClusterCommand_base: { new (input: CancelClusterCommandInput): import("@smithy/core/client").CommandImpl; new (input: CancelClusterCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Cancels a cluster job. You can only cancel a cluster job while it's in the * AwaitingQuorum status. You'll have at least an hour after creating a cluster * job to cancel it.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SnowballClient, CancelClusterCommand } from "@aws-sdk/client-snowball"; // ES Modules import * // const { SnowballClient, CancelClusterCommand } = 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 = { // CancelClusterRequest * ClusterId: "STRING_VALUE", // required * }; * const command = new CancelClusterCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param CancelClusterCommandInput - {@link CancelClusterCommandInput} * @returns {@link CancelClusterCommandOutput} * @see {@link CancelClusterCommandInput} for command's `input` shape. * @see {@link CancelClusterCommandOutput} 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 cluster job * ```javascript * // This operation cancels a cluster job. You can only cancel a cluster job while it's in the AwaitingQuorum status. * const input = { * ClusterId: "CID123e4567-e89b-12d3-a456-426655440000" * }; * const command = new CancelClusterCommand(input); * const response = await client.send(command); * /* response is * { /* metadata only *\/ } * *\/ * ``` * * @public */ export declare class CancelClusterCommand extends CancelClusterCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CancelClusterRequest; output: {}; }; sdk: { input: CancelClusterCommandInput; output: CancelClusterCommandOutput; }; }; }