import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DeleteVolumeInput, DeleteVolumeOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DeleteVolumeCommand}. */ export interface DeleteVolumeCommandInput extends DeleteVolumeInput { } /** * @public * * The output of {@link DeleteVolumeCommand}. */ export interface DeleteVolumeCommandOutput extends DeleteVolumeOutput, __MetadataBearer { } declare const DeleteVolumeCommand_base: { new (input: DeleteVolumeCommandInput): import("@smithy/core/client").CommandImpl; new (input: DeleteVolumeCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Deletes the specified storage volume that you previously created using the CreateCachediSCSIVolume or CreateStorediSCSIVolume API. * This operation is only supported in the cached volume and stored volume types. For stored * volume gateways, the local disk that was configured as the storage volume is not deleted. * You can reuse the local disk to create another storage volume.

*

Before you delete a volume, make sure there are no iSCSI connections to the volume you * are deleting. You should also make sure there is no snapshot in progress. You can use the * Amazon Elastic Compute Cloud (Amazon EC2) API to query snapshots on the volume you are * deleting and check the snapshot status. For more information, go to DescribeSnapshots in the Amazon Elastic Compute Cloud API * Reference.

*

In the request, you must provide the Amazon Resource Name (ARN) of the storage volume * you want to delete.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { StorageGatewayClient, DeleteVolumeCommand } from "@aws-sdk/client-storage-gateway"; // ES Modules import * // const { StorageGatewayClient, DeleteVolumeCommand } = 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 = { // DeleteVolumeInput * VolumeARN: "STRING_VALUE", // required * }; * const command = new DeleteVolumeCommand(input); * const response = await client.send(command); * // { // DeleteVolumeOutput * // VolumeARN: "STRING_VALUE", * // }; * * ``` * * @param DeleteVolumeCommandInput - {@link DeleteVolumeCommandInput} * @returns {@link DeleteVolumeCommandOutput} * @see {@link DeleteVolumeCommandInput} for command's `input` shape. * @see {@link DeleteVolumeCommandOutput} 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 delete a gateway volume * ```javascript * // Deletes the specified gateway volume that you previously created using the CreateCachediSCSIVolume or CreateStorediSCSIVolume API. * const input = { * VolumeARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB" * }; * const command = new DeleteVolumeCommand(input); * const response = await client.send(command); * /* response is * { * VolumeARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB" * } * *\/ * ``` * * @public */ export declare class DeleteVolumeCommand extends DeleteVolumeCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteVolumeInput; output: DeleteVolumeOutput; }; sdk: { input: DeleteVolumeCommandInput; output: DeleteVolumeCommandOutput; }; }; }