import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CancelDataRepositoryTaskRequest, CancelDataRepositoryTaskResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CancelDataRepositoryTaskCommand}. */ export interface CancelDataRepositoryTaskCommandInput extends CancelDataRepositoryTaskRequest { } /** * @public * * The output of {@link CancelDataRepositoryTaskCommand}. */ export interface CancelDataRepositoryTaskCommandOutput extends CancelDataRepositoryTaskResponse, __MetadataBearer { } declare const CancelDataRepositoryTaskCommand_base: { new (input: CancelDataRepositoryTaskCommandInput): import("@smithy/core/client").CommandImpl; new (input: CancelDataRepositoryTaskCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Cancels an existing Amazon FSx for Lustre data repository task if that task is in either the * PENDING or EXECUTING state. When you cancel an export task, Amazon FSx * does the following.

* *

For a release task, Amazon FSx will stop releasing files upon cancellation. Any files that * have already been released will remain in the released state.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { FSxClient, CancelDataRepositoryTaskCommand } from "@aws-sdk/client-fsx"; // ES Modules import * // const { FSxClient, CancelDataRepositoryTaskCommand } = require("@aws-sdk/client-fsx"); // CommonJS import * // import type { FSxClientConfig } from "@aws-sdk/client-fsx"; * const config = {}; // type is FSxClientConfig * const client = new FSxClient(config); * const input = { // CancelDataRepositoryTaskRequest * TaskId: "STRING_VALUE", // required * }; * const command = new CancelDataRepositoryTaskCommand(input); * const response = await client.send(command); * // { // CancelDataRepositoryTaskResponse * // Lifecycle: "PENDING" || "EXECUTING" || "FAILED" || "SUCCEEDED" || "CANCELED" || "CANCELING", * // TaskId: "STRING_VALUE", * // }; * * ``` * * @param CancelDataRepositoryTaskCommandInput - {@link CancelDataRepositoryTaskCommandInput} * @returns {@link CancelDataRepositoryTaskCommandOutput} * @see {@link CancelDataRepositoryTaskCommandInput} for command's `input` shape. * @see {@link CancelDataRepositoryTaskCommandOutput} for command's `response` shape. * @see {@link FSxClientResolvedConfig | config} for FSxClient's `config` shape. * * @throws {@link BadRequest} (client fault) *

A generic error indicating a failure with a client request.

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

The data repository task could not be canceled because the task has already ended.

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

The data repository task or tasks you specified could not be found.

* * @throws {@link InternalServerError} (server fault) *

A generic error indicating a server-side failure.

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

The requested operation is not supported for this resource or API.

* * @throws {@link FSxServiceException} *

Base exception class for all service exceptions from FSx service.

* * * @public */ export declare class CancelDataRepositoryTaskCommand extends CancelDataRepositoryTaskCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CancelDataRepositoryTaskRequest; output: CancelDataRepositoryTaskResponse; }; sdk: { input: CancelDataRepositoryTaskCommandInput; output: CancelDataRepositoryTaskCommandOutput; }; }; }