import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CancelCacheReportInput, CancelCacheReportOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CancelCacheReportCommand}. */ export interface CancelCacheReportCommandInput extends CancelCacheReportInput { } /** * @public * * The output of {@link CancelCacheReportCommand}. */ export interface CancelCacheReportCommandOutput extends CancelCacheReportOutput, __MetadataBearer { } declare const CancelCacheReportCommand_base: { new (input: CancelCacheReportCommandInput): import("@smithy/core/client").CommandImpl; new (input: CancelCacheReportCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Cancels generation of a specified cache report. You can use this operation to manually * cancel an IN-PROGRESS report for any reason. This action changes the report status from * IN-PROGRESS to CANCELLED. You can only cancel in-progress reports. If the the report you * attempt to cancel is in FAILED, ERROR, or COMPLETED state, the cancel operation returns an * error.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { StorageGatewayClient, CancelCacheReportCommand } from "@aws-sdk/client-storage-gateway"; // ES Modules import * // const { StorageGatewayClient, CancelCacheReportCommand } = require("@aws-sdk/client-storage-gateway"); // CommonJS import * // import type { StorageGatewayClientConfig } from "@aws-sdk/client-storage-gateway"; * const config = {}; // type is StorageGatewayClientConfig * const client = new StorageGatewayClient(config); * const input = { // CancelCacheReportInput * CacheReportARN: "STRING_VALUE", // required * }; * const command = new CancelCacheReportCommand(input); * const response = await client.send(command); * // { // CancelCacheReportOutput * // CacheReportARN: "STRING_VALUE", * // }; * * ``` * * @param CancelCacheReportCommandInput - {@link CancelCacheReportCommandInput} * @returns {@link CancelCacheReportCommandOutput} * @see {@link CancelCacheReportCommandInput} for command's `input` shape. * @see {@link CancelCacheReportCommandOutput} for command's `response` shape. * @see {@link StorageGatewayClientResolvedConfig | config} for StorageGatewayClient's `config` shape. * * @throws {@link InternalServerError} (server fault) *

An internal server error has occurred during the request. For more information, see the * error and message fields.

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

An exception occurred because an invalid gateway request was issued to the service. For * more information, see the error and message fields.

* * @throws {@link StorageGatewayServiceException} *

Base exception class for all service exceptions from StorageGateway service.

* * * @public */ export declare class CancelCacheReportCommand extends CancelCacheReportCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CancelCacheReportInput; output: CancelCacheReportOutput; }; sdk: { input: CancelCacheReportCommandInput; output: CancelCacheReportCommandOutput; }; }; }