import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DetachVolumeInput, DetachVolumeOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DetachVolumeCommand}. */ export interface DetachVolumeCommandInput extends DetachVolumeInput { } /** * @public * * The output of {@link DetachVolumeCommand}. */ export interface DetachVolumeCommandOutput extends DetachVolumeOutput, __MetadataBearer { } declare const DetachVolumeCommand_base: { new (input: DetachVolumeCommandInput): import("@smithy/core/client").CommandImpl; new (input: DetachVolumeCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Disconnects a volume from an iSCSI connection and then detaches the volume from the * specified gateway. Detaching and attaching a volume enables you to recover your data from * one gateway to a different gateway without creating a snapshot. It also makes it easier to * move your volumes from an on-premises gateway to a gateway hosted on an Amazon EC2 * instance. This operation is only supported in the volume gateway type.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { StorageGatewayClient, DetachVolumeCommand } from "@aws-sdk/client-storage-gateway"; // ES Modules import * // const { StorageGatewayClient, DetachVolumeCommand } = 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 = { // DetachVolumeInput * VolumeARN: "STRING_VALUE", // required * ForceDetach: true || false, * }; * const command = new DetachVolumeCommand(input); * const response = await client.send(command); * // { // DetachVolumeOutput * // VolumeARN: "STRING_VALUE", * // }; * * ``` * * @param DetachVolumeCommandInput - {@link DetachVolumeCommandInput} * @returns {@link DetachVolumeCommandOutput} * @see {@link DetachVolumeCommandInput} for command's `input` shape. * @see {@link DetachVolumeCommandOutput} 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 DetachVolumeCommand extends DetachVolumeCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DetachVolumeInput; output: DetachVolumeOutput; }; sdk: { input: DetachVolumeCommandInput; output: DetachVolumeCommandOutput; }; }; }