import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { AddCacheInput, AddCacheOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link AddCacheCommand}. */ export interface AddCacheCommandInput extends AddCacheInput { } /** * @public * * The output of {@link AddCacheCommand}. */ export interface AddCacheCommandOutput extends AddCacheOutput, __MetadataBearer { } declare const AddCacheCommand_base: { new (input: AddCacheCommandInput): import("@smithy/core/client").CommandImpl; new (input: AddCacheCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Configures one or more gateway local disks as cache for a gateway. This operation is * only supported in the cached volume, tape, and file gateway type (see How Storage Gateway works (architecture).

*

In the request, you specify the gateway Amazon Resource Name (ARN) to which you want to * add cache, and one or more disk IDs that you want to configure as cache.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { StorageGatewayClient, AddCacheCommand } from "@aws-sdk/client-storage-gateway"; // ES Modules import * // const { StorageGatewayClient, AddCacheCommand } = 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 = { // AddCacheInput * GatewayARN: "STRING_VALUE", // required * DiskIds: [ // DiskIds // required * "STRING_VALUE", * ], * }; * const command = new AddCacheCommand(input); * const response = await client.send(command); * // { // AddCacheOutput * // GatewayARN: "STRING_VALUE", * // }; * * ``` * * @param AddCacheCommandInput - {@link AddCacheCommandInput} * @returns {@link AddCacheCommandOutput} * @see {@link AddCacheCommandInput} for command's `input` shape. * @see {@link AddCacheCommandOutput} 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.

* * * @example To add a cache * ```javascript * // The following example shows a request that activates a gateway-stored volume. * const input = { * DiskIds: [ * "pci-0000:03:00.0-scsi-0:0:0:0", * "pci-0000:03:00.0-scsi-0:0:1:0" * ], * GatewayARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" * }; * const command = new AddCacheCommand(input); * const response = await client.send(command); * /* response is * { * GatewayARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" * } * *\/ * ``` * * @public */ export declare class AddCacheCommand extends AddCacheCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AddCacheInput; output: AddCacheOutput; }; sdk: { input: AddCacheCommandInput; output: AddCacheCommandOutput; }; }; }