import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DisableGatewayInput, DisableGatewayOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DisableGatewayCommand}. */ export interface DisableGatewayCommandInput extends DisableGatewayInput { } /** * @public * * The output of {@link DisableGatewayCommand}. */ export interface DisableGatewayCommandOutput extends DisableGatewayOutput, __MetadataBearer { } declare const DisableGatewayCommand_base: { new (input: DisableGatewayCommandInput): import("@smithy/core/client").CommandImpl; new (input: DisableGatewayCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Disables a tape gateway when the gateway is no longer functioning. For example, if your * gateway VM is damaged, you can disable the gateway so you can recover virtual tapes.

*

Use this operation for a tape gateway that is not reachable or not functioning. This * operation is only supported in the tape gateway type.

* *

After a gateway is disabled, it cannot be enabled.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { StorageGatewayClient, DisableGatewayCommand } from "@aws-sdk/client-storage-gateway"; // ES Modules import * // const { StorageGatewayClient, DisableGatewayCommand } = 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 = { // DisableGatewayInput * GatewayARN: "STRING_VALUE", // required * }; * const command = new DisableGatewayCommand(input); * const response = await client.send(command); * // { // DisableGatewayOutput * // GatewayARN: "STRING_VALUE", * // }; * * ``` * * @param DisableGatewayCommandInput - {@link DisableGatewayCommandInput} * @returns {@link DisableGatewayCommandOutput} * @see {@link DisableGatewayCommandInput} for command's `input` shape. * @see {@link DisableGatewayCommandOutput} 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 disable a gateway when it is no longer functioning * ```javascript * // Disables a gateway when the gateway is no longer functioning. Use this operation for a gateway-VTL that is not reachable or not functioning. * const input = { * GatewayARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" * }; * const command = new DisableGatewayCommand(input); * const response = await client.send(command); * /* response is * { * GatewayARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" * } * *\/ * ``` * * @public */ export declare class DisableGatewayCommand extends DisableGatewayCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DisableGatewayInput; output: DisableGatewayOutput; }; sdk: { input: DisableGatewayCommandInput; output: DisableGatewayCommandOutput; }; }; }