import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { UpdateMaintenanceStartTimeInput, UpdateMaintenanceStartTimeOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link UpdateMaintenanceStartTimeCommand}. */ export interface UpdateMaintenanceStartTimeCommandInput extends UpdateMaintenanceStartTimeInput { } /** * @public * * The output of {@link UpdateMaintenanceStartTimeCommand}. */ export interface UpdateMaintenanceStartTimeCommandOutput extends UpdateMaintenanceStartTimeOutput, __MetadataBearer { } declare const UpdateMaintenanceStartTimeCommand_base: { new (input: UpdateMaintenanceStartTimeCommandInput): import("@smithy/core/client").CommandImpl; new (input: UpdateMaintenanceStartTimeCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Updates a gateway's maintenance window schedule, with settings for monthly or * weekly cadence, specific day and time to begin maintenance, and which types of updates to * apply. Time configuration uses the gateway's time zone. You can pass values for a complete * maintenance schedule, or update policy, or both. Previous values will persist for whichever * setting you choose not to modify. If an incomplete or invalid maintenance schedule is * passed, the entire request will be rejected with an error and no changes will occur.

*

A complete maintenance schedule must include values for both * MinuteOfHour and HourOfDay, and either * DayOfMonth * or * DayOfWeek.

* *

We recommend keeping maintenance updates turned on, except in specific use cases * where the brief disruptions caused by updating the gateway could critically impact your * deployment.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { StorageGatewayClient, UpdateMaintenanceStartTimeCommand } from "@aws-sdk/client-storage-gateway"; // ES Modules import * // const { StorageGatewayClient, UpdateMaintenanceStartTimeCommand } = 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 = { // UpdateMaintenanceStartTimeInput * GatewayARN: "STRING_VALUE", // required * HourOfDay: Number("int"), * MinuteOfHour: Number("int"), * DayOfWeek: Number("int"), * DayOfMonth: Number("int"), * SoftwareUpdatePreferences: { // SoftwareUpdatePreferences * AutomaticUpdatePolicy: "ALL_VERSIONS" || "EMERGENCY_VERSIONS_ONLY", * }, * }; * const command = new UpdateMaintenanceStartTimeCommand(input); * const response = await client.send(command); * // { // UpdateMaintenanceStartTimeOutput * // GatewayARN: "STRING_VALUE", * // }; * * ``` * * @param UpdateMaintenanceStartTimeCommandInput - {@link UpdateMaintenanceStartTimeCommandInput} * @returns {@link UpdateMaintenanceStartTimeCommandOutput} * @see {@link UpdateMaintenanceStartTimeCommandInput} for command's `input` shape. * @see {@link UpdateMaintenanceStartTimeCommandOutput} 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 maintenance start time * ```javascript * // Updates a gateway's weekly maintenance start time information, including day and time of the week. The maintenance time is in your gateway's time zone. * const input = { * DayOfWeek: 2, * GatewayARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B", * HourOfDay: 0, * MinuteOfHour: 30 * }; * const command = new UpdateMaintenanceStartTimeCommand(input); * const response = await client.send(command); * /* response is * { * GatewayARN: "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B" * } * *\/ * ``` * * @public */ export declare class UpdateMaintenanceStartTimeCommand extends UpdateMaintenanceStartTimeCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateMaintenanceStartTimeInput; output: UpdateMaintenanceStartTimeOutput; }; sdk: { input: UpdateMaintenanceStartTimeCommandInput; output: UpdateMaintenanceStartTimeCommandOutput; }; }; }