import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { UpdateGatewayInformationInput, UpdateGatewayInformationOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link UpdateGatewayInformationCommand}. */ export interface UpdateGatewayInformationCommandInput extends UpdateGatewayInformationInput { } /** * @public * * The output of {@link UpdateGatewayInformationCommand}. */ export interface UpdateGatewayInformationCommandOutput extends UpdateGatewayInformationOutput, __MetadataBearer { } declare const UpdateGatewayInformationCommand_base: { new (input: UpdateGatewayInformationCommandInput): import("@smithy/core/client").CommandImpl; new (input: UpdateGatewayInformationCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Updates a gateway's metadata, which includes the gateway's name, time zone, * and metadata cache size. To specify which gateway to update, use the Amazon Resource Name * (ARN) of the gateway in your request.

* *

For gateways activated after September 2, 2015, the gateway's ARN contains the * gateway ID rather than the gateway name. However, changing the name of the gateway has * no effect on the gateway's ARN.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { StorageGatewayClient, UpdateGatewayInformationCommand } from "@aws-sdk/client-storage-gateway"; // ES Modules import * // const { StorageGatewayClient, UpdateGatewayInformationCommand } = 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 = { // UpdateGatewayInformationInput * GatewayARN: "STRING_VALUE", // required * GatewayName: "STRING_VALUE", * GatewayTimezone: "STRING_VALUE", * CloudWatchLogGroupARN: "STRING_VALUE", * GatewayCapacity: "Small" || "Medium" || "Large", * }; * const command = new UpdateGatewayInformationCommand(input); * const response = await client.send(command); * // { // UpdateGatewayInformationOutput * // GatewayARN: "STRING_VALUE", * // GatewayName: "STRING_VALUE", * // }; * * ``` * * @param UpdateGatewayInformationCommandInput - {@link UpdateGatewayInformationCommandInput} * @returns {@link UpdateGatewayInformationCommandOutput} * @see {@link UpdateGatewayInformationCommandInput} for command's `input` shape. * @see {@link UpdateGatewayInformationCommandOutput} 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 update a gateway's metadata * ```javascript * // Updates a gateway's metadata, which includes the gateway's name and time zone. * const input = { * GatewayARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B", * GatewayName: "MyGateway2", * GatewayTimezone: "GMT-12:00" * }; * const command = new UpdateGatewayInformationCommand(input); * const response = await client.send(command); * /* response is * { * GatewayARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B", * GatewayName: "" * } * *\/ * ``` * * @public */ export declare class UpdateGatewayInformationCommand extends UpdateGatewayInformationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateGatewayInformationInput; output: UpdateGatewayInformationOutput; }; sdk: { input: UpdateGatewayInformationCommandInput; output: UpdateGatewayInformationCommandOutput; }; }; }