import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CancelExportTaskMessage, ExportTask } from "../models/models_0"; import type { RDSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CancelExportTaskCommand}. */ export interface CancelExportTaskCommandInput extends CancelExportTaskMessage { } /** * @public * * The output of {@link CancelExportTaskCommand}. */ export interface CancelExportTaskCommandOutput extends ExportTask, __MetadataBearer { } declare const CancelExportTaskCommand_base: { new (input: CancelExportTaskCommandInput): import("@smithy/core/client").CommandImpl; new (input: CancelExportTaskCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Cancels an export task in progress that is exporting a snapshot or cluster to Amazon S3. Any data that has already been written to the S3 bucket isn't removed.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RDSClient, CancelExportTaskCommand } from "@aws-sdk/client-rds"; // ES Modules import * // const { RDSClient, CancelExportTaskCommand } = require("@aws-sdk/client-rds"); // CommonJS import * // import type { RDSClientConfig } from "@aws-sdk/client-rds"; * const config = {}; // type is RDSClientConfig * const client = new RDSClient(config); * const input = { // CancelExportTaskMessage * ExportTaskIdentifier: "STRING_VALUE", // required * }; * const command = new CancelExportTaskCommand(input); * const response = await client.send(command); * // { // ExportTask * // ExportTaskIdentifier: "STRING_VALUE", * // SourceArn: "STRING_VALUE", * // ExportOnly: [ // StringList * // "STRING_VALUE", * // ], * // SnapshotTime: new Date("TIMESTAMP"), * // TaskStartTime: new Date("TIMESTAMP"), * // TaskEndTime: new Date("TIMESTAMP"), * // S3Bucket: "STRING_VALUE", * // S3Prefix: "STRING_VALUE", * // IamRoleArn: "STRING_VALUE", * // KmsKeyId: "STRING_VALUE", * // Status: "STRING_VALUE", * // PercentProgress: Number("int"), * // TotalExtractedDataInGB: Number("int"), * // FailureCause: "STRING_VALUE", * // WarningMessage: "STRING_VALUE", * // SourceType: "SNAPSHOT" || "CLUSTER", * // }; * * ``` * * @param CancelExportTaskCommandInput - {@link CancelExportTaskCommandInput} * @returns {@link CancelExportTaskCommandOutput} * @see {@link CancelExportTaskCommandInput} for command's `input` shape. * @see {@link CancelExportTaskCommandOutput} for command's `response` shape. * @see {@link RDSClientResolvedConfig | config} for RDSClient's `config` shape. * * @throws {@link ExportTaskNotFoundFault} (client fault) *

The export task doesn't exist.

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

You can't cancel an export task that has completed.

* * @throws {@link RDSServiceException} *

Base exception class for all service exceptions from RDS service.

* * * @example To cancel a snapshot export to Amazon S3 * ```javascript * // The following example cancels an export task in progress that is exporting a snapshot to Amazon S3. * const input = { * ExportTaskIdentifier: "my-s3-export-1" * }; * const command = new CancelExportTaskCommand(input); * const response = await client.send(command); * /* response is * { * ExportTaskIdentifier: "my-s3-export-1", * IamRoleArn: "arn:aws:iam::123456789012:role/service-role/export-snap-S3-role", * KmsKeyId: "arn:aws:kms:us-east-1:123456789012:key/abcd0000-7bfd-4594-af38-aabbccddeeff", * PercentProgress: 0, * S3Bucket: "mybucket", * S3Prefix: "", * SnapshotTime: "2019-03-24T20:01:09.815Z", * SourceArn: "arn:aws:rds:us-east-1:123456789012:snapshot:publisher-final-snapshot", * Status: "CANCELING", * TotalExtractedDataInGB: 0 * } * *\/ * ``` * * @public */ export declare class CancelExportTaskCommand extends CancelExportTaskCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CancelExportTaskMessage; output: ExportTask; }; sdk: { input: CancelExportTaskCommandInput; output: CancelExportTaskCommandOutput; }; }; }